diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000000..fe308ce8b9 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,53 @@ +## What are the changes introduced in this PR? + +Write a brief explainer on your code changes. + +## What is the related Linear task? + +Resolves INT-XXX + +## Please explain the objectives of your changes below + +Put down any required details on the broader aspect of your changes. If there are any dependent changes, **mandatorily** mention them here + +### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? + +N/A + +### Any new dependencies introduced with this change? + +N/A + +### Any new generic utility introduced or modified. Please explain the changes. + +N/A + +### Any technical or performance related pointers to consider with the change? + +N/A + +
+ +### Developer checklist + +- [ ] My code follows the style guidelines of this project + +- [ ] **No breaking changes are being introduced.** + +- [ ] All related docs linked with the PR? + +- [ ] All changes manually tested? + +- [ ] Any documentation changes needed with this change? + +- [ ] Is the PR limited to 10 file changes? + +- [ ] Is the PR limited to one linear task? + +- [ ] Are relevant unit and component test-cases added? + +### Reviewer checklist + +- [ ] Is the type of change in the PR title appropriate as per the changes? + +- [ ] Verified that there are no credentials or confidential data exposed with the changes. diff --git a/.github/workflows/build-pr-artifacts.yml b/.github/workflows/build-pr-artifacts.yml index 022afcd9f4..9938563bf0 100644 --- a/.github/workflows/build-pr-artifacts.yml +++ b/.github/workflows/build-pr-artifacts.yml @@ -18,7 +18,7 @@ jobs: tag_name_ut: ${{ steps.gen_tag_names.outputs.tag_name_ut }} steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 diff --git a/.github/workflows/build-push-docker-image.yml b/.github/workflows/build-push-docker-image.yml index c57e74c81b..9f6709a040 100644 --- a/.github/workflows/build-push-docker-image.yml +++ b/.github/workflows/build-push-docker-image.yml @@ -36,12 +36,12 @@ jobs: runs-on: [self-hosted, Linux, ARM64] steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v2.9.1 + uses: docker/setup-buildx-action@v3.0.0 - name: Login to DockerHub uses: docker/login-action@v2.1.0 @@ -50,7 +50,7 @@ jobs: password: ${{ secrets.DOCKERHUB_PROD_TOKEN }} - name: Build Docker Image - uses: docker/build-push-action@v4.1.1 + uses: docker/build-push-action@v5.1.0 with: context: . file: ${{ inputs.dockerfile }} @@ -66,7 +66,7 @@ jobs: docker run ${{ inputs.build_tag }} npm run test:ts:ci - name: Build and Push Multi-platform Images - uses: docker/build-push-action@v4.1.1 + uses: docker/build-push-action@v5.1.0 with: context: . file: ${{ inputs.dockerfile }} @@ -86,12 +86,12 @@ jobs: runs-on: [self-hosted, Linux, X64] steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v2.9.1 + uses: docker/setup-buildx-action@v3.0.0 - name: Login to DockerHub uses: docker/login-action@v2.1.0 @@ -100,7 +100,7 @@ jobs: password: ${{ secrets.DOCKERHUB_PROD_TOKEN }} - name: Build Docker Image - uses: docker/build-push-action@v4.1.1 + uses: docker/build-push-action@v5.1.0 with: context: . file: ${{ inputs.dockerfile }} @@ -116,7 +116,7 @@ jobs: docker run ${{ inputs.build_tag }} npm run test:ts:ci - name: Build and Push Multi-platform Images - uses: docker/build-push-action@v4.1.1 + uses: docker/build-push-action@v5.1.0 with: context: . file: ${{ inputs.dockerfile }} @@ -138,7 +138,7 @@ jobs: steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2.9.1 + uses: docker/setup-buildx-action@v3.0.0 - name: Login to DockerHub uses: docker/login-action@v2.1.0 @@ -151,7 +151,7 @@ jobs: docker buildx imagetools create -t ${{ inputs.push_tags }} ${{ inputs.push_tags }}-amd64 ${{ inputs.push_tags }}-arm64 - name: Create latest multi-arch manifest - # To be triggered only for release/hotfix PR merges coming from `prepare-for-prod-deploy.yaml` + # To be triggered only for release/hotfix PR merges coming from `prepare-for-prod-dt-deploy.yaml` if: ${{ inputs.build_type == 'dt' }} run: | docker buildx imagetools create -t rudderstack/rudder-transformer:latest ${{ inputs.push_tags }}-amd64 ${{ inputs.push_tags }}-arm64 diff --git a/.github/workflows/component-test-report.yml b/.github/workflows/component-test-report.yml new file mode 100644 index 0000000000..9904004417 --- /dev/null +++ b/.github/workflows/component-test-report.yml @@ -0,0 +1,68 @@ +name: Component Test Reporter + +on: + pull_request: + types: + - opened + - reopened + - synchronize + +permissions: + id-token: write # allows the JWT to be requested from GitHub's OIDC provider + contents: read # This is required for actions/checkout + +jobs: + test_and_upload: + runs-on: ubuntu-latest + + steps: + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::${{ secrets.AWS_DEV_ACCOUNT_ID }}:role/${{ secrets.AWS_DEV_S3_SYNC_ROLE }} + aws-region: us-east-1 + + - name: Checkout + uses: actions/checkout@v4.1.1 + with: + fetch-depth: 1 + + - name: Setup Node + uses: actions/setup-node@v4.0.1 + with: + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Run Tests and Generate Report + run: | + npm run test:ts -- component + + + - name: Uplaod Report to S3 + run: | + aws s3 cp ./test_reports/ s3://test-integrations-dev/integrations-test-reports/rudder-transformer/${{ github.event.number }}/ --recursive + + + - name: Comment on PR with S3 Object URL + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.PAT }} + script: | + const { owner, repo } = context.repo; + // Get the pull request number + const prNumber = context.payload.pull_request.number; + const commentBody = `Test report for this run is available at: https://test-integrations-dev.s3.amazonaws.com/integrations-test-reports/rudder-transformer/${prNumber}/test-report.html`; + + + // Comment on the pull request + github.rest.issues.createComment({ + owner, + repo, + issue_number: prNumber, + body: commentBody + }); + + \ No newline at end of file diff --git a/.github/workflows/create-hotfix-branch.yml b/.github/workflows/create-hotfix-branch.yml index 03c79e0df1..a164c25bee 100644 --- a/.github/workflows/create-hotfix-branch.yml +++ b/.github/workflows/create-hotfix-branch.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest # Only allow these users to create new hotfix branch from 'main' - if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'ujjwal-ab') + if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'koladilip' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'ujjwal-ab') steps: - name: Create Branch uses: peterjgrainger/action-create-branch@v2.4.0 diff --git a/.github/workflows/draft-new-release.yml b/.github/workflows/draft-new-release.yml index 23e243918f..33b0396705 100644 --- a/.github/workflows/draft-new-release.yml +++ b/.github/workflows/draft-new-release.yml @@ -8,15 +8,15 @@ jobs: runs-on: ubuntu-latest # Only allow release stakeholders to initiate releases - if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'yashasvibajpai' || github.actor == 'sanpj2292' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'yashasvibajpai' || github.triggering_actor == 'sanpj2292' || github.triggering_actor == 'ujjwal-ab') + if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'koladilip' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'yashasvibajpai' || github.actor == 'sanpj2292' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'yashasvibajpai' || github.triggering_actor == 'sanpj2292' || github.triggering_actor == 'ujjwal-ab') steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v3.7.0 + uses: actions/setup-node@v4.0.1 with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/report-code-coverage.yml b/.github/workflows/dt-test-and-report-code-coverage.yml similarity index 84% rename from .github/workflows/report-code-coverage.yml rename to .github/workflows/dt-test-and-report-code-coverage.yml index 02fa18b134..4096227400 100644 --- a/.github/workflows/report-code-coverage.yml +++ b/.github/workflows/dt-test-and-report-code-coverage.yml @@ -1,4 +1,4 @@ -name: Report Code Coverage +name: DT Tests on: workflow_call: secrets: @@ -15,12 +15,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 - name: Setup Node - uses: actions/setup-node@v3.7.0 + uses: actions/setup-node@v4.0.1 with: node-version-file: '.nvmrc' cache: 'npm' @@ -30,8 +30,9 @@ jobs: - name: Run Tests run: | - npm run test:js:ci - npm run test:ts:ci + # Supress logging in tests + LOG_LEVEL=100 npm run test:js:ci + LOG_LEVEL=100 npm run test:ts:ci - name: Run Lint Checks run: | @@ -57,7 +58,7 @@ jobs: - name: SonarCloud Scan if: always() - uses: SonarSource/sonarcloud-github-action@v2.0.0 + uses: SonarSource/sonarcloud-github-action@v2.1.1 env: GITHUB_TOKEN: ${{ secrets.PAT }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/housekeeping.yml b/.github/workflows/housekeeping.yml index 6c94b1c421..388b80c15f 100644 --- a/.github/workflows/housekeeping.yml +++ b/.github/workflows/housekeeping.yml @@ -4,6 +4,7 @@ on: schedule: # Run everyday at 1 AM - cron: '0 1 * * *' + workflow_dispatch: jobs: prs: @@ -14,7 +15,7 @@ jobs: pull-requests: write steps: - - uses: actions/stale@v8.0.0 + - uses: actions/stale@v9.0.0 with: repo-token: ${{ secrets.PAT }} operations-per-run: 200 @@ -32,14 +33,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 - name: Delete Old Branches - uses: beatlabs/delete-old-branches-action@v0.0.9 + uses: beatlabs/delete-old-branches-action@v0.0.10 with: repo_token: ${{ secrets.PAT }} date: '3 months ago' dry_run: false delete_tags: false - extra_protected_branch_regex: ^(main|release/.*|develop|hotfix/.*|hotfix-release/.*)$ + extra_protected_branch_regex: ^(main|develop)$ exclude_open_pr_branches: true diff --git a/.github/workflows/prepare-for-dev-deploy.yml b/.github/workflows/prepare-for-dev-deploy.yml index d45f760c66..9eb705aa52 100644 --- a/.github/workflows/prepare-for-dev-deploy.yml +++ b/.github/workflows/prepare-for-dev-deploy.yml @@ -14,7 +14,7 @@ jobs: report-coverage: name: Report Code Coverage if: github.event_name == 'push' - uses: ./.github/workflows/report-code-coverage.yml + uses: ./.github/workflows/dt-test-and-report-code-coverage.yml secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -28,7 +28,7 @@ jobs: tag_name_ut: ${{ steps.gen_tag_names.outputs.tag_name_ut }} steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 diff --git a/.github/workflows/prepare-for-prod-deploy.yml b/.github/workflows/prepare-for-prod-dt-deploy.yml similarity index 96% rename from .github/workflows/prepare-for-prod-deploy.yml rename to .github/workflows/prepare-for-prod-dt-deploy.yml index 0a2939ac2c..2af853f643 100644 --- a/.github/workflows/prepare-for-prod-deploy.yml +++ b/.github/workflows/prepare-for-prod-dt-deploy.yml @@ -1,4 +1,4 @@ -name: Prepare for Production Environment Deployment +name: Prepare for DT Production Environment Deployment on: push: @@ -14,7 +14,7 @@ jobs: report-coverage: name: Report Code Coverage if: github.event_name == 'push' - uses: ./.github/workflows/report-code-coverage.yml + uses: ./.github/workflows/dt-test-and-report-code-coverage.yml secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -28,7 +28,7 @@ jobs: tag_name_ut: ${{ steps.gen_tag_names.outputs.tag_name_ut }} steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 @@ -65,7 +65,7 @@ jobs: TF_IMAGE_REPOSITORY: rudderstack/rudder-transformer steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 diff --git a/.github/workflows/prepare-for-prod-ut-deploy.yml b/.github/workflows/prepare-for-prod-ut-deploy.yml index 1cb300512c..c2900d61da 100644 --- a/.github/workflows/prepare-for-prod-ut-deploy.yml +++ b/.github/workflows/prepare-for-prod-ut-deploy.yml @@ -1,4 +1,4 @@ -name: Prepare for Production Environment Deployment +name: Prepare for UT Production Environment Deployment on: push: @@ -14,7 +14,7 @@ jobs: report-coverage: name: Report Code Coverage if: github.event_name == 'push' - uses: ./.github/workflows/report-code-coverage.yml + uses: ./.github/workflows/dt-test-and-report-code-coverage.yml secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -27,7 +27,7 @@ jobs: tag_name_ut: ${{ steps.gen_tag_names.outputs.tag_name_ut }} steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 @@ -68,7 +68,7 @@ jobs: TF_IMAGE_REPOSITORY: rudderstack/rudder-transformer steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 diff --git a/.github/workflows/prepare-for-staging-deploy.yml b/.github/workflows/prepare-for-staging-deploy.yml index 37224121bf..4e8f29cffa 100644 --- a/.github/workflows/prepare-for-staging-deploy.yml +++ b/.github/workflows/prepare-for-staging-deploy.yml @@ -20,7 +20,7 @@ jobs: tag_name_ut: ${{ steps.gen_tag_names.outputs.tag_name_ut }} steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 @@ -78,7 +78,7 @@ jobs: UT_TAG_NAME: ${{ needs.generate-tag-names.outputs.tag_name_ut }} steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 diff --git a/.github/workflows/publish-new-release.yml b/.github/workflows/publish-new-release.yml index e995388ce0..9d1558d826 100644 --- a/.github/workflows/publish-new-release.yml +++ b/.github/workflows/publish-new-release.yml @@ -25,12 +25,12 @@ jobs: echo "release_version=$version" >> $GITHUB_OUTPUT - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v3.7.0 + uses: actions/setup-node@v4.0.1 with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/test.yml b/.github/workflows/ut-tests.yml similarity index 89% rename from .github/workflows/test.yml rename to .github/workflows/ut-tests.yml index 4c01b351e8..30c29ceaee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/ut-tests.yml @@ -8,17 +8,25 @@ on: - synchronize jobs: - test: - name: Run Tests + ut_tests: + name: UT Tests runs-on: ubuntu-latest steps: + - name: Setup Go + uses: actions/setup-go@v5.0.0 + with: + go-version: 1.17 + + - name: Install Latest Version of Kind + run: go install sigs.k8s.io/kind@v0.17.0 + - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4.1.1 with: fetch-depth: 1 - name: Setup Node - uses: actions/setup-node@v3.7.0 + uses: actions/setup-node@v4.0.1 with: node-version-file: '.nvmrc' cache: 'npm' @@ -26,19 +34,6 @@ jobs: - name: Install Dependencies run: npm ci - - name: Run Unit Tests - run: | - npm run test:js:ci - npm run test:ts:ci - - - name: Setup Go - uses: actions/setup-go@v4.1.0 - with: - go-version: 1.17 - - - name: Install Latest Version of Kind - run: go install sigs.k8s.io/kind@v0.17.0 - - name: Create Kind cluster run: kind create cluster --name kind-cluster --config=test/__tests__/data/worker-nodes-kind.yml diff --git a/.gitignore b/.gitignore index ab1fc2a840..f96c3ac807 100644 --- a/.gitignore +++ b/.gitignore @@ -132,3 +132,9 @@ dist # Others **/.DS_Store + + +.idea + +# component test report +test_reports/ \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index 6d80269a4f..a9d087399d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18.16.0 +18.19.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f990fe3b9..0dab3e6b21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,156 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [1.54.1](https://github.com/rudderlabs/rudder-transformer/compare/v1.54.0...v1.54.1) (2024-01-24) + + +### Bug Fixes + +* remove brand mapping from products to contents in tiktok_ads ([49c4988](https://github.com/rudderlabs/rudder-transformer/commit/49c4988cc872f40780fa640240c209c3d768fab4)) + +## [1.54.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.53.0...v1.54.0) (2024-01-22) + + +### Features + +* add regulation to features.json ([2ae4378](https://github.com/rudderlabs/rudder-transformer/commit/2ae437820952b87dace289ec04d5c116d77cf70c)) +* add regulation to features.json ([#2988](https://github.com/rudderlabs/rudder-transformer/issues/2988)) ([65c79a8](https://github.com/rudderlabs/rudder-transformer/commit/65c79a8fd02218cee5d12e51004cdc023a0e7989)) +* onboard new tiktok version events 2.0 ([#2961](https://github.com/rudderlabs/rudder-transformer/issues/2961)) ([0fca088](https://github.com/rudderlabs/rudder-transformer/commit/0fca088980368954e9a82addedd6a4544035259a)) + + +### Bug Fixes + +* add valid code coverage file in workflows ([#3000](https://github.com/rudderlabs/rudder-transformer/issues/3000)) ([34bf49d](https://github.com/rudderlabs/rudder-transformer/commit/34bf49d19f33326008a467230574e4f1c78e9ddb)) +* error handling for trade desk first party data flow ([#2986](https://github.com/rudderlabs/rudder-transformer/issues/2986)) ([32c9c03](https://github.com/rudderlabs/rudder-transformer/commit/32c9c038ca96477cbe8d94d2a19679817b952e4c)) +* fixing network and default error messages for marketo bulk upload ([#3016](https://github.com/rudderlabs/rudder-transformer/issues/3016)) ([3741073](https://github.com/rudderlabs/rudder-transformer/commit/3741073ea37e83aa1e6e35c3ccb26d5a41a49617)) +* klaviyo validate event name to be string before accessing it ([#2998](https://github.com/rudderlabs/rudder-transformer/issues/2998)) ([7aa6687](https://github.com/rudderlabs/rudder-transformer/commit/7aa6687829783df3924a89698a53b9cb315449eb)) +* mailjet source operating on array instead object ([#2999](https://github.com/rudderlabs/rudder-transformer/issues/2999)) ([0dbb307](https://github.com/rudderlabs/rudder-transformer/commit/0dbb307bf5d18893e3331cd92bc16bae1b4a6add)) +* mixpanel alias simplified merge error message ([#2996](https://github.com/rudderlabs/rudder-transformer/issues/2996)) ([e53b304](https://github.com/rudderlabs/rudder-transformer/commit/e53b3046252bb5abcae046445baf4a67c40f37a3)) +* optimise build and coverage ([#2985](https://github.com/rudderlabs/rudder-transformer/issues/2985)) ([81ab6e8](https://github.com/rudderlabs/rudder-transformer/commit/81ab6e86070a9992141bad405c6f52d1ab186f11)) +* ortto remove phn:phone field if no phone is there in payload ([#2997](https://github.com/rudderlabs/rudder-transformer/issues/2997)) ([0c2f7bc](https://github.com/rudderlabs/rudder-transformer/commit/0c2f7bcbf705787087a8d9073145e282851ddb6f)) +* pr conflicts in back merge ([#2984](https://github.com/rudderlabs/rudder-transformer/issues/2984)) ([f16066c](https://github.com/rudderlabs/rudder-transformer/commit/f16066cc8f867378f1b9bb9812f8efe389ca5bc8)) +* **slack:** add support of blank space in handlebar ([#2959](https://github.com/rudderlabs/rudder-transformer/issues/2959)) ([ff12d8f](https://github.com/rudderlabs/rudder-transformer/commit/ff12d8ffddccbdac934c7cbac03730cd2593147f)) +* tiktok add missing field brand ([#2942](https://github.com/rudderlabs/rudder-transformer/issues/2942)) ([ca76297](https://github.com/rudderlabs/rudder-transformer/commit/ca76297147f0a2c12d68d97dda95b9a44efe4020)) +* tiktok_ads remove page.url as a required field ([#3006](https://github.com/rudderlabs/rudder-transformer/issues/3006)) ([595f819](https://github.com/rudderlabs/rudder-transformer/commit/595f81982a2604ec08621e15cea7c16564d5ecab)) + +## [1.53.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.52.4...v1.53.0) (2024-01-08) + + +### Features + +* amplitude add support for unset ([#2941](https://github.com/rudderlabs/rudder-transformer/issues/2941)) ([429ca71](https://github.com/rudderlabs/rudder-transformer/commit/429ca719952e5b8a4b6bad2ef1a087575613e861)) +* handle improper type validation sync vulnerability ([#2937](https://github.com/rudderlabs/rudder-transformer/issues/2937)) ([7d734f0](https://github.com/rudderlabs/rudder-transformer/commit/7d734f06df75d198f8440a953ce089631af15a8b)) +* move intercom to routerTransform ([#2964](https://github.com/rudderlabs/rudder-transformer/issues/2964)) ([48e4036](https://github.com/rudderlabs/rudder-transformer/commit/48e40365de6d45c40b25b0af3373504bfd5368bd)) +* onboard new destination the trade desk ([#2918](https://github.com/rudderlabs/rudder-transformer/issues/2918)) ([f5ad088](https://github.com/rudderlabs/rudder-transformer/commit/f5ad088439ae628c9652b58d1ecb90257d77cae3)) +* pass ip details for factorsAI ([#2925](https://github.com/rudderlabs/rudder-transformer/issues/2925)) ([970d37d](https://github.com/rudderlabs/rudder-transformer/commit/970d37d6a3e4196c284513dd56f5405b0f3f2821)) +* **sprig:** added user deletion support ([#2886](https://github.com/rudderlabs/rudder-transformer/issues/2886)) ([e0c225d](https://github.com/rudderlabs/rudder-transformer/commit/e0c225dfab711c1d87d1c5dd1be98fb476548588)) + + +### Bug Fixes + +* enhancement and version upgrade of google ads remarketing list ([#2945](https://github.com/rudderlabs/rudder-transformer/issues/2945)) ([2380f9d](https://github.com/rudderlabs/rudder-transformer/commit/2380f9dcfcda2c6fe101b8b3a2d580e26a6452f3)) +* error handling when payload contains toString as key ([#2954](https://github.com/rudderlabs/rudder-transformer/issues/2954)) ([e002093](https://github.com/rudderlabs/rudder-transformer/commit/e00209337fa0e4da88f4f9959558636eecd4f120)) +* for gainsight px only new users to have default signUp date ([#2953](https://github.com/rudderlabs/rudder-transformer/issues/2953)) ([8bf56cc](https://github.com/rudderlabs/rudder-transformer/commit/8bf56cc7914bda530b0bf3fb16bfece6be542ddd)) +* version upgrade of gaec from 14 to 15 ([#2966](https://github.com/rudderlabs/rudder-transformer/issues/2966)) ([8bada4b](https://github.com/rudderlabs/rudder-transformer/commit/8bada4b21acf3ac884f44166b62098680f126898)) + +### [1.52.4](https://github.com/rudderlabs/rudder-transformer/compare/v1.52.3...v1.52.4) (2023-12-27) + + +### Bug Fixes + +* send empty string instead of null when the schema data is undefined ([#2955](https://github.com/rudderlabs/rudder-transformer/issues/2955)) ([511741e](https://github.com/rudderlabs/rudder-transformer/commit/511741ed356b365f52e0335ce6a1fc953ccbc465)) + +### [1.52.3](https://github.com/rudderlabs/rudder-transformer/compare/v1.52.2...v1.52.3) (2023-12-18) + + +### Bug Fixes + +* email validation for braze ([#2929](https://github.com/rudderlabs/rudder-transformer/issues/2929)) ([28207d0](https://github.com/rudderlabs/rudder-transformer/commit/28207d02a1b39b25325fa30be12c4dccd05c844e)) +* pinterest event value is restricted to string ([#2933](https://github.com/rudderlabs/rudder-transformer/issues/2933)) ([7f6d519](https://github.com/rudderlabs/rudder-transformer/commit/7f6d519b811a5d8f83f7a2103d9ba50efed8a923)) +* remove log from dcm_floodlight ([#2934](https://github.com/rudderlabs/rudder-transformer/issues/2934)) ([c5d9a3c](https://github.com/rudderlabs/rudder-transformer/commit/c5d9a3cc7d0270238c102cec809edcccad5b270d)) +* tiktok remove lowercasing for custom events ([#2930](https://github.com/rudderlabs/rudder-transformer/issues/2930)) ([1a90719](https://github.com/rudderlabs/rudder-transformer/commit/1a9071931e9768a3fd02b749b4b705e8c28d9763)) + +### [1.52.2](https://github.com/rudderlabs/rudder-transformer/compare/v1.52.1...v1.52.2) (2023-12-15) + + +### Bug Fixes + +* braze dedup for adding non-billable attributes ([#2921](https://github.com/rudderlabs/rudder-transformer/issues/2921)) ([4196b1b](https://github.com/rudderlabs/rudder-transformer/commit/4196b1bfec2fc3f7c2c5d0b305853b39033e894c)) +* inclusion of right status-code & error details in proxy response ([#2916](https://github.com/rudderlabs/rudder-transformer/issues/2916)) ([5d295c2](https://github.com/rudderlabs/rudder-transformer/commit/5d295c232ff91bfb8564d4d6fcce49dc1e07958b)) +* supportTransformerProxyV1 set to false ([#2920](https://github.com/rudderlabs/rudder-transformer/issues/2920)) ([90ee7ad](https://github.com/rudderlabs/rudder-transformer/commit/90ee7ad13921830c920ee60361adb0e0c5dc1d43)) + +### [1.52.1](https://github.com/rudderlabs/rudder-transformer/compare/v1.52.0...v1.52.1) (2023-12-14) + + +### Bug Fixes + +* update response handling for v1 proxy ([7d275ca](https://github.com/rudderlabs/rudder-transformer/commit/7d275ca1d58c38859fce95d7d0677e11342c662a)) + +## [1.52.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.51.1...v1.52.0) (2023-12-12) + + +### Features + +* onboard msl changes for new record event ([#2644](https://github.com/rudderlabs/rudder-transformer/issues/2644)) ([36d3f25](https://github.com/rudderlabs/rudder-transformer/commit/36d3f258ed5ea4ba1899c8b2cae8203bf73d90ed)), closes [#2813](https://github.com/rudderlabs/rudder-transformer/issues/2813) +* onboard reddit cloud mode destination ([#2829](https://github.com/rudderlabs/rudder-transformer/issues/2829)) ([babb89a](https://github.com/rudderlabs/rudder-transformer/commit/babb89a5bf6d1b84d1319b967953c7c1b6de7c2c)) +* tiktok_ads: add support for custom events ([#2891](https://github.com/rudderlabs/rudder-transformer/issues/2891)) ([091354c](https://github.com/rudderlabs/rudder-transformer/commit/091354c4427b33c9f8ac2678db3a4ab38b008e7d)) + + +### Bug Fixes + +* active_campaign error handler ([#2895](https://github.com/rudderlabs/rudder-transformer/issues/2895)) ([5a6d296](https://github.com/rudderlabs/rudder-transformer/commit/5a6d296b0ce83f3b6b4e215839fb65d4e0f2de41)) +* add check to remove empty properties object from payload ([#2896](https://github.com/rudderlabs/rudder-transformer/issues/2896)) ([1a86a07](https://github.com/rudderlabs/rudder-transformer/commit/1a86a0723e3f5fb6fdf9cf1dc716a47c6da16745)) +* adobe_analytics event field check ([#2890](https://github.com/rudderlabs/rudder-transformer/issues/2890)) ([bf39215](https://github.com/rudderlabs/rudder-transformer/commit/bf39215dd1bbed482665c837a2bfabfcb751c753)) +* covert toString before toLowercase ([#2830](https://github.com/rudderlabs/rudder-transformer/issues/2830)) ([bed431e](https://github.com/rudderlabs/rudder-transformer/commit/bed431e1de94ab28df1ee592d083a1481b960b6d)) +* **dm:** add workspaceId in common metadata to be returned to the callers ([#2868](https://github.com/rudderlabs/rudder-transformer/issues/2868)) ([b3437a3](https://github.com/rudderlabs/rudder-transformer/commit/b3437a34358d5fd5b1eb63f30a5a695f39aa84ff)) +* **integrations:** onboard sprig destination ([#2857](https://github.com/rudderlabs/rudder-transformer/issues/2857)) ([ede22e3](https://github.com/rudderlabs/rudder-transformer/commit/ede22e3f8fb60a9e36e2a3f5a5e86260255c49ef)) +* mailjet source transformation by adding email exists check ([#2889](https://github.com/rudderlabs/rudder-transformer/issues/2889)) ([4a7eaa0](https://github.com/rudderlabs/rudder-transformer/commit/4a7eaa09000bcb82eb7f217d500223939bd9b07b)) +* missing null check in braze populateCustomAttributesWithOperation ([#2897](https://github.com/rudderlabs/rudder-transformer/issues/2897)) ([50e921d](https://github.com/rudderlabs/rudder-transformer/commit/50e921d1451bf7016e60b2e238b8f842d72b5b71)) +* removed retry logic from v1 cm360, added adapter for v1 to v0 conversion ([#2860](https://github.com/rudderlabs/rudder-transformer/issues/2860)) ([776d2c4](https://github.com/rudderlabs/rudder-transformer/commit/776d2c4abe23cd279195064684b9ccc807d83afc)) +* **dm:** use clones as false for tracking plan node cache ([#2899](https://github.com/rudderlabs/rudder-transformer/issues/2899)) ([8f47db8](https://github.com/rudderlabs/rudder-transformer/commit/8f47db8bcf581d1807cfa2aa823ef400a30a09e3)) + +### [1.51.1](https://github.com/rudderlabs/rudder-transformer/compare/v1.51.0...v1.51.1) (2023-12-06) + + +### Bug Fixes + +* marketo backward compatibility ([#2880](https://github.com/rudderlabs/rudder-transformer/issues/2880)) ([af6aebb](https://github.com/rudderlabs/rudder-transformer/commit/af6aebba9a9891fadc91fe2dc4ae4db4b1e269c9)) +* marketo new field introduction backward compatibility ([cd6c3b0](https://github.com/rudderlabs/rudder-transformer/commit/cd6c3b0672a0b17078627f28f6613a2ef1898ee7)) +* remove ErrorResponse type from postTransfomration delivery ([b13f0a6](https://github.com/rudderlabs/rudder-transformer/commit/b13f0a6340177a56417692ad7dcf3829d4990826)) + +## [1.51.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.50.1...v1.51.0) (2023-12-06) + + +### Features + +* cm360 router batching ([#2836](https://github.com/rudderlabs/rudder-transformer/issues/2836)) ([4b260e4](https://github.com/rudderlabs/rudder-transformer/commit/4b260e4ec6d25875903830004b3e4975b3402b2d)) +* cm360 transformerproxy V1 flag ([#2848](https://github.com/rudderlabs/rudder-transformer/issues/2848)) ([27f0797](https://github.com/rudderlabs/rudder-transformer/commit/27f0797c6dcd626a713c11a48c6e85a69e0a4963)) +* **INT-305:** onboard gladly destination ([#2786](https://github.com/rudderlabs/rudder-transformer/issues/2786)) ([ff80b88](https://github.com/rudderlabs/rudder-transformer/commit/ff80b885fe0507c137b3c9eacffcef331010da0c)) +* marketo: migrate config fields and fix test cases ([#2789](https://github.com/rudderlabs/rudder-transformer/issues/2789)) ([7910dba](https://github.com/rudderlabs/rudder-transformer/commit/7910dba2318f92cec3be1b7c7aa6b00428ecae94)) +* mixpanel set once feature onboard ([#2820](https://github.com/rudderlabs/rudder-transformer/issues/2820)) ([9eda50e](https://github.com/rudderlabs/rudder-transformer/commit/9eda50e850c5a1ccb46f1b54c3d176edb915eb27)) +* onboard webhook to component tests ([#2837](https://github.com/rudderlabs/rudder-transformer/issues/2837)) ([284d141](https://github.com/rudderlabs/rudder-transformer/commit/284d1411514c26dda2403a4a18967e5f40e255ea)) +* update facebook destinations API version to v18.0 ([#2828](https://github.com/rudderlabs/rudder-transformer/issues/2828)) ([3127a1c](https://github.com/rudderlabs/rudder-transformer/commit/3127a1ca8dc1b887f9158a1d839c5504f40c4678)) + + +### Bug Fixes + +* add support for custom properties for braze purchase events ([#2856](https://github.com/rudderlabs/rudder-transformer/issues/2856)) ([be6ef26](https://github.com/rudderlabs/rudder-transformer/commit/be6ef2605f04e9182534b9633eeec1091cf7a431)) +* bugsnag issue in moengage identify event ([#2845](https://github.com/rudderlabs/rudder-transformer/issues/2845)) ([0e7adc6](https://github.com/rudderlabs/rudder-transformer/commit/0e7adc66ff88d9510e48a5651460b4e02cc57c78)) +* encode &, < and > to html counterparts in adobe analytics ([#2854](https://github.com/rudderlabs/rudder-transformer/issues/2854)) ([571dbf5](https://github.com/rudderlabs/rudder-transformer/commit/571dbf5bd65e7d0e261562ff3da3b393f27f27b6)) +* error handling in active_campaign ([#2843](https://github.com/rudderlabs/rudder-transformer/issues/2843)) ([a015460](https://github.com/rudderlabs/rudder-transformer/commit/a015460f0a6d2d5320f633abc151febf22561b6b)) +* make supportTransformerProxyV1 false ([#2861](https://github.com/rudderlabs/rudder-transformer/issues/2861)) ([80cf69d](https://github.com/rudderlabs/rudder-transformer/commit/80cf69dc40bb4dc7c0a6d516814f36d962018745)) +* remove errorCategory for braze dedup error ([#2850](https://github.com/rudderlabs/rudder-transformer/issues/2850)) ([91d4cd1](https://github.com/rudderlabs/rudder-transformer/commit/91d4cd16f9839b0be5a663ca5010bdd72cff9bdc)) +* sfmc bug fix for track event validations ([#2852](https://github.com/rudderlabs/rudder-transformer/issues/2852)) ([cd9a046](https://github.com/rudderlabs/rudder-transformer/commit/cd9a046f66eab8363373cb9a0fa1afeef3137d78)) +* unhandled error code in facebook_custom_audience ([#2853](https://github.com/rudderlabs/rudder-transformer/issues/2853)) ([8c02b8c](https://github.com/rudderlabs/rudder-transformer/commit/8c02b8ccb2101147ac84b4555e7fd07235ebf9fc)) +* updated transformerProxyV1 name ([#2859](https://github.com/rudderlabs/rudder-transformer/issues/2859)) ([1a8d825](https://github.com/rudderlabs/rudder-transformer/commit/1a8d825ccbb87d34d8ae5ff2cb02f4be9700eee6)) + +### [1.50.1](https://github.com/rudderlabs/rudder-transformer/compare/v1.50.0...v1.50.1) (2023-12-05) + + +### Bug Fixes + +* salesforce transformer proxy response handling issue for authorization flow ([#2873](https://github.com/rudderlabs/rudder-transformer/issues/2873)) ([4cec65e](https://github.com/rudderlabs/rudder-transformer/commit/4cec65e4103e99021f5108fcc7c557b952f1c5eb)) + ## [1.50.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.49.1...v1.50.0) (2023-11-13) diff --git a/Dockerfile b/Dockerfile index a568ce95c7..6bd03c9515 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.4 -FROM node:18.17-alpine3.17 AS base +FROM node:18.19.0-alpine3.18 AS base ENV HUSKY 0 RUN apk update diff --git a/jest.config.js b/jest.config.js index 412d8d2733..f126aee9ca 100644 --- a/jest.config.js +++ b/jest.config.js @@ -27,7 +27,7 @@ module.exports = { coverageDirectory: 'reports/coverage', // An array of regexp pattern strings used to skip coverage collection - coveragePathIgnorePatterns: ['/node_modules/', '__tests__', 'warehouse/v0'], + coveragePathIgnorePatterns: ['/node_modules/', '__tests__', 'warehouse/v0', 'test'], // A list of reporter names that Jest uses when writing coverage reports coverageReporters: ['json', 'text', 'lcov', 'clover'], @@ -35,10 +35,10 @@ module.exports = { // An object that configures minimum threshold enforcement for coverage results coverageThreshold: { global: { - branches: 60, - functions: 75, - lines: 75, - statements: 75, + branches: 30, + functions: 40, + lines: 50, + statements: 50, }, }, diff --git a/jest.config.typescript.js b/jest.config.typescript.js index fde50e3d5e..7350f1e19d 100644 --- a/jest.config.typescript.js +++ b/jest.config.typescript.js @@ -27,7 +27,7 @@ module.exports = { coverageDirectory: 'reports/ts-coverage', // An array of regexp pattern strings used to skip coverage collection - coveragePathIgnorePatterns: ['/node_modules/', '__tests__'], + coveragePathIgnorePatterns: ['/node_modules/', '__tests__', 'test'], // A list of reporter names that Jest uses when writing coverage reports coverageReporters: ['json', 'text', 'lcov', 'clover'], diff --git a/jest.default.config.js b/jest.default.config.js index fed1dcef31..59ca844902 100644 --- a/jest.default.config.js +++ b/jest.default.config.js @@ -27,7 +27,7 @@ module.exports = { coverageDirectory: 'reports/coverage', // An array of regexp pattern strings used to skip coverage collection - coveragePathIgnorePatterns: ['/node_modules/', '__tests__', 'warehouse/v0'], + coveragePathIgnorePatterns: ['/node_modules/', '__tests__', 'warehouse/v0' ,'test'], // A list of reporter names that Jest uses when writing coverage reports coverageReporters: ['json', 'text', 'lcov', 'clover'], @@ -35,10 +35,10 @@ module.exports = { // An object that configures minimum threshold enforcement for coverage results coverageThreshold: { global: { - branches: 60, - functions: 75, - lines: 75, - statements: 75, + branches: 30, + functions: 40, + lines: 50, + statements: 50, }, }, diff --git a/package-lock.json b/package-lock.json index 4f83954e5b..1c40b23fba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "rudder-transformer", - "version": "1.50.0", + "version": "1.54.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rudder-transformer", - "version": "1.50.0", + "version": "1.54.1", "license": "ISC", "dependencies": { - "@amplitude/ua-parser-js": "^0.7.24", - "@aws-sdk/client-personalize": "^3.391.0", - "@aws-sdk/client-s3": "^3.370.0", + "@amplitude/ua-parser-js": "0.7.24", + "@aws-sdk/client-personalize": "^3.470.0", + "@aws-sdk/client-s3": "^3.474.0", "@aws-sdk/credential-providers": "^3.391.0", - "@aws-sdk/lib-storage": "^3.391.0", + "@aws-sdk/lib-storage": "^3.474.0", "@bugsnag/js": "^7.20.2", "@datadog/pprof": "^3.1.0", "@koa/router": "^12.0.0", @@ -24,7 +24,7 @@ "ajv": "^8.12.0", "ajv-draft-04": "^1.0.0", "ajv-formats": "^2.1.1", - "axios": "^1.6.0", + "axios": "^1.6.4", "btoa": "^1.2.1", "component-each": "^0.2.6", "crypto-js": "^4.2.0", @@ -65,7 +65,7 @@ "stacktrace-parser": "^0.1.10", "statsd-client": "^0.4.7", "truncate-utf8-bytes": "^1.0.2", - "ua-parser-js": "^1.0.35", + "ua-parser-js": "^1.0.37", "unset-value": "^2.0.1", "uuid": "^9.0.0", "valid-url": "^1.0.9" @@ -116,25 +116,28 @@ }, "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/@amplitude/ua-parser-js": { "version": "0.7.24", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@amplitude/ua-parser-js/-/ua-parser-js-0.7.24.tgz", + "integrity": "sha512-VbQuJymJ20WEw0HtI2np7EdC3NJGUWi8+Xdbc7uk8WfMIF308T0howpzkQ3JFMN7ejnrcSM/OyNGveeE3TP3TA==", "engines": { "node": "*" } }, "node_modules/@ampproject/remapping": { - "version": "2.2.0", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { @@ -143,8 +146,9 @@ }, "node_modules/@apidevtools/json-schema-ref-parser": { "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", + "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", "dev": true, - "license": "MIT", "dependencies": { "@jsdevtools/ono": "^7.1.3", "call-me-maybe": "^1.0.1", @@ -153,16 +157,18 @@ }, "node_modules/@apidevtools/json-schema-ref-parser/node_modules/argparse": { "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } }, "node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml": { "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, - "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -173,21 +179,262 @@ }, "node_modules/@apidevtools/openapi-schemas": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", + "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/@apidevtools/swagger-cli": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-cli/-/swagger-cli-4.0.4.tgz", + "integrity": "sha512-hdDT3B6GLVovCsRZYDi3+wMcB1HfetTU20l2DC8zD3iFRNMC6QNAZG5fo/6PYeHWBEv7ri4MvnlKodhNB0nt7g==", + "deprecated": "This package has been abandoned. Please switch to using the actively maintained @redocly/cli", + "dev": true, + "dependencies": { + "@apidevtools/swagger-parser": "^10.0.1", + "chalk": "^4.1.0", + "js-yaml": "^3.14.0", + "yargs": "^15.4.1" + }, + "bin": { + "swagger-cli": "bin/swagger-cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@apidevtools/swagger-cli/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/@apidevtools/swagger-cli/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" } }, "node_modules/@apidevtools/swagger-methods": { "version": "3.0.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", + "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", + "dev": true }, "node_modules/@apidevtools/swagger-parser": { "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz", + "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==", "dev": true, - "license": "MIT", "dependencies": { "@apidevtools/json-schema-ref-parser": "9.0.6", "@apidevtools/openapi-schemas": "^2.1.0", @@ -203,7 +450,8 @@ }, "node_modules/@aws-crypto/crc32": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-3.0.0.tgz", + "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==", "dependencies": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -212,11 +460,13 @@ }, "node_modules/@aws-crypto/crc32/node_modules/tslib": { "version": "1.14.1", - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/crc32c": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-3.0.0.tgz", + "integrity": "sha512-ENNPPManmnVJ4BTXlOjAgD7URidbAznURqD0KvfREyc4o20DPYdEldU1f5cQ7Jbj0CJJSPaMIk/9ZshdB3210w==", "dependencies": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -225,22 +475,26 @@ }, "node_modules/@aws-crypto/crc32c/node_modules/tslib": { "version": "1.14.1", - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/ie11-detection": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz", + "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", "dependencies": { "tslib": "^1.11.1" } }, "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { "version": "1.14.1", - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/sha1-browser": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-3.0.0.tgz", + "integrity": "sha512-NJth5c997GLHs6nOYTzFKTbYdMNA6/1XlKVgnZoaZcQ7z7UJlOgj2JdbHE8tiYLS3fzXNCguct77SPGat2raSw==", "dependencies": { "@aws-crypto/ie11-detection": "^3.0.0", "@aws-crypto/supports-web-crypto": "^3.0.0", @@ -253,11 +507,13 @@ }, "node_modules/@aws-crypto/sha1-browser/node_modules/tslib": { "version": "1.14.1", - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/sha256-browser": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz", + "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", "dependencies": { "@aws-crypto/ie11-detection": "^3.0.0", "@aws-crypto/sha256-js": "^3.0.0", @@ -271,11 +527,13 @@ }, "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { "version": "1.14.1", - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/sha256-js": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz", + "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", "dependencies": { "@aws-crypto/util": "^3.0.0", "@aws-sdk/types": "^3.222.0", @@ -284,22 +542,26 @@ }, "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { "version": "1.14.1", - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/supports-web-crypto": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz", + "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", "dependencies": { "tslib": "^1.11.1" } }, "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { "version": "1.14.1", - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-crypto/util": { "version": "3.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz", + "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", "dependencies": { "@aws-sdk/types": "^3.222.0", "@aws-sdk/util-utf8-browser": "^3.0.0", @@ -308,3758 +570,4228 @@ }, "node_modules/@aws-crypto/util/node_modules/tslib": { "version": "1.14.1", - "license": "0BSD" - }, - "node_modules/@aws-sdk/chunked-blob-reader": { - "version": "3.310.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - } - }, - "node_modules/@aws-sdk/chunked-blob-reader-native": { - "version": "3.310.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/util-base64": "3.310.0", - "tslib": "^2.5.0" - } + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@aws-sdk/client-cognito-identity": { - "version": "3.414.0", - "license": "Apache-2.0", + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.485.0.tgz", + "integrity": "sha512-1SYhvRu/dNqQ5HcIgm7wIpyn1FsthbgG04o6QyVAnfOxmawFt4nqCEtNCwsmlX7o1ZCTYY+qNrozb7XZy+GKSQ==", "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.414.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", + "@aws-sdk/client-sts": "3.485.0", + "@aws-sdk/core": "3.485.0", + "@aws-sdk/credential-provider-node": "3.485.0", + "@aws-sdk/middleware-host-header": "3.485.0", + "@aws-sdk/middleware-logger": "3.485.0", + "@aws-sdk/middleware-recursion-detection": "3.485.0", + "@aws-sdk/middleware-signing": "3.485.0", + "@aws-sdk/middleware-user-agent": "3.485.0", + "@aws-sdk/region-config-resolver": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-endpoints": "3.485.0", + "@aws-sdk/util-user-agent-browser": "3.485.0", + "@aws-sdk/util-user-agent-node": "3.485.0", + "@smithy/config-resolver": "^2.0.23", + "@smithy/core": "^1.2.2", + "@smithy/fetch-http-handler": "^2.3.2", + "@smithy/hash-node": "^2.0.18", + "@smithy/invalid-dependency": "^2.0.16", + "@smithy/middleware-content-length": "^2.0.18", + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/middleware-retry": "^2.0.26", + "@smithy/middleware-serde": "^2.0.16", + "@smithy/middleware-stack": "^2.0.10", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/node-http-handler": "^2.2.2", + "@smithy/protocol-http": "^3.0.12", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/url-parser": "^2.0.16", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/util-defaults-mode-browser": "^2.0.24", + "@smithy/util-defaults-mode-node": "^2.0.32", + "@smithy/util-endpoints": "^1.0.8", + "@smithy/util-retry": "^2.0.9", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-personalize/-/client-personalize-3.485.0.tgz", + "integrity": "sha512-HWv+HAKtbfje8QH8jE3B+nvjDDsc8E7hhc16128lX4tc1M9sPfC2qfw4R2hZ9YZxAYSEWryRuOMcp8YQylwpzg==", "dependencies": { - "@smithy/types": "^2.3.1", + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "3.485.0", + "@aws-sdk/core": "3.485.0", + "@aws-sdk/credential-provider-node": "3.485.0", + "@aws-sdk/middleware-host-header": "3.485.0", + "@aws-sdk/middleware-logger": "3.485.0", + "@aws-sdk/middleware-recursion-detection": "3.485.0", + "@aws-sdk/middleware-signing": "3.485.0", + "@aws-sdk/middleware-user-agent": "3.485.0", + "@aws-sdk/region-config-resolver": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-endpoints": "3.485.0", + "@aws-sdk/util-user-agent-browser": "3.485.0", + "@aws-sdk/util-user-agent-node": "3.485.0", + "@smithy/config-resolver": "^2.0.23", + "@smithy/core": "^1.2.2", + "@smithy/fetch-http-handler": "^2.3.2", + "@smithy/hash-node": "^2.0.18", + "@smithy/invalid-dependency": "^2.0.16", + "@smithy/middleware-content-length": "^2.0.18", + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/middleware-retry": "^2.0.26", + "@smithy/middleware-serde": "^2.0.16", + "@smithy/middleware-stack": "^2.0.10", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/node-http-handler": "^2.2.2", + "@smithy/protocol-http": "^3.0.12", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/url-parser": "^2.0.16", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.24", + "@smithy/util-defaults-mode-node": "^2.0.32", + "@smithy/util-endpoints": "^1.0.8", + "@smithy/util-retry": "^2.0.9", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/abort-controller": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-s3": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.485.0.tgz", + "integrity": "sha512-Vh8FRiXekwu1sSdfhS/wpNzjIljPmIXrUdEapR7EmaIwditR+mTTzNS+7y69YdPQhVEE2u9QxRlo4Eg1e1jD3w==", "dependencies": { - "@smithy/types": "^2.3.3", + "@aws-crypto/sha1-browser": "3.0.0", + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "3.485.0", + "@aws-sdk/core": "3.485.0", + "@aws-sdk/credential-provider-node": "3.485.0", + "@aws-sdk/middleware-bucket-endpoint": "3.485.0", + "@aws-sdk/middleware-expect-continue": "3.485.0", + "@aws-sdk/middleware-flexible-checksums": "3.485.0", + "@aws-sdk/middleware-host-header": "3.485.0", + "@aws-sdk/middleware-location-constraint": "3.485.0", + "@aws-sdk/middleware-logger": "3.485.0", + "@aws-sdk/middleware-recursion-detection": "3.485.0", + "@aws-sdk/middleware-sdk-s3": "3.485.0", + "@aws-sdk/middleware-signing": "3.485.0", + "@aws-sdk/middleware-ssec": "3.485.0", + "@aws-sdk/middleware-user-agent": "3.485.0", + "@aws-sdk/region-config-resolver": "3.485.0", + "@aws-sdk/signature-v4-multi-region": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-endpoints": "3.485.0", + "@aws-sdk/util-user-agent-browser": "3.485.0", + "@aws-sdk/util-user-agent-node": "3.485.0", + "@aws-sdk/xml-builder": "3.485.0", + "@smithy/config-resolver": "^2.0.23", + "@smithy/core": "^1.2.2", + "@smithy/eventstream-serde-browser": "^2.0.16", + "@smithy/eventstream-serde-config-resolver": "^2.0.16", + "@smithy/eventstream-serde-node": "^2.0.16", + "@smithy/fetch-http-handler": "^2.3.2", + "@smithy/hash-blob-browser": "^2.0.17", + "@smithy/hash-node": "^2.0.18", + "@smithy/hash-stream-node": "^2.0.18", + "@smithy/invalid-dependency": "^2.0.16", + "@smithy/md5-js": "^2.0.18", + "@smithy/middleware-content-length": "^2.0.18", + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/middleware-retry": "^2.0.26", + "@smithy/middleware-serde": "^2.0.16", + "@smithy/middleware-stack": "^2.0.10", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/node-http-handler": "^2.2.2", + "@smithy/protocol-http": "^3.0.12", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/url-parser": "^2.0.16", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.24", + "@smithy/util-defaults-mode-node": "^2.0.32", + "@smithy/util-endpoints": "^1.0.8", + "@smithy/util-retry": "^2.0.9", + "@smithy/util-stream": "^2.0.24", + "@smithy/util-utf8": "^2.0.2", + "@smithy/util-waiter": "^2.0.16", + "fast-xml-parser": "4.2.5", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/config-resolver": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-sso": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.485.0.tgz", + "integrity": "sha512-apN2bEn0PZs0jD4jAfvwO3dlWqw9YIQJ6TAudM1bd3S5vzWqlBBcLfQpK6taHoQaI+WqgUWXLuOf7gRFbGXKPg==", "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/types": "^2.3.3", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.2", + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "3.485.0", + "@aws-sdk/middleware-host-header": "3.485.0", + "@aws-sdk/middleware-logger": "3.485.0", + "@aws-sdk/middleware-recursion-detection": "3.485.0", + "@aws-sdk/middleware-user-agent": "3.485.0", + "@aws-sdk/region-config-resolver": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-endpoints": "3.485.0", + "@aws-sdk/util-user-agent-browser": "3.485.0", + "@aws-sdk/util-user-agent-node": "3.485.0", + "@smithy/config-resolver": "^2.0.23", + "@smithy/core": "^1.2.2", + "@smithy/fetch-http-handler": "^2.3.2", + "@smithy/hash-node": "^2.0.18", + "@smithy/invalid-dependency": "^2.0.16", + "@smithy/middleware-content-length": "^2.0.18", + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/middleware-retry": "^2.0.26", + "@smithy/middleware-serde": "^2.0.16", + "@smithy/middleware-stack": "^2.0.10", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/node-http-handler": "^2.2.2", + "@smithy/protocol-http": "^3.0.12", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/url-parser": "^2.0.16", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.24", + "@smithy/util-defaults-mode-node": "^2.0.32", + "@smithy/util-endpoints": "^1.0.8", + "@smithy/util-retry": "^2.0.9", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/credential-provider-imds": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-sts": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.485.0.tgz", + "integrity": "sha512-PI4q36kVF0fpIPZyeQhrwwJZ6SRkOGvU3rX5Qn4b5UY5X+Ct1aLhqSX8/OB372UZIcnh6eSvERu8POHleDO7Jw==", "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/core": "3.485.0", + "@aws-sdk/credential-provider-node": "3.485.0", + "@aws-sdk/middleware-host-header": "3.485.0", + "@aws-sdk/middleware-logger": "3.485.0", + "@aws-sdk/middleware-recursion-detection": "3.485.0", + "@aws-sdk/middleware-user-agent": "3.485.0", + "@aws-sdk/region-config-resolver": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-endpoints": "3.485.0", + "@aws-sdk/util-user-agent-browser": "3.485.0", + "@aws-sdk/util-user-agent-node": "3.485.0", + "@smithy/config-resolver": "^2.0.23", + "@smithy/core": "^1.2.2", + "@smithy/fetch-http-handler": "^2.3.2", + "@smithy/hash-node": "^2.0.18", + "@smithy/invalid-dependency": "^2.0.16", + "@smithy/middleware-content-length": "^2.0.18", + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/middleware-retry": "^2.0.26", + "@smithy/middleware-serde": "^2.0.16", + "@smithy/middleware-stack": "^2.0.10", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/node-http-handler": "^2.2.2", + "@smithy/protocol-http": "^3.0.12", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/url-parser": "^2.0.16", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.24", + "@smithy/util-defaults-mode-node": "^2.0.32", + "@smithy/util-endpoints": "^1.0.8", + "@smithy/util-middleware": "^2.0.9", + "@smithy/util-retry": "^2.0.9", + "@smithy/util-utf8": "^2.0.2", + "fast-xml-parser": "4.2.5", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/fetch-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/hash-node": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@aws-sdk/core": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.485.0.tgz", + "integrity": "sha512-Yvi80DQcbjkYCft471ClE3HuetuNVqntCs6eFOomDcrJaqdOFrXv2kJAxky84MRA/xb7bGlDGAPbTuj1ICputg==", "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/core": "^1.2.2", + "@smithy/protocol-http": "^3.0.12", + "@smithy/signature-v4": "^2.0.0", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/invalid-dependency": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@aws-sdk/credential-provider-cognito-identity": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.485.0.tgz", + "integrity": "sha512-XIy5h1AcDiY3V286X7KrLA5HAxLfzLGrUGBPFY+GTJGYetDhlJwFz12q6BOkIfeAhUbT2Umb4ptujX9eqpZJHQ==", "dependencies": { - "@smithy/types": "^2.3.3", + "@aws-sdk/client-cognito-identity": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.485.0.tgz", + "integrity": "sha512-3XkFgwVU1XOB33dV7t9BKJ/ptdl2iS+0dxE7ecq8aqT2/gsfKmLCae1G17P8WmdD3z0kMDTvnqM2aWgUnSOkmg==", "dependencies": { + "@aws-sdk/types": "3.485.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-content-length": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.485.0.tgz", + "integrity": "sha512-2/2Y3Z7cpKf8vbQ+FzoBPxRyb0hGJZB1YrnH7hptVi5gSVe1NiwV5ZtsDnv4cwUfOBqEu97nMXw5IrRO26S0DA==", "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/types": "^2.3.3", + "@aws-sdk/types": "3.485.0", + "@smithy/fetch-http-handler": "^2.3.2", + "@smithy/node-http-handler": "^2.2.2", + "@smithy/property-provider": "^2.0.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/util-stream": "^2.0.24", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-endpoint": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-serde": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "@smithy/util-middleware": "^2.0.2", + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.485.0.tgz", + "integrity": "sha512-cFYF/Bdw7EnT4viSxYpNIv3IBkri/Yb+JpQXl8uDq7bfVJfAN5qZmK07vRkg08xL6TC4F41wshhMSAucGdTwIw==", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.485.0", + "@aws-sdk/credential-provider-process": "3.485.0", + "@aws-sdk/credential-provider-sso": "3.485.0", + "@aws-sdk/credential-provider-web-identity": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@smithy/credential-provider-imds": "^2.0.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-retry": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/protocol-http": "^3.0.5", - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-middleware": "^2.0.2", - "@smithy/util-retry": "^2.0.2", - "tslib": "^2.5.0", - "uuid": "^8.3.2" + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.485.0.tgz", + "integrity": "sha512-2DwzO2azkSzngifKDT61W/DL0tSzewuaFHiLJWdfc8Et3mdAQJ9x3KAj8u7XFpjIcGNqk7FiKjN+zeGUuNiEhA==", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.485.0", + "@aws-sdk/credential-provider-ini": "3.485.0", + "@aws-sdk/credential-provider-process": "3.485.0", + "@aws-sdk/credential-provider-sso": "3.485.0", + "@aws-sdk/credential-provider-web-identity": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@smithy/credential-provider-imds": "^2.0.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.8.0", + "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-serde": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.485.0.tgz", + "integrity": "sha512-X9qS6ZO/rDKYDgWqD1YmSX7sAUUHax9HbXlgGiTTdtfhZvQh1ZmnH6wiPu5WNliafHZFtZT2W07kgrDLPld/Ug==", "dependencies": { - "@smithy/types": "^2.3.3", + "@aws-sdk/types": "3.485.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/middleware-stack": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.485.0.tgz", + "integrity": "sha512-l0oC8GTrWh+LFQQfSmG1Jai1PX7Mhj9arb/CaS1/tmeZE0hgIXW++tvljYs/Dds4LGXUlaWG+P7BrObf6OyIXA==", "dependencies": { - "@smithy/types": "^2.3.3", + "@aws-sdk/client-sso": "3.485.0", + "@aws-sdk/token-providers": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.485.0.tgz", + "integrity": "sha512-WpBFZFE0iXtnibH5POMEKITj/hR0YV5l2n9p8BEvKjdJ63s3Xke1RN20ZdIyKDaRDwj8adnKDgNPEnAKdS4kLw==", "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", + "@aws-sdk/types": "3.485.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/node-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/abort-controller": "^2.0.9", - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", + "node_modules/@aws-sdk/credential-providers": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.485.0.tgz", + "integrity": "sha512-SpGEmiVr+C9Dtc5tZFfFYXSNxbl1jShLlyZPWERHBn4QwGvdXcgPB96I0yvUuitBKrM0winHsCWH7CR/z24kmg==", + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.485.0", + "@aws-sdk/client-sso": "3.485.0", + "@aws-sdk/client-sts": "3.485.0", + "@aws-sdk/credential-provider-cognito-identity": "3.485.0", + "@aws-sdk/credential-provider-env": "3.485.0", + "@aws-sdk/credential-provider-http": "3.485.0", + "@aws-sdk/credential-provider-ini": "3.485.0", + "@aws-sdk/credential-provider-node": "3.485.0", + "@aws-sdk/credential-provider-process": "3.485.0", + "@aws-sdk/credential-provider-sso": "3.485.0", + "@aws-sdk/credential-provider-web-identity": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@smithy/credential-provider-imds": "^2.0.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@aws-sdk/lib-storage": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/lib-storage/-/lib-storage-3.485.0.tgz", + "integrity": "sha512-d/DppujsMu2zg2K95wS2OZ+x+wY41OeZL0duROKZRzNtPyYzlOiSw00+zSz7/sdmUad1bYIEyDJ46zI/FV6AVg==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/abort-controller": "^2.0.1", + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/smithy-client": "^2.2.1", + "buffer": "5.6.0", + "events": "3.3.0", + "stream-browserify": "3.0.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-s3": "^3.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-bucket-endpoint": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.485.0.tgz", + "integrity": "sha512-DptPuprsx9V1LH91ZvC/7a7B1UnuSAIi1ArJHlHqJL1ISo6sH1oeXP6KRa0tj8biGMDIx0b22wg8EEpFePMy3w==", "dependencies": { - "@smithy/types": "^2.3.3", + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-arn-parser": "3.465.0", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/protocol-http": "^3.0.12", + "@smithy/types": "^2.8.0", + "@smithy/util-config-provider": "^2.1.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/querystring-builder": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-expect-continue": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.485.0.tgz", + "integrity": "sha512-rOwJJWM1/ydwSiJJ1l/X5h91u2Xzb8/CwOW6ZY+E8iZA0HDCtlJnKNlhHb+NHGtDamd4+1qdGSRtPQevyS58Cg==", "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-uri-escape": "^2.0.0", + "@aws-sdk/types": "3.485.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-flexible-checksums": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.485.0.tgz", + "integrity": "sha512-5+OmVMbEwl1LDdWbaJxoSViw6vuMsdDQgASFUM37aG46q1zWSiPU171IXutEAFZZXN/t0HcOFi0AmNrS0o+dkQ==", "dependencies": { - "@smithy/types": "^2.3.3", + "@aws-crypto/crc32": "3.0.0", + "@aws-crypto/crc32c": "3.0.0", + "@aws-sdk/types": "3.485.0", + "@smithy/is-array-buffer": "^2.0.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/types": "^2.8.0", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/service-error-classification": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-host-header": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.485.0.tgz", + "integrity": "sha512-1mAUX9dQNGo2RIKseVj7SI/D5abQJQ/Os8hQ0NyVAyyVYF+Yjx5PphKgfhM5yoBwuwZUl6q71XPYEGNx7be6SA==", "dependencies": { - "@smithy/types": "^2.3.3" + "@aws-sdk/types": "3.485.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/types": "^2.8.0", + "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-location-constraint": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.485.0.tgz", + "integrity": "sha512-Mrp4chtYliqCUSVjzLYPcZCPGmhL4QM7o6NhHBdA6omaIGdn4pJqFwN5ELZoWJDZMKyfrKi6s6u97jR9VtEXRg==", "dependencies": { - "@smithy/types": "^2.3.3", + "@aws-sdk/types": "3.485.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/smithy-client": { - "version": "2.1.6", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-logger": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.485.0.tgz", + "integrity": "sha512-O8IgJ0LHi5wTs5GlpI7nqmmSSagkVdd1shpGgQWY2h0kMSCII8CJZHBG97dlFFpGTvx5EDlhPNek7rl/6F4dRw==", "dependencies": { - "@smithy/middleware-stack": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-stream": "^2.0.12", + "@aws-sdk/types": "3.485.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.485.0.tgz", + "integrity": "sha512-ZeVNATGNFcqkWDut3luVszROTUzkU5u+rJpB/xmeMoenlDAjPRiHt/ca3WkI5wAnIJ1VSNGpD2sOFLMCH+EWag==", "dependencies": { + "@aws-sdk/types": "3.485.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-base64": { - "version": "2.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", + "node_modules/@aws-sdk/middleware-sdk-s3": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.485.0.tgz", + "integrity": "sha512-3769c4e3UtvaNU5T6dHxhjGI1kEXymldqiP1PMZMX2jVffwSGhbvyLq0Kl6+9Jr51fj2oXN6Tex+8J9+5dzTgQ==", + "dependencies": { + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-arn-parser": "3.465.0", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/protocol-http": "^3.0.12", + "@smithy/signature-v4": "^2.0.0", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/util-config-provider": "^2.1.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-body-length-browser": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-signing": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.485.0.tgz", + "integrity": "sha512-41xzT2p1sOibhsLkdE5rwPJkNbBtKD8Gp36/ySfu0KE415wfXKacElSVxAaBw39/j7iSWDYqqybeEYbAzk+3GQ==", "dependencies": { + "@aws-sdk/types": "3.485.0", + "@smithy/property-provider": "^2.0.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/signature-v4": "^2.0.0", + "@smithy/types": "^2.8.0", + "@smithy/util-middleware": "^2.0.9", "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-body-length-node": { - "version": "2.1.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-ssec": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.485.0.tgz", + "integrity": "sha512-A59WTC0egT8zLnRzB+yWKq2AonugD1DgN4710RG70JY5XUmx5TYdECbUrVeG/zhNIKbBLLFjRcVk2uo4OZcgIA==", "dependencies": { + "@aws-sdk/types": "3.485.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.485.0.tgz", + "integrity": "sha512-CddCVOn+OPQ0CcchketIg+WF6v+MDLAf3GOYTR2htUxxIm7HABuRd6R3kvQ5Jny9CV8gMt22G1UZITsFexSJlQ==", "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-endpoints": "3.485.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-config-provider": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/region-config-resolver": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.485.0.tgz", + "integrity": "sha512-2FB2EQ0sIE+YgFqGtkE1lDIMIL6nYe6MkOHBwBM7bommadKIrbbr2L22bPZGs3ReTsxiJabjzxbuCAVhrpHmhg==", "dependencies": { + "@smithy/node-config-provider": "^2.1.9", + "@smithy/types": "^2.8.0", + "@smithy/util-config-provider": "^2.1.0", + "@smithy/util-middleware": "^2.0.9", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-defaults-mode-browser": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@aws-sdk/signature-v4-multi-region": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.485.0.tgz", + "integrity": "sha512-168ipXkbG75l9cKQmsBtx/4+AYjGsBoy724bXosW13t2/l/E3IzJAYUjDROiK0JXVMG85xAnGWbFwZkjxVXzrQ==", "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", - "bowser": "^2.11.0", + "@aws-sdk/middleware-sdk-s3": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/signature-v4": "^2.0.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { - "node": ">= 10.0.0" + "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-defaults-mode-node": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@aws-sdk/token-providers": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.485.0.tgz", + "integrity": "sha512-kOXA1WKIVIFNRqHL8ynVZ3hCKLsgnEmGr2iDR6agDNw5fYIlCO/6N2xR6QdGcLTvUUbwOlz4OvKLUQnWMKAnnA==", "dependencies": { - "@smithy/config-resolver": "^2.0.10", - "@smithy/credential-provider-imds": "^2.0.12", - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/middleware-host-header": "3.485.0", + "@aws-sdk/middleware-logger": "3.485.0", + "@aws-sdk/middleware-recursion-detection": "3.485.0", + "@aws-sdk/middleware-user-agent": "3.485.0", + "@aws-sdk/region-config-resolver": "3.485.0", + "@aws-sdk/types": "3.485.0", + "@aws-sdk/util-endpoints": "3.485.0", + "@aws-sdk/util-user-agent-browser": "3.485.0", + "@aws-sdk/util-user-agent-node": "3.485.0", + "@smithy/config-resolver": "^2.0.23", + "@smithy/fetch-http-handler": "^2.3.2", + "@smithy/hash-node": "^2.0.18", + "@smithy/invalid-dependency": "^2.0.16", + "@smithy/middleware-content-length": "^2.0.18", + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/middleware-retry": "^2.0.26", + "@smithy/middleware-serde": "^2.0.16", + "@smithy/middleware-stack": "^2.0.10", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/node-http-handler": "^2.2.2", + "@smithy/property-provider": "^2.0.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/shared-ini-file-loader": "^2.0.6", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/url-parser": "^2.0.16", + "@smithy/util-base64": "^2.0.1", + "@smithy/util-body-length-browser": "^2.0.1", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.24", + "@smithy/util-defaults-mode-node": "^2.0.32", + "@smithy/util-endpoints": "^1.0.8", + "@smithy/util-retry": "^2.0.9", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { - "node": ">= 10.0.0" + "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-hex-encoding": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/types": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.485.0.tgz", + "integrity": "sha512-+QW32YQdvZRDOwrAQPo/qCyXoSjgXB6RwJwCwkd8ebJXRXw6tmGKIHaZqYHt/LtBymvnaBgBBADNa4+qFvlOFw==", "dependencies": { + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-middleware": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@aws-sdk/util-arn-parser": { + "version": "3.465.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.465.0.tgz", + "integrity": "sha512-zOJ82vzDJFqBX9yZBlNeHHrul/kpx/DCoxzW5UBbZeb26kfV53QhMSoEmY8/lEbBqlqargJ/sgRC845GFhHNQw==", "dependencies": { - "@smithy/types": "^2.3.3", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-retry": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@aws-sdk/util-endpoints": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.485.0.tgz", + "integrity": "sha512-dTd642F7nJisApF8YjniqQ6U59CP/DCtar11fXf1nG9YNBCBsNNVw5ZfZb5nSNzaIdy27mQioWTCV18JEj1mxg==", "dependencies": { - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", + "@aws-sdk/types": "3.485.0", + "@smithy/util-endpoints": "^1.0.8", "tslib": "^2.5.0" }, "engines": { - "node": ">= 14.0.0" + "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-stream": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@aws-sdk/util-locate-window": { + "version": "3.465.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.465.0.tgz", + "integrity": "sha512-f+QNcWGswredzC1ExNAB/QzODlxwaTdXkNT5cvke2RLX8SFU5pYk6h4uCtWC0vWPELzOfMfloBrJefBzlarhsw==", "dependencies": { - "@smithy/fetch-http-handler": "^2.1.5", - "@smithy/node-http-handler": "^2.1.5", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-uri-escape": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.485.0.tgz", + "integrity": "sha512-QliWbjg0uOhGTcWgWTKPMY0SBi07g253DjwrCINT1auqDrdQPxa10xozpZExBYjAK2KuhYDNUzni127ae6MHOw==", "dependencies": { + "@aws-sdk/types": "3.485.0", + "@smithy/types": "^2.8.0", + "bowser": "^2.11.0", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-utf8": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.485.0.tgz", + "integrity": "sha512-QF+aQ9jnDlPUlFBxBRqOylPf86xQuD3aEPpOErR+50qJawVvKa94uiAFdvtI9jv6hnRZmuFsTj2rsyytnbAYBA==", "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", + "@aws-sdk/types": "3.485.0", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" + "node_modules/@aws-sdk/util-utf8-browser": { + "version": "3.259.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz", + "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", + "dependencies": { + "tslib": "^2.3.1" } }, - "node_modules/@aws-sdk/client-personalize": { - "version": "3.414.0", - "license": "Apache-2.0", + "node_modules/@aws-sdk/xml-builder": { + "version": "3.485.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.485.0.tgz", + "integrity": "sha512-xQexPM6LINOIkf3NLFywplcbApifZRMWFN41TDWYSNgCUa5uC9fntfenw8N/HTx1n+McRCWSAFBTjDqY/2OLCQ==", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.414.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/abort-controller": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@babel/compat-data": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/config-resolver": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@babel/core": { + "version": "7.23.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.7.tgz", + "integrity": "sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/types": "^2.3.3", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.2", - "tslib": "^2.5.0" + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.7", + "@babel/parser": "^7.23.6", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.7", + "@babel/types": "^7.23.6", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/credential-provider-imds": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@babel/generator": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "tslib": "^2.5.0" + "@babel/types": "^7.23.6", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/fetch-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" + "node_modules/@babel/generator/node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/hash-node": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/invalid-dependency": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/middleware-content-length": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/middleware-endpoint": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, "dependencies": { - "@smithy/middleware-serde": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "@smithy/util-middleware": "^2.0.2", - "tslib": "^2.5.0" + "@babel/types": "^7.22.5" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/middleware-retry": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/protocol-http": "^3.0.5", - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-middleware": "^2.0.2", - "@smithy/util-retry": "^2.0.2", - "tslib": "^2.5.0", - "uuid": "^8.3.2" + "@babel/types": "^7.22.15" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/middleware-serde": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/middleware-stack": { - "version": "2.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/types": "^7.22.5" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/node-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, "dependencies": { - "@smithy/abort-controller": "^2.0.9", - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/types": "^7.22.5" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/querystring-builder": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-uri-escape": "^2.0.0", - "tslib": "^2.5.0" - }, + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@babel/helpers": { + "version": "7.23.8", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.8.tgz", + "integrity": "sha512-KDqYz4PiOWvDFrdHLPhKtCThtIcKVy6avWD2oG4GEvyQ+XDZwHD4YQd+H2vNMnq2rkdxsDkU82T+Vk8U/WXHRQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.7", + "@babel/types": "^7.23.6" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/service-error-classification": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@babel/highlight": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dependencies": { - "@smithy/types": "^2.3.3" + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "node_modules/@babel/parser": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", + "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.0.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/smithy-client": { - "version": "2.1.6", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, "dependencies": { - "@smithy/middleware-stack": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-stream": "^2.0.12", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.8.0" }, - "engines": { - "node": ">=14.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.8.0" }, - "engines": { - "node": ">=14.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-base64": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.10.4" }, - "engines": { - "node": ">=14.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-body-length-browser": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-body-length-node": { - "version": "2.1.0", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.10.4" }, - "engines": { - "node": ">=14.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-config-provider": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.8.0" }, - "engines": { - "node": ">=14.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-defaults-mode-browser": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", - "bowser": "^2.11.0", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.10.4" }, - "engines": { - "node": ">= 10.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-defaults-mode-node": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, "dependencies": { - "@smithy/config-resolver": "^2.0.10", - "@smithy/credential-provider-imds": "^2.0.12", - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.8.0" }, - "engines": { - "node": ">= 10.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-hex-encoding": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.8.0" }, - "engines": { - "node": ">=14.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-middleware": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.8.0" }, - "engines": { - "node": ">=14.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-retry": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, "dependencies": { - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.14.5" }, "engines": { - "node": ">= 14.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-stream": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", + "dev": true, "dependencies": { - "@smithy/fetch-http-handler": "^2.1.5", - "@smithy/node-http-handler": "^2.1.5", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-uri-escape": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/@smithy/util-utf8": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@babel/traverse": { + "version": "7.23.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.7.tgz", + "integrity": "sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==", + "dev": true, "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "debug": "^4.3.1", + "globals": "^11.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-personalize/node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" } }, - "node_modules/@aws-sdk/client-s3": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@babel/types": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", + "dev": true, "dependencies": { - "@aws-crypto/sha1-browser": "3.0.0", - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.370.0", - "@aws-sdk/credential-provider-node": "3.370.0", - "@aws-sdk/hash-blob-browser": "3.370.0", - "@aws-sdk/hash-stream-node": "3.370.0", - "@aws-sdk/md5-js": "3.370.0", - "@aws-sdk/middleware-bucket-endpoint": "3.370.0", - "@aws-sdk/middleware-expect-continue": "3.370.0", - "@aws-sdk/middleware-flexible-checksums": "3.370.0", - "@aws-sdk/middleware-host-header": "3.370.0", - "@aws-sdk/middleware-location-constraint": "3.370.0", - "@aws-sdk/middleware-logger": "3.370.0", - "@aws-sdk/middleware-recursion-detection": "3.370.0", - "@aws-sdk/middleware-sdk-s3": "3.370.0", - "@aws-sdk/middleware-signing": "3.370.0", - "@aws-sdk/middleware-ssec": "3.370.0", - "@aws-sdk/middleware-user-agent": "3.370.0", - "@aws-sdk/signature-v4-multi-region": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-endpoints": "3.370.0", - "@aws-sdk/util-user-agent-browser": "3.370.0", - "@aws-sdk/util-user-agent-node": "3.370.0", - "@aws-sdk/xml-builder": "3.310.0", - "@smithy/config-resolver": "^1.0.1", - "@smithy/eventstream-serde-browser": "^1.0.1", - "@smithy/eventstream-serde-config-resolver": "^1.0.1", - "@smithy/eventstream-serde-node": "^1.0.1", - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/hash-node": "^1.0.1", - "@smithy/invalid-dependency": "^1.0.1", - "@smithy/middleware-content-length": "^1.0.1", - "@smithy/middleware-endpoint": "^1.0.2", - "@smithy/middleware-retry": "^1.0.3", - "@smithy/middleware-serde": "^1.0.1", - "@smithy/middleware-stack": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/node-http-handler": "^1.0.2", - "@smithy/protocol-http": "^1.1.0", - "@smithy/smithy-client": "^1.0.3", - "@smithy/types": "^1.1.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-body-length-browser": "^1.0.1", - "@smithy/util-body-length-node": "^1.0.1", - "@smithy/util-defaults-mode-browser": "^1.0.1", - "@smithy/util-defaults-mode-node": "^1.0.1", - "@smithy/util-retry": "^1.0.3", - "@smithy/util-stream": "^1.0.1", - "@smithy/util-utf8": "^1.0.1", - "@smithy/util-waiter": "^1.0.1", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@bugsnag/browser": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@bugsnag/browser/-/browser-7.22.3.tgz", + "integrity": "sha512-TWQSdsCqzxEVmaKzbtmqoBLWF58yjXi/ScC+6L5VNgSj+62jkIQuw5Evjs+7kLQX8WCnaG6XLiDmUJmPx6ZUrA==", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.370.0", - "@aws-sdk/middleware-logger": "3.370.0", - "@aws-sdk/middleware-recursion-detection": "3.370.0", - "@aws-sdk/middleware-user-agent": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-endpoints": "3.370.0", - "@aws-sdk/util-user-agent-browser": "3.370.0", - "@aws-sdk/util-user-agent-node": "3.370.0", - "@smithy/config-resolver": "^1.0.1", - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/hash-node": "^1.0.1", - "@smithy/invalid-dependency": "^1.0.1", - "@smithy/middleware-content-length": "^1.0.1", - "@smithy/middleware-endpoint": "^1.0.2", - "@smithy/middleware-retry": "^1.0.3", - "@smithy/middleware-serde": "^1.0.1", - "@smithy/middleware-stack": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/node-http-handler": "^1.0.2", - "@smithy/protocol-http": "^1.1.0", - "@smithy/smithy-client": "^1.0.3", - "@smithy/types": "^1.1.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-body-length-browser": "^1.0.1", - "@smithy/util-body-length-node": "^1.0.1", - "@smithy/util-defaults-mode-browser": "^1.0.1", - "@smithy/util-defaults-mode-node": "^1.0.1", - "@smithy/util-retry": "^1.0.3", - "@smithy/util-utf8": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@bugsnag/core": "^7.19.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@bugsnag/core": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@bugsnag/core/-/core-7.19.0.tgz", + "integrity": "sha512-2KGwdaLD9PhR7Wk7xPi3jGuGsKTatc/28U4TOZIDU3CgC2QhGjubwiXSECel5gwxhZ3jACKcMKSV2ovHhv1NrA==", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.370.0", - "@aws-sdk/middleware-logger": "3.370.0", - "@aws-sdk/middleware-recursion-detection": "3.370.0", - "@aws-sdk/middleware-user-agent": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-endpoints": "3.370.0", - "@aws-sdk/util-user-agent-browser": "3.370.0", - "@aws-sdk/util-user-agent-node": "3.370.0", - "@smithy/config-resolver": "^1.0.1", - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/hash-node": "^1.0.1", - "@smithy/invalid-dependency": "^1.0.1", - "@smithy/middleware-content-length": "^1.0.1", - "@smithy/middleware-endpoint": "^1.0.2", - "@smithy/middleware-retry": "^1.0.3", - "@smithy/middleware-serde": "^1.0.1", - "@smithy/middleware-stack": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/node-http-handler": "^1.0.2", - "@smithy/protocol-http": "^1.1.0", - "@smithy/smithy-client": "^1.0.3", - "@smithy/types": "^1.1.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-body-length-browser": "^1.0.1", - "@smithy/util-body-length-node": "^1.0.1", - "@smithy/util-defaults-mode-browser": "^1.0.1", - "@smithy/util-defaults-mode-node": "^1.0.1", - "@smithy/util-retry": "^1.0.3", - "@smithy/util-utf8": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@bugsnag/cuid": "^3.0.0", + "@bugsnag/safe-json-stringify": "^6.0.0", + "error-stack-parser": "^2.0.3", + "iserror": "0.0.2", + "stack-generator": "^2.0.3" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sts": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@bugsnag/cuid": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@bugsnag/cuid/-/cuid-3.0.2.tgz", + "integrity": "sha512-cIwzC93r3PQ/INeuwtZwkZIG2K8WWN0rRLZQhu+mr48Ay+i6sEki4GYfTsflse7hZ1BeDWrNb/Q9vgY3B31xHQ==" + }, + "node_modules/@bugsnag/js": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@bugsnag/js/-/js-7.22.3.tgz", + "integrity": "sha512-SAZEElVlmQgZBPLbTdMAyFD2Pp1mP4t3bv+GmDVGSgBi4W6doKQVk0J/K9f5+JGw8fEh9AJHRlyub3XnlGI6Zw==", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/credential-provider-node": "3.370.0", - "@aws-sdk/middleware-host-header": "3.370.0", - "@aws-sdk/middleware-logger": "3.370.0", - "@aws-sdk/middleware-recursion-detection": "3.370.0", - "@aws-sdk/middleware-sdk-sts": "3.370.0", - "@aws-sdk/middleware-signing": "3.370.0", - "@aws-sdk/middleware-user-agent": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-endpoints": "3.370.0", - "@aws-sdk/util-user-agent-browser": "3.370.0", - "@aws-sdk/util-user-agent-node": "3.370.0", - "@smithy/config-resolver": "^1.0.1", - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/hash-node": "^1.0.1", - "@smithy/invalid-dependency": "^1.0.1", - "@smithy/middleware-content-length": "^1.0.1", - "@smithy/middleware-endpoint": "^1.0.2", - "@smithy/middleware-retry": "^1.0.3", - "@smithy/middleware-serde": "^1.0.1", - "@smithy/middleware-stack": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/node-http-handler": "^1.0.2", - "@smithy/protocol-http": "^1.1.0", - "@smithy/smithy-client": "^1.0.3", - "@smithy/types": "^1.1.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-body-length-browser": "^1.0.1", - "@smithy/util-body-length-node": "^1.0.1", - "@smithy/util-defaults-mode-browser": "^1.0.1", - "@smithy/util-defaults-mode-node": "^1.0.1", - "@smithy/util-retry": "^1.0.3", - "@smithy/util-utf8": "^1.0.1", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@bugsnag/browser": "^7.22.3", + "@bugsnag/node": "^7.22.3" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@bugsnag/node": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@bugsnag/node/-/node-7.22.3.tgz", + "integrity": "sha512-vDXu0mrduonyCjUkTp+zKSh1WHAtA2VjB49xK5s1f/HnTASiJvzUOQBRXrkqaj37sndYHUSMxUCPvLawyc75nA==", "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/property-provider": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@bugsnag/core": "^7.19.0", + "byline": "^5.0.0", + "error-stack-parser": "^2.0.2", + "iserror": "^0.0.2", + "pump": "^3.0.0", + "stack-generator": "^2.0.3" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.370.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.370.0", - "@aws-sdk/credential-provider-process": "3.370.0", - "@aws-sdk/credential-provider-sso": "3.370.0", - "@aws-sdk/credential-provider-web-identity": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@smithy/credential-provider-imds": "^1.0.1", - "@smithy/property-provider": "^1.0.1", - "@smithy/shared-ini-file-loader": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } + "node_modules/@bugsnag/safe-json-stringify": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@bugsnag/safe-json-stringify/-/safe-json-stringify-6.0.0.tgz", + "integrity": "sha512-htzFO1Zc57S8kgdRK9mLcPVTW1BY2ijfH7Dk2CeZmspTWKdKqSo1iwmqrq2WtRjFlo8aRZYgLX0wFrDXF/9DLA==" }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.370.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.370.0", - "@aws-sdk/credential-provider-ini": "3.370.0", - "@aws-sdk/credential-provider-process": "3.370.0", - "@aws-sdk/credential-provider-sso": "3.370.0", - "@aws-sdk/credential-provider-web-identity": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@smithy/credential-provider-imds": "^1.0.1", - "@smithy/property-provider": "^1.0.1", - "@smithy/shared-ini-file-loader": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, + "node_modules/@colors/colors": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", + "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", "engines": { - "node": ">=14.0.0" + "node": ">=0.1.90" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-17.8.1.tgz", + "integrity": "sha512-ay+WbzQesE0Rv4EQKfNbSMiJJ12KdKTDzIt0tcK4k11FdsWmtwP0Kp1NWMOUswfIWo6Eb7p7Ln721Nx9FLNBjg==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/property-provider": "^1.0.1", - "@smithy/shared-ini-file-loader": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "@commitlint/format": "^17.8.1", + "@commitlint/lint": "^17.8.1", + "@commitlint/load": "^17.8.1", + "@commitlint/read": "^17.8.1", + "@commitlint/types": "^17.8.1", + "execa": "^5.0.0", + "lodash.isfunction": "^3.0.9", + "resolve-from": "5.0.0", + "resolve-global": "1.0.0", + "yargs": "^17.0.0" + }, + "bin": { + "commitlint": "cli.js" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli/node_modules/@commitlint/config-validator": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-17.8.1.tgz", + "integrity": "sha512-UUgUC+sNiiMwkyiuIFR7JG2cfd9t/7MV8VB4TZ+q02ZFkHoduUS4tJGsCBWvBOGD9Btev6IecPMvlWUfJorkEA==", + "dev": true, "dependencies": { - "@aws-sdk/client-sso": "3.370.0", - "@aws-sdk/token-providers": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@smithy/property-provider": "^1.0.1", - "@smithy/shared-ini-file-loader": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "@commitlint/types": "^17.8.1", + "ajv": "^8.11.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.370.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/property-provider": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/cli/node_modules/@commitlint/execute-rule": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-17.8.1.tgz", + "integrity": "sha512-JHVupQeSdNI6xzA9SqMF+p/JjrHTcrJdI02PwesQIDCIGUrv04hicJgCcws5nzaoZbROapPs0s6zeVHoxpMwFQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli/node_modules/@commitlint/load": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-17.8.1.tgz", + "integrity": "sha512-iF4CL7KDFstP1kpVUkT8K2Wl17h2yx9VaR1ztTc8vzByWWcbO/WaKwxsnCOqow9tVAlzPfo1ywk9m2oJ9ucMqA==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/protocol-http": "^1.1.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "@commitlint/config-validator": "^17.8.1", + "@commitlint/execute-rule": "^17.8.1", + "@commitlint/resolve-extends": "^17.8.1", + "@commitlint/types": "^17.8.1", + "@types/node": "20.5.1", + "chalk": "^4.1.0", + "cosmiconfig": "^8.0.0", + "cosmiconfig-typescript-loader": "^4.0.0", + "lodash.isplainobject": "^4.0.6", + "lodash.merge": "^4.6.2", + "lodash.uniq": "^4.5.0", + "resolve-from": "^5.0.0", + "ts-node": "^10.8.1", + "typescript": "^4.6.4 || ^5.2.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-logger": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli/node_modules/@commitlint/resolve-extends": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-17.8.1.tgz", + "integrity": "sha512-W/ryRoQ0TSVXqJrx5SGkaYuAaE/BUontL1j1HsKckvM6e5ZaG0M9126zcwL6peKSuIetJi7E87PRQF8O86EW0Q==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "@commitlint/config-validator": "^17.8.1", + "@commitlint/types": "^17.8.1", + "import-fresh": "^3.0.0", + "lodash.mergewith": "^4.6.2", + "resolve-from": "^5.0.0", + "resolve-global": "^1.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/protocol-http": "^1.1.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-sts": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli/node_modules/@types/node": { + "version": "20.5.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.1.tgz", + "integrity": "sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==", + "dev": true + }, + "node_modules/@commitlint/cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@aws-sdk/middleware-signing": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-signing": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/property-provider": "^1.0.1", - "@smithy/protocol-http": "^1.1.0", - "@smithy/signature-v4": "^1.0.1", - "@smithy/types": "^1.1.0", - "@smithy/util-middleware": "^1.0.1", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-endpoints": "3.370.0", - "@smithy/protocol-http": "^1.1.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/token-providers": { - "version": "3.370.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-sso-oidc": "3.370.0", - "@aws-sdk/types": "3.370.0", - "@smithy/property-provider": "^1.0.1", - "@smithy/shared-ini-file-loader": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "node_modules/@commitlint/cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@commitlint/cli/node_modules/cosmiconfig-typescript-loader": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-4.4.0.tgz", + "integrity": "sha512-BabizFdC3wBHhbI4kJh0VkQP9GkBfoHPydD0COMce1nJ1kJAB3F2TmJ/I7diULBKtmEWSwEbuN/KDtgnmUUVmw==", + "dev": true, + "engines": { + "node": ">=v14.21.3" }, + "peerDependencies": { + "@types/node": "*", + "cosmiconfig": ">=7", + "ts-node": ">=10", + "typescript": ">=4" + } + }, + "node_modules/@commitlint/cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/config-conventional": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-17.8.1.tgz", + "integrity": "sha512-NxCOHx1kgneig3VLauWJcDWS40DVjg7nKOpBEEK9E5fjJpQqLCilcnKkIIjdBH98kEO1q3NpE5NSrZ2kl/QGJg==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/types": "^1.1.0", - "bowser": "^2.11.0", - "tslib": "^2.5.0" + "conventional-changelog-conventionalcommits": "^6.1.0" + }, + "engines": { + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@commitlint/config-validator": { + "version": "18.4.4", + "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-18.4.4.tgz", + "integrity": "sha512-/QI8KIg/h7O0Eus36fPcEcO3QPBcdXuGfZeCF5m15k0EB2bcU8s6pHNTNEa6xz9PrAefHCL+yzRJj7w20T6Mow==", + "dev": true, + "optional": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "@commitlint/types": "^18.4.4", + "ajv": "^8.11.0" }, "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "node": ">=v18" } }, - "node_modules/@aws-sdk/client-sso": { - "version": "3.414.0", - "license": "Apache-2.0", + "node_modules/@commitlint/ensure": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-17.8.1.tgz", + "integrity": "sha512-xjafwKxid8s1K23NFpL8JNo6JnY/ysetKo8kegVM7c8vs+kWLP8VrQq+NbhgVlmCojhEDbzQKp4eRXSjVOGsow==", + "dev": true, "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@commitlint/types": "^17.8.1", + "lodash.camelcase": "^4.3.0", + "lodash.kebabcase": "^4.1.1", + "lodash.snakecase": "^4.1.1", + "lodash.startcase": "^4.4.0", + "lodash.upperfirst": "^4.3.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@commitlint/ensure/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/abort-controller": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/ensure/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/config-resolver": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@commitlint/ensure/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/types": "^2.3.3", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.2", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/credential-provider-imds": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@commitlint/ensure/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/fetch-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" + "node_modules/@commitlint/ensure/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@commitlint/ensure/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/hash-node": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/ensure/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/invalid-dependency": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "node_modules/@commitlint/execute-rule": { + "version": "18.4.4", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-18.4.4.tgz", + "integrity": "sha512-a37Nd3bDQydtg9PCLLWM9ZC+GO7X5i4zJvrggJv5jBhaHsXeQ9ZWdO6ODYR+f0LxBXXNYK3geYXJrCWUCP8JEg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=v18" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/format": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-17.8.1.tgz", + "integrity": "sha512-f3oMTyZ84M9ht7fb93wbCKmWxO5/kKSbwuYvS867duVomoOsgrgljkGGIztmT/srZnaiGbaK8+Wf8Ik2tSr5eg==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@commitlint/types": "^17.8.1", + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/middleware-content-length": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@commitlint/format/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", + "dev": true, "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/middleware-endpoint": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/format/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/middleware-serde": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "@smithy/util-middleware": "^2.0.2", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/middleware-retry": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@commitlint/format/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/protocol-http": "^3.0.5", - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-middleware": "^2.0.2", - "@smithy/util-retry": "^2.0.2", - "tslib": "^2.5.0", - "uuid": "^8.3.2" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/middleware-serde": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/format/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/middleware-stack": { - "version": "2.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/format/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@commitlint/format/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@commitlint/format/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/node-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", + "node_modules/@commitlint/is-ignored": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-17.8.1.tgz", + "integrity": "sha512-UshMi4Ltb4ZlNn4F7WtSEugFDZmctzFpmbqvpyxD3la510J+PLcnyhf9chs7EryaRFJMdAKwsEKfNK0jL/QM4g==", + "dev": true, "dependencies": { - "@smithy/abort-controller": "^2.0.9", - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@commitlint/types": "^17.8.1", + "semver": "7.5.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@commitlint/is-ignored/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", + "node_modules/@commitlint/is-ignored/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/querystring-builder": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/is-ignored/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-uri-escape": "^2.0.0", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/is-ignored/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/service-error-classification": { - "version": "2.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3" - }, + "node_modules/@commitlint/is-ignored/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@commitlint/is-ignored/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@commitlint/is-ignored/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/smithy-client": { - "version": "2.1.6", - "license": "Apache-2.0", + "node_modules/@commitlint/lint": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-17.8.1.tgz", + "integrity": "sha512-aQUlwIR1/VMv2D4GXSk7PfL5hIaFSfy6hSHV94O8Y27T5q+DlDEgd/cZ4KmVI+MWKzFfCTiTuWqjfRSfdRllCA==", + "dev": true, "dependencies": { - "@smithy/middleware-stack": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-stream": "^2.0.12", - "tslib": "^2.5.0" + "@commitlint/is-ignored": "^17.8.1", + "@commitlint/parse": "^17.8.1", + "@commitlint/rules": "^17.8.1", + "@commitlint/types": "^17.8.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@commitlint/lint/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/lint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-base64": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/lint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-body-length-browser": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/lint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-body-length-node": { - "version": "2.1.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/lint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@commitlint/lint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/lint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-config-provider": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/load": { + "version": "18.4.4", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-18.4.4.tgz", + "integrity": "sha512-RaDIa9qwOw2xRJ3Jr2DBXd14rmnHJIX2XdZF4kmoF1rgsg/+7cvrExLSUNAkQUNimyjCn1b/bKX2Omm+GdY0XQ==", + "dev": true, + "optional": true, "dependencies": { - "tslib": "^2.5.0" + "@commitlint/config-validator": "^18.4.4", + "@commitlint/execute-rule": "^18.4.4", + "@commitlint/resolve-extends": "^18.4.4", + "@commitlint/types": "^18.4.4", + "chalk": "^4.1.0", + "cosmiconfig": "^8.3.6", + "cosmiconfig-typescript-loader": "^5.0.0", + "lodash.isplainobject": "^4.0.6", + "lodash.merge": "^4.6.2", + "lodash.uniq": "^4.5.0", + "resolve-from": "^5.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v18" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-defaults-mode-browser": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@commitlint/load/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "optional": true, "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", - "bowser": "^2.11.0", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">= 10.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-defaults-mode-node": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@commitlint/load/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "optional": true, "dependencies": { - "@smithy/config-resolver": "^2.0.10", - "@smithy/credential-provider-imds": "^2.0.12", - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">= 10.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-hex-encoding": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/load/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "optional": true, "dependencies": { - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-middleware": { - "version": "2.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/load/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "optional": true + }, + "node_modules/@commitlint/load/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "optional": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-retry": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@commitlint/load/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "optional": true, "dependencies": { - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">= 14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-stream": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/fetch-http-handler": "^2.1.5", - "@smithy/node-http-handler": "^2.1.5", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/message": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-17.8.1.tgz", + "integrity": "sha512-6bYL1GUQsD6bLhTH3QQty8pVFoETfFQlMn2Nzmz3AOLqRVfNNtXBaSY0dhZ0dM6A2MEq4+2d7L/2LP8TjqGRkA==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-uri-escape": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/parse": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-17.8.1.tgz", + "integrity": "sha512-/wLUickTo0rNpQgWwLPavTm7WbwkZoBy3X8PpkUmlSmQJyWQTj0m6bDjiykMaDt41qcUbfeFfaCvXfiR4EGnfw==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@commitlint/types": "^17.8.1", + "conventional-changelog-angular": "^6.0.0", + "conventional-commits-parser": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-utf8": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/parse/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", + "dev": true, "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-sso/node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sts": { - "version": "3.414.0", - "license": "Apache-2.0", + "node_modules/@commitlint/parse/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-sdk-sts": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@commitlint/parse/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/abort-controller": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/parse/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/config-resolver": { - "version": "2.0.10", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/types": "^2.3.3", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.2", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } + "node_modules/@commitlint/parse/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/credential-provider-imds": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/parse/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/fetch-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/hash-node": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/parse/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/invalid-dependency": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/read": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-17.8.1.tgz", + "integrity": "sha512-Fd55Oaz9irzBESPCdMd8vWWgxsW3OWR99wOntBDHgf9h7Y6OOHjWEdS9Xzen1GFndqgyoaFplQS5y7KZe0kO2w==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@commitlint/top-level": "^17.8.1", + "@commitlint/types": "^17.8.1", + "fs-extra": "^11.0.0", + "git-raw-commits": "^2.0.11", + "minimist": "^1.2.6" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/middleware-content-length": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@commitlint/read/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", + "dev": true, "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/middleware-endpoint": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/read/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/middleware-serde": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "@smithy/util-middleware": "^2.0.2", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/middleware-retry": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@commitlint/read/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/protocol-http": "^3.0.5", - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-middleware": "^2.0.2", - "@smithy/util-retry": "^2.0.2", - "tslib": "^2.5.0", - "uuid": "^8.3.2" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/middleware-serde": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/read/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/middleware-stack": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@commitlint/read/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@commitlint/read/node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=14.14" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/read/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/node-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", + "node_modules/@commitlint/read/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/abort-controller": "^2.0.9", - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@commitlint/resolve-extends": { + "version": "18.4.4", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-18.4.4.tgz", + "integrity": "sha512-RRpIHSbRnFvmGifVk21Gqazf1QF/yeP+Kkg/e3PlkegcOKd/FGOXp/Kx9cvSO2K7ucSn4GD/oBvgasFoy+NCAw==", + "dev": true, + "optional": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@commitlint/config-validator": "^18.4.4", + "@commitlint/types": "^18.4.4", + "import-fresh": "^3.0.0", + "lodash.mergewith": "^4.6.2", + "resolve-from": "^5.0.0", + "resolve-global": "^1.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v18" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", + "node_modules/@commitlint/rules": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-17.8.1.tgz", + "integrity": "sha512-2b7OdVbN7MTAt9U0vKOYKCDsOvESVXxQmrvuVUZ0rGFMCrCPJWWP1GJ7f0lAypbDAhaGb8zqtdOr47192LBrIA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@commitlint/ensure": "^17.8.1", + "@commitlint/message": "^17.8.1", + "@commitlint/to-lines": "^17.8.1", + "@commitlint/types": "^17.8.1", + "execa": "^5.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/querystring-builder": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/rules/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-uri-escape": "^2.0.0", - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@commitlint/rules/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/service-error-classification": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@commitlint/rules/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@commitlint/rules/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/smithy-client": { - "version": "2.1.6", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-stack": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-stream": "^2.0.12", - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/rules/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@commitlint/rules/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@commitlint/rules/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "node_modules/@commitlint/to-lines": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-17.8.1.tgz", + "integrity": "sha512-LE0jb8CuR/mj6xJyrIk8VLz03OEzXFgLdivBytoooKO5xLt5yalc8Ma5guTWobw998sbR3ogDd+2jed03CFmJA==", + "dev": true, + "engines": { + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-base64": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/top-level": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-17.8.1.tgz", + "integrity": "sha512-l6+Z6rrNf5p333SHfEte6r+WkOxGlWK4bLuZKbtf/2TXRN+qhrvn1XE63VhD8Oe9oIHQ7F7W1nG2k/TJFhx2yA==", + "dev": true, "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" + "find-up": "^5.0.0" }, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-body-length-browser": { - "version": "2.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" + "node": ">=v14" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-body-length-node": { - "version": "2.1.0", - "license": "Apache-2.0", + "node_modules/@commitlint/types": { + "version": "18.4.4", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-18.4.4.tgz", + "integrity": "sha512-/FykLtodD8gKs3+VNkAUwofu4LBHankclj+I8fB2jTRvG6PV7k/OUt4P+VbM7ip853qS4F0g7Z6hLNa6JeMcAQ==", + "dev": true, + "optional": true, "dependencies": { - "tslib": "^2.5.0" + "chalk": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=v18" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "optional": true, "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-config-provider": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "optional": true, "dependencies": { - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-defaults-mode-browser": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@commitlint/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "optional": true, "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", - "bowser": "^2.11.0", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">= 10.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-defaults-mode-node": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/config-resolver": "^2.0.10", - "@smithy/credential-provider-imds": "^2.0.12", - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@commitlint/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "optional": true + }, + "node_modules/@commitlint/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "optional": true, "engines": { - "node": ">= 10.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-hex-encoding": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@commitlint/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "optional": true, "dependencies": { - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-middleware": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@jridgewell/trace-mapping": "0.3.9" }, "engines": { - "node": ">=14.0.0" + "node": ">=12" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-retry": { - "version": "2.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 14.0.0" + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-stream": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@dabh/diagnostics": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz", + "integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==", "dependencies": { - "@smithy/fetch-http-handler": "^2.1.5", - "@smithy/node-http-handler": "^2.1.5", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "colorspace": "1.1.x", + "enabled": "2.0.x", + "kuler": "^2.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-uri-escape": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@datadog/pprof": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@datadog/pprof/-/pprof-3.2.0.tgz", + "integrity": "sha512-kOhWHCWB80djnMCr5KNKBAy1Ih/jK/PIj6yqnZwL1Wqni/h6IBPRUMhtIxcYJMRgsZVYrFXUV20AVXTZCzFokw==", + "hasInstallScript": true, "dependencies": { - "tslib": "^2.5.0" + "delay": "^5.0.0", + "node-gyp-build": "<4.0", + "p-limit": "^3.1.0", + "pprof-format": "^2.0.7", + "source-map": "^0.7.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=12" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-utf8": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@dependents/detective-less": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@dependents/detective-less/-/detective-less-3.0.2.tgz", + "integrity": "sha512-1YUvQ+e0eeTWAHoN8Uz2x2U37jZs6IGutiIE5LXId7cxfUGhtZjzxE06FdUiuiRrW+UE0vNCdSNPH2lY4dQCOQ==", + "dev": true, "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" + "gonzales-pe": "^4.3.0", + "node-source-walk": "^5.0.1" }, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-sts/node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" + "node": ">=12" } }, - "node_modules/@aws-sdk/credential-provider-cognito-identity": { - "version": "3.414.0", - "license": "Apache-2.0", + "node_modules/@digitalroute/cz-conventional-changelog-for-jira": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@digitalroute/cz-conventional-changelog-for-jira/-/cz-conventional-changelog-for-jira-8.0.1.tgz", + "integrity": "sha512-I7uNQ2R5LnDYVhQ01sfNvaxqe1PutXyDl8Kltj4L8uDa1LTYqQgWWp3yEj3XYDNjhUjsAheHW0lsmF1oiAjWVg==", + "dev": true, "dependencies": { - "@aws-sdk/client-cognito-identity": "3.414.0", - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "boxen": "^5.1.2", + "chalk": "^2.4.1", + "commitizen": "^4.2.6", + "cz-conventional-changelog": "^3.3.0", + "inquirer": "^8.2.4", + "lodash.map": "^4.5.1", + "longest": "^2.0.1", + "right-pad": "^1.0.1", + "word-wrap": "^1.0.3" }, "engines": { - "node": ">=14.0.0" + "node": ">= 10" + }, + "optionalDependencies": { + "@commitlint/load": ">6.1.1" } }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "eslint-visitor-keys": "^3.3.0" }, "engines": { - "node": ">=14.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" }, "engines": { - "node": ">=14.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-env/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@ewoudenberg/difflib": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@ewoudenberg/difflib/-/difflib-0.1.0.tgz", + "integrity": "sha512-OU5P5mJyD3OoWYMWY+yIgwvgNS9cFAU10f+DDuvtogcWQOoJIsQ4Hy2McSfUfhKjq8L0FuWVb4Rt7kgA+XK86A==", "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "heap": ">= 0.2.0" } }, - "node_modules/@aws-sdk/credential-provider-env/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@hapi/hoek": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", + "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" + }, + "node_modules/@hapi/topo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", + "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@hapi/hoek": "^9.0.0" } }, - "node_modules/@aws-sdk/credential-provider-env/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@humanwhocodes/object-schema": "^2.0.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" }, "engines": { - "node": ">=14.0.0" + "node": ">=10.10.0" } }, - "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.414.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.413.0", - "@aws-sdk/credential-provider-process": "3.413.0", - "@aws-sdk/credential-provider-sso": "3.414.0", - "@aws-sdk/credential-provider-web-identity": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", + "dev": true + }, + "node_modules/@hutson/parse-repository-url": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz", + "integrity": "sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.9.0" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/credential-provider-imds": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@ioredis/commands": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz", + "integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==" + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "tslib": "^2.5.0" + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=12" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "ansi-regex": "^6.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - } - }, - "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.414.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.413.0", - "@aws-sdk/credential-provider-ini": "3.414.0", - "@aws-sdk/credential-provider-process": "3.413.0", - "@aws-sdk/credential-provider-sso": "3.414.0", - "@aws-sdk/credential-provider-web-identity": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "sprintf-js": "~1.0.2" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/credential-provider-imds": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "tslib": "^2.5.0" - }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, - "engines": { - "node": ">=14.0.0" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "p-locate": "^4.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "p-try": "^2.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "p-limit": "^2.2.0" }, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.413.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-process/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-process/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/credential-provider-process/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/credential-provider-process/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.414.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-sso": "3.414.0", - "@aws-sdk/token-providers": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-sso/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/@aws-sdk/credential-provider-sso/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/credential-provider-sso/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/credential-provider-web-identity/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-web-identity/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/credential-provider-web-identity/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/credential-providers": { - "version": "3.414.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-cognito-identity": "3.414.0", - "@aws-sdk/client-sso": "3.414.0", - "@aws-sdk/client-sts": "3.414.0", - "@aws-sdk/credential-provider-cognito-identity": "3.414.0", - "@aws-sdk/credential-provider-env": "3.413.0", - "@aws-sdk/credential-provider-ini": "3.414.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/credential-provider-process": "3.413.0", - "@aws-sdk/credential-provider-sso": "3.414.0", - "@aws-sdk/credential-provider-web-identity": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "jest-get-type": "^29.6.3" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/credential-provider-imds": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "tslib": "^2.5.0" + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/reporters/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@aws-sdk/hash-blob-browser": { - "version": "3.370.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/chunked-blob-reader": "3.310.0", - "@aws-sdk/chunked-blob-reader-native": "3.310.0", - "@aws-sdk/types": "3.370.0", - "tslib": "^2.5.0" + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" } }, - "node_modules/@aws-sdk/hash-stream-node": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-utf8": "3.310.0", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/is-array-buffer": { - "version": "3.310.0", - "license": "Apache-2.0", + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@sinclair/typebox": "^0.27.8" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/lib-storage": { - "version": "3.417.0", - "license": "Apache-2.0", + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, "dependencies": { - "@smithy/abort-controller": "^2.0.1", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/smithy-client": "^2.1.4", - "buffer": "5.6.0", - "events": "3.3.0", - "stream-browserify": "3.0.0", - "tslib": "^2.5.0" + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" }, "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-s3": "^3.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/abort-controller": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/fetch-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/middleware-endpoint": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/middleware-serde": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "@smithy/util-middleware": "^2.0.2", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/middleware-serde": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/middleware-stack": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/node-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/abort-controller": "^2.0.9", - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/querystring-builder": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-uri-escape": "^2.0.0", - "tslib": "^2.5.0" + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/smithy-client": { - "version": "2.1.6", - "license": "Apache-2.0", + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@smithy/middleware-stack": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-stream": "^2.0.12", - "tslib": "^2.5.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=14.0.0" + "node": ">=7.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - } + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/util-base64": { - "version": "2.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/util-hex-encoding": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/util-middleware": { - "version": "2.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "node": ">=6.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/util-stream": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/fetch-http-handler": "^2.1.5", - "@smithy/node-http-handler": "^2.1.5", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" - }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/util-uri-escape": { - "version": "2.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=6.0.0" } }, - "node_modules/@aws-sdk/lib-storage/node_modules/@smithy/util-utf8": { - "version": "2.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true }, - "node_modules/@aws-sdk/md5-js": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-utf8": "3.310.0", - "tslib": "^2.5.0" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@aws-sdk/middleware-bucket-endpoint": { - "version": "3.370.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-arn-parser": "3.310.0", - "@smithy/protocol-http": "^1.1.0", - "@smithy/types": "^1.1.0", - "@smithy/util-config-provider": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } + "node_modules/@jsdevtools/ono": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", + "dev": true }, - "node_modules/@aws-sdk/middleware-expect-continue": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@koa/router": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-12.0.1.tgz", + "integrity": "sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==", "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/protocol-http": "^1.1.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "debug": "^4.3.4", + "http-errors": "^2.0.0", + "koa-compose": "^4.1.0", + "methods": "^1.1.2", + "path-to-regexp": "^6.2.1" }, "engines": { - "node": ">=14.0.0" + "node": ">= 12" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", + "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==", "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@aws-crypto/crc32c": "3.0.0", - "@aws-sdk/types": "3.370.0", - "@smithy/is-array-buffer": "^1.0.1", - "@smithy/protocol-http": "^1.1.0", - "@smithy/types": "^1.1.0", - "@smithy/util-utf8": "^1.0.1", - "tslib": "^2.5.0" + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" }, - "engines": { - "node": ">=14.0.0" + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" } }, - "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@mapbox/node-pre-gyp/node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "semver": "^6.0.0" }, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-host-header/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "node": ">=8" }, - "engines": { - "node": ">=14.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@aws-sdk/middleware-host-header/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "node_modules/@mapbox/node-pre-gyp/node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@aws-sdk/middleware-host-header/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } + "node_modules/@ndhoule/extend": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@ndhoule/extend/-/extend-2.0.0.tgz", + "integrity": "sha512-xb77tVVGDGwjy25a6RmBiiBQ9uvxhkG0OEpVkQ74oNFsy9u+4PGp5BIIblmJZmJBMgXiKxZtkr4GcmHCNVubBQ==" }, - "node_modules/@aws-sdk/middleware-location-constraint": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" }, "engines": { - "node": ">=14.0.0" + "node": ">= 8" } }, - "node_modules/@aws-sdk/middleware-logger": { - "version": "3.413.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">= 8" } }, - "node_modules/@aws-sdk/middleware-logger/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" }, "engines": { - "node": ">=14.0.0" + "node": ">= 8" } }, - "node_modules/@aws-sdk/middleware-logger/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, "engines": { - "node": ">=14.0.0" + "node": ">=14" } }, - "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.413.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" }, - "node_modules/@aws-sdk/middleware-recursion-detection/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" }, - "node_modules/@aws-sdk/middleware-recursion-detection/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" } }, - "node_modules/@aws-sdk/middleware-recursion-detection/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@pyroscope/nodejs": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/@pyroscope/nodejs/-/nodejs-0.2.6.tgz", + "integrity": "sha512-F37ROH//HzO7zKm2S7CtNG8OAp+i4ADg4erQR9D57BrSgi8+3Jjp5s5PWqyJABC6IzsABgGrentPobBDr8QdsA==", "dependencies": { - "tslib": "^2.5.0" + "axios": "^0.26.1", + "debug": "^4.3.3", + "form-data": "^4.0.0", + "pprof": "^3.2.0", + "regenerator-runtime": "^0.13.11", + "source-map": "^0.7.3" }, "engines": { - "node": ">=14.0.0" + "node": "^12.20.0 || >=14.13.1" } }, - "node_modules/@aws-sdk/middleware-sdk-s3": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@pyroscope/nodejs/node_modules/axios": { + "version": "0.26.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz", + "integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==", "dependencies": { - "@aws-sdk/types": "3.370.0", - "@aws-sdk/util-arn-parser": "3.310.0", - "@smithy/protocol-http": "^1.1.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "follow-redirects": "^1.14.8" } }, - "node_modules/@aws-sdk/middleware-sdk-sts": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@rudderstack/integrations-lib": { + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/@rudderstack/integrations-lib/-/integrations-lib-0.1.9.tgz", + "integrity": "sha512-ROi/LfI7PXqKDrjSig+1Rf2TQ8MgxJGJ7sAD1B0PmRKELQpxK6PLt8QF+vKXl8wYILQu2gwTkZ5o+uwmNKxGzg==", "dependencies": { - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@rudderstack/workflow-engine": "^0.5.7", + "axios": "^1.4.0", + "axios-mock-adapter": "^1.22.0", + "crypto": "^1.0.1", + "get-value": "^3.0.1", + "handlebars": "^4.7.8", + "lodash": "^4.17.21", + "moment": "^2.29.4", + "moment-timezone": "^0.5.43", + "set-value": "^4.1.0", + "sha256": "^0.2.0", + "tslib": "^2.4.0" } }, - "node_modules/@aws-sdk/middleware-sdk-sts/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@rudderstack/integrations-lib/node_modules/@aws-crypto/sha256-js": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-4.0.0.tgz", + "integrity": "sha512-MHGJyjE7TX9aaqXj7zk2ppnFUOhaDs5sP+HtNS0evOxn72c+5njUmyJmpGd7TfyoDznZlHMmdo/xGUdu2NIjNQ==", "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@aws-crypto/util": "^4.0.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^1.11.1" } }, - "node_modules/@aws-sdk/middleware-sdk-sts/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@rudderstack/integrations-lib/node_modules/@aws-crypto/sha256-js/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@rudderstack/integrations-lib/node_modules/@aws-crypto/util": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-4.0.0.tgz", + "integrity": "sha512-2EnmPy2gsFZ6m8bwUQN4jq+IyXV3quHAcwPOS6ZA3k+geujiqI8aRokO2kFJe+idJ/P3v4qWI186rVMo0+zLDQ==", "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" } }, - "node_modules/@aws-sdk/middleware-signing": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@rudderstack/integrations-lib/node_modules/@aws-crypto/util/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@rudderstack/integrations-lib/node_modules/@rudderstack/json-template-engine": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@rudderstack/json-template-engine/-/json-template-engine-0.5.5.tgz", + "integrity": "sha512-p3HdTqgZiJjjZmjaHN2paa1e87ifGE5UjkA4zdvge4bBzJbKKMQNWqRg6I96SwoA+hsxNkW/f9R83SPLU9t7LA==" + }, + "node_modules/@rudderstack/integrations-lib/node_modules/@rudderstack/workflow-engine": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/@rudderstack/workflow-engine/-/workflow-engine-0.5.8.tgz", + "integrity": "sha512-H1aCowYqTnOoqJtL9cGDhdhoGNl+KzqmVbSjFmE7n75onZaIMs87+HQyW08jYxS9l1Uo4TL8SAvzFICqFqkBbw==", "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.3.1", - "@smithy/util-middleware": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@aws-crypto/sha256-js": "^4.0.0", + "@rudderstack/json-template-engine": "^0.5.5", + "js-yaml": "^4.1.0", + "jsonata": "^2.0.3", + "lodash": "^4.17.21", + "object-sizeof": "^2.6.3" + } + }, + "node_modules/@rudderstack/json-template-engine": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@rudderstack/json-template-engine/-/json-template-engine-0.8.2.tgz", + "integrity": "sha512-9oMBnqgNuwiXd7MUlNOAchCnJXQAy6w6XGmDqDM6iXdYDkvqYFiq7sbg5j4SdtpTTST293hahREr5PXfFVzVKg==" + }, + "node_modules/@rudderstack/workflow-engine": { + "version": "0.6.10", + "resolved": "https://registry.npmjs.org/@rudderstack/workflow-engine/-/workflow-engine-0.6.10.tgz", + "integrity": "sha512-3GRdnbB0BuSPWiKf4JsSpG7QuGffAFWkT5T0JLR7Jxps25gt+PgtjQiAlwrRhO5A0WeTJMIKTI7ctz6dGmJosg==", + "dependencies": { + "@aws-crypto/sha256-js": "^5.0.0", + "@rudderstack/json-template-engine": "^0.8.1", + "jsonata": "^2.0.3", + "lodash": "^4.17.21", + "object-sizeof": "^2.6.3", + "yaml": "^2.3.2" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@rudderstack/workflow-engine/node_modules/@aws-crypto/sha256-js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", + "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/eventstream-codec": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@rudderstack/workflow-engine/node_modules/@aws-crypto/util": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", + "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@smithy/types": "^2.3.3", - "@smithy/util-hex-encoding": "^2.0.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "^3.222.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@sideway/address": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", + "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@hapi/hoek": "^9.0.0" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, + "node_modules/@sideway/formula": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", + "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" + }, + "node_modules/@sideway/pinpoint": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", + "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sindresorhus/is": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", + "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==", + "dev": true, "engines": { - "node": ">=14.0.0" + "node": ">=4" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", + "node_modules/@sinonjs/commons": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "type-detect": "4.0.8" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/signature-v4": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, "dependencies": { - "@smithy/eventstream-codec": "^2.0.9", - "@smithy/is-array-buffer": "^2.0.0", - "@smithy/types": "^2.3.3", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-middleware": "^2.0.2", - "@smithy/util-uri-escape": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@sinonjs/commons": "^3.0.0" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@smithy/abort-controller": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-2.0.16.tgz", + "integrity": "sha512-4foO7738k8kM9flMHu3VLabqu7nPgvIj8TB909S0CnKx0YZz/dcDH3pZ/4JHdatfxlZdKF1JWOYCw9+v3HVVsw==", "dependencies": { + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/util-buffer-from": { + "node_modules/@smithy/chunked-blob-reader": { "version": "2.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-2.0.0.tgz", + "integrity": "sha512-k+J4GHJsMSAIQPChGBrjEmGS+WbPonCXesoqP9fynIqjn7rdOThdH8FAeCmokP9mxTYKQAKoHCLPzNlm6gh7Wg==", "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/util-hex-encoding": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@smithy/chunked-blob-reader-native": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-2.0.1.tgz", + "integrity": "sha512-N2oCZRglhWKm7iMBu7S6wDzXirjAofi7tAd26cxmgibRYOBS4D3hGfmkwCpHdASZzwZDD8rluh0Rcqw1JeZDRw==", "dependencies": { + "@smithy/util-base64": "^2.0.1", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/util-middleware": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@smithy/config-resolver": { + "version": "2.0.23", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-2.0.23.tgz", + "integrity": "sha512-XakUqgtP2YY8Mi+Nlif5BiqJgWdvfxJafSpOSQeCOMizu+PUhE4fBQSy6xFcR+eInrwVadaABNxoJyGUMn15ew==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/types": "^2.8.0", + "@smithy/util-config-provider": "^2.1.0", + "@smithy/util-middleware": "^2.0.9", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/util-uri-escape": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@smithy/core": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-1.2.2.tgz", + "integrity": "sha512-uLjrskLT+mWb0emTR5QaiAIxVEU7ndpptDaVDrTwwhD+RjvHhjIiGQ3YL5jKk1a5VSDQUA2RGkXvJ6XKRcz6Dg==", "dependencies": { + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/middleware-retry": "^2.0.26", + "@smithy/middleware-serde": "^2.0.16", + "@smithy/protocol-http": "^3.0.12", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/util-middleware": "^2.0.9", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-signing/node_modules/@smithy/util-utf8": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@smithy/credential-provider-imds": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-2.1.5.tgz", + "integrity": "sha512-VfvE6Wg1MUWwpTZFBnUD7zxvPhLY8jlHCzu6bCjlIYoWgXCDzZAML76IlZUEf45nib3rjehnFgg0s1rgsuN/bg==", "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/property-provider": "^2.0.17", + "@smithy/types": "^2.8.0", + "@smithy/url-parser": "^2.0.16", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-ssec": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@smithy/eventstream-codec": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-2.0.16.tgz", + "integrity": "sha512-umYh5pdCE9GHgiMAH49zu9wXWZKNHHdKPm/lK22WYISTjqu29SepmpWNmPiBLy/yUu4HFEGJHIFrDWhbDlApaw==", "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/types": "^1.1.0", + "@aws-crypto/crc32": "3.0.0", + "@smithy/types": "^2.8.0", + "@smithy/util-hex-encoding": "^2.0.0", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@smithy/eventstream-serde-browser": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-2.0.16.tgz", + "integrity": "sha512-W+BdiN728R57KuZOcG0GczpIOEFf8S5RP/OdVH7T3FMCy8HU2bBU0vB5xZZR5c00VRdoeWrohNv3XlHoZuGRoA==", "dependencies": { - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/types": "^2.3.1", + "@smithy/eventstream-serde-universal": "^2.0.16", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@smithy/eventstream-serde-config-resolver": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-2.0.16.tgz", + "integrity": "sha512-8qrE4nh+Tg6m1SMFK8vlzoK+8bUFTlIhXidmmQfASMninXW3Iu0T0bI4YcIk4nLznHZdybQ0qGydIanvVZxzVg==", "dependencies": { - "@smithy/types": "^2.3.1", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", + "node_modules/@smithy/eventstream-serde-node": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-2.0.16.tgz", + "integrity": "sha512-NRNQuOa6mQdFSkqzY0IV37swHWx0SEoKxFtUfdZvfv0AVQPlSw4N7E3kcRSCpnHBr1kCuWWirdDlWcjWuD81MA==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/eventstream-serde-universal": "^2.0.16", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@smithy/eventstream-serde-universal": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-2.0.16.tgz", + "integrity": "sha512-ZyLnGaYQMLc75j9kKEVMJ3X6bdBE9qWxhZdTXM5RIltuytxJC3FaOhawBxjE+IL1enmWSIohHGZCm/pLwEliQA==", "dependencies": { + "@smithy/eventstream-codec": "^2.0.16", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@smithy/fetch-http-handler": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-2.3.2.tgz", + "integrity": "sha512-O9R/OlnAOTsnysuSDjt0v2q6DcSvCz5cCFC/CFAWWcLyBwJDeFyGTCTszgpQTb19+Fi8uRwZE5/3ziAQBFeDMQ==", "dependencies": { - "@smithy/node-config-provider": "^2.0.10", - "@smithy/types": "^2.3.1", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/querystring-builder": "^2.0.16", + "@smithy/types": "^2.8.0", + "@smithy/util-base64": "^2.0.1", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@smithy/hash-blob-browser": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-2.0.17.tgz", + "integrity": "sha512-/mPpv1sRiRDdjO4zZuO8be6eeabmg5AVgKDfnmmqkpBtRyMGSJb968fjRuHt+FRAsIGywgIKJFmUUAYjhsi1oQ==", "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", + "@smithy/chunked-blob-reader": "^2.0.0", + "@smithy/chunked-blob-reader-native": "^2.0.1", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@smithy/hash-node": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-2.0.18.tgz", + "integrity": "sha512-gN2JFvAgnZCyDN9rJgcejfpK0uPPJrSortVVVVWsru9whS7eQey6+gj2eM5ln2i6rHNntIXzal1Fm9XOPuoaKA==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/types": "^2.8.0", + "@smithy/util-buffer-from": "^2.0.0", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@smithy/hash-stream-node": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-2.0.18.tgz", + "integrity": "sha512-OuFk+ITpv8CtxGjQcS8GA04faNycu9UMm6YobvQzjeEoXZ0dLF6sRfuzD+3S8RHPKpTyLuXtKG1+GiJycZ5TcA==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/types": "^2.8.0", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@smithy/invalid-dependency": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-2.0.16.tgz", + "integrity": "sha512-apEHakT/kmpNo1VFHP4W/cjfeP9U0x5qvfsLJubgp7UM/gq4qYp0GbqdE7QhsjUaYvEnrftRqs7+YrtWreV0wA==", "dependencies": { + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/util-config-provider": { + "node_modules/@smithy/is-array-buffer": { "version": "2.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.0.0.tgz", + "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", "dependencies": { "tslib": "^2.5.0" }, @@ -4067,447 +4799,356 @@ "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/util-middleware": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@smithy/md5-js": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-2.0.18.tgz", + "integrity": "sha512-bHwZ8/m6RbERQdVW5rJ2LzeW8qxfXv6Q/S7Fiudhso4pWRrksqLx3nsGZw7bmqqfN4zLqkxydxSa9+4c7s5zxg==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/types": "^2.8.0", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@smithy/middleware-content-length": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-2.0.18.tgz", + "integrity": "sha512-ZJ9uKPTfxYheTKSKYB+GCvcj+izw9WGzRLhjn8n254q0jWLojUzn7Vw0l4R/Gq7Wdpf/qmk/ptD+6CCXHNVCaw==", "dependencies": { - "@aws-sdk/types": "3.370.0", - "@smithy/protocol-http": "^1.1.0", - "@smithy/signature-v4": "^1.0.1", - "@smithy/types": "^1.1.0", + "@smithy/protocol-http": "^3.0.12", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" - }, - "peerDependencies": { - "@aws-sdk/signature-v4-crt": "^3.118.0" - }, - "peerDependenciesMeta": { - "@aws-sdk/signature-v4-crt": { - "optional": true - } } }, - "node_modules/@aws-sdk/token-providers": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@smithy/middleware-endpoint": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-2.3.0.tgz", + "integrity": "sha512-VsOAG2YQ8ykjSmKO+CIXdJBIWFo6AAvG6Iw95BakBTqk66/4BI7XyqLevoNSq/lZ6NgZv24sLmrcIN+fLDWBCg==", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.3", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/middleware-serde": "^2.0.16", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/shared-ini-file-loader": "^2.2.8", + "@smithy/types": "^2.8.0", + "@smithy/url-parser": "^2.0.16", + "@smithy/util-middleware": "^2.0.9", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" + "node_modules/@smithy/middleware-retry": { + "version": "2.0.26", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-2.0.26.tgz", + "integrity": "sha512-Qzpxo0U5jfNiq9iD38U3e2bheXwvTEX4eue9xruIvEgh+UKq6dKuGqcB66oBDV7TD/mfoJi9Q/VmaiqwWbEp7A==", + "dependencies": { + "@smithy/node-config-provider": "^2.1.9", + "@smithy/protocol-http": "^3.0.12", + "@smithy/service-error-classification": "^2.0.9", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "@smithy/util-middleware": "^2.0.9", + "@smithy/util-retry": "^2.0.9", + "tslib": "^2.5.0", + "uuid": "^8.3.2" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/abort-controller": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@smithy/middleware-retry/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@smithy/middleware-serde": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-2.0.16.tgz", + "integrity": "sha512-5EAd4t30pcc4M8TSSGq7q/x5IKrxfXR5+SrU4bgxNy7RPHQo2PSWBUco9C+D9Tfqp/JZvprRpK42dnupZafk2g==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/config-resolver": { + "node_modules/@smithy/middleware-stack": { "version": "2.0.10", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-2.0.10.tgz", + "integrity": "sha512-I2rbxctNq9FAPPEcuA1ntZxkTKOPQFy7YBPOaD/MLg1zCvzv21CoNxR0py6J8ZVC35l4qE4nhxB0f7TF5/+Ldw==", "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/types": "^2.3.3", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.2", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/credential-provider-imds": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@smithy/node-config-provider": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-2.1.9.tgz", + "integrity": "sha512-tUyW/9xrRy+s7RXkmQhgYkAPMpTIF8izK4orhHjNFEKR3QZiOCbWB546Y8iB/Fpbm3O9+q0Af9rpywLKJOwtaQ==", "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", + "@smithy/property-provider": "^2.0.17", + "@smithy/shared-ini-file-loader": "^2.2.8", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/fetch-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" - } - }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/hash-node": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@smithy/node-http-handler": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-2.2.2.tgz", + "integrity": "sha512-XO58TO/Eul/IBQKFKaaBtXJi0ItEQQCT+NI4IiKHCY/4KtqaUT6y/wC1EvDqlA9cP7Dyjdj7FdPs4DyynH3u7g==", "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/abort-controller": "^2.0.16", + "@smithy/protocol-http": "^3.0.12", + "@smithy/querystring-builder": "^2.0.16", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/invalid-dependency": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@smithy/property-provider": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-2.0.17.tgz", + "integrity": "sha512-+VkeZbVu7qtQ2DjI48Qwaf9fPOr3gZIwxQpuLJgRRSkWsdSvmaTCxI3gzRFKePB63Ts9r4yjn4HkxSCSkdWmcQ==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@smithy/protocol-http": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.12.tgz", + "integrity": "sha512-Xz4iaqLiaBfbQpB9Hgi3VcZYbP7xRDXYhd8XWChh4v94uw7qwmvlxdU5yxzfm6ACJM66phHrTbS5TVvj5uQ72w==", "dependencies": { + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/middleware-content-length": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@smithy/querystring-builder": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-2.0.16.tgz", + "integrity": "sha512-Q/GsJT0C0mijXMRs7YhZLLCP5FcuC4797lYjKQkME5CZohnLC4bEhylAd2QcD3gbMKNjCw8+T2I27WKiV/wToA==", "dependencies": { - "@smithy/protocol-http": "^3.0.5", - "@smithy/types": "^2.3.3", + "@smithy/types": "^2.8.0", + "@smithy/util-uri-escape": "^2.0.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/middleware-endpoint": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@smithy/querystring-parser": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-2.0.16.tgz", + "integrity": "sha512-c4ueAuL6BDYKWpkubjrQthZKoC3L5kql5O++ovekNxiexRXTlLIVlCR4q3KziOktLIw66EU9SQljPXd/oN6Okg==", "dependencies": { - "@smithy/middleware-serde": "^2.0.9", - "@smithy/types": "^2.3.3", - "@smithy/url-parser": "^2.0.9", - "@smithy/util-middleware": "^2.0.2", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/middleware-retry": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@smithy/service-error-classification": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-2.0.9.tgz", + "integrity": "sha512-0K+8GvtwI7VkGmmInPydM2XZyBfIqLIbfR7mDQ+oPiz8mIinuHbV6sxOLdvX1Jv/myk7XTK9orgt3tuEpBu/zg==", "dependencies": { - "@smithy/node-config-provider": "^2.0.12", - "@smithy/protocol-http": "^3.0.5", - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-middleware": "^2.0.2", - "@smithy/util-retry": "^2.0.2", - "tslib": "^2.5.0", - "uuid": "^8.3.2" + "@smithy/types": "^2.8.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/middleware-serde": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@smithy/shared-ini-file-loader": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-2.2.8.tgz", + "integrity": "sha512-E62byatbwSWrtq9RJ7xN40tqrRKDGrEL4EluyNpaIDvfvet06a/QC58oHw2FgVaEgkj0tXZPjZaKrhPfpoU0qw==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/middleware-stack": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@smithy/signature-v4": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-2.0.19.tgz", + "integrity": "sha512-nwc3JihdM+kcJjtORv/n7qRHN2Kfh7S2RJI2qr8pz9UcY5TD8rSCRGQ0g81HgyS3jZ5X9U/L4p014P3FonBPhg==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/eventstream-codec": "^2.0.16", + "@smithy/is-array-buffer": "^2.0.0", + "@smithy/types": "^2.8.0", + "@smithy/util-hex-encoding": "^2.0.0", + "@smithy/util-middleware": "^2.0.9", + "@smithy/util-uri-escape": "^2.0.0", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@smithy/smithy-client": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-2.2.1.tgz", + "integrity": "sha512-SpD7FLK92XV2fon2hMotaNDa2w5VAy5/uVjP9WFmjGSgWM8pTPVkHcDl1yFs5Z8LYbij0FSz+DbCBK6i+uXXUA==", "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", + "@smithy/middleware-endpoint": "^2.3.0", + "@smithy/middleware-stack": "^2.0.10", + "@smithy/protocol-http": "^3.0.12", + "@smithy/types": "^2.8.0", + "@smithy/util-stream": "^2.0.24", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/node-http-handler": { - "version": "2.1.5", - "license": "Apache-2.0", + "node_modules/@smithy/types": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.8.0.tgz", + "integrity": "sha512-h9sz24cFgt/W1Re22OlhQKmUZkNh244ApgRsUDYinqF8R+QgcsBIX344u2j61TPshsTz3CvL6HYU1DnQdsSrHA==", "dependencies": { - "@smithy/abort-controller": "^2.0.9", - "@smithy/protocol-http": "^3.0.5", - "@smithy/querystring-builder": "^2.0.9", - "@smithy/types": "^2.3.3", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@smithy/url-parser": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-2.0.16.tgz", + "integrity": "sha512-Wfz5WqAoRT91TjRy1JeLR0fXtkIXHGsMbgzKFTx7E68SrZ55TB8xoG+vm11Ru4gheFTMXjAjwAxv1jQdC+pAQA==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/querystring-parser": "^2.0.16", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/protocol-http": { - "version": "3.0.5", - "license": "Apache-2.0", + "node_modules/@smithy/util-base64": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-2.0.1.tgz", + "integrity": "sha512-DlI6XFYDMsIVN+GH9JtcRp3j02JEVuWIn/QOZisVzpIAprdsxGveFed0bjbMRCqmIFe8uetn5rxzNrBtIGrPIQ==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/util-buffer-from": "^2.0.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/querystring-builder": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@smithy/util-body-length-browser": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-2.0.1.tgz", + "integrity": "sha512-NXYp3ttgUlwkaug4bjBzJ5+yIbUbUx8VsSLuHZROQpoik+gRkIBeEG9MPVYfvPNpuXb/puqodeeUXcKFe7BLOQ==", "dependencies": { - "@smithy/types": "^2.3.3", - "@smithy/util-uri-escape": "^2.0.0", "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/querystring-parser": { - "version": "2.0.9", - "license": "Apache-2.0", + "node_modules/@smithy/util-body-length-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-2.1.0.tgz", + "integrity": "sha512-/li0/kj/y3fQ3vyzn36NTLGmUwAICb7Jbe/CsWCktW363gh1MOcpEcSO3mJ344Gv2dqz8YJCLQpb6hju/0qOWw==", "dependencies": { - "@smithy/types": "^2.3.3", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/service-error-classification": { - "version": "2.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/smithy-client": { - "version": "2.1.6", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-stack": "^2.0.2", - "@smithy/types": "^2.3.3", - "@smithy/util-stream": "^2.0.12", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/url-parser": { - "version": "2.0.9", - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^2.0.9", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - } - }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-base64": { + "node_modules/@smithy/util-buffer-from": { "version": "2.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.0.0.tgz", + "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", + "@smithy/is-array-buffer": "^2.0.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-body-length-browser": { - "version": "2.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - } - }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-body-length-node": { + "node_modules/@smithy/util-config-provider": { "version": "2.1.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-2.1.0.tgz", + "integrity": "sha512-S6V0JvvhQgFSGLcJeT1CBsaTR03MM8qTuxMH9WPCCddlSo2W0V5jIHimHtIQALMLEDPGQ0ROSRr/dU0O+mxiQg==", "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-config-provider": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@smithy/util-defaults-mode-browser": { + "version": "2.0.24", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-2.0.24.tgz", + "integrity": "sha512-TsP5mBuLgO2C21+laNG2nHYZEyUdkbGURv2tHvSuQQxLz952MegX95uwdxOY2jR2H4GoKuVRfdJq7w4eIjGYeg==", "dependencies": { + "@smithy/property-provider": "^2.0.17", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", + "bowser": "^2.11.0", "tslib": "^2.5.0" }, "engines": { - "node": ">=14.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-defaults-mode-browser": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@smithy/util-defaults-mode-node": { + "version": "2.0.32", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.0.32.tgz", + "integrity": "sha512-d0S33dXA2cq1NyorVMroMrEtqKMr3MlyLITcfTBf9pXiigYiPMOtbSI7czHIfDbuVuM89Cg0urAgpt73QV9mPQ==", "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", - "bowser": "^2.11.0", + "@smithy/config-resolver": "^2.0.23", + "@smithy/credential-provider-imds": "^2.1.5", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/property-provider": "^2.0.17", + "@smithy/smithy-client": "^2.2.1", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-defaults-mode-node": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@smithy/util-endpoints": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-1.0.8.tgz", + "integrity": "sha512-l8zVuyZZ61IzZBYp5NWvsAhbaAjYkt0xg9R4xUASkg5SEeTT2meHOJwJHctKMFUXe4QZbn9fR2MaBYjP2119+w==", "dependencies": { - "@smithy/config-resolver": "^2.0.10", - "@smithy/credential-provider-imds": "^2.0.12", - "@smithy/node-config-provider": "^2.0.12", - "@smithy/property-provider": "^2.0.10", - "@smithy/smithy-client": "^2.1.6", - "@smithy/types": "^2.3.3", + "@smithy/node-config-provider": "^2.1.9", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { - "node": ">= 10.0.0" + "node": ">= 14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-hex-encoding": { + "node_modules/@smithy/util-hex-encoding": { "version": "2.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.0.0.tgz", + "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", "dependencies": { "tslib": "^2.5.0" }, @@ -4515,49 +5156,53 @@ "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-middleware": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@smithy/util-middleware": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-2.0.9.tgz", + "integrity": "sha512-PnCnBJ07noMX1lMDTEefmxSlusWJUiLfrme++MfK5TD0xz8NYmakgoXy5zkF/16zKGmiwOeKAztWT/Vjk1KRIQ==", "dependencies": { - "@smithy/types": "^2.3.3", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-retry": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/@smithy/util-retry": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-2.0.9.tgz", + "integrity": "sha512-46BFWe9RqB6g7f4mxm3W3HlqknqQQmWHKlhoqSFZuGNuiDU5KqmpebMbvC3tjTlUkqn4xa2Z7s3Hwb0HNs5scw==", "dependencies": { - "@smithy/service-error-classification": "^2.0.2", - "@smithy/types": "^2.3.3", + "@smithy/service-error-classification": "^2.0.9", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">= 14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-stream": { - "version": "2.0.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/fetch-http-handler": "^2.1.5", - "@smithy/node-http-handler": "^2.1.5", - "@smithy/types": "^2.3.3", - "@smithy/util-base64": "^2.0.0", + "node_modules/@smithy/util-stream": { + "version": "2.0.24", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-2.0.24.tgz", + "integrity": "sha512-hRpbcRrOxDriMVmbya+Mv77VZVupxRAsfxVDKS54XuiURhdiwCUXJP0X1iJhHinuUf6n8pBF0MkG9C8VooMnWw==", + "dependencies": { + "@smithy/fetch-http-handler": "^2.3.2", + "@smithy/node-http-handler": "^2.2.2", + "@smithy/types": "^2.8.0", + "@smithy/util-base64": "^2.0.1", "@smithy/util-buffer-from": "^2.0.0", "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/util-utf8": "^2.0.2", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-uri-escape": { + "node_modules/@smithy/util-uri-escape": { "version": "2.0.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-2.0.0.tgz", + "integrity": "sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==", "dependencies": { "tslib": "^2.5.0" }, @@ -4565,9 +5210,10 @@ "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/util-utf8": { - "version": "2.0.0", - "license": "Apache-2.0", + "node_modules/@smithy/util-utf8": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.0.2.tgz", + "integrity": "sha512-qOiVORSPm6Ce4/Yu6hbSgNHABLP2VMv8QOC3tTDNHHlWY19pPyc++fBTbZPtx6egPXi4HQxKDnMxVxpbtX2GoA==", "dependencies": { "@smithy/util-buffer-from": "^2.0.0", "tslib": "^2.5.0" @@ -4576,3555 +5222,1242 @@ "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/@aws-sdk/types": { - "version": "3.370.0", - "license": "Apache-2.0", + "node_modules/@smithy/util-waiter": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-2.0.16.tgz", + "integrity": "sha512-5i4YONHQ6HoUWDd+X0frpxTXxSXgJhUFl+z0iMy/zpUmVeCQY2or3Vss6DzHKKMMQL4pmVHpQm9WayHDorFdZg==", "dependencies": { - "@smithy/types": "^1.1.0", + "@smithy/abort-controller": "^2.0.16", + "@smithy/types": "^2.8.0", "tslib": "^2.5.0" }, "engines": { "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/util-arn-parser": { - "version": "3.310.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true }, - "node_modules/@aws-sdk/util-base64": { - "version": "3.310.0", - "license": "Apache-2.0", + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/@types/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==", "dependencies": { - "@aws-sdk/util-buffer-from": "3.310.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@types/node": "*" } }, - "node_modules/@aws-sdk/util-buffer-from": { - "version": "3.310.0", - "license": "Apache-2.0", + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, "dependencies": { - "@aws-sdk/is-array-buffer": "3.310.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" } }, - "node_modules/@aws-sdk/util-endpoints": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.413.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@babel/types": "^7.0.0" } }, - "node_modules/@aws-sdk/util-endpoints/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "node_modules/@aws-sdk/util-endpoints/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@types/babel__traverse": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", + "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@babel/types": "^7.20.7" } }, - "node_modules/@aws-sdk/util-locate-window": { - "version": "3.310.0", - "license": "Apache-2.0", + "node_modules/@types/body-parser": { + "version": "1.19.5", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", + "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@types/connect": "*", + "@types/node": "*" } }, - "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/types": "^2.3.1", - "bowser": "^2.11.0", - "tslib": "^2.5.0" + "@types/node": "*" } }, - "node_modules/@aws-sdk/util-user-agent-browser/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@types/content-disposition": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/@types/content-disposition/-/content-disposition-0.5.8.tgz", + "integrity": "sha512-QVSSvno3dE0MgO76pJhmv4Qyi/j0Yk9pBp0Y7TJ2Tlj+KCgJWY6qX7nnxCOLkZ3VYRSIk1WTxCvwUSdx6CCLdg==" + }, + "node_modules/@types/cookies": { + "version": "0.7.10", + "resolved": "https://registry.npmjs.org/@types/cookies/-/cookies-0.7.10.tgz", + "integrity": "sha512-hmUCjAk2fwZVPPkkPBcI7jGLIR5mg4OVoNMBwU6aVsMm/iNPY7z9/R+x2fSwLt/ZXoGua6C5Zy2k5xOo9jUyhQ==", "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@types/connect": "*", + "@types/express": "*", + "@types/keygrip": "*", + "@types/node": "*" } }, - "node_modules/@aws-sdk/util-user-agent-browser/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@types/express": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", + "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" } }, - "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@types/express-serve-static-core": { + "version": "4.17.41", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.41.tgz", + "integrity": "sha512-OaJ7XLaelTgrvlZD8/aa0vvvxZdUmlCn6MtWeB7TkiKW70BQLc9XEPpDLPdbo52ZhXUCrznlWdCHWxJWtdyajA==", "dependencies": { - "@aws-sdk/types": "3.413.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" } }, - "node_modules/@aws-sdk/util-user-agent-node/node_modules/@aws-sdk/types": { - "version": "3.413.0", - "license": "Apache-2.0", + "node_modules/@types/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-IyNhGHu71jH1jCXTHmafuoAAdsbBON3kDh7u/UUhLmjYgN5TYB54e1R8ckTCiIevl2UuZaCsi9XRxineY5yUjw==", + "deprecated": "This is a stub types definition. fast-json-stable-stringify provides its own type definitions, so you do not need this installed.", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "fast-json-stable-stringify": "*" } }, - "node_modules/@aws-sdk/util-user-agent-node/node_modules/@smithy/node-config-provider": { - "version": "2.0.12", - "license": "Apache-2.0", + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^2.0.10", - "@smithy/shared-ini-file-loader": "^2.0.11", - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@types/node": "*" } }, - "node_modules/@aws-sdk/util-user-agent-node/node_modules/@smithy/property-provider": { - "version": "2.0.10", - "license": "Apache-2.0", + "node_modules/@types/http-assert": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@types/http-assert/-/http-assert-1.5.5.tgz", + "integrity": "sha512-4+tE/lwdAahgZT1g30Jkdm9PzFRde0xwxBNUyRsCitRvCQB90iuA2uJYdUnhnANRcqGXaWOGY4FEoxeElNAK2g==" + }, + "node_modules/@types/http-errors": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", + "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==" + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@types/istanbul-lib-coverage": "*" } }, - "node_modules/@aws-sdk/util-user-agent-node/node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.11", - "license": "Apache-2.0", + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.3", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@types/istanbul-lib-report": "*" } }, - "node_modules/@aws-sdk/util-user-agent-node/node_modules/@smithy/types": { - "version": "2.3.3", - "license": "Apache-2.0", + "node_modules/@types/jest": { + "version": "29.5.11", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.11.tgz", + "integrity": "sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==", + "dev": true, "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "expect": "^29.0.0", + "pretty-format": "^29.0.0" } }, - "node_modules/@aws-sdk/util-utf8": { - "version": "3.310.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/util-buffer-from": "3.310.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/keygrip": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/keygrip/-/keygrip-1.0.6.tgz", + "integrity": "sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ==" + }, + "node_modules/@types/koa": { + "version": "2.13.12", + "resolved": "https://registry.npmjs.org/@types/koa/-/koa-2.13.12.tgz", + "integrity": "sha512-vAo1KuDSYWFDB4Cs80CHvfmzSQWeUb909aQib0C0aFx4sw0K9UZFz2m5jaEP+b3X1+yr904iQiruS0hXi31jbw==", + "dependencies": { + "@types/accepts": "*", + "@types/content-disposition": "*", + "@types/cookies": "*", + "@types/http-assert": "*", + "@types/http-errors": "*", + "@types/keygrip": "*", + "@types/koa-compose": "*", + "@types/node": "*" } }, - "node_modules/@aws-sdk/util-utf8-browser": { - "version": "3.259.0", - "license": "Apache-2.0", + "node_modules/@types/koa-bodyparser": { + "version": "4.3.12", + "resolved": "https://registry.npmjs.org/@types/koa-bodyparser/-/koa-bodyparser-4.3.12.tgz", + "integrity": "sha512-hKMmRMVP889gPIdLZmmtou/BijaU1tHPyMNmcK7FAHAdATnRcGQQy78EqTTxLH1D4FTsrxIzklAQCso9oGoebQ==", + "dev": true, "dependencies": { - "tslib": "^2.3.1" + "@types/koa": "*" } }, - "node_modules/@aws-sdk/xml-builder": { - "version": "3.310.0", - "license": "Apache-2.0", + "node_modules/@types/koa-compose": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@types/koa-compose/-/koa-compose-3.2.8.tgz", + "integrity": "sha512-4Olc63RY+MKvxMwVknCUDhRQX1pFQoBZ/lXcRLP69PQkEpze/0cr8LNqJQe5NFb/b19DWi2a5bTi2VAlQzhJuA==", "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "@types/koa": "*" } }, - "node_modules/@babel/code-frame": { - "version": "7.22.5", - "license": "MIT", + "node_modules/@types/lodash": { + "version": "4.14.202", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", + "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", + "dev": true + }, + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==" + }, + "node_modules/@types/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.10.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.7.tgz", + "integrity": "sha512-fRbIKb8C/Y2lXxB5eVMj4IU7xpdox0Lh8bUPEdtLysaylsml1hOOx1+STloRs/B9nf7C6kPRmmg/V7aQW7usNg==", "dependencies": { - "@babel/highlight": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" + "undici-types": "~5.26.4" } }, - "node_modules/@babel/compat-data": { - "version": "7.22.6", + "node_modules/@types/normalize-package-data": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", + "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==" + }, + "node_modules/@types/qs": { + "version": "6.9.11", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.11.tgz", + "integrity": "sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==" + }, + "node_modules/@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true + }, + "node_modules/@types/send": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", + "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.5.tgz", + "integrity": "sha512-PDRk21MnK70hja/YF8AHfC7yIsiQHn1rcXx7ijCFBX/k+XQJhQT/gw3xekXKJvx+5SXaMMS8oqQy09Mzvz2TuQ==", + "dependencies": { + "@types/http-errors": "*", + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/triple-beam": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.5.tgz", + "integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==" + }, + "node_modules/@types/yargs": { + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" + "dependencies": { + "@types/yargs-parser": "*" } }, - "node_modules/@babel/core": { - "version": "7.22.6", + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", "dev": true, - "license": "MIT", "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helpers": "^7.22.6", - "@babel/parser": "^7.22.6", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.6", - "@babel/types": "^7.22.5", - "@nicolo-ribaudo/semver-v6": "^6.3.3", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2" + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" }, "engines": { - "node": ">=6.9.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/babel" + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@babel/generator": { - "version": "7.22.5", + "node_modules/@typescript-eslint/parser": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "debug": "^4.3.4" }, "engines": { - "node": ">=6.9.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", "dev": true, - "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" }, "engines": { - "node": ">=6.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.6", + "node_modules/@typescript-eslint/type-utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-validator-option": "^7.22.5", - "@nicolo-ribaudo/semver-v6": "^6.3.3", - "browserslist": "^4.21.9", - "lru-cache": "^5.1.1" + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" }, "engines": { - "node": ">=6.9.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@babel/core": "^7.0.0" + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.5", + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@babel/helper-function-name": { - "version": "7.22.5", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/template": "^7.22.5", - "@babel/types": "^7.22.5" + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" }, "engines": { - "node": ">=6.9.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" }, "engines": { - "node": ">=6.9.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/@babel/helper-module-imports": { - "version": "7.22.5", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" }, "engines": { - "node": ">=6.9.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.22.5", - "dev": true, - "license": "MIT", + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dependencies": { - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-module-imports": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.5", - "@babel/types": "^7.22.5" + "mime-types": "~2.1.34", + "negotiator": "0.6.3" }, "engines": { - "node": ">=6.9.0" + "node": ">= 0.6" } }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, - "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, "engines": { - "node": ">=6.9.0" + "node": ">=0.4.0" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", + "node_modules/acorn-walk": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.1.tgz", + "integrity": "sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.5", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.22.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.22.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.6", - "@babel/types": "^7.22.5" - }, "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.22.5", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" + "node": ">=0.4.0" } }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } + "node_modules/add-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz", + "integrity": "sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==", + "dev": true }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "debug": "4" }, "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" + "node": ">= 6.0.0" } }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "license": "MIT", + "node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.22.6", - "dev": true, - "license": "MIT", - "bin": { - "parser": "bin/babel-parser.js" + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" }, - "engines": { - "node": ">=6.0.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, + "node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "ajv": "^8.5.0" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "peerDependenciesMeta": { + "ajv": { + "optional": true + } } }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "dev": true, - "license": "MIT", + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" + "ajv": "^8.0.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "ajv": "^8.0.0" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "peerDependenciesMeta": { + "ajv": { + "optional": true + } } }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", + "node_modules/ansi-align": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", + "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "string-width": "^4.1.0" } }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.22.5", + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "type-fest": "^0.21.3" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "node": ">=8" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, "engines": { - "node": ">=6.9.0" + "node": ">=10" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.22.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=8" } }, - "node_modules/@babel/template": { - "version": "7.22.5", - "dev": true, - "license": "MIT", + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dependencies": { - "@babel/code-frame": "^7.22.5", - "@babel/parser": "^7.22.5", - "@babel/types": "^7.22.5" + "color-convert": "^1.9.0" }, "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.22.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.22.6", - "@babel/types": "^7.22.5", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/types": { - "version": "7.22.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@bugsnag/browser": { - "version": "7.20.2", - "license": "MIT", - "dependencies": { - "@bugsnag/core": "^7.19.0" - } - }, - "node_modules/@bugsnag/core": { - "version": "7.19.0", - "license": "MIT", - "dependencies": { - "@bugsnag/cuid": "^3.0.0", - "@bugsnag/safe-json-stringify": "^6.0.0", - "error-stack-parser": "^2.0.3", - "iserror": "0.0.2", - "stack-generator": "^2.0.3" - } - }, - "node_modules/@bugsnag/cuid": { - "version": "3.0.2", - "license": "MIT" - }, - "node_modules/@bugsnag/js": { - "version": "7.20.2", - "license": "MIT", - "dependencies": { - "@bugsnag/browser": "^7.20.2", - "@bugsnag/node": "^7.19.0" - } - }, - "node_modules/@bugsnag/node": { - "version": "7.19.0", - "license": "MIT", - "dependencies": { - "@bugsnag/core": "^7.19.0", - "byline": "^5.0.0", - "error-stack-parser": "^2.0.2", - "iserror": "^0.0.2", - "pump": "^3.0.0", - "stack-generator": "^2.0.3" - } - }, - "node_modules/@bugsnag/safe-json-stringify": { - "version": "6.0.0", - "license": "MIT" - }, - "node_modules/@colors/colors": { - "version": "1.5.0", - "license": "MIT", - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/@commitlint/cli": { - "version": "17.6.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/format": "^17.4.4", - "@commitlint/lint": "^17.6.6", - "@commitlint/load": "^17.5.0", - "@commitlint/read": "^17.5.1", - "@commitlint/types": "^17.4.4", - "execa": "^5.0.0", - "lodash.isfunction": "^3.0.9", - "resolve-from": "5.0.0", - "resolve-global": "1.0.0", - "yargs": "^17.0.0" - }, - "bin": { - "commitlint": "cli.js" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/config-conventional": { - "version": "17.6.5", - "dev": true, - "license": "MIT", - "dependencies": { - "conventional-changelog-conventionalcommits": "^5.0.0" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/config-conventional/node_modules/conventional-changelog-conventionalcommits": { - "version": "5.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "compare-func": "^2.0.0", - "lodash": "^4.17.15", - "q": "^1.5.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@commitlint/config-validator": { - "version": "17.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^17.4.4", - "ajv": "^8.11.0" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/ensure": { - "version": "17.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^17.4.4", - "lodash.camelcase": "^4.3.0", - "lodash.kebabcase": "^4.1.1", - "lodash.snakecase": "^4.1.1", - "lodash.startcase": "^4.4.0", - "lodash.upperfirst": "^4.3.1" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/execute-rule": { - "version": "17.4.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/format": { - "version": "17.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^17.4.4", - "chalk": "^4.1.0" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/is-ignored": { - "version": "17.6.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^17.4.4", - "semver": "7.5.2" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/is-ignored/node_modules/lru-cache": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@commitlint/is-ignored/node_modules/semver": { - "version": "7.5.2", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@commitlint/is-ignored/node_modules/yallist": { - "version": "4.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/@commitlint/lint": { - "version": "17.6.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/is-ignored": "^17.6.6", - "@commitlint/parse": "^17.6.5", - "@commitlint/rules": "^17.6.5", - "@commitlint/types": "^17.4.4" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/load": { - "version": "17.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/config-validator": "^17.4.4", - "@commitlint/execute-rule": "^17.4.0", - "@commitlint/resolve-extends": "^17.4.4", - "@commitlint/types": "^17.4.4", - "@types/node": "*", - "chalk": "^4.1.0", - "cosmiconfig": "^8.0.0", - "cosmiconfig-typescript-loader": "^4.0.0", - "lodash.isplainobject": "^4.0.6", - "lodash.merge": "^4.6.2", - "lodash.uniq": "^4.5.0", - "resolve-from": "^5.0.0", - "ts-node": "^10.8.1", - "typescript": "^4.6.4 || ^5.0.0" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/message": { - "version": "17.4.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/parse": { - "version": "17.6.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^17.4.4", - "conventional-changelog-angular": "^5.0.11", - "conventional-commits-parser": "^3.2.2" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/read": { - "version": "17.5.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/top-level": "^17.4.0", - "@commitlint/types": "^17.4.4", - "fs-extra": "^11.0.0", - "git-raw-commits": "^2.0.11", - "minimist": "^1.2.6" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/read/node_modules/fs-extra": { - "version": "11.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/@commitlint/resolve-extends": { - "version": "17.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/config-validator": "^17.4.4", - "@commitlint/types": "^17.4.4", - "import-fresh": "^3.0.0", - "lodash.mergewith": "^4.6.2", - "resolve-from": "^5.0.0", - "resolve-global": "^1.0.0" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/rules": { - "version": "17.6.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/ensure": "^17.4.4", - "@commitlint/message": "^17.4.2", - "@commitlint/to-lines": "^17.4.0", - "@commitlint/types": "^17.4.4", - "execa": "^5.0.0" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/to-lines": { - "version": "17.4.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/top-level": { - "version": "17.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^5.0.0" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@commitlint/types": { - "version": "17.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.1.0" - }, - "engines": { - "node": ">=v14" - } - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@dabh/diagnostics": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "colorspace": "1.1.x", - "enabled": "2.0.x", - "kuler": "^2.0.0" - } - }, - "node_modules/@datadog/pprof": { - "version": "3.1.0", - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "delay": "^5.0.0", - "node-gyp-build": "<4.0", - "p-limit": "^3.1.0", - "pprof-format": "^2.0.7", - "source-map": "^0.7.4" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@datadog/pprof/node_modules/source-map": { - "version": "0.7.4", - "license": "BSD-3-Clause", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@dependents/detective-less": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "gonzales-pe": "^4.3.0", - "node-source-walk": "^5.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@dependents/detective-less/node_modules/node-source-walk": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@digitalroute/cz-conventional-changelog-for-jira": { - "version": "8.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "boxen": "^5.1.2", - "chalk": "^2.4.1", - "commitizen": "^4.2.6", - "cz-conventional-changelog": "^3.3.0", - "inquirer": "^8.2.4", - "lodash.map": "^4.5.1", - "longest": "^2.0.1", - "right-pad": "^1.0.1", - "word-wrap": "^1.0.3" - }, - "engines": { - "node": ">= 10" - }, - "optionalDependencies": { - "@commitlint/load": ">6.1.1" - } - }, - "node_modules/@digitalroute/cz-conventional-changelog-for-jira/node_modules/ansi-styles": { - "version": "3.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@digitalroute/cz-conventional-changelog-for-jira/node_modules/chalk": { - "version": "2.4.2", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@digitalroute/cz-conventional-changelog-for-jira/node_modules/color-convert": { - "version": "1.9.3", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@digitalroute/cz-conventional-changelog-for-jira/node_modules/color-name": { - "version": "1.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@digitalroute/cz-conventional-changelog-for-jira/node_modules/has-flag": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/@digitalroute/cz-conventional-changelog-for-jira/node_modules/supports-color": { - "version": "5.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.4.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.5.2", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/ajv": { - "version": "6.12.6", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { - "version": "0.4.1", - "dev": true, - "license": "MIT" - }, - "node_modules/@eslint/js": { - "version": "8.41.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@ewoudenberg/difflib": { - "version": "0.1.0", - "dependencies": { - "heap": ">= 0.2.0" - } - }, - "node_modules/@hapi/hoek": { - "version": "9.3.0", - "license": "BSD-3-Clause" - }, - "node_modules/@hapi/topo": { - "version": "5.1.0", - "license": "BSD-3-Clause", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.8", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/@hutson/parse-repository-url": { - "version": "3.0.2", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@ioredis/commands": { - "version": "1.2.0", - "license": "MIT" - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "dev": true, - "license": "ISC", - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "dev": true, - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.14.1", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.0", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.6.0", - "jest-util": "^29.6.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/core": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/console": "^29.6.0", - "@jest/reporters": "^29.6.0", - "@jest/test-result": "^29.6.0", - "@jest/transform": "^29.6.0", - "@jest/types": "^29.6.0", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.5.0", - "jest-config": "^29.6.0", - "jest-haste-map": "^29.6.0", - "jest-message-util": "^29.6.0", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.0", - "jest-resolve-dependencies": "^29.6.0", - "jest-runner": "^29.6.0", - "jest-runtime": "^29.6.0", - "jest-snapshot": "^29.6.0", - "jest-util": "^29.6.0", - "jest-validate": "^29.6.0", - "jest-watcher": "^29.6.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.6.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/environment": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/fake-timers": "^29.6.0", - "@jest/types": "^29.6.0", - "@types/node": "*", - "jest-mock": "^29.6.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "expect": "^29.6.0", - "jest-snapshot": "^29.6.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect-utils": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "jest-get-type": "^29.4.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.0", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.6.0", - "jest-mock": "^29.6.0", - "jest-util": "^29.6.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/globals": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.6.0", - "@jest/expect": "^29.6.0", - "@jest/types": "^29.6.0", - "jest-mock": "^29.6.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/reporters": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.6.0", - "@jest/test-result": "^29.6.0", - "@jest/transform": "^29.6.0", - "@jest/types": "^29.6.0", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.6.0", - "jest-util": "^29.6.0", - "jest-worker": "^29.6.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/reporters/node_modules/glob": { - "version": "7.2.3", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/source-map": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-result": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/console": "^29.6.0", - "@jest/types": "^29.6.0", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-sequencer": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/test-result": "^29.6.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.0", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.0", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.6.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform/node_modules/convert-source-map": { - "version": "2.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@jest/transform/node_modules/write-file-atomic": { - "version": "4.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/@jest/types": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.0", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.18", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "node_modules/@jsdevtools/ono": { - "version": "7.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@koa/router": { - "version": "12.0.0", - "license": "MIT", - "dependencies": { - "http-errors": "^2.0.0", - "koa-compose": "^4.1.0", - "methods": "^1.1.2", - "path-to-regexp": "^6.2.1" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/@koa/router/node_modules/http-errors": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@koa/router/node_modules/statuses": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@mapbox/node-pre-gyp": { - "version": "1.0.11", - "license": "BSD-3-Clause", - "dependencies": { - "detect-libc": "^2.0.0", - "https-proxy-agent": "^5.0.0", - "make-dir": "^3.1.0", - "node-fetch": "^2.6.7", - "nopt": "^5.0.0", - "npmlog": "^5.0.1", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.11" - }, - "bin": { - "node-pre-gyp": "bin/node-pre-gyp" - } - }, - "node_modules/@ndhoule/extend": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/@nicolo-ribaudo/semver-v6": { - "version": "6.3.3", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "license": "BSD-3-Clause", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "node_modules/@pyroscope/nodejs": { - "version": "0.2.6", - "license": "Apache-2.0", - "dependencies": { - "axios": "^0.26.1", - "debug": "^4.3.3", - "form-data": "^4.0.0", - "pprof": "^3.2.0", - "regenerator-runtime": "^0.13.11", - "source-map": "^0.7.3" - }, - "engines": { - "node": "^12.20.0 || >=14.13.1" - } - }, - "node_modules/@pyroscope/nodejs/node_modules/axios": { - "version": "0.26.1", - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.14.8" - } - }, - "node_modules/@pyroscope/nodejs/node_modules/source-map": { - "version": "0.7.4", - "license": "BSD-3-Clause", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@rudderstack/integrations-lib": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/@rudderstack/integrations-lib/-/integrations-lib-0.1.8.tgz", - "integrity": "sha512-f8GX78RFma3XAWPNEI6QjGk4avbE8r9aspHNaYE+YyRKsJGWrl8gw/k+Jso36C0juOGas79GWPSiypbXLu8Q/g==", - "dependencies": { - "@rudderstack/workflow-engine": "^0.5.7", - "axios": "^1.4.0", - "axios-mock-adapter": "^1.22.0", - "crypto": "^1.0.1", - "get-value": "^3.0.1", - "handlebars": "^4.7.8", - "lodash": "^4.17.21", - "moment": "^2.29.4", - "moment-timezone": "^0.5.43", - "set-value": "^4.1.0", - "sha256": "^0.2.0", - "tslib": "^2.4.0" - } - }, - "node_modules/@rudderstack/integrations-lib/node_modules/@aws-crypto/sha256-js": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-4.0.0.tgz", - "integrity": "sha512-MHGJyjE7TX9aaqXj7zk2ppnFUOhaDs5sP+HtNS0evOxn72c+5njUmyJmpGd7TfyoDznZlHMmdo/xGUdu2NIjNQ==", - "dependencies": { - "@aws-crypto/util": "^4.0.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@rudderstack/integrations-lib/node_modules/@aws-crypto/sha256-js/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@rudderstack/integrations-lib/node_modules/@aws-crypto/util": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-4.0.0.tgz", - "integrity": "sha512-2EnmPy2gsFZ6m8bwUQN4jq+IyXV3quHAcwPOS6ZA3k+geujiqI8aRokO2kFJe+idJ/P3v4qWI186rVMo0+zLDQ==", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@rudderstack/integrations-lib/node_modules/@aws-crypto/util/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@rudderstack/integrations-lib/node_modules/@rudderstack/json-template-engine": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/@rudderstack/json-template-engine/-/json-template-engine-0.5.5.tgz", - "integrity": "sha512-p3HdTqgZiJjjZmjaHN2paa1e87ifGE5UjkA4zdvge4bBzJbKKMQNWqRg6I96SwoA+hsxNkW/f9R83SPLU9t7LA==" - }, - "node_modules/@rudderstack/integrations-lib/node_modules/@rudderstack/workflow-engine": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/@rudderstack/workflow-engine/-/workflow-engine-0.5.8.tgz", - "integrity": "sha512-H1aCowYqTnOoqJtL9cGDhdhoGNl+KzqmVbSjFmE7n75onZaIMs87+HQyW08jYxS9l1Uo4TL8SAvzFICqFqkBbw==", - "dependencies": { - "@aws-crypto/sha256-js": "^4.0.0", - "@rudderstack/json-template-engine": "^0.5.5", - "js-yaml": "^4.1.0", - "jsonata": "^2.0.3", - "lodash": "^4.17.21", - "object-sizeof": "^2.6.3" - } - }, - "node_modules/@rudderstack/json-template-engine": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/@rudderstack/json-template-engine/-/json-template-engine-0.8.2.tgz", - "integrity": "sha512-9oMBnqgNuwiXd7MUlNOAchCnJXQAy6w6XGmDqDM6iXdYDkvqYFiq7sbg5j4SdtpTTST293hahREr5PXfFVzVKg==" - }, - "node_modules/@rudderstack/workflow-engine": { - "version": "0.6.9", - "resolved": "https://registry.npmjs.org/@rudderstack/workflow-engine/-/workflow-engine-0.6.9.tgz", - "integrity": "sha512-b0ZHURJfCj2REIL/w7AJgJ+K5BGwIVX3sRDZQqN3F4YWcZX3ZYUXo7gtUeb99FLnZzm7KuThIWR02Fxwos+L4Q==", - "dependencies": { - "@aws-crypto/sha256-js": "^5.0.0", - "@rudderstack/json-template-engine": "^0.8.1", - "jsonata": "^2.0.3", - "lodash": "^4.17.21", - "object-sizeof": "^2.6.3", - "yaml": "^2.3.2" - } - }, - "node_modules/@rudderstack/workflow-engine/node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", - "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", - "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@rudderstack/workflow-engine/node_modules/@aws-crypto/util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", - "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@rudderstack/workflow-engine/node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.0.0.tgz", - "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@rudderstack/workflow-engine/node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.0.0.tgz", - "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", - "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@rudderstack/workflow-engine/node_modules/@smithy/util-utf8": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.0.2.tgz", - "integrity": "sha512-qOiVORSPm6Ce4/Yu6hbSgNHABLP2VMv8QOC3tTDNHHlWY19pPyc++fBTbZPtx6egPXi4HQxKDnMxVxpbtX2GoA==", - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@sideway/address": { - "version": "4.1.4", - "license": "BSD-3-Clause", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@sideway/formula": { - "version": "3.0.1", - "license": "BSD-3-Clause" - }, - "node_modules/@sideway/pinpoint": { - "version": "2.0.0", - "license": "BSD-3-Clause" - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "dev": true, - "license": "MIT" - }, - "node_modules/@sindresorhus/is": { - "version": "0.7.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/@sinonjs/commons": { - "version": "3.0.0", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@sinonjs/commons": "^3.0.0" - } - }, - "node_modules/@smithy/abort-controller": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/config-resolver": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "@smithy/util-config-provider": "^1.0.1", - "@smithy/util-middleware": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/credential-provider-imds": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^1.0.1", - "@smithy/property-provider": "^1.0.1", - "@smithy/types": "^1.1.0", - "@smithy/url-parser": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/eventstream-codec": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@smithy/types": "^1.1.0", - "@smithy/util-hex-encoding": "^1.0.1", - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/eventstream-serde-browser": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/eventstream-serde-universal": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/eventstream-serde-node": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/eventstream-serde-universal": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/eventstream-serde-universal": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/eventstream-codec": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/fetch-http-handler": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^1.1.0", - "@smithy/querystring-builder": "^1.0.1", - "@smithy/types": "^1.1.0", - "@smithy/util-base64": "^1.0.1", - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/hash-node": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "@smithy/util-buffer-from": "^1.0.1", - "@smithy/util-utf8": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/invalid-dependency": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/is-array-buffer": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-content-length": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^1.1.0", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-endpoint": { - "version": "1.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-serde": "^1.0.1", - "@smithy/types": "^1.1.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-middleware": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-retry": { - "version": "1.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^1.1.0", - "@smithy/service-error-classification": "^1.0.2", - "@smithy/types": "^1.1.0", - "@smithy/util-middleware": "^1.0.1", - "@smithy/util-retry": "^1.0.3", - "tslib": "^2.5.0", - "uuid": "^8.3.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-retry/node_modules/uuid": { - "version": "8.3.2", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/@smithy/middleware-serde": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-stack": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/node-config-provider": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^1.0.1", - "@smithy/shared-ini-file-loader": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/node-http-handler": { - "version": "1.0.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/abort-controller": "^1.0.1", - "@smithy/protocol-http": "^1.1.0", - "@smithy/querystring-builder": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/property-provider": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/protocol-http": { - "version": "1.1.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/querystring-builder": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "@smithy/util-uri-escape": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/querystring-parser": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/service-error-classification": { - "version": "1.0.2", - "license": "Apache-2.0", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/shared-ini-file-loader": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/signature-v4": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/eventstream-codec": "^1.0.1", - "@smithy/is-array-buffer": "^1.0.1", - "@smithy/types": "^1.1.0", - "@smithy/util-hex-encoding": "^1.0.1", - "@smithy/util-middleware": "^1.0.1", - "@smithy/util-uri-escape": "^1.0.1", - "@smithy/util-utf8": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/smithy-client": { - "version": "1.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-stack": "^1.0.1", - "@smithy/types": "^1.1.0", - "@smithy/util-stream": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/types": { - "version": "1.1.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/url-parser": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/util-base64": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-body-length-browser": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/util-body-length-node": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-buffer-from": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-config-provider": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-defaults-mode-browser": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^1.0.1", - "@smithy/types": "^1.1.0", - "bowser": "^2.11.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@smithy/util-defaults-mode-node": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/config-resolver": "^1.0.1", - "@smithy/credential-provider-imds": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/property-provider": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@smithy/util-hex-encoding": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-middleware": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-retry": { - "version": "1.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/service-error-classification": "^1.0.2", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/@smithy/util-stream": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/node-http-handler": "^1.0.2", - "@smithy/types": "^1.1.0", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-buffer-from": "^1.0.1", - "@smithy/util-hex-encoding": "^1.0.1", - "@smithy/util-utf8": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-uri-escape": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-utf8": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^1.0.1", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-waiter": { - "version": "1.0.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/abort-controller": "^1.0.1", - "@smithy/types": "^1.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/accepts": { - "version": "1.3.5", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/babel__core": { - "version": "7.1.20", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.18.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.3.0" - } - }, - "node_modules/@types/body-parser": { - "version": "1.19.2", - "license": "MIT", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.35", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/content-disposition": { - "version": "0.5.5", - "license": "MIT" - }, - "node_modules/@types/cookies": { - "version": "0.7.7", - "license": "MIT", - "dependencies": { - "@types/connect": "*", - "@types/express": "*", - "@types/keygrip": "*", - "@types/node": "*" - } - }, - "node_modules/@types/express": { - "version": "4.17.17", - "license": "MIT", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "4.17.35", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@types/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-IyNhGHu71jH1jCXTHmafuoAAdsbBON3kDh7u/UUhLmjYgN5TYB54e1R8ckTCiIevl2UuZaCsi9XRxineY5yUjw==", - "deprecated": "This is a stub types definition. fast-json-stable-stringify provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "fast-json-stable-stringify": "*" - } - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/http-assert": { - "version": "1.5.3", - "license": "MIT" - }, - "node_modules/@types/http-errors": { - "version": "2.0.1", - "license": "MIT" - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "29.5.1", - "dev": true, - "license": "MIT", - "dependencies": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.12", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/keygrip": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/@types/koa": { - "version": "2.13.6", - "license": "MIT", - "dependencies": { - "@types/accepts": "*", - "@types/content-disposition": "*", - "@types/cookies": "*", - "@types/http-assert": "*", - "@types/http-errors": "*", - "@types/keygrip": "*", - "@types/koa-compose": "*", - "@types/node": "*" - } - }, - "node_modules/@types/koa-bodyparser": { - "version": "4.3.10", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/koa": "*" - } - }, - "node_modules/@types/koa-compose": { - "version": "3.2.5", - "license": "MIT", - "dependencies": { - "@types/koa": "*" - } - }, - "node_modules/@types/lodash": { - "version": "4.14.197", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/mime": { - "version": "1.3.2", - "license": "MIT" - }, - "node_modules/@types/minimist": { - "version": "1.2.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "20.2.5", - "license": "MIT" - }, - "node_modules/@types/normalize-package-data": { - "version": "2.4.1", - "license": "MIT" - }, - "node_modules/@types/prettier": { - "version": "2.7.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/qs": { - "version": "6.9.7", - "license": "MIT" - }, - "node_modules/@types/range-parser": { - "version": "1.2.4", - "license": "MIT" - }, - "node_modules/@types/semver": { - "version": "7.5.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/send": { - "version": "0.17.1", - "license": "MIT", - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.1", - "license": "MIT", - "dependencies": { - "@types/mime": "*", - "@types/node": "*" - } - }, - "node_modules/@types/stack-utils": { - "version": "2.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/yargs": { - "version": "17.0.23", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.61.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.61.0", - "@typescript-eslint/type-utils": "5.61.0", - "@typescript-eslint/utils": "5.61.0", - "debug": "^4.3.4", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=4" } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { - "version": "5.61.0", + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.61.0", - "@typescript-eslint/visitor-keys": "5.61.0" + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 8" + } + }, + "node_modules/app-module-path": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/app-module-path/-/app-module-path-2.2.0.tgz", + "integrity": "sha512-gkco+qxENJV+8vFcDiiFhuoSvRXb2a/QPqpSoWhVz829VNJfOTnELbBmPmNKFxf3xdNnw4DWCkzkDaavcX/1YQ==", + "dev": true + }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" + }, + "node_modules/are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "engines": { + "node": ">=10" } }, - "node_modules/@typescript-eslint/parser": { - "version": "5.59.2", - "dev": true, - "license": "BSD-2-Clause", + "node_modules/are-we-there-yet/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dependencies": { - "@typescript-eslint/scope-manager": "5.59.2", - "@typescript-eslint/types": "5.59.2", - "@typescript-eslint/typescript-estree": "5.59.2", - "debug": "^4.3.4" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 6" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { - "version": "5.59.2", + "node_modules/array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==", "dev": true, - "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=0.10.0" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { - "version": "5.59.2", + "node_modules/array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", + "dev": true + }, + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "5.59.2", - "@typescript-eslint/visitor-keys": "5.59.2", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.2", + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "5.59.2", - "eslint-visitor-keys": "^3.3.0" - }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=8" } }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.2", + "node_modules/array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.59.2", - "@typescript-eslint/visitor-keys": "5.59.2" + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@typescript-eslint/scope-manager/node_modules/@typescript-eslint/types": { - "version": "5.59.2", + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", "dev": true, - "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@typescript-eslint/scope-manager/node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.2", + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.59.2", - "eslint-visitor-keys": "^3.3.0" + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.61.0", + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "5.61.0", - "@typescript-eslint/utils": "5.61.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@typescript-eslint/types": { - "version": "5.61.0", + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", "dev": true, - "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=0.10.0" } }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.61.0", + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true + }, + "node_modules/ast-module-types": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/ast-module-types/-/ast-module-types-4.0.0.tgz", + "integrity": "sha512-Kd0o8r6CDazJGCRzs8Ivpn0xj19oNKrULhoJFzhGjRsLpekF2zyZs9Ukz+JvZhWD6smszfepakTFhAaYpsI12g==", "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@typescript-eslint/types": "5.61.0", - "@typescript-eslint/visitor-keys": "5.61.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=12.0" } }, - "node_modules/@typescript-eslint/utils": { - "version": "5.61.0", + "node_modules/async": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.61.0", - "@typescript-eslint/types": "5.61.0", - "@typescript-eslint/typescript-estree": "5.61.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "node": ">= 4.0.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { - "version": "5.61.0", + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "5.61.0", - "@typescript-eslint/visitor-keys": "5.61.0" - }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { - "version": "5.1.1", - "dev": true, - "license": "BSD-2-Clause", + "node_modules/await-handler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/await-handler/-/await-handler-1.1.2.tgz", + "integrity": "sha512-dihteGhwbJpT89kVbacWiyKeAZr+En0YGK6pAKQJLR0En9ZxSH2H4TTvfG4bBjzFq9gDAma4y9BrpDns6j5UiQ==" + }, + "node_modules/axios": { + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz", + "integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/axios-mock-adapter": { + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/axios-mock-adapter/-/axios-mock-adapter-1.22.0.tgz", + "integrity": "sha512-dmI0KbkyAhntUR05YY96qg2H6gg0XMl2+qTW0xmYg6Up+BFBAJYRLROMXRdDEL06/Wqwa0TJThAYvFtSFdRCZw==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "is-buffer": "^2.0.5" }, - "engines": { - "node": ">=8.0.0" + "peerDependencies": { + "axios": ">= 0.17.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/estraverse": { - "version": "4.3.0", + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, - "license": "BSD-2-Clause", + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, "engines": { - "node": ">=4.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" } }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.61.0", + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.61.0", - "eslint-visitor-keys": "^3.3.0" + "color-convert": "^2.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=8" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/abbrev": { - "version": "1.1.1", - "license": "ISC" - }, - "node_modules/accepts": { - "version": "1.3.8", - "license": "MIT", + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">= 0.6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/acorn": { - "version": "8.8.2", + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "color-name": "~1.1.4" }, "engines": { - "node": ">=0.4.0" + "node": ">=7.0.0" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/add-stream": { - "version": "1.0.0", + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT" - }, - "node_modules/agent-base": { - "version": "6.0.2", - "license": "MIT", "dependencies": { - "debug": "4" + "has-flag": "^4.0.0" }, "engines": { - "node": ">= 6.0.0" + "node": ">=8" } }, - "node_modules/aggregate-error": { - "version": "3.1.0", + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "license": "MIT", "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/ajv": { - "version": "8.12.0", - "license": "MIT", + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=8" } }, - "node_modules/ajv-draft-04": { - "version": "1.0.0", - "license": "MIT", - "peerDependencies": { - "ajv": "^8.5.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "license": "MIT", + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/ansi-align": { - "version": "3.0.1", + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, - "license": "ISC", "dependencies": { - "string-width": "^4.1.0" + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/ansi-escapes": { - "version": "4.3.2", + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, - "license": "MIT", "dependencies": { - "type-fest": "^0.21.3" + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - } + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "node_modules/ansi-styles": { - "version": "4.3.0", + "node_modules/benchmark-suite": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/benchmark-suite/-/benchmark-suite-0.1.8.tgz", + "integrity": "sha512-UDfWBQfeq/lXcsjuGAanOrX6AhP6HQSsutGS7CfStcbE1loLge7aQr5DT6n8r/4bUoiK+5RYwnogNu5UuTBMNg==", "dev": true, - "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" + "eventemitter3": "^4.0.7", + "expose-gc": "^1.0.0", + "human-format": "^1.0.0", + "pretty-bytes": "^5.6.0", + "stats-accumulator": "^1.1.2" }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/any-promise": { - "version": "1.3.0", - "dev": true, - "license": "MIT" - }, - "node_modules/anymatch": { - "version": "3.1.3", - "dev": true, - "license": "ISC", + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" + "file-uri-to-path": "1.0.0" } }, - "node_modules/app-module-path": { - "version": "2.2.0", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/aproba": { - "version": "2.0.0", - "license": "ISC" + "node_modules/bintrees": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.2.tgz", + "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==" }, - "node_modules/are-we-there-yet": { - "version": "2.0.0", - "license": "ISC", + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=10" + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" } }, - "node_modules/are-we-there-yet/node_modules/readable-stream": { + "node_modules/bl/node_modules/readable-stream": { "version": "3.6.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -8134,638 +6467,786 @@ "node": ">= 6" } }, - "node_modules/arg": { - "version": "4.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "node_modules/array-find-index": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } + "node_modules/boolean": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "dev": true }, - "node_modules/array-ify": { - "version": "1.0.0", - "dev": true, - "license": "MIT" + "node_modules/bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" }, - "node_modules/array-includes": { - "version": "3.1.6", + "node_modules/boxen": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" + "ansi-align": "^3.0.0", + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/array-union": { - "version": "2.1.0", + "node_modules/boxen/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", + "node_modules/boxen/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">= 0.4" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.1", + "node_modules/boxen/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=7.0.0" } }, - "node_modules/arrify": { - "version": "1.0.1", + "node_modules/boxen/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/boxen/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/asap": { - "version": "2.0.6", - "dev": true, - "license": "MIT" - }, - "node_modules/ast-module-types": { - "version": "3.0.0", + "node_modules/boxen/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, "engines": { - "node": ">=6.0" + "node": ">=8" } }, - "node_modules/astral-regex": { - "version": "2.0.0", + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "license": "MIT", + "dependencies": { + "fill-range": "^7.0.1" + }, "engines": { "node": ">=8" } }, - "node_modules/async": { - "version": "3.2.4", - "license": "MIT" + "node_modules/browserslist": { + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", + "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001565", + "electron-to-chromium": "^1.4.601", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } }, - "node_modules/asynckit": { - "version": "0.4.0", - "license": "MIT" + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } }, - "node_modules/at-least-node": { - "version": "1.0.0", + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, - "license": "ISC", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/btoa": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz", + "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==", + "bin": { + "btoa": "bin/btoa.js" + }, "engines": { - "node": ">= 4.0.0" + "node": ">= 0.4.0" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", + "node_modules/buffer": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", + "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", "dev": true, - "license": "MIT", "engines": { - "node": ">= 0.4" + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/await-handler": { - "version": "1.1.2", - "license": "MIT" + "node_modules/byline": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/byline/-/byline-5.0.0.tgz", + "integrity": "sha512-s6webAy+R4SR8XVuJWt2V2rGvhnrhxN+9S15GNuTK3wKPOXFF6RNc+8ug2XhH+2s4f+uudG4kUVYmYOQWL2g0Q==", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/axios": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", - "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" } }, - "node_modules/axios-mock-adapter": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/axios-mock-adapter/-/axios-mock-adapter-1.22.0.tgz", - "integrity": "sha512-dmI0KbkyAhntUR05YY96qg2H6gg0XMl2+qTW0xmYg6Up+BFBAJYRLROMXRdDEL06/Wqwa0TJThAYvFtSFdRCZw==", + "node_modules/cache-content-type": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-content-type/-/cache-content-type-1.0.1.tgz", + "integrity": "sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==", "dependencies": { - "fast-deep-equal": "^3.1.3", - "is-buffer": "^2.0.5" + "mime-types": "^2.1.18", + "ylru": "^1.2.0" }, - "peerDependencies": { - "axios": ">= 0.17.0" + "engines": { + "node": ">= 6.0.0" } }, - "node_modules/axios-mock-adapter/node_modules/is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "node_modules/cacheable-request": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", + "integrity": "sha512-vag0O2LKZ/najSoUwDbVlnlCFvhBE/7mGTY2B5FgCBDcRD+oVV1HYTOwM6JZfMg/hIcM6IwnTZ1uQQL5/X3xIQ==", + "dev": true, + "dependencies": { + "clone-response": "1.0.2", + "get-stream": "3.0.0", + "http-cache-semantics": "3.8.1", + "keyv": "3.0.0", + "lowercase-keys": "1.0.0", + "normalize-url": "2.0.1", + "responselike": "1.0.2" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "dev": true, "engines": { "node": ">=4" } }, - "node_modules/babel-jest": { - "version": "29.6.0", + "node_modules/cacheable-request/node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==", + "dev": true + }, + "node_modules/cacheable-request/node_modules/keyv": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", + "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/transform": "^29.6.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.5.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" + "json-buffer": "3.0.0" } }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", + "node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A==", "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/babel-plugin-jest-hoist": { - "version": "29.5.0", + "node_modules/cachedir": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz", + "integrity": "sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/call-bind": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-me-maybe": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", + "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=6" } }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" + "engines": { + "node": ">=10" }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/babel-preset-jest": { - "version": "29.5.0", + "node_modules/camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", "dev": true, - "license": "MIT", "dependencies": { - "babel-plugin-jest-hoist": "^29.5.0", - "babel-preset-current-node-syntax": "^1.0.0" + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" + "node_modules/camelcase-keys/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } }, - "node_modules/base64-js": { - "version": "1.5.1", + "node_modules/caniuse-lite": { + "version": "1.0.30001576", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001576.tgz", + "integrity": "sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg==", + "dev": true, "funding": [ { - "type": "github", - "url": "https://github.com/sponsors/feross" + "type": "opencollective", + "url": "https://opencollective.com/browserslist" }, { - "type": "patreon", - "url": "https://www.patreon.com/feross" + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" }, { - "type": "consulting", - "url": "https://feross.org/support" + "type": "github", + "url": "https://github.com/sponsors/ai" } - ], - "license": "MIT" + ] }, - "node_modules/benchmark-suite": { - "version": "0.1.8", - "dev": true, - "license": "MIT", + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dependencies": { - "eventemitter3": "^4.0.7", - "expose-gc": "^1.0.0", - "human-format": "^1.0.0", - "pretty-bytes": "^5.6.0", - "stats-accumulator": "^1.1.2" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/bindings": { - "version": "1.5.0", - "license": "MIT", - "dependencies": { - "file-uri-to-path": "1.0.0" + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" } }, - "node_modules/bintrees": { - "version": "1.0.2", - "license": "MIT" + "node_modules/chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "dev": true }, - "node_modules/bl": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" + "node_modules/charenc": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", + "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", + "engines": { + "node": "*" } }, - "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.0", + "node_modules/check-more-types": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", + "integrity": "sha512-Pj779qHxV2tuapviy1bSZNEL1maXr13bPYpsvSDB68HlYcYuhlDrmGd63i0JHMCLKzc7rUSNIrpdJlhVlNwrxA==", "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, "engines": { - "node": ">= 6" + "node": ">= 0.8.0" } }, - "node_modules/boolean": { - "version": "3.2.0", + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", "dev": true, - "license": "MIT" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } }, - "node_modules/bowser": { - "version": "2.11.0", - "license": "MIT" + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true }, - "node_modules/boxen": { - "version": "5.1.2", + "node_modules/clean-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz", + "integrity": "sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-align": "^3.0.0", - "camelcase": "^6.2.0", - "chalk": "^4.1.0", - "cli-boxes": "^2.2.1", - "string-width": "^4.2.2", - "type-fest": "^0.20.2", - "widest-line": "^3.1.0", - "wrap-ansi": "^7.0.0" + "escape-string-regexp": "^1.0.5" }, "engines": { - "node": ">=10" + "node": ">=4" + } + }, + "node_modules/cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "dev": true, + "engines": { + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/camelcase": { - "version": "6.3.0", + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/type-fest": { - "version": "0.20.2", + "node_modules/cli-truncate": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", + "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", "dev": true, - "license": "(MIT OR CC0-1.0)", + "dependencies": { + "slice-ansi": "^5.0.0", + "string-width": "^5.0.0" + }, "engines": { - "node": ">=10" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "node_modules/cli-truncate/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "node_modules/braces": { - "version": "3.0.2", + "node_modules/cli-truncate/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/cli-truncate/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, - "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/browserslist": { - "version": "4.21.9", + "node_modules/cli-truncate/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001503", - "electron-to-chromium": "^1.4.431", - "node-releases": "^2.0.12", - "update-browserslist-db": "^1.0.11" - }, - "bin": { - "browserslist": "cli.js" + "ansi-regex": "^6.0.1" }, "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/bs-logger": { - "version": "0.2.6", + "node_modules/cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", "dev": true, - "license": "MIT", - "dependencies": { - "fast-json-stable-stringify": "2.x" - }, "engines": { - "node": ">= 6" + "node": ">= 10" } }, - "node_modules/bser": { - "version": "2.1.1", + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/btoa": { - "version": "1.2.1", - "license": "(MIT OR Apache-2.0)", - "bin": { - "btoa": "bin/btoa.js" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">= 0.4.0" + "node": ">=12" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "engines": { + "node": ">=0.8" } }, - "node_modules/buffer": { - "version": "5.6.0", - "license": "MIT", + "node_modules/clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q==", + "dev": true, "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4" + "mimic-response": "^1.0.0" } }, - "node_modules/buffer-from": { + "node_modules/cluster-key-slot": { "version": "1.1.2", - "dev": true, - "license": "MIT" - }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "dev": true, - "license": "MIT", + "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", + "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "node_modules/byline": { - "version": "5.0.0", - "license": "MIT", + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "engines": { - "node": ">=0.10.0" + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" } }, - "node_modules/bytes": { - "version": "3.1.2", - "license": "MIT", - "engines": { - "node": ">= 0.8" + "node_modules/co-body": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/co-body/-/co-body-6.1.0.tgz", + "integrity": "sha512-m7pOT6CdLN7FuXUcpuz/8lfQ/L77x8SchHCF4G0RBTJO20Wzmhn5Sp4/5WsKy8OSpifBSUrmg83qEqaDHdyFuQ==", + "dependencies": { + "inflation": "^2.0.0", + "qs": "^6.5.2", + "raw-body": "^2.3.3", + "type-is": "^1.6.16" } }, - "node_modules/cache-content-type": { - "version": "1.0.1", - "license": "MIT", + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", + "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", "dependencies": { - "mime-types": "^2.1.18", - "ylru": "^1.2.0" - }, - "engines": { - "node": ">= 6.0.0" + "color-convert": "^1.9.3", + "color-string": "^1.6.0" } }, - "node_modules/cacheable-request": { - "version": "2.1.4", - "dev": true, - "license": "MIT", + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dependencies": { - "clone-response": "1.0.2", - "get-stream": "3.0.0", - "http-cache-semantics": "3.8.1", - "keyv": "3.0.0", - "lowercase-keys": "1.0.0", - "normalize-url": "2.0.1", - "responselike": "1.0.2" + "color-name": "1.1.3" } }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" } }, - "node_modules/cacheable-request/node_modules/lowercase-keys": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "bin": { + "color-support": "bin.js" } }, - "node_modules/cachedir": { - "version": "2.3.0", - "dev": true, - "license": "MIT", + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true + }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", "engines": { - "node": ">=6" + "node": ">=0.1.90" } }, - "node_modules/call-bind": { - "version": "1.0.2", - "license": "MIT", + "node_modules/colorspace": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz", + "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "color": "^3.1.3", + "text-hex": "1.0.x" } }, - "node_modules/call-me-maybe": { - "version": "1.0.2", - "dev": true, - "license": "MIT" + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } }, - "node_modules/callsites": { - "version": "3.1.0", + "node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=14" } }, - "node_modules/camelcase": { - "version": "5.3.1", + "node_modules/commitizen": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/commitizen/-/commitizen-4.3.0.tgz", + "integrity": "sha512-H0iNtClNEhT0fotHvGV3E9tDejDeS04sN1veIebsKYGMuGscFaswRoYJKmT3eW85eIJAs0F28bG2+a/9wCOfPw==", "dev": true, - "license": "MIT", + "dependencies": { + "cachedir": "2.3.0", + "cz-conventional-changelog": "3.3.0", + "dedent": "0.7.0", + "detect-indent": "6.1.0", + "find-node-modules": "^2.1.2", + "find-root": "1.1.0", + "fs-extra": "9.1.0", + "glob": "7.2.3", + "inquirer": "8.2.5", + "is-utf8": "^0.2.1", + "lodash": "4.17.21", + "minimist": "1.2.7", + "strip-bom": "4.0.0", + "strip-json-comments": "3.1.1" + }, + "bin": { + "commitizen": "bin/commitizen", + "cz": "bin/git-cz", + "git-cz": "bin/git-cz" + }, "engines": { - "node": ">=6" + "node": ">= 12" } }, - "node_modules/camelcase-keys": { - "version": "6.2.2", + "node_modules/commitizen/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "camelcase": "^5.3.1", - "map-obj": "^4.0.0", - "quick-lru": "^4.0.1" + "color-convert": "^2.0.1" }, "engines": { "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/caniuse-lite": { - "version": "1.0.30001512", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/chalk": { + "node_modules/commitizen/node_modules/chalk": { "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8777,535 +7258,622 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/char-regex": { - "version": "1.0.2", + "node_modules/commitizen/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, "engines": { - "node": ">=10" + "node": ">=7.0.0" } }, - "node_modules/chardet": { - "version": "0.7.0", - "dev": true, - "license": "MIT" - }, - "node_modules/charenc": { - "version": "0.0.2", - "license": "BSD-3-Clause", - "engines": { - "node": "*" - } + "node_modules/commitizen/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/check-more-types": { - "version": "2.24.0", + "node_modules/commitizen/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/chownr": { - "version": "2.0.0", - "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, "engines": { - "node": ">=10" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/ci-info": { - "version": "3.7.1", + "node_modules/commitizen/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/cjs-module-lexer": { - "version": "1.2.3", - "dev": true, - "license": "MIT" - }, - "node_modules/clean-regexp": { - "version": "1.0.0", + "node_modules/commitizen/node_modules/inquirer": { + "version": "8.2.5", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz", + "integrity": "sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==", "dev": true, - "license": "MIT", "dependencies": { - "escape-string-regexp": "^1.0.5" + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=4" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/cli-boxes": { - "version": "2.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=12.0.0" } }, - "node_modules/cli-cursor": { - "version": "3.1.0", + "node_modules/commitizen/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "restore-cursor": "^3.1.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/cli-spinners": { - "version": "2.7.0", + "node_modules/commitlint": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/commitlint/-/commitlint-17.8.1.tgz", + "integrity": "sha512-X+VPJwZsQDeGj/DG1NsxhZEl+oMHKNC+1myZ/zauNDoo+7OuLHfTOUU1C1a4CjKW4b6T7NuoFcYfK0kRCjCtbA==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" + "dependencies": { + "@commitlint/cli": "^17.8.1", + "@commitlint/types": "^17.8.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bin": { + "commitlint": "cli.js" + }, + "engines": { + "node": ">=v14" } }, - "node_modules/cli-truncate": { - "version": "3.1.0", + "node_modules/commitlint/node_modules/@commitlint/types": { + "version": "17.8.1", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.8.1.tgz", + "integrity": "sha512-PXDQXkAmiMEG162Bqdh9ChML/GJZo6vU+7F03ALKDK8zYc6SuAr47LjG7hGYRqUOz+WK0dU7bQ0xzuqFMdxzeQ==", "dev": true, - "license": "MIT", "dependencies": { - "slice-ansi": "^5.0.0", - "string-width": "^5.0.0" + "chalk": "^4.1.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=v14" } }, - "node_modules/cli-truncate/node_modules/ansi-regex": { - "version": "6.0.1", + "node_modules/commitlint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "node": ">=12" + "node": ">=8" }, "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/cli-truncate/node_modules/string-width": { - "version": "5.1.2", + "node_modules/commitlint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=12" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/cli-truncate/node_modules/strip-ansi": { - "version": "7.0.1", + "node_modules/commitlint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-regex": "^6.0.1" + "color-name": "~1.1.4" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "node": ">=7.0.0" } }, - "node_modules/cli-width": { - "version": "3.0.0", + "node_modules/commitlint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/commitlint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "ISC", "engines": { - "node": ">= 10" + "node": ">=8" } }, - "node_modules/cliui": { - "version": "8.0.1", + "node_modules/commitlint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "ISC", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/clone": { - "version": "2.1.2", - "license": "MIT", - "engines": { - "node": ">=0.8" - } + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true }, - "node_modules/clone-response": { - "version": "1.0.2", + "node_modules/compare-func": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", + "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", "dev": true, - "license": "MIT", "dependencies": { - "mimic-response": "^1.0.0" + "array-ify": "^1.0.0", + "dot-prop": "^5.1.0" } }, - "node_modules/cluster-key-slot": { - "version": "1.1.2", - "license": "Apache-2.0", - "engines": { - "node": ">=0.10.0" + "node_modules/component-each": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/component-each/-/component-each-0.2.6.tgz", + "integrity": "sha512-IOXG+HZmbgaBS8Rqy+tAMrwsPdEY1BWcPcp0xI2ZOzKQhHvSVGrL7iCnoDU37TEKOCfaf4ywsR6GwAr0JivPjg==", + "dependencies": { + "component-type": "1.0.0", + "to-function": "2.0.6" } }, - "node_modules/co": { - "version": "4.6.0", - "license": "MIT", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" + "node_modules/component-emitter": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", + "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/co-body": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "inflation": "^2.0.0", - "qs": "^6.5.2", - "raw-body": "^2.3.3", - "type-is": "^1.6.16" - } + "node_modules/component-props": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/component-props/-/component-props-1.1.1.tgz", + "integrity": "sha512-69pIRJs9fCCHRqCz3390YF2LV1Lu6iEMZ5zuVqqUn+G20V9BNXlMs0cWawWeW9g4Ynmg29JmkG6R7/lUJoGd1Q==" }, - "node_modules/collect-v8-coverage": { - "version": "1.0.1", - "dev": true, - "license": "MIT" + "node_modules/component-type": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/component-type/-/component-type-1.0.0.tgz", + "integrity": "sha512-qzUg4SGDH6KFYlcklmeZwucbtosh/XGwuIffqXAhC1dZyjO7Xu1UuaxwKRY29EncuBj/DH+h6Zot3AdZS6xdFw==" }, - "node_modules/color": { - "version": "3.2.1", - "license": "MIT", + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/concat-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", + "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", + "dev": true, + "engines": [ + "node >= 6.0" + ], "dependencies": { - "color-convert": "^1.9.3", - "color-string": "^1.6.0" + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.0.2", + "typedarray": "^0.0.6" } }, - "node_modules/color-convert": { - "version": "2.0.1", + "node_modules/concat-stream/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">=7.0.0" + "node": ">= 6" } }, - "node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true }, - "node_modules/color-string": { - "version": "1.9.1", - "license": "MIT", + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", "dependencies": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" } }, - "node_modules/color-support": { - "version": "1.1.3", - "license": "ISC", - "bin": { - "color-support": "bin.js" + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" } }, - "node_modules/color/node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", + "node_modules/conventional-changelog": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-2.0.3.tgz", + "integrity": "sha512-4bcII9cJHSKb2qi9e8qGF6aJHLf/AB0dokhyR+X6QILTMl77s4l163vK+reXhajvfOYbbHQvsrWybr5+PKZwNA==", + "dev": true, "dependencies": { - "color-name": "1.1.3" + "conventional-changelog-angular": "^1.6.6", + "conventional-changelog-atom": "^2.0.0", + "conventional-changelog-codemirror": "^2.0.0", + "conventional-changelog-core": "^3.1.0", + "conventional-changelog-ember": "^2.0.1", + "conventional-changelog-eslint": "^3.0.0", + "conventional-changelog-express": "^2.0.0", + "conventional-changelog-jquery": "^0.1.0", + "conventional-changelog-jscs": "^0.1.0", + "conventional-changelog-jshint": "^2.0.0", + "conventional-changelog-preset-loader": "^2.0.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/color/node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" + "node_modules/conventional-changelog-angular": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-6.0.0.tgz", + "integrity": "sha512-6qLgrBF4gueoC7AFVHu51nHL9pF9FRjXrH+ceVf7WmAfH3gs+gEYOkvxhjMPjZu57I4AGUGoNTY8V7Hrgf1uqg==", + "dev": true, + "dependencies": { + "compare-func": "^2.0.0" + }, + "engines": { + "node": ">=14" + } }, - "node_modules/colorette": { - "version": "2.0.19", + "node_modules/conventional-changelog-atom": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz", + "integrity": "sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw==", "dev": true, - "license": "MIT" + "dependencies": { + "q": "^1.5.1" + }, + "engines": { + "node": ">=10" + } }, - "node_modules/colors": { - "version": "1.4.0", - "license": "MIT", + "node_modules/conventional-changelog-codemirror": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz", + "integrity": "sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw==", + "dev": true, + "dependencies": { + "q": "^1.5.1" + }, "engines": { - "node": ">=0.1.90" + "node": ">=10" } }, - "node_modules/colorspace": { - "version": "1.1.4", - "license": "MIT", + "node_modules/conventional-changelog-config-spec": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-config-spec/-/conventional-changelog-config-spec-2.1.0.tgz", + "integrity": "sha512-IpVePh16EbbB02V+UA+HQnnPIohgXvJRxHcS5+Uwk4AT5LjzCZJm5sp/yqs5C6KZJ1jMsV4paEV13BN1pvDuxQ==", + "dev": true + }, + "node_modules/conventional-changelog-conventionalcommits": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-6.1.0.tgz", + "integrity": "sha512-3cS3GEtR78zTfMzk0AizXKKIdN4OvSh7ibNz6/DPbhWWQu7LqE/8+/GqSodV+sywUR2gpJAdP/1JFf4XtN7Zpw==", + "dev": true, "dependencies": { - "color": "^3.1.3", - "text-hex": "1.0.x" + "compare-func": "^2.0.0" + }, + "engines": { + "node": ">=14" } }, - "node_modules/combined-stream": { - "version": "1.0.8", - "license": "MIT", + "node_modules/conventional-changelog-core": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-3.2.3.tgz", + "integrity": "sha512-LMMX1JlxPIq/Ez5aYAYS5CpuwbOk6QFp8O4HLAcZxe3vxoCtABkhfjetk8IYdRB9CDQGwJFLR3Dr55Za6XKgUQ==", + "dev": true, "dependencies": { - "delayed-stream": "~1.0.0" + "conventional-changelog-writer": "^4.0.6", + "conventional-commits-parser": "^3.0.3", + "dateformat": "^3.0.0", + "get-pkg-repo": "^1.0.0", + "git-raw-commits": "2.0.0", + "git-remote-origin-url": "^2.0.0", + "git-semver-tags": "^2.0.3", + "lodash": "^4.2.1", + "normalize-package-data": "^2.3.5", + "q": "^1.5.1", + "read-pkg": "^3.0.0", + "read-pkg-up": "^3.0.0", + "through2": "^3.0.0" }, "engines": { - "node": ">= 0.8" + "node": ">=6.9.0" } }, - "node_modules/commander": { - "version": "10.0.1", + "node_modules/conventional-changelog-core/node_modules/camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw==", "dev": true, - "license": "MIT", "engines": { - "node": ">=14" + "node": ">=4" } }, - "node_modules/commitizen": { - "version": "4.3.0", + "node_modules/conventional-changelog-core/node_modules/camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha512-Ej37YKYbFUI8QiYlvj9YHb6/Z60dZyPJW0Cs8sFilMbd2lP0bw3ylAq9yJkK4lcTA2dID5fG8LjmJYbO7kWb7Q==", "dev": true, - "license": "MIT", "dependencies": { - "cachedir": "2.3.0", - "cz-conventional-changelog": "3.3.0", - "dedent": "0.7.0", - "detect-indent": "6.1.0", - "find-node-modules": "^2.1.2", - "find-root": "1.1.0", - "fs-extra": "9.1.0", - "glob": "7.2.3", - "inquirer": "8.2.5", - "is-utf8": "^0.2.1", - "lodash": "4.17.21", - "minimist": "1.2.7", - "strip-bom": "4.0.0", - "strip-json-comments": "3.1.1" - }, - "bin": { - "commitizen": "bin/commitizen", - "cz": "bin/git-cz", - "git-cz": "bin/git-cz" + "camelcase": "^4.1.0", + "map-obj": "^2.0.0", + "quick-lru": "^1.0.0" }, "engines": { - "node": ">= 12" + "node": ">=4" } }, - "node_modules/commitizen/node_modules/glob": { - "version": "7.2.3", + "node_modules/conventional-changelog-core/node_modules/conventional-commits-parser": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz", + "integrity": "sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==", "dev": true, - "license": "ISC", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "is-text-path": "^1.0.1", + "JSONStream": "^1.0.4", + "lodash": "^4.17.15", + "meow": "^8.0.0", + "split2": "^3.0.0", + "through2": "^4.0.0" }, - "engines": { - "node": "*" + "bin": { + "conventional-commits-parser": "cli.js" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">=10" } }, - "node_modules/commitizen/node_modules/inquirer": { - "version": "8.2.5", + "node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.1", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.21", - "mute-stream": "0.0.8", - "ora": "^5.4.1", - "run-async": "^2.4.0", - "rxjs": "^7.5.5", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6", - "wrap-ansi": "^7.0.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">=12.0.0" + "node": ">= 6" } }, - "node_modules/commitizen/node_modules/minimist": { - "version": "1.2.7", + "node_modules/conventional-changelog-core/node_modules/conventional-commits-parser/node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" + "dependencies": { + "readable-stream": "3" } }, - "node_modules/commitlint": { - "version": "17.6.6", + "node_modules/conventional-changelog-core/node_modules/dargs": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/dargs/-/dargs-4.1.0.tgz", + "integrity": "sha512-jyweV/k0rbv2WK4r9KLayuBrSh2Py0tNmV7LBoSMH4hMQyrG8OPyIOWB2VEx4DJKXWmK4lopYMVvORlDt2S8Aw==", "dev": true, - "license": "MIT", "dependencies": { - "@commitlint/cli": "^17.6.6", - "@commitlint/types": "^17.4.4" - }, - "bin": { - "commitlint": "cli.js" + "number-is-nan": "^1.0.0" }, "engines": { - "node": ">=v14" + "node": ">=0.10.0" } }, - "node_modules/commondir": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/compare-func": { + "node_modules/conventional-changelog-core/node_modules/git-raw-commits": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.0.tgz", + "integrity": "sha512-w4jFEJFgKXMQJ0H0ikBk2S+4KP2VEjhCvLCNqbNRQC8BgGWgLKNCO7a9K9LI+TVT7Gfoloje502sEnctibffgg==", "dev": true, - "license": "MIT", "dependencies": { - "array-ify": "^1.0.0", - "dot-prop": "^5.1.0" + "dargs": "^4.0.1", + "lodash.template": "^4.0.2", + "meow": "^4.0.0", + "split2": "^2.0.0", + "through2": "^2.0.0" + }, + "bin": { + "git-raw-commits": "cli.js" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/compare-func/node_modules/dot-prop": { - "version": "4.2.1", + "node_modules/conventional-changelog-core/node_modules/git-raw-commits/node_modules/meow": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.1.tgz", + "integrity": "sha512-xcSBHD5Z86zaOc+781KrupuHAzeGXSLtiAOmBsiLDiPSaYSB6hdew2ng9EBAnZ62jagG9MHAOdxpDi/lWBFJ/A==", "dev": true, - "license": "MIT", "dependencies": { - "is-obj": "^1.0.0" + "camelcase-keys": "^4.0.0", + "decamelize-keys": "^1.0.0", + "loud-rejection": "^1.0.0", + "minimist": "^1.1.3", + "minimist-options": "^3.0.1", + "normalize-package-data": "^2.3.4", + "read-pkg-up": "^3.0.0", + "redent": "^2.0.0", + "trim-newlines": "^2.0.0" }, "engines": { "node": ">=4" } }, - "node_modules/compare-func/node_modules/is-obj": { - "version": "1.0.1", + "node_modules/conventional-changelog-core/node_modules/git-raw-commits/node_modules/split2": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", + "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "through2": "^2.0.2" } }, - "node_modules/component-each": { - "version": "0.2.6", + "node_modules/conventional-changelog-core/node_modules/git-raw-commits/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, "dependencies": { - "component-type": "1.0.0", - "to-function": "2.0.6" + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" } }, - "node_modules/component-emitter": { - "version": "1.3.0", + "node_modules/conventional-changelog-core/node_modules/indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==", "dev": true, - "license": "MIT" - }, - "node_modules/component-props": { - "version": "1.1.1" - }, - "node_modules/component-type": { - "version": "1.0.0" + "engines": { + "node": ">=4" + } }, - "node_modules/concat-map": { - "version": "0.0.1", - "license": "MIT" + "node_modules/conventional-changelog-core/node_modules/map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha512-TzQSV2DiMYgoF5RycneKVUzIa9bQsj/B3tTgsE3dOGqlzHnGIDaC7XBE7grnA+8kZPnfqSGFe95VHc2oc0VFUQ==", + "dev": true, + "engines": { + "node": ">=4" + } }, - "node_modules/confusing-browser-globals": { - "version": "1.0.11", + "node_modules/conventional-changelog-core/node_modules/minimist-options": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", + "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", "dev": true, - "license": "MIT" + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0" + }, + "engines": { + "node": ">= 4" + } }, - "node_modules/console-control-strings": { + "node_modules/conventional-changelog-core/node_modules/quick-lru": { "version": "1.1.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", + "integrity": "sha512-tRS7sTgyxMXtLum8L65daJnHUhfDUgboRdcWW2bR9vBfrj2+O5HSMbQOJfJJjIVSPFqbBCF37FpwWXGitDc5tA==", + "dev": true, + "engines": { + "node": ">=4" + } }, - "node_modules/content-disposition": { - "version": "0.5.4", - "license": "MIT", + "node_modules/conventional-changelog-core/node_modules/redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha512-XNwrTx77JQCEMXTeb8movBKuK75MgH0RZkujNuDKCezemx/voapl9i2gCSi8WWm8+ox5ycJi1gxF22fR7c0Ciw==", + "dev": true, "dependencies": { - "safe-buffer": "5.2.1" + "indent-string": "^3.0.0", + "strip-indent": "^2.0.0" }, "engines": { - "node": ">= 0.6" + "node": ">=4" } }, - "node_modules/content-type": { - "version": "1.0.4", - "license": "MIT", + "node_modules/conventional-changelog-core/node_modules/strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha512-RsSNPLpq6YUL7QYy44RnPVTn/lcVZtb48Uof3X5JLbF4zD/Gs7ZFDv2HWol+leoQN2mT86LAzSshGfkTlSOpsA==", + "dev": true, "engines": { - "node": ">= 0.6" + "node": ">=4" } }, - "node_modules/conventional-changelog": { - "version": "3.1.25", + "node_modules/conventional-changelog-core/node_modules/through2": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", + "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", "dev": true, - "license": "MIT", "dependencies": { - "conventional-changelog-angular": "^5.0.12", - "conventional-changelog-atom": "^2.0.8", - "conventional-changelog-codemirror": "^2.0.8", - "conventional-changelog-conventionalcommits": "^4.5.0", - "conventional-changelog-core": "^4.2.1", - "conventional-changelog-ember": "^2.0.9", - "conventional-changelog-eslint": "^3.0.9", - "conventional-changelog-express": "^2.0.6", - "conventional-changelog-jquery": "^3.0.11", - "conventional-changelog-jshint": "^2.0.9", - "conventional-changelog-preset-loader": "^2.3.4" - }, - "engines": { - "node": ">=10" + "inherits": "^2.0.4", + "readable-stream": "2 || 3" } }, - "node_modules/conventional-changelog-angular": { - "version": "5.0.13", + "node_modules/conventional-changelog-ember": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz", + "integrity": "sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A==", "dev": true, - "license": "ISC", "dependencies": { - "compare-func": "^2.0.0", "q": "^1.5.1" }, "engines": { "node": ">=10" } }, - "node_modules/conventional-changelog-atom": { - "version": "2.0.8", + "node_modules/conventional-changelog-eslint": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz", + "integrity": "sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA==", "dev": true, - "license": "ISC", "dependencies": { "q": "^1.5.1" }, @@ -9313,10 +7881,11 @@ "node": ">=10" } }, - "node_modules/conventional-changelog-codemirror": { - "version": "2.0.8", + "node_modules/conventional-changelog-express": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz", + "integrity": "sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ==", "dev": true, - "license": "ISC", "dependencies": { "q": "^1.5.1" }, @@ -9324,300 +7893,391 @@ "node": ">=10" } }, - "node_modules/conventional-changelog-config-spec": { - "version": "2.1.0", + "node_modules/conventional-changelog-jquery": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-0.1.0.tgz", + "integrity": "sha512-wbz5vVcvu/SPZTDFB21fF/xo5zFq6NQR42jhtUfOrrP1N/ZjNshhGb3expCGqHYdnUHzPevHeUafsVrdxVD5Og==", "dev": true, - "license": "MIT" + "dependencies": { + "q": "^1.4.1" + } }, - "node_modules/conventional-changelog-conventionalcommits": { - "version": "4.6.3", + "node_modules/conventional-changelog-jscs": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-jscs/-/conventional-changelog-jscs-0.1.0.tgz", + "integrity": "sha512-V8sey4tE0nJUlWGi2PZKDMfawYLf/+F165xhhDjcIoTEJDxssVV5PMVzTQzjS6U/dEX85fWkur+bs6imOqkIng==", + "dev": true, + "dependencies": { + "q": "^1.4.1" + } + }, + "node_modules/conventional-changelog-jshint": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz", + "integrity": "sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA==", "dev": true, - "license": "ISC", "dependencies": { "compare-func": "^2.0.0", - "lodash": "^4.17.15", "q": "^1.5.1" }, "engines": { "node": ">=10" } }, - "node_modules/conventional-changelog-core": { - "version": "4.2.4", + "node_modules/conventional-changelog-preset-loader": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz", + "integrity": "sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/conventional-changelog-writer": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.1.0.tgz", + "integrity": "sha512-WwKcUp7WyXYGQmkLsX4QmU42AZ1lqlvRW9mqoyiQzdD+rJWbTepdWoKJuwXTS+yq79XKnQNa93/roViPQrAQgw==", "dev": true, - "license": "MIT", "dependencies": { - "add-stream": "^1.0.0", - "conventional-changelog-writer": "^5.0.0", - "conventional-commits-parser": "^3.2.0", + "compare-func": "^2.0.0", + "conventional-commits-filter": "^2.0.7", "dateformat": "^3.0.0", - "get-pkg-repo": "^4.0.0", - "git-raw-commits": "^2.0.8", - "git-remote-origin-url": "^2.0.0", - "git-semver-tags": "^4.1.1", + "handlebars": "^4.7.6", + "json-stringify-safe": "^5.0.1", "lodash": "^4.17.15", - "normalize-package-data": "^3.0.0", - "q": "^1.5.1", - "read-pkg": "^3.0.0", - "read-pkg-up": "^3.0.0", + "meow": "^8.0.0", + "semver": "^6.0.0", + "split": "^1.0.0", "through2": "^4.0.0" }, + "bin": { + "conventional-changelog-writer": "cli.js" + }, "engines": { "node": ">=10" } }, - "node_modules/conventional-changelog-core/node_modules/find-up": { - "version": "2.1.0", + "node_modules/conventional-changelog-writer/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { - "locate-path": "^2.0.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">=4" + "node": ">= 6" } }, - "node_modules/conventional-changelog-core/node_modules/hosted-git-info": { - "version": "2.8.9", - "dev": true, - "license": "ISC" - }, - "node_modules/conventional-changelog-core/node_modules/locate-path": { - "version": "2.0.0", + "node_modules/conventional-changelog-writer/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/conventional-changelog-core/node_modules/p-limit": { - "version": "1.3.0", + "node_modules/conventional-changelog-writer/node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, - "license": "MIT", "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" + "readable-stream": "3" } }, - "node_modules/conventional-changelog-core/node_modules/p-locate": { - "version": "2.0.0", + "node_modules/conventional-changelog/node_modules/compare-func": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.4.tgz", + "integrity": "sha512-sq2sWtrqKPkEXAC8tEJA1+BqAH9GbFkGBtUOqrUX57VSfwp8xyktctk+uLoRy5eccTdxzDcVIztlYDpKs3Jv1Q==", "dev": true, - "license": "MIT", "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" + "array-ify": "^1.0.0", + "dot-prop": "^3.0.0" } }, - "node_modules/conventional-changelog-core/node_modules/p-try": { - "version": "1.0.0", + "node_modules/conventional-changelog/node_modules/conventional-changelog-angular": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.6.6.tgz", + "integrity": "sha512-suQnFSqCxRwyBxY68pYTsFkG0taIdinHLNEAX5ivtw8bCRnIgnpvcHmlR/yjUyZIrNPYAoXlY1WiEKWgSE4BNg==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "dependencies": { + "compare-func": "^1.3.1", + "q": "^1.5.1" } }, - "node_modules/conventional-changelog-core/node_modules/path-exists": { + "node_modules/conventional-commit-types": { "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } + "resolved": "https://registry.npmjs.org/conventional-commit-types/-/conventional-commit-types-3.0.0.tgz", + "integrity": "sha512-SmmCYnOniSsAa9GqWOeLqc179lfr5TRu5b4QFDkbsrJ5TZjPJx85wtOr3zn+1dbeNiXDKGPbZ72IKbPhLXh/Lg==", + "dev": true }, - "node_modules/conventional-changelog-core/node_modules/path-type": { - "version": "3.0.0", + "node_modules/conventional-commits-filter": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz", + "integrity": "sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==", "dev": true, - "license": "MIT", "dependencies": { - "pify": "^3.0.0" + "lodash.ismatch": "^4.4.0", + "modify-values": "^1.0.0" }, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/conventional-changelog-core/node_modules/pify": { - "version": "3.0.0", + "node_modules/conventional-commits-parser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-4.0.0.tgz", + "integrity": "sha512-WRv5j1FsVM5FISJkoYMR6tPk07fkKT0UodruX4je86V4owk451yjXAKzKAPOs9l7y59E2viHUS9eQ+dfUA9NSg==", "dev": true, - "license": "MIT", + "dependencies": { + "is-text-path": "^1.0.1", + "JSONStream": "^1.3.5", + "meow": "^8.1.2", + "split2": "^3.2.2" + }, + "bin": { + "conventional-commits-parser": "cli.js" + }, "engines": { - "node": ">=4" + "node": ">=14" } }, - "node_modules/conventional-changelog-core/node_modules/read-pkg": { - "version": "3.0.0", + "node_modules/conventional-github-releaser": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/conventional-github-releaser/-/conventional-github-releaser-3.1.5.tgz", + "integrity": "sha512-VhPKbdN92b2ygnQLkuwHIfUaPAVrVfJVuQdxbmmVPkN927LDP98HthLWFVShh4pxqLK0nE66v78RERGJVeCzbg==", "dev": true, - "license": "MIT", "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" + "conventional-changelog": "^2.0.0", + "dateformat": "^3.0.0", + "debug": "^3.1.0", + "gh-got": "^7.0.0", + "git-semver-tags": "^2.0.0", + "lodash.merge": "^4.0.2", + "meow": "^7.0.0", + "object-assign": "^4.0.1", + "q": "^1.4.1", + "semver": "^5.0.1", + "semver-regex": "^2.0.0", + "through2": "^2.0.0" + }, + "bin": { + "conventional-github-releaser": "src/cli.js" }, "engines": { - "node": ">=4" + "node": ">=6.9.0" } }, - "node_modules/conventional-changelog-core/node_modules/read-pkg-up": { - "version": "3.0.0", + "node_modules/conventional-github-releaser/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/conventional-changelog-core/node_modules/read-pkg/node_modules/normalize-package-data": { - "version": "2.5.0", + "node_modules/conventional-github-releaser/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" + "ms": "^2.1.1" } }, - "node_modules/conventional-changelog-core/node_modules/semver": { - "version": "5.7.2", + "node_modules/conventional-github-releaser/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver" + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/conventional-changelog-ember": { - "version": "2.0.9", + "node_modules/conventional-github-releaser/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "ISC", "dependencies": { - "q": "^1.5.1" + "p-locate": "^4.1.0" }, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/conventional-changelog-eslint": { - "version": "3.0.9", + "node_modules/conventional-github-releaser/node_modules/meow": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-7.1.1.tgz", + "integrity": "sha512-GWHvA5QOcS412WCo8vwKDlTelGLsCGBVevQB5Kva961rmNfun0PCbv5+xta2kUMFJyR8/oWnn7ddeKdosbAPbA==", "dev": true, - "license": "ISC", "dependencies": { - "q": "^1.5.1" + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^2.5.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.13.1", + "yargs-parser": "^18.1.3" }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/conventional-changelog-express": { - "version": "2.0.6", + "node_modules/conventional-github-releaser/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "license": "ISC", "dependencies": { - "q": "^1.5.1" + "p-try": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/conventional-changelog-jquery": { - "version": "3.0.11", + "node_modules/conventional-github-releaser/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "ISC", "dependencies": { - "q": "^1.5.1" + "p-limit": "^2.2.0" }, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/conventional-changelog-jscs": { - "version": "0.1.0", + "node_modules/conventional-github-releaser/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, - "license": "ISC", "dependencies": { - "q": "^1.4.1" + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/conventional-changelog-jshint": { - "version": "2.0.9", + "node_modules/conventional-github-releaser/node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, - "license": "ISC", "dependencies": { - "compare-func": "^2.0.0", - "q": "^1.5.1" + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" }, "engines": { - "node": ">=10" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/conventional-changelog-preset-loader": { - "version": "2.3.4", + "node_modules/conventional-github-releaser/node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=10" + "node": ">=8" } - }, - "node_modules/conventional-changelog-writer": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "conventional-commits-filter": "^2.0.7", - "dateformat": "^3.0.0", - "handlebars": "^4.7.7", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.15", - "meow": "^8.0.0", - "semver": "^6.0.0", - "split": "^1.0.0", - "through2": "^4.0.0" - }, - "bin": { - "conventional-changelog-writer": "cli.js" - }, + }, + "node_modules/conventional-github-releaser/node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/conventional-changelog-writer/node_modules/semver": { - "version": "6.3.1", + "node_modules/conventional-github-releaser/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, - "license": "ISC", "bin": { - "semver": "bin/semver.js" + "semver": "bin/semver" } }, - "node_modules/conventional-commit-types": { - "version": "3.0.0", + "node_modules/conventional-github-releaser/node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", "dev": true, - "license": "ISC" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/conventional-commits-filter": { - "version": "2.0.7", + "node_modules/conventional-github-releaser/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, - "license": "MIT", "dependencies": { - "lodash.ismatch": "^4.4.0", - "modify-values": "^1.0.0" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/conventional-recommended-bump": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz", + "integrity": "sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw==", + "dev": true, + "dependencies": { + "concat-stream": "^2.0.0", + "conventional-changelog-preset-loader": "^2.3.4", + "conventional-commits-filter": "^2.0.7", + "conventional-commits-parser": "^3.2.0", + "git-raw-commits": "^2.0.8", + "git-semver-tags": "^4.1.1", + "meow": "^8.0.0", + "q": "^1.5.1" + }, + "bin": { + "conventional-recommended-bump": "cli.js" }, "engines": { "node": ">=10" } }, - "node_modules/conventional-commits-parser": { + "node_modules/conventional-recommended-bump/node_modules/conventional-commits-parser": { "version": "3.2.4", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz", + "integrity": "sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==", "dev": true, - "license": "MIT", "dependencies": { "is-text-path": "^1.0.1", "JSONStream": "^1.0.4", @@ -9633,2433 +8293,2751 @@ "node": ">=10" } }, - "node_modules/conventional-github-releaser": { - "version": "3.1.5", + "node_modules/conventional-recommended-bump/node_modules/git-semver-tags": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-4.1.1.tgz", + "integrity": "sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA==", "dev": true, - "license": "MIT", "dependencies": { - "conventional-changelog": "^2.0.0", - "dateformat": "^3.0.0", - "debug": "^3.1.0", - "gh-got": "^7.0.0", - "git-semver-tags": "^2.0.0", - "lodash.merge": "^4.0.2", - "meow": "^7.0.0", - "object-assign": "^4.0.1", - "q": "^1.4.1", - "semver": "^5.0.1", - "semver-regex": "^2.0.0", - "through2": "^2.0.0" + "meow": "^8.0.0", + "semver": "^6.0.0" }, "bin": { - "conventional-github-releaser": "src/cli.js" + "git-semver-tags": "cli.js" }, "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/conventional-github-releaser/node_modules/compare-func": { - "version": "1.3.4", - "dev": true, - "license": "MIT", - "dependencies": { - "array-ify": "^1.0.0", - "dot-prop": "^3.0.0" + "node": ">=10" } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog": { - "version": "2.0.3", + "node_modules/conventional-recommended-bump/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { - "conventional-changelog-angular": "^1.6.6", - "conventional-changelog-atom": "^2.0.0", - "conventional-changelog-codemirror": "^2.0.0", - "conventional-changelog-core": "^3.1.0", - "conventional-changelog-ember": "^2.0.1", - "conventional-changelog-eslint": "^3.0.0", - "conventional-changelog-express": "^2.0.0", - "conventional-changelog-jquery": "^0.1.0", - "conventional-changelog-jscs": "^0.1.0", - "conventional-changelog-jshint": "^2.0.0", - "conventional-changelog-preset-loader": "^2.0.1" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">=6.9.0" + "node": ">= 6" } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-angular": { - "version": "1.6.6", + "node_modules/conventional-recommended-bump/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", - "dependencies": { - "compare-func": "^1.3.1", - "q": "^1.5.1" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-core": { - "version": "3.2.3", + "node_modules/conventional-recommended-bump/node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, - "license": "MIT", "dependencies": { - "conventional-changelog-writer": "^4.0.6", - "conventional-commits-parser": "^3.0.3", - "dateformat": "^3.0.0", - "get-pkg-repo": "^1.0.0", - "git-raw-commits": "2.0.0", - "git-remote-origin-url": "^2.0.0", - "git-semver-tags": "^2.0.3", - "lodash": "^4.2.1", - "normalize-package-data": "^2.3.5", - "q": "^1.5.1", - "read-pkg": "^3.0.0", - "read-pkg-up": "^3.0.0", - "through2": "^3.0.0" - }, - "engines": { - "node": ">=6.9.0" + "readable-stream": "3" } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-core/node_modules/read-pkg-up": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" - }, - "engines": { - "node": ">=4" - } + "node_modules/convert-hex": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/convert-hex/-/convert-hex-0.1.0.tgz", + "integrity": "sha512-w20BOb1PiR/sEJdS6wNrUjF5CSfscZFUp7R9NSlXH8h2wynzXVEPFPJECAnkNylZ+cvf3p7TyRUHggDmrwXT9A==" }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-core/node_modules/through2": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.4", - "readable-stream": "2 || 3" - } + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-jquery": { + "node_modules/convert-string": { "version": "0.1.0", - "dev": true, - "license": "ISC", - "dependencies": { - "q": "^1.4.1" - } + "resolved": "https://registry.npmjs.org/convert-string/-/convert-string-0.1.0.tgz", + "integrity": "sha512-1KX9ESmtl8xpT2LN2tFnKSbV4NiarbVi8DVb39ZriijvtTklyrT+4dT1wsGMHKD3CJUjXgvJzstm9qL9ICojGA==" }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer": { - "version": "4.1.0", - "dev": true, - "license": "MIT", + "node_modules/cookiejar": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", + "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", + "dev": true + }, + "node_modules/cookies": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.9.1.tgz", + "integrity": "sha512-TG2hpqe4ELx54QER/S3HQ9SRVnQnGBtKUz5bLQWtYAQ+o6GpgMs6sYUvaiJjVxb+UXwhRhAEP3m7LbsIZ77Hmw==", "dependencies": { - "compare-func": "^2.0.0", - "conventional-commits-filter": "^2.0.7", - "dateformat": "^3.0.0", - "handlebars": "^4.7.6", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.15", - "meow": "^8.0.0", - "semver": "^6.0.0", - "split": "^1.0.0", - "through2": "^4.0.0" - }, - "bin": { - "conventional-changelog-writer": "cli.js" + "depd": "~2.0.0", + "keygrip": "~1.1.0" }, "engines": { - "node": ">=10" + "node": ">= 0.8" } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/compare-func": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "array-ify": "^1.0.0", - "dot-prop": "^5.1.0" - } + "node_modules/copy-to": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/copy-to/-/copy-to-2.0.1.tgz", + "integrity": "sha512-3DdaFaU/Zf1AnpLiFDeNCD4TOWe3Zl2RZaTzUvWiIk5ERzcCodOE20Vqq4fzCbNoHURFHT4/us/Lfq+S2zyY4w==" }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/hosted-git-info": { - "version": "4.1.0", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/meow": { - "version": "8.1.2", + "node_modules/cosmiconfig": { + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", "dev": true, - "license": "MIT", "dependencies": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^3.0.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.18.0", - "yargs-parser": "^20.2.3" + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/normalize-package-data": { - "version": "3.0.3", + "node_modules/cosmiconfig-typescript-loader": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-5.0.0.tgz", + "integrity": "sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==", "dev": true, - "license": "BSD-2-Clause", + "optional": true, "dependencies": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" + "jiti": "^1.19.1" }, "engines": { - "node": ">=10" + "node": ">=v16" + }, + "peerDependencies": { + "@types/node": "*", + "cosmiconfig": ">=8.2", + "typescript": ">=4" } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/normalize-package-data/node_modules/semver": { - "version": "7.5.3", + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, - "license": "ISC", "dependencies": { - "lru-cache": "^6.0.0" + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" }, "bin": { - "semver": "bin/semver.js" + "create-jest": "bin/create-jest.js" }, "engines": { - "node": ">=10" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/readable-stream": { - "version": "3.6.2", + "node_modules/create-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "color-convert": "^2.0.1" }, "engines": { - "node": ">= 6" - } - }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/through2": { - "version": "4.0.2", + "node_modules/create-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { - "readable-stream": "3" - } - }, - "node_modules/conventional-github-releaser/node_modules/conventional-changelog-writer/node_modules/type-fest": { - "version": "0.18.1", - "dev": true, - "license": "(MIT OR CC0-1.0)", + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/conventional-github-releaser/node_modules/dargs": { - "version": "4.1.0", + "node_modules/create-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "number-is-nan": "^1.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=0.10.0" + "node": ">=7.0.0" } }, - "node_modules/conventional-github-releaser/node_modules/debug": { - "version": "3.2.7", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } + "node_modules/create-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/conventional-github-releaser/node_modules/dot-prop": { - "version": "4.2.1", + "node_modules/create-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", - "dependencies": { - "is-obj": "^1.0.0" - }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/conventional-github-releaser/node_modules/find-up": { - "version": "2.1.0", + "node_modules/create-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "locate-path": "^2.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo": { - "version": "1.4.0", + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, - "license": "MIT", "dependencies": { - "hosted-git-info": "^2.1.4", - "meow": "^3.3.0", - "normalize-package-data": "^2.3.0", - "parse-github-repo-url": "^1.3.0", - "through2": "^2.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, - "bin": { - "get-pkg-repo": "cli.js" + "engines": { + "node": ">= 8" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/camelcase": { - "version": "2.1.1", - "dev": true, - "license": "MIT", + "node_modules/crypt": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", + "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", "engines": { - "node": ">=0.10.0" + "node": "*" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/camelcase-keys": { - "version": "2.1.0", + "node_modules/crypto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", + "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==", + "deprecated": "This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in." + }, + "node_modules/crypto-js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" + }, + "node_modules/currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==", "dev": true, - "license": "MIT", "dependencies": { - "camelcase": "^2.0.0", - "map-obj": "^1.0.0" + "array-find-index": "^1.0.1" }, "engines": { "node": ">=0.10.0" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/find-up": { - "version": "1.1.2", + "node_modules/cz-conventional-changelog": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/cz-conventional-changelog/-/cz-conventional-changelog-3.3.0.tgz", + "integrity": "sha512-U466fIzU5U22eES5lTNiNbZ+d8dfcHcssH4o7QsdWaCcRs/feIPCxKYSWkYBNs5mny7MvEfwpTLWjvbm94hecw==", "dev": true, - "license": "MIT", "dependencies": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" + "chalk": "^2.4.1", + "commitizen": "^4.0.3", + "conventional-commit-types": "^3.0.0", + "lodash.map": "^4.5.1", + "longest": "^2.0.1", + "word-wrap": "^1.0.3" }, "engines": { - "node": ">=0.10.0" + "node": ">= 10" + }, + "optionalDependencies": { + "@commitlint/load": ">6.1.1" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/load-json-file": { - "version": "1.1.0", + "node_modules/dargs": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", + "integrity": "sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==", "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/meow": { - "version": "3.7.0", + "node_modules/dateformat": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", + "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", "dev": true, - "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { - "camelcase-keys": "^2.0.0", - "decamelize": "^1.1.2", - "loud-rejection": "^1.0.0", - "map-obj": "^1.0.1", - "minimist": "^1.1.3", - "normalize-package-data": "^2.3.4", - "object-assign": "^4.0.1", - "read-pkg-up": "^1.0.1", - "redent": "^1.0.0", - "trim-newlines": "^1.0.0" + "ms": "2.1.2" }, "engines": { - "node": ">=0.10.0" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/path-exists": { - "version": "2.1.0", + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, - "license": "MIT", - "dependencies": { - "pinkie-promise": "^2.0.0" - }, "engines": { "node": ">=0.10.0" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/path-type": { - "version": "1.1.0", + "node_modules/decamelize-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", + "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", "dev": true, - "license": "MIT", "dependencies": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" }, "engines": { "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/pify": { - "version": "2.3.0", + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/read-pkg": { - "version": "1.1.0", + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", "dev": true, - "license": "MIT", "dependencies": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" + "mimic-response": "^1.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/read-pkg-up": { + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "dev": true + }, + "node_modules/deep-equal": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", + "integrity": "sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw==" + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=4.0.0" } }, - "node_modules/conventional-github-releaser/node_modules/get-pkg-repo/node_modules/redent": { - "version": "1.0.0", + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, - "license": "MIT", - "dependencies": { - "indent-string": "^2.1.0", - "strip-indent": "^1.0.1" - }, "engines": { "node": ">=0.10.0" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits": { - "version": "2.0.0", - "dev": true, - "license": "MIT", + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", "dependencies": { - "dargs": "^4.0.1", - "lodash.template": "^4.0.2", - "meow": "^4.0.0", - "split2": "^2.0.0", - "through2": "^2.0.0" - }, - "bin": { - "git-raw-commits": "cli.js" + "clone": "^1.0.2" }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/defaults/node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", "engines": { - "node": ">=6.9.0" + "node": ">=0.8" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/camelcase": { - "version": "4.1.0", - "dev": true, - "license": "MIT", + "node_modules/define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, "engines": { - "node": ">=4" + "node": ">= 0.4" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/camelcase-keys": { - "version": "4.2.0", + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, - "license": "MIT", "dependencies": { - "camelcase": "^4.1.0", - "map-obj": "^2.0.0", - "quick-lru": "^1.0.0" + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" }, "engines": { - "node": ">=4" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/indent-string": { - "version": "3.2.0", - "dev": true, - "license": "MIT", + "node_modules/delay": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz", + "integrity": "sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" + }, + "node_modules/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", "engines": { - "node": ">=4" + "node": ">=0.10" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/map-obj": { + "node_modules/depd": { "version": "2.0.0", - "dev": true, - "license": "MIT", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "engines": { - "node": ">=4" + "node": ">= 0.8" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/meow": { - "version": "4.0.1", + "node_modules/dependency-tree": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/dependency-tree/-/dependency-tree-9.0.0.tgz", + "integrity": "sha512-osYHZJ1fBSon3lNLw70amAXsQ+RGzXsPvk9HbBgTLbp/bQBmpH5mOmsUvqXU+YEWVU0ZLewsmzOET/8jWswjDQ==", "dev": true, - "license": "MIT", "dependencies": { - "camelcase-keys": "^4.0.0", - "decamelize-keys": "^1.0.0", - "loud-rejection": "^1.0.0", - "minimist": "^1.1.3", - "minimist-options": "^3.0.1", - "normalize-package-data": "^2.3.4", - "read-pkg-up": "^3.0.0", - "redent": "^2.0.0", - "trim-newlines": "^2.0.0" + "commander": "^2.20.3", + "debug": "^4.3.1", + "filing-cabinet": "^3.0.1", + "precinct": "^9.0.0", + "typescript": "^4.0.0" + }, + "bin": { + "dependency-tree": "bin/cli.js" }, "engines": { - "node": ">=4" + "node": "^10.13 || ^12 || >=14" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/minimist-options": { - "version": "3.0.2", + "node_modules/dependency-tree/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/dependency-tree/node_modules/detective-stylus": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/detective-stylus/-/detective-stylus-3.0.0.tgz", + "integrity": "sha512-1xYTzbrduExqMYmte7Qk99IRA3Aa6oV7PYzd+3yDcQXkmENvyGF/arripri6lxRDdNYEb4fZFuHtNRAXbz3iAA==", "dev": true, - "license": "MIT", - "dependencies": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0" - }, "engines": { - "node": ">= 4" + "node": ">=12" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/read-pkg-up": { - "version": "3.0.0", + "node_modules/dependency-tree/node_modules/module-definition": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/module-definition/-/module-definition-4.1.0.tgz", + "integrity": "sha512-rHXi/DpMcD2qcKbPCTklDbX9lBKJrUSl971TW5l6nMpqKCIlzJqmQ8cfEF5M923h2OOLHPDVlh5pJxNyV+AJlw==", "dev": true, - "license": "MIT", "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" + "ast-module-types": "^4.0.0", + "node-source-walk": "^5.0.1" + }, + "bin": { + "module-definition": "bin/cli.js" }, "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/redent": { - "version": "2.0.0", + "node_modules/dependency-tree/node_modules/precinct": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/precinct/-/precinct-9.2.1.tgz", + "integrity": "sha512-uzKHaTyiVejWW7VJtHInb9KBUq9yl9ojxXGujhjhDmPon2wgZPBKQIKR+6csGqSlUeGXAA4MEFnU6DesxZib+A==", "dev": true, - "license": "MIT", "dependencies": { - "indent-string": "^3.0.0", - "strip-indent": "^2.0.0" + "@dependents/detective-less": "^3.0.1", + "commander": "^9.5.0", + "detective-amd": "^4.1.0", + "detective-cjs": "^4.1.0", + "detective-es6": "^3.0.1", + "detective-postcss": "^6.1.1", + "detective-sass": "^4.1.1", + "detective-scss": "^3.0.1", + "detective-stylus": "^3.0.0", + "detective-typescript": "^9.1.1", + "module-definition": "^4.1.0", + "node-source-walk": "^5.0.1" + }, + "bin": { + "precinct": "bin/cli.js" }, "engines": { - "node": ">=4" + "node": "^12.20.0 || ^14.14.0 || >=16.0.0" } }, - "node_modules/conventional-github-releaser/node_modules/git-raw-commits/node_modules/strip-indent": { - "version": "2.0.0", + "node_modules/dependency-tree/node_modules/precinct/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": "^12.20.0 || >=14" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags": { - "version": "2.0.3", + "node_modules/dependency-tree/node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, - "license": "MIT", - "dependencies": { - "meow": "^4.0.0", - "semver": "^6.0.0" - }, "bin": { - "git-semver-tags": "cli.js" + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, "engines": { - "node": ">=6.9.0" + "node": ">=4.2.0" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/camelcase": { - "version": "4.1.0", - "dev": true, - "license": "MIT", + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", "engines": { - "node": ">=4" + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/camelcase-keys": { - "version": "4.2.0", + "node_modules/detect-file": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", + "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==", "dev": true, - "license": "MIT", - "dependencies": { - "camelcase": "^4.1.0", - "map-obj": "^2.0.0", - "quick-lru": "^1.0.0" - }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/indent-string": { - "version": "3.2.0", + "node_modules/detect-indent": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", + "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/map-obj": { - "version": "2.0.0", - "dev": true, - "license": "MIT", + "node_modules/detect-libc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz", + "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==", "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/meow": { - "version": "4.0.1", + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, - "license": "MIT", - "dependencies": { - "camelcase-keys": "^4.0.0", - "decamelize-keys": "^1.0.0", - "loud-rejection": "^1.0.0", - "minimist": "^1.1.3", - "minimist-options": "^3.0.1", - "normalize-package-data": "^2.3.4", - "read-pkg-up": "^3.0.0", - "redent": "^2.0.0", - "trim-newlines": "^2.0.0" - }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/minimist-options": { - "version": "3.0.2", + "node_modules/detective-amd": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/detective-amd/-/detective-amd-4.2.0.tgz", + "integrity": "sha512-RbuEJHz78A8nW7CklkqTzd8lDCN42En53dgEIsya0DilpkwslamSZDasLg8dJyxbw46OxhSQeY+C2btdSkCvQQ==", "dev": true, - "license": "MIT", "dependencies": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0" + "ast-module-types": "^4.0.0", + "escodegen": "^2.0.0", + "get-amd-module-type": "^4.1.0", + "node-source-walk": "^5.0.1" + }, + "bin": { + "detective-amd": "bin/cli.js" }, "engines": { - "node": ">= 4" + "node": ">=12" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/read-pkg-up": { - "version": "3.0.0", + "node_modules/detective-cjs": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/detective-cjs/-/detective-cjs-4.1.0.tgz", + "integrity": "sha512-QxzMwt5MfPLwS7mG30zvnmOvHLx5vyVvjsAV6gQOyuMoBR5G1DhS1eJZ4P10AlH+HSnk93mTcrg3l39+24XCtg==", "dev": true, - "license": "MIT", "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" + "ast-module-types": "^4.0.0", + "node-source-walk": "^5.0.1" }, "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/redent": { - "version": "2.0.0", + "node_modules/detective-es6": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/detective-es6/-/detective-es6-3.0.1.tgz", + "integrity": "sha512-evPeYIEdK1jK3Oji5p0hX4sPV/1vK+o4ihcWZkMQE6voypSW/cIBiynOLxQk5KOOQbdP8oOAsYqouMTYO5l1sw==", "dev": true, - "license": "MIT", "dependencies": { - "indent-string": "^3.0.0", - "strip-indent": "^2.0.0" + "node-source-walk": "^5.0.0" }, "engines": { - "node": ">=4" - } - }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/conventional-github-releaser/node_modules/git-semver-tags/node_modules/strip-indent": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "node": ">=12" } }, - "node_modules/conventional-github-releaser/node_modules/hosted-git-info": { - "version": "2.8.9", - "dev": true, - "license": "ISC" - }, - "node_modules/conventional-github-releaser/node_modules/indent-string": { - "version": "2.1.0", + "node_modules/detective-less": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/detective-less/-/detective-less-1.0.2.tgz", + "integrity": "sha512-Rps1xDkEEBSq3kLdsdnHZL1x2S4NGDcbrjmd4q+PykK5aJwDdP5MBgrJw1Xo+kyUHuv3JEzPqxr+Dj9ryeDRTA==", "dev": true, - "license": "MIT", "dependencies": { - "repeating": "^2.0.0" + "debug": "^4.0.0", + "gonzales-pe": "^4.2.3", + "node-source-walk": "^4.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">= 6.0" } }, - "node_modules/conventional-github-releaser/node_modules/is-obj": { - "version": "1.0.1", + "node_modules/detective-less/node_modules/node-source-walk": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-4.3.0.tgz", + "integrity": "sha512-8Q1hXew6ETzqKRAs3jjLioSxNfT1cx74ooiF8RlAONwVMcfq+UdzLC2eB5qcPldUxaE5w3ytLkrmV1TGddhZTA==", "dev": true, - "license": "MIT", + "dependencies": { + "@babel/parser": "^7.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6.0" } }, - "node_modules/conventional-github-releaser/node_modules/locate-path": { - "version": "2.0.0", + "node_modules/detective-postcss": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/detective-postcss/-/detective-postcss-6.1.3.tgz", + "integrity": "sha512-7BRVvE5pPEvk2ukUWNQ+H2XOq43xENWbH0LcdCE14mwgTBEAMoAx+Fc1rdp76SmyZ4Sp48HlV7VedUnP6GA1Tw==", "dev": true, - "license": "MIT", "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" + "is-url": "^1.2.4", + "postcss": "^8.4.23", + "postcss-values-parser": "^6.0.2" }, "engines": { - "node": ">=4" + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/conventional-github-releaser/node_modules/lru-cache": { - "version": "6.0.0", + "node_modules/detective-sass": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/detective-sass/-/detective-sass-4.1.3.tgz", + "integrity": "sha512-xGRbwGaGte57gvEqM8B9GDiURY3El/H49vA6g9wFkxq9zalmTlTAuqWu+BsH0iwonGPruLt55tZZDEZqPc6lag==", "dev": true, - "license": "ISC", "dependencies": { - "yallist": "^4.0.0" + "gonzales-pe": "^4.3.0", + "node-source-walk": "^5.0.1" }, "engines": { - "node": ">=10" + "node": ">=12" } }, - "node_modules/conventional-github-releaser/node_modules/map-obj": { - "version": "1.0.1", + "node_modules/detective-scss": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/detective-scss/-/detective-scss-3.1.1.tgz", + "integrity": "sha512-FWkfru1jZBhUeuBsOeGKXKAVDrzYFSQFK2o2tuG/nCCFQ0U/EcXC157MNAcR5mmj+mCeneZzlkBOFJTesDjrww==", "dev": true, - "license": "MIT", + "dependencies": { + "gonzales-pe": "^4.3.0", + "node-source-walk": "^5.0.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/conventional-github-releaser/node_modules/meow": { - "version": "7.1.1", + "node_modules/detective-stylus": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/detective-stylus/-/detective-stylus-2.0.1.tgz", + "integrity": "sha512-/Tvs1pWLg8eYwwV6kZQY5IslGaYqc/GACxjcaGudiNtN5nKCH6o2WnJK3j0gA3huCnoQcbv8X7oz/c1lnvE3zQ==", "dev": true, - "license": "MIT", - "dependencies": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^2.5.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.13.1", - "yargs-parser": "^18.1.3" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6.0" } }, - "node_modules/conventional-github-releaser/node_modules/meow/node_modules/yargs-parser": { - "version": "18.1.3", + "node_modules/detective-typescript": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/detective-typescript/-/detective-typescript-9.1.1.tgz", + "integrity": "sha512-Uc1yVutTF0RRm1YJ3g//i1Cn2vx1kwHj15cnzQP6ff5koNzQ0idc1zAC73ryaWEulA0ElRXFTq6wOqe8vUQ3MA==", "dev": true, - "license": "ISC", "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "@typescript-eslint/typescript-estree": "^5.55.0", + "ast-module-types": "^4.0.0", + "node-source-walk": "^5.0.1", + "typescript": "^4.9.5" }, "engines": { - "node": ">=6" + "node": "^12.20.0 || ^14.14.0 || >=16.0.0" } }, - "node_modules/conventional-github-releaser/node_modules/normalize-package-data": { - "version": "2.5.0", + "node_modules/detective-typescript/node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" } }, - "node_modules/conventional-github-releaser/node_modules/p-limit": { - "version": "1.3.0", + "node_modules/dezalgo": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", + "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", "dev": true, - "license": "MIT", "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" + "asap": "^2.0.0", + "wrappy": "1" } }, - "node_modules/conventional-github-releaser/node_modules/p-locate": { - "version": "2.0.0", + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^1.1.0" - }, "engines": { - "node": ">=4" + "node": ">=0.3.1" } }, - "node_modules/conventional-github-releaser/node_modules/p-try": { - "version": "1.0.0", + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/conventional-github-releaser/node_modules/parse-json": { - "version": "2.2.0", + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, - "license": "MIT", "dependencies": { - "error-ex": "^1.2.0" + "path-type": "^4.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/conventional-github-releaser/node_modules/path-exists": { + "node_modules/doctrine": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, - "license": "MIT", + "dependencies": { + "esutils": "^2.0.2" + }, "engines": { - "node": ">=4" + "node": ">=6.0.0" } }, - "node_modules/conventional-github-releaser/node_modules/path-type": { - "version": "3.0.0", + "node_modules/dot-prop": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.1.tgz", + "integrity": "sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ==", "dev": true, - "license": "MIT", "dependencies": { - "pify": "^3.0.0" + "is-obj": "^1.0.0" }, "engines": { "node": ">=4" } }, - "node_modules/conventional-github-releaser/node_modules/pify": { - "version": "3.0.0", - "dev": true, - "license": "MIT", + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", "engines": { - "node": ">=4" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" } }, - "node_modules/conventional-github-releaser/node_modules/quick-lru": { - "version": "1.1.0", + "node_modules/dotgitignore": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/dotgitignore/-/dotgitignore-2.1.0.tgz", + "integrity": "sha512-sCm11ak2oY6DglEPpCB8TixLjWAxd3kJTs6UIcSasNYxXdFPV+YKlye92c8H4kKFqV5qYMIh7d+cYecEg0dIkA==", "dev": true, - "license": "MIT", + "dependencies": { + "find-up": "^3.0.0", + "minimatch": "^3.0.4" + }, "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/conventional-github-releaser/node_modules/read-pkg": { + "node_modules/dotgitignore/node_modules/find-up": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, - "license": "MIT", "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" + "locate-path": "^3.0.0" }, "engines": { - "node": ">=4" - } - }, - "node_modules/conventional-github-releaser/node_modules/semver": { - "version": "5.7.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver" + "node": ">=6" } }, - "node_modules/conventional-github-releaser/node_modules/split2": { - "version": "2.2.0", + "node_modules/dotgitignore/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, - "license": "ISC", "dependencies": { - "through2": "^2.0.2" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/conventional-github-releaser/node_modules/strip-bom": { - "version": "2.0.0", + "node_modules/dotgitignore/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "license": "MIT", "dependencies": { - "is-utf8": "^0.2.0" + "p-try": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/conventional-github-releaser/node_modules/strip-indent": { - "version": "1.0.1", + "node_modules/dotgitignore/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, - "license": "MIT", "dependencies": { - "get-stdin": "^4.0.1" - }, - "bin": { - "strip-indent": "cli.js" + "p-limit": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/conventional-github-releaser/node_modules/through2": { - "version": "2.0.5", + "node_modules/dotgitignore/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/dreamopt": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/dreamopt/-/dreamopt-0.8.0.tgz", + "integrity": "sha512-vyJTp8+mC+G+5dfgsY+r3ckxlz+QMX40VjPQsZc5gxVAxLmi64TBoVkP54A/pRAXMXsbu2GMMBrZPxNv23waMg==", "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "wordwrap": ">=0.0.2" + }, + "engines": { + "node": ">=0.4.0" } }, - "node_modules/conventional-github-releaser/node_modules/type-fest": { + "node_modules/duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", + "dev": true + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/electron-to-chromium": { + "version": "1.4.625", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.625.tgz", + "integrity": "sha512-DENMhh3MFgaPDoXWrVIqSPInQoLImywfCwrSmVl3cf9QHzoZSiutHwGaB/Ql3VkqcQV30rzgdM+BjKqBAJxo5Q==", + "dev": true + }, + "node_modules/emittery": { "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sindresorhus/emittery?sponsor=1" } }, - "node_modules/conventional-github-releaser/node_modules/yallist": { - "version": "4.0.0", - "dev": true, - "license": "ISC" + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, - "node_modules/conventional-recommended-bump": { - "version": "6.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "concat-stream": "^2.0.0", - "conventional-changelog-preset-loader": "^2.3.4", - "conventional-commits-filter": "^2.0.7", - "conventional-commits-parser": "^3.2.0", - "git-raw-commits": "^2.0.8", - "git-semver-tags": "^4.1.1", - "meow": "^8.0.0", - "q": "^1.5.1" - }, - "bin": { - "conventional-recommended-bump": "cli.js" - }, + "node_modules/empty-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/empty-dir/-/empty-dir-1.0.0.tgz", + "integrity": "sha512-97qcDM6mUA1jAeX6cktw7akc5awIGA+VIkA5MygKOKA+c2Vseo/xwKN0JNJTUhZUtPwZboKVD2p1xu+sV/F4xA==", "engines": { - "node": ">=10" + "node": ">= 0.8.0" } }, - "node_modules/conventional-recommended-bump/node_modules/concat-stream": { + "node_modules/enabled": { "version": "2.0.0", - "dev": true, - "engines": [ - "node >= 6.0" - ], - "license": "MIT", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", + "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==" + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.0.2", - "typedarray": "^0.0.6" + "once": "^1.4.0" } }, - "node_modules/conventional-recommended-bump/node_modules/readable-stream": { - "version": "3.6.0", + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", "dev": true, - "license": "MIT", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" }, "engines": { - "node": ">= 6" + "node": ">=10.13.0" } }, - "node_modules/convert-hex": { - "version": "0.1.0" - }, - "node_modules/convert-source-map": { - "version": "1.9.0", + "node_modules/entities": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.3.0.tgz", + "integrity": "sha512-/iP1rZrSEJ0DTlPiX+jbzlA3eVkY/e8L8SozroF395fIqE3TYF/Nz7YOMAawta+vLmyJ/hkGNNPcSbMADCCXbg==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } }, - "node_modules/convert-string": { - "version": "0.1.0" + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } }, - "node_modules/cookiejar": { + "node_modules/error-stack-parser": { "version": "2.1.4", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", + "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", + "dependencies": { + "stackframe": "^1.3.4" + } + }, + "node_modules/es-abstract": { + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", "dev": true, - "license": "MIT" + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.5", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.2", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "node_modules/cookies": { - "version": "0.8.0", - "license": "MIT", + "node_modules/es-set-tostringtag": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", + "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", + "dev": true, "dependencies": { - "depd": "~2.0.0", - "keygrip": "~1.1.0" + "get-intrinsic": "^1.2.2", + "has-tostringtag": "^1.0.0", + "hasown": "^2.0.0" }, "engines": { - "node": ">= 0.8" + "node": ">= 0.4" } }, - "node_modules/copy-to": { - "version": "2.0.1", - "license": "MIT" - }, - "node_modules/core-util-is": { - "version": "1.0.3", + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", "dev": true, - "license": "MIT" + "dependencies": { + "hasown": "^2.0.0" + } }, - "node_modules/cosmiconfig": { - "version": "8.0.0", + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", "dev": true, - "license": "MIT", "dependencies": { - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0" + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" }, "engines": { - "node": ">=14" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/cosmiconfig-typescript-loader": { - "version": "4.3.0", + "node_modules/es6-promise": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", + "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==" + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12", - "npm": ">=6" - }, - "peerDependencies": { - "@types/node": "*", - "cosmiconfig": ">=7", - "ts-node": ">=10", - "typescript": ">=3" + "node": ">=6" } }, - "node_modules/create-require": { - "version": "1.1.1", - "dev": true, - "license": "MIT" + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" }, - "node_modules/cross-spawn": { - "version": "7.0.3", + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", "dev": true, - "license": "MIT", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" }, "engines": { - "node": ">= 8" + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" } }, - "node_modules/crypt": { - "version": "0.0.2", - "license": "BSD-3-Clause", + "node_modules/escodegen/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, "engines": { - "node": "*" + "node": ">=4.0" } }, - "node_modules/crypto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", - "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==", - "deprecated": "This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in." - }, - "node_modules/crypto-js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", - "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" - }, - "node_modules/currently-unhandled": { - "version": "0.4.1", + "node_modules/escodegen/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "MIT", - "dependencies": { - "array-find-index": "^1.0.1" - }, + "optional": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/cz-conventional-changelog": { - "version": "3.3.0", + "node_modules/eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", "dev": true, - "license": "MIT", "dependencies": { - "chalk": "^2.4.1", - "commitizen": "^4.0.3", - "conventional-commit-types": "^3.0.0", - "lodash.map": "^4.5.1", - "longest": "^2.0.1", - "word-wrap": "^1.0.3" + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" }, "engines": { - "node": ">= 10" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, - "optionalDependencies": { - "@commitlint/load": ">6.1.1" + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/cz-conventional-changelog/node_modules/ansi-styles": { - "version": "3.2.1", + "node_modules/eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", "dev": true, - "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" }, "engines": { - "node": ">=4" + "node": "^10.12.0 || >=12.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.2" } }, - "node_modules/cz-conventional-changelog/node_modules/chalk": { - "version": "2.4.2", + "node_modules/eslint-config-airbnb-base/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/cz-conventional-changelog/node_modules/color-convert": { - "version": "1.9.3", + "node_modules/eslint-config-airbnb-typescript": { + "version": "17.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-17.1.0.tgz", + "integrity": "sha512-GPxI5URre6dDpJ0CtcthSZVBAfI+Uw7un5OYNVxP2EYi3H81Jw701yFP7AU+/vCE7xBtFmjge7kfhhk4+RAiig==", "dev": true, - "license": "MIT", "dependencies": { - "color-name": "1.1.3" + "eslint-config-airbnb-base": "^15.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^5.13.0 || ^6.0.0", + "@typescript-eslint/parser": "^5.0.0 || ^6.0.0", + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.3" } }, - "node_modules/cz-conventional-changelog/node_modules/color-name": { - "version": "1.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/cz-conventional-changelog/node_modules/has-flag": { - "version": "3.0.0", + "node_modules/eslint-config-prettier": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", + "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" } }, - "node_modules/cz-conventional-changelog/node_modules/supports-color": { - "version": "5.5.0", + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", "dev": true, - "license": "MIT", "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" } }, - "node_modules/dargs": { - "version": "7.0.0", + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" + "dependencies": { + "ms": "^2.1.1" } }, - "node_modules/dateformat": { - "version": "3.0.3", + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "license": "MIT", "dependencies": { - "ms": "2.1.2" + "debug": "^3.2.7" }, "engines": { - "node": ">=6.0" + "node": ">=4" }, "peerDependenciesMeta": { - "supports-color": { + "eslint": { "optional": true } } }, - "node_modules/decamelize": { - "version": "1.2.0", + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "ms": "^2.1.1" } }, - "node_modules/decamelize-keys": { - "version": "1.1.1", + "node_modules/eslint-plugin-import": { + "version": "2.29.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", "dev": true, - "license": "MIT", "dependencies": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.15.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decamelize-keys/node_modules/map-obj": { - "version": "1.0.1", - "dev": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" } }, - "node_modules/decode-uri-component": { - "version": "0.2.2", + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10" + "dependencies": { + "ms": "^2.1.1" } }, - "node_modules/decompress-response": { - "version": "3.3.0", + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, - "license": "MIT", "dependencies": { - "mimic-response": "^1.0.0" + "esutils": "^2.0.2" }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/dedent": { - "version": "0.7.0", + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "MIT" + "bin": { + "semver": "bin/semver.js" + } }, - "node_modules/deep-extend": { - "version": "0.6.0", + "node_modules/eslint-plugin-json": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-json/-/eslint-plugin-json-3.1.0.tgz", + "integrity": "sha512-MrlG2ynFEHe7wDGwbUuFPsaT2b1uhuEFhJ+W1f1u+1C2EkXmTYJp4B1aAdQQ8M+CC3t//N/oRKiIVw14L2HR1g==", "dev": true, - "license": "MIT", + "dependencies": { + "lodash": "^4.17.21", + "vscode-json-languageservice": "^4.1.6" + }, "engines": { - "node": ">=4.0.0" + "node": ">=12.0" } }, - "node_modules/deep-is": { - "version": "0.1.4", - "dev": true, - "license": "MIT" - }, - "node_modules/deepmerge": { - "version": "4.2.2", + "node_modules/eslint-plugin-sonarjs": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.19.0.tgz", + "integrity": "sha512-6+s5oNk5TFtVlbRxqZN7FIGmjdPCYQKaTzFPmqieCmsU1kBYDzndTeQav0xtQNwZJWu5awWfTGe8Srq9xFOGnw==", "dev": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=14" + }, + "peerDependencies": { + "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/defaults": { - "version": "1.0.4", - "license": "MIT", + "node_modules/eslint-plugin-unicorn": { + "version": "46.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-46.0.1.tgz", + "integrity": "sha512-setGhMTiLAddg1asdwjZ3hekIN5zLznNa5zll7pBPwFOka6greCKDQydfqy4fqyUhndi74wpDzClSQMEcmOaew==", + "dev": true, "dependencies": { - "clone": "^1.0.2" + "@babel/helper-validator-identifier": "^7.19.1", + "@eslint-community/eslint-utils": "^4.1.2", + "ci-info": "^3.6.1", + "clean-regexp": "^1.0.0", + "esquery": "^1.4.0", + "indent-string": "^4.0.0", + "is-builtin-module": "^3.2.0", + "jsesc": "^3.0.2", + "lodash": "^4.17.21", + "pluralize": "^8.0.0", + "read-pkg-up": "^7.0.1", + "regexp-tree": "^0.1.24", + "regjsparser": "^0.9.1", + "safe-regex": "^2.1.1", + "semver": "^7.3.8", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=14.18" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" + }, + "peerDependencies": { + "eslint": ">=8.28.0" } }, - "node_modules/defaults/node_modules/clone": { - "version": "1.0.4", - "license": "MIT", + "node_modules/eslint-plugin-unicorn/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, "engines": { - "node": ">=0.8" + "node": ">=8" } }, - "node_modules/define-properties": { - "version": "1.1.4", + "node_modules/eslint-plugin-unicorn/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" + "p-locate": "^4.1.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/delay": { - "version": "5.0.0", - "license": "MIT", + "node_modules/eslint-plugin-unicorn/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/delegates": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/denque": { - "version": "2.1.0", - "license": "Apache-2.0", + "node_modules/eslint-plugin-unicorn/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, "engines": { - "node": ">=0.10" + "node": ">=8" } }, - "node_modules/depd": { - "version": "2.0.0", - "license": "MIT", + "node_modules/eslint-plugin-unicorn/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, "engines": { - "node": ">= 0.8" + "node": ">=8" } }, - "node_modules/dependency-tree": { - "version": "9.0.0", + "node_modules/eslint-plugin-unicorn/node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, - "license": "MIT", "dependencies": { - "commander": "^2.20.3", - "debug": "^4.3.1", - "filing-cabinet": "^3.0.1", - "precinct": "^9.0.0", - "typescript": "^4.0.0" - }, - "bin": { - "dependency-tree": "bin/cli.js" + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" }, "engines": { - "node": "^10.13 || ^12 || >=14" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/dependency-tree/node_modules/ast-module-types": { - "version": "4.0.0", + "node_modules/eslint-plugin-unicorn/node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12.0" + "node": ">=8" } }, - "node_modules/dependency-tree/node_modules/commander": { - "version": "2.20.3", - "dev": true, - "license": "MIT" - }, - "node_modules/dependency-tree/node_modules/detective-stylus": { - "version": "3.0.0", + "node_modules/eslint-plugin-unicorn/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/dependency-tree/node_modules/module-definition": { - "version": "4.1.0", + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, - "license": "MIT", "dependencies": { - "ast-module-types": "^4.0.0", - "node-source-walk": "^5.0.1" - }, - "bin": { - "module-definition": "bin/cli.js" + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" }, "engines": { - "node": ">=12" + "node": ">=8.0.0" } }, - "node_modules/dependency-tree/node_modules/node-source-walk": { - "version": "5.0.1", + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.0.0" - }, "engines": { - "node": ">=12" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/dependency-tree/node_modules/precinct": { - "version": "9.2.1", + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, - "license": "MIT", "dependencies": { - "@dependents/detective-less": "^3.0.1", - "commander": "^9.5.0", - "detective-amd": "^4.1.0", - "detective-cjs": "^4.1.0", - "detective-es6": "^3.0.1", - "detective-postcss": "^6.1.1", - "detective-sass": "^4.1.1", - "detective-scss": "^3.0.1", - "detective-stylus": "^3.0.0", - "detective-typescript": "^9.1.1", - "module-definition": "^4.1.0", - "node-source-walk": "^5.0.1" - }, - "bin": { - "precinct": "bin/cli.js" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, - "engines": { - "node": "^12.20.0 || ^14.14.0 || >=16.0.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/dependency-tree/node_modules/precinct/node_modules/commander": { - "version": "9.5.0", + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "node": "^12.20.0 || >=14" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/dependency-tree/node_modules/typescript": { - "version": "4.9.5", + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=4.2.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/destroy": { - "version": "1.2.0", - "license": "MIT", + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" + "node": ">=7.0.0" } }, - "node_modules/detect-file": { - "version": "1.0.0", + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/detect-indent": { - "version": "6.1.0", + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, - "license": "MIT", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, "engines": { - "node": ">=8" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/detect-libc": { - "version": "2.0.2", - "license": "Apache-2.0", + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=4.0" } }, - "node_modules/detect-newline": { - "version": "3.1.0", + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/detective-amd": { - "version": "4.1.0", + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "ast-module-types": "^4.0.0", - "escodegen": "^2.0.0", - "get-amd-module-type": "^4.1.0", - "node-source-walk": "^5.0.1" - }, - "bin": { - "detective-amd": "bin/cli.js" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/detective-amd/node_modules/ast-module-types": { - "version": "4.0.0", + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, - "license": "MIT", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, "engines": { - "node": ">=12.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/detective-amd/node_modules/node-source-walk": { - "version": "5.0.1", + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.0.0" + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" }, "engines": { - "node": ">=12" + "node": ">=4" } }, - "node_modules/detective-cjs": { - "version": "4.1.0", + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, - "license": "MIT", "dependencies": { - "ast-module-types": "^4.0.0", - "node-source-walk": "^5.0.1" + "estraverse": "^5.1.0" }, "engines": { - "node": ">=12" + "node": ">=0.10" } }, - "node_modules/detective-cjs/node_modules/ast-module-types": { - "version": "4.0.0", + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12.0" + "node": ">=4.0" } }, - "node_modules/detective-cjs/node_modules/node-source-walk": { - "version": "5.0.1", + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.0.0" + "estraverse": "^5.2.0" }, "engines": { - "node": ">=12" + "node": ">=4.0" } }, - "node_modules/detective-es6": { - "version": "3.0.1", + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, - "license": "MIT", - "dependencies": { - "node-source-walk": "^5.0.0" - }, "engines": { - "node": ">=12" + "node": ">=4.0" } }, - "node_modules/detective-es6/node_modules/node-source-walk": { - "version": "5.0.1", + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.0.0" - }, "engines": { - "node": ">=12" + "node": ">=4.0" } }, - "node_modules/detective-less": { - "version": "1.0.2", + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.0.0", - "gonzales-pe": "^4.2.3", - "node-source-walk": "^4.0.0" - }, "engines": { - "node": ">= 6.0" + "node": ">=0.10.0" } }, - "node_modules/detective-postcss": { - "version": "6.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "is-url": "^1.2.4", - "postcss": "^8.4.21", - "postcss-values-parser": "^6.0.2" - }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + "node": ">=0.8.x" } }, - "node_modules/detective-sass": { - "version": "4.1.1", + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "license": "MIT", "dependencies": { - "gonzales-pe": "^4.3.0", - "node-source-walk": "^5.0.0" + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" }, "engines": { - "node": ">=12" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/detective-sass/node_modules/node-source-walk": { - "version": "5.0.1", + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.0.0" - }, "engines": { - "node": ">=12" + "node": ">= 0.8.0" } }, - "node_modules/detective-scss": { - "version": "3.0.1", + "node_modules/expand-tilde": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", + "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", "dev": true, - "license": "MIT", "dependencies": { - "gonzales-pe": "^4.3.0", - "node-source-walk": "^5.0.0" + "homedir-polyfill": "^1.0.1" }, "engines": { - "node": ">=12" + "node": ">=0.10.0" } }, - "node_modules/detective-scss/node_modules/node-source-walk": { - "version": "5.0.1", + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.0.0" + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=12" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/detective-stylus": { - "version": "2.0.1", + "node_modules/expose-gc": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/expose-gc/-/expose-gc-1.0.0.tgz", + "integrity": "sha512-ecOHrdm+zyOCGIwX18/1RHkUWgxDqGGRiGhaNC+42jReTtudbm2ID/DMa/wpaHwqy5YQHPZvsDqRM2F2iZ0uVA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6.0" + "node": ">=4" } }, - "node_modules/detective-typescript": { - "version": "9.1.1", + "node_modules/external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "^5.55.0", - "ast-module-types": "^4.0.0", - "node-source-walk": "^5.0.1", - "typescript": "^4.9.5" + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" }, "engines": { - "node": "^12.20.0 || ^14.14.0 || >=16.0.0" + "node": ">=4" } }, - "node_modules/detective-typescript/node_modules/ast-module-types": { - "version": "4.0.0", + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, - "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, "engines": { - "node": ">=12.0" + "node": ">=8.6.0" } }, - "node_modules/detective-typescript/node_modules/node-source-walk": { - "version": "5.0.1", + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.0.0" + "is-glob": "^4.0.1" }, "engines": { - "node": ">=12" + "node": ">= 6" } }, - "node_modules/detective-typescript/node_modules/typescript": { - "version": "4.9.5", + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fast-printf": { + "version": "1.6.9", + "resolved": "https://registry.npmjs.org/fast-printf/-/fast-printf-1.6.9.tgz", + "integrity": "sha512-FChq8hbz65WMj4rstcQsFB0O7Cy++nmbNfLYnD9cYv2cRn8EG6k/MGn9kO/tjO66t09DLDugj3yL+V2o6Qftrg==", "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "dependencies": { + "boolean": "^3.1.4" }, "engines": { - "node": ">=4.2.0" + "node": ">=10.0" } }, - "node_modules/dezalgo": { - "version": "1.0.4", - "dev": true, - "license": "ISC", + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true + }, + "node_modules/fast-xml-parser": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", + "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], "dependencies": { - "asap": "^2.0.0", - "wrappy": "1" + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" } }, - "node_modules/diff": { - "version": "4.0.2", + "node_modules/fastq": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz", + "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" + "dependencies": { + "reusify": "^1.0.4" } }, - "node_modules/diff-sequences": { - "version": "29.4.3", + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "dependencies": { + "bser": "2.1.1" } }, - "node_modules/dir-glob": { - "version": "3.0.1", + "node_modules/fecha": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", + "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" + }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, - "license": "MIT", "dependencies": { - "path-type": "^4.0.0" + "escape-string-regexp": "^1.0.5" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/doctrine": { - "version": "3.0.0", + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "esutils": "^2.0.2" + "flat-cache": "^3.0.4" }, "engines": { - "node": ">=6.0.0" + "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/dotenv": { - "version": "16.0.3", - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - } + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" }, - "node_modules/dotgitignore": { - "version": "2.1.0", + "node_modules/filing-cabinet": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/filing-cabinet/-/filing-cabinet-3.3.1.tgz", + "integrity": "sha512-renEK4Hh6DUl9Vl22Y3cxBq1yh8oNvbAdXnhih0wVpmea+uyKjC9K4QeRjUaybIiIewdzfum+Fg15ZqJ/GyCaA==", "dev": true, - "license": "ISC", "dependencies": { - "find-up": "^3.0.0", - "minimatch": "^3.0.4" + "app-module-path": "^2.2.0", + "commander": "^2.20.3", + "debug": "^4.3.3", + "enhanced-resolve": "^5.8.3", + "is-relative-path": "^1.0.2", + "module-definition": "^3.3.1", + "module-lookup-amd": "^7.0.1", + "resolve": "^1.21.0", + "resolve-dependency-path": "^2.0.0", + "sass-lookup": "^3.0.0", + "stylus-lookup": "^3.0.1", + "tsconfig-paths": "^3.10.1", + "typescript": "^3.9.7" + }, + "bin": { + "filing-cabinet": "bin/cli.js" }, "engines": { - "node": ">=6" + "node": ">=10.13.0" } }, - "node_modules/dotgitignore/node_modules/find-up": { - "version": "3.0.0", + "node_modules/filing-cabinet/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/filing-cabinet/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^3.0.0" + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, "engines": { - "node": ">=6" + "node": ">=4.2.0" } }, - "node_modules/dotgitignore/node_modules/locate-path": { - "version": "3.0.0", + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, - "license": "MIT", "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "to-regex-range": "^5.0.1" }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/dotgitignore/node_modules/p-limit": { - "version": "2.3.0", + "node_modules/find-node-modules": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/find-node-modules/-/find-node-modules-2.1.3.tgz", + "integrity": "sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg==", "dev": true, - "license": "MIT", "dependencies": { - "p-try": "^2.0.0" + "findup-sync": "^4.0.0", + "merge": "^2.1.1" + } + }, + "node_modules/find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", + "dev": true + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/dotgitignore/node_modules/p-locate": { - "version": "3.0.0", + "node_modules/findit2": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/findit2/-/findit2-2.2.3.tgz", + "integrity": "sha512-lg/Moejf4qXovVutL0Lz4IsaPoNYMuxt4PA0nGqFxnJ1CTTGGlEO2wKgoDpwknhvZ8k4Q2F+eesgkLbG2Mxfog==", + "engines": { + "node": ">=0.8.22" + } + }, + "node_modules/findup-sync": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-4.0.0.tgz", + "integrity": "sha512-6jvvn/12IC4quLBL1KNokxC7wWTvYncaVUYSoxWw7YykPLuRrnv4qdHcSOywOI5RpkOVGeQRtWM8/q+G6W6qfQ==", "dev": true, - "license": "MIT", "dependencies": { - "p-limit": "^2.0.0" + "detect-file": "^1.0.0", + "is-glob": "^4.0.0", + "micromatch": "^4.0.2", + "resolve-dir": "^1.0.1" }, "engines": { - "node": ">=6" + "node": ">= 8" } }, - "node_modules/dotgitignore/node_modules/path-exists": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "node_modules/flat": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "bin": { + "flat": "cli.js" } }, - "node_modules/dreamopt": { - "version": "0.8.0", + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, "dependencies": { - "wordwrap": ">=0.0.2" + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" }, "engines": { - "node": ">=0.4.0" + "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/duplexer3": { - "version": "0.1.5", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "dev": true, - "license": "MIT" + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true }, - "node_modules/ee-first": { - "version": "1.1.1", - "license": "MIT" + "node_modules/flatten": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.3.tgz", + "integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==", + "deprecated": "flatten is deprecated in favor of utility frameworks such as lodash.", + "dev": true }, - "node_modules/electron-to-chromium": { - "version": "1.4.450", - "dev": true, - "license": "ISC" + "node_modules/fn.name": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", + "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==" }, - "node_modules/emittery": { - "version": "0.13.1", - "dev": true, - "license": "MIT", + "node_modules/follow-redirects": { + "version": "1.15.4", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", + "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], "engines": { - "node": ">=12" + "node": ">=4.0" }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" + "peerDependenciesMeta": { + "debug": { + "optional": true + } } }, - "node_modules/emoji-regex": { - "version": "9.2.2", + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", "dev": true, - "license": "MIT" - }, - "node_modules/empty-dir": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/enabled": { - "version": "2.0.0", - "license": "MIT" - }, - "node_modules/encodeurl": { - "version": "1.0.2", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "license": "MIT", "dependencies": { - "once": "^1.4.0" + "is-callable": "^1.1.3" } }, - "node_modules/enhanced-resolve": { - "version": "5.12.0", + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", "dev": true, - "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" }, "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/entities": { - "version": "4.3.0", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" + "node": ">=14" }, "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/error-stack-parser": { - "version": "2.1.4", - "license": "MIT", - "dependencies": { - "stackframe": "^1.3.4" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/es-abstract": { - "version": "1.21.0", + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.0", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.4", - "is-array-buffer": "^3.0.0", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - }, "engines": { - "node": ">= 0.4" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/formidable": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz", + "integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==", "dev": true, - "license": "MIT", "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" + "dezalgo": "^1.0.4", + "hexoid": "^1.0.0", + "once": "^1.4.0", + "qs": "^6.11.0" }, + "funding": { + "url": "https://ko-fi.com/tunnckoCore/commissions" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", "engines": { - "node": ">= 0.4" + "node": ">= 0.6" } }, - "node_modules/es-shim-unscopables": { - "version": "1.0.0", + "node_modules/from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", "dev": true, - "license": "MIT", "dependencies": { - "has": "^1.0.3" + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" } }, - "node_modules/es-to-primitive": { - "version": "1.2.1", + "node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, - "license": "MIT", "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=10" } }, - "node_modules/es6-promise": { - "version": "3.3.1", - "license": "MIT" + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } }, - "node_modules/escalade": { - "version": "3.1.1", - "dev": true, - "license": "MIT", + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/escape-html": { - "version": "1.0.3", - "license": "MIT" + "node_modules/fs-minipass/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "license": "MIT", + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=0.8.0" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/escodegen": { - "version": "2.0.0", + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" }, "engines": { - "node": ">=6.0" + "node": ">= 0.4" }, - "optionalDependencies": { - "source-map": "~0.6.1" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/escodegen/node_modules/levn": { - "version": "0.3.0", + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/escodegen/node_modules/optionator": { - "version": "0.8.3", - "dev": true, - "license": "MIT", + "node_modules/gauge": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" }, "engines": { - "node": ">= 0.8.0" + "node": ">=10" } }, - "node_modules/escodegen/node_modules/prelude-ls": { - "version": "1.1.2", + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, "engines": { - "node": ">= 0.8.0" + "node": ">=6.9.0" } }, - "node_modules/escodegen/node_modules/type-check": { - "version": "0.3.2", + "node_modules/get-amd-module-type": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-amd-module-type/-/get-amd-module-type-4.1.0.tgz", + "integrity": "sha512-0e/eK6vTGCnSfQ6eYs3wtH05KotJYIP7ZIZEueP/KlA+0dIAEs8bYFvOd/U56w1vfjhJqBagUxVMyy9Tr/cViQ==", "dev": true, - "license": "MIT", "dependencies": { - "prelude-ls": "~1.1.2" + "ast-module-types": "^4.0.0", + "node-source-walk": "^5.0.1" }, "engines": { - "node": ">= 0.8.0" + "node": ">=12" } }, - "node_modules/eslint": { - "version": "8.41.0", + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.41.0", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "dependencies": { + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-config-airbnb-base": { - "version": "15.0.0", + "node_modules/get-own-enumerable-property-symbols": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", + "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==", + "dev": true + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, - "license": "MIT", - "dependencies": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - }, "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "peerDependencies": { - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.2" + "node": ">=8.0.0" } }, - "node_modules/eslint-config-airbnb-base/node_modules/semver": { - "version": "6.3.1", + "node_modules/get-pkg-repo": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz", + "integrity": "sha512-xPCyvcEOxCJDxhBfXDNH+zA7mIRGb2aY1gIUJWsZkpJbp1BLHl+/Sycg26Dv+ZbZAJkO61tzbBtqHUi30NGBvg==", "dev": true, - "license": "ISC", + "dependencies": { + "hosted-git-info": "^2.1.4", + "meow": "^3.3.0", + "normalize-package-data": "^2.3.0", + "parse-github-repo-url": "^1.3.0", + "through2": "^2.0.0" + }, "bin": { - "semver": "bin/semver.js" + "get-pkg-repo": "cli.js" } }, - "node_modules/eslint-config-airbnb-typescript": { - "version": "17.0.0", + "node_modules/get-pkg-repo/node_modules/camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==", "dev": true, - "license": "MIT", - "dependencies": { - "eslint-config-airbnb-base": "^15.0.0" - }, - "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.13.0", - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.3" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint-config-prettier": { - "version": "8.8.0", + "node_modules/get-pkg-repo/node_modules/camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha512-bA/Z/DERHKqoEOrp+qeGKw1QlvEQkGZSc0XaY6VnTxZr+Kv1G5zFwttpjv8qxZ/sBPT4nthwZaAcsAZTJlSKXQ==", "dev": true, - "license": "MIT", - "bin": { - "eslint-config-prettier": "bin/cli.js" + "dependencies": { + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" }, - "peerDependencies": { - "eslint": ">=7.0.0" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.7", + "node_modules/get-pkg-repo/node_modules/find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", "dev": true, - "license": "MIT", "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", + "node_modules/get-pkg-repo/node_modules/indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha512-aqwDFWSgSgfRaEwao5lg5KEcVd/2a+D1rvoG7NdilmYz0NwRk6StWpWdz/Hpk34MKPpx7s8XxUqimfcQK6gGlg==", "dev": true, - "license": "MIT", "dependencies": { - "ms": "^2.1.1" + "repeating": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint-module-utils": { - "version": "2.7.4", + "node_modules/get-pkg-repo/node_modules/load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", "dev": true, - "license": "MIT", "dependencies": { - "debug": "^3.2.7" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" }, "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } + "node": ">=0.10.0" } }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", + "node_modules/get-pkg-repo/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-import": { - "version": "2.27.5", + "node_modules/get-pkg-repo/node_modules/meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha512-TNdwZs0skRlpPpCUK25StC4VH+tP5GgeY1HQOOGP+lQ2xtdkN2VtT/5tiX9k3IWpkBPV9b3LsAWXn4GGi/PrSA==", "dev": true, - "license": "MIT", "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" + "camelcase-keys": "^2.0.0", + "decamelize": "^1.1.2", + "loud-rejection": "^1.0.0", + "map-obj": "^1.0.1", + "minimist": "^1.1.3", + "normalize-package-data": "^2.3.4", + "object-assign": "^4.0.1", + "read-pkg-up": "^1.0.1", + "redent": "^1.0.0", + "trim-newlines": "^1.0.0" }, "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", + "node_modules/get-pkg-repo/node_modules/parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", "dev": true, - "license": "MIT", "dependencies": { - "ms": "^2.1.1" + "error-ex": "^1.2.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { + "node_modules/get-pkg-repo/node_modules/path-exists": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "esutils": "^2.0.2" + "pinkie-promise": "^2.0.0" }, "engines": { "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-plugin-json": { - "version": "3.1.0", + "node_modules/get-pkg-repo/node_modules/path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", "dev": true, - "license": "MIT", "dependencies": { - "lodash": "^4.17.21", - "vscode-json-languageservice": "^4.1.6" + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" }, "engines": { - "node": ">=12.0" + "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-sonarjs": { - "version": "0.19.0", + "node_modules/get-pkg-repo/node_modules/read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", "dev": true, - "license": "LGPL-3.0", - "engines": { - "node": ">=14" + "dependencies": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" }, - "peerDependencies": { - "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-unicorn": { - "version": "46.0.1", + "node_modules/get-pkg-repo/node_modules/read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.19.1", - "@eslint-community/eslint-utils": "^4.1.2", - "ci-info": "^3.6.1", - "clean-regexp": "^1.0.0", - "esquery": "^1.4.0", - "indent-string": "^4.0.0", - "is-builtin-module": "^3.2.0", - "jsesc": "^3.0.2", - "lodash": "^4.17.21", - "pluralize": "^8.0.0", - "read-pkg-up": "^7.0.1", - "regexp-tree": "^0.1.24", - "regjsparser": "^0.9.1", - "safe-regex": "^2.1.1", - "semver": "^7.3.8", - "strip-indent": "^3.0.0" + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" }, "engines": { - "node": ">=14.18" - }, - "funding": { - "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" - }, - "peerDependencies": { - "eslint": ">=8.28.0" + "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-unicorn/node_modules/jsesc": { - "version": "3.0.2", + "node_modules/get-pkg-repo/node_modules/redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha512-qtW5hKzGQZqKoh6JNSD+4lfitfPKGz42e6QwiRmPM5mmKtR0N41AbJRYu0xJi7nhOJ4WDgRkKvAk6tw4WIwR4g==", "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" + "dependencies": { + "indent-string": "^2.1.0", + "strip-indent": "^1.0.1" }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/eslint-scope": { - "version": "7.2.0", + "node_modules/get-pkg-repo/node_modules/strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" + "is-utf8": "^0.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=0.10.0" } }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.1", + "node_modules/get-pkg-repo/node_modules/strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha512-I5iQq6aFMM62fBEAIB/hXzwJD6EEZ0xEGCX2t7oXqaKPIRgt4WruAQ285BISgdkP+HLGWyeGmNJcpIwFeRYRUA==", "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "dependencies": { + "get-stdin": "^4.0.1" }, - "funding": { - "url": "https://opencollective.com/eslint" + "bin": { + "strip-indent": "cli.js" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint/node_modules/ajv": { - "version": "6.12.6", + "node_modules/get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==", "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -12067,400 +11045,394 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/json-schema-traverse": { - "version": "0.4.1", - "dev": true, - "license": "MIT" - }, - "node_modules/espree": { - "version": "9.5.2", + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/esprima": { - "version": "4.0.1", - "dev": true, - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" + "node_modules/get-value": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-3.0.1.tgz", + "integrity": "sha512-mKZj9JLQrwMBtj5wxi6MH8Z5eSKaERpAwjg43dPtlGI1ZVEgH/qC7T8/6R2OBSUA+zzHBZgICsVJaEIV2tKTDA==", + "dependencies": { + "isobject": "^3.0.1" }, "engines": { - "node": ">=4" + "node": ">=6.0" } }, - "node_modules/esquery": { - "version": "1.5.0", + "node_modules/gh-got": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/gh-got/-/gh-got-7.1.0.tgz", + "integrity": "sha512-KeWkkhresa7sbpzQLYzITMgez5rMigUsijhmSAHcLDORIMUbdlkdoZyaN1wQvIjmUZnyb/wkAPaXb4MQKX0mdQ==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "estraverse": "^5.1.0" + "got": "^8.0.0", + "is-plain-obj": "^1.1.0" }, "engines": { - "node": ">=0.10" + "node": ">=4" } }, - "node_modules/esrecurse": { - "version": "4.3.0", + "node_modules/git-raw-commits": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.11.tgz", + "integrity": "sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "estraverse": "^5.2.0" + "dargs": "^7.0.0", + "lodash": "^4.17.15", + "meow": "^8.0.0", + "split2": "^3.0.0", + "through2": "^4.0.0" + }, + "bin": { + "git-raw-commits": "cli.js" }, "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "dev": true, - "license": "MIT" - }, - "node_modules/events": { - "version": "3.3.0", - "license": "MIT", - "engines": { - "node": ">=0.8.x" + "node": ">=10" } }, - "node_modules/execa": { - "version": "5.1.1", + "node_modules/git-raw-commits/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "node": ">= 6" } }, - "node_modules/exit": { - "version": "0.1.2", + "node_modules/git-raw-commits/node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, - "engines": { - "node": ">= 0.8.0" + "dependencies": { + "readable-stream": "3" } }, - "node_modules/expand-tilde": { - "version": "2.0.2", + "node_modules/git-remote-origin-url": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz", + "integrity": "sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw==", "dev": true, - "license": "MIT", "dependencies": { - "homedir-polyfill": "^1.0.1" + "gitconfiglocal": "^1.0.0", + "pify": "^2.3.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/expect": { - "version": "29.6.0", + "node_modules/git-semver-tags": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-2.0.3.tgz", + "integrity": "sha512-tj4FD4ww2RX2ae//jSrXZzrocla9db5h0V7ikPl1P/WwoZar9epdUhwR7XHXSgc+ZkNq72BEEerqQuicoEQfzA==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/expect-utils": "^29.6.0", - "@types/node": "*", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.6.0", - "jest-message-util": "^29.6.0", - "jest-util": "^29.6.0" + "meow": "^4.0.0", + "semver": "^6.0.0" + }, + "bin": { + "git-semver-tags": "cli.js" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=6.9.0" } }, - "node_modules/expose-gc": { - "version": "1.0.0", + "node_modules/git-semver-tags/node_modules/camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, - "node_modules/external-editor": { - "version": "3.1.0", + "node_modules/git-semver-tags/node_modules/camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha512-Ej37YKYbFUI8QiYlvj9YHb6/Z60dZyPJW0Cs8sFilMbd2lP0bw3ylAq9yJkK4lcTA2dID5fG8LjmJYbO7kWb7Q==", "dev": true, - "license": "MIT", "dependencies": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" + "camelcase": "^4.1.0", + "map-obj": "^2.0.0", + "quick-lru": "^1.0.0" }, "engines": { "node": ">=4" } }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "license": "MIT" + "node_modules/git-semver-tags/node_modules/indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==", + "dev": true, + "engines": { + "node": ">=4" + } }, - "node_modules/fast-glob": { - "version": "3.2.12", + "node_modules/git-semver-tags/node_modules/map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha512-TzQSV2DiMYgoF5RycneKVUzIa9bQsj/B3tTgsE3dOGqlzHnGIDaC7XBE7grnA+8kZPnfqSGFe95VHc2oc0VFUQ==", "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, "engines": { - "node": ">=8.6.0" + "node": ">=4" } }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", + "node_modules/git-semver-tags/node_modules/meow": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.1.tgz", + "integrity": "sha512-xcSBHD5Z86zaOc+781KrupuHAzeGXSLtiAOmBsiLDiPSaYSB6hdew2ng9EBAnZ62jagG9MHAOdxpDi/lWBFJ/A==", "dev": true, - "license": "ISC", "dependencies": { - "is-glob": "^4.0.1" + "camelcase-keys": "^4.0.0", + "decamelize-keys": "^1.0.0", + "loud-rejection": "^1.0.0", + "minimist": "^1.1.3", + "minimist-options": "^3.0.1", + "normalize-package-data": "^2.3.4", + "read-pkg-up": "^3.0.0", + "redent": "^2.0.0", + "trim-newlines": "^2.0.0" }, "engines": { - "node": ">= 6" + "node": ">=4" } }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stringify": { - "version": "2.7.13", + "node_modules/git-semver-tags/node_modules/minimist-options": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", + "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", "dev": true, - "license": "MIT", "dependencies": { - "ajv": "^6.11.0", - "deepmerge": "^4.2.2", - "rfdc": "^1.2.0", - "string-similarity": "^4.0.1" + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0" }, "engines": { - "node": ">= 10.0.0" + "node": ">= 4" } }, - "node_modules/fast-json-stringify/node_modules/ajv": { - "version": "6.12.6", + "node_modules/git-semver-tags/node_modules/quick-lru": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", + "integrity": "sha512-tRS7sTgyxMXtLum8L65daJnHUhfDUgboRdcWW2bR9vBfrj2+O5HSMbQOJfJJjIVSPFqbBCF37FpwWXGitDc5tA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/git-semver-tags/node_modules/redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha512-XNwrTx77JQCEMXTeb8movBKuK75MgH0RZkujNuDKCezemx/voapl9i2gCSi8WWm8+ox5ycJi1gxF22fR7c0Ciw==", "dev": true, - "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "indent-string": "^3.0.0", + "strip-indent": "^2.0.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=4" } }, - "node_modules/fast-json-stringify/node_modules/json-schema-traverse": { - "version": "0.4.1", + "node_modules/git-semver-tags/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "MIT" + "bin": { + "semver": "bin/semver.js" + } }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", + "node_modules/git-semver-tags/node_modules/strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha512-RsSNPLpq6YUL7QYy44RnPVTn/lcVZtb48Uof3X5JLbF4zD/Gs7ZFDv2HWol+leoQN2mT86LAzSshGfkTlSOpsA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=4" + } }, - "node_modules/fast-printf": { - "version": "1.6.9", + "node_modules/gitconfiglocal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz", + "integrity": "sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "boolean": "^3.1.4" - }, - "engines": { - "node": ">=10.0" + "ini": "^1.3.2" } }, - "node_modules/fast-safe-stringify": { - "version": "2.1.1", + "node_modules/glob": { + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", "dev": true, - "license": "MIT" - }, - "node_modules/fast-xml-parser": { - "version": "4.2.5", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "license": "MIT", "dependencies": { - "strnum": "^1.0.5" + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" }, "bin": { - "fxparser": "src/cli/cli.js" + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/fastq": { - "version": "1.15.0", + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, - "license": "ISC", "dependencies": { - "reusify": "^1.0.4" + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" } }, - "node_modules/fb-watchman": { - "version": "2.0.2", + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "bser": "2.1.1" + "balanced-match": "^1.0.0" } }, - "node_modules/fecha": { - "version": "4.2.3", - "license": "MIT" - }, - "node_modules/figures": { - "version": "3.2.0", + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, - "license": "MIT", "dependencies": { - "escape-string-regexp": "^1.0.5" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/file-entry-cache": { - "version": "6.0.1", + "node_modules/global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg==", "dev": true, - "license": "MIT", "dependencies": { - "flat-cache": "^3.0.4" + "ini": "^1.3.4" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=4" } }, - "node_modules/file-uri-to-path": { + "node_modules/global-modules": { "version": "1.0.0", - "license": "MIT" - }, - "node_modules/filing-cabinet": { - "version": "3.3.1", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", + "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", "dev": true, - "license": "MIT", "dependencies": { - "app-module-path": "^2.2.0", - "commander": "^2.20.3", - "debug": "^4.3.3", - "enhanced-resolve": "^5.8.3", - "is-relative-path": "^1.0.2", - "module-definition": "^3.3.1", - "module-lookup-amd": "^7.0.1", - "resolve": "^1.21.0", - "resolve-dependency-path": "^2.0.0", - "sass-lookup": "^3.0.0", - "stylus-lookup": "^3.0.1", - "tsconfig-paths": "^3.10.1", - "typescript": "^3.9.7" - }, - "bin": { - "filing-cabinet": "bin/cli.js" + "global-prefix": "^1.0.1", + "is-windows": "^1.0.1", + "resolve-dir": "^1.0.0" }, "engines": { - "node": ">=10.13.0" + "node": ">=0.10.0" } }, - "node_modules/filing-cabinet/node_modules/commander": { - "version": "2.20.3", + "node_modules/global-prefix": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", + "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==", "dev": true, - "license": "MIT" + "dependencies": { + "expand-tilde": "^2.0.2", + "homedir-polyfill": "^1.0.1", + "ini": "^1.3.4", + "is-windows": "^1.0.1", + "which": "^1.2.14" + }, + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/filing-cabinet/node_modules/typescript": { - "version": "3.9.10", + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "dependencies": { + "isexe": "^2.0.0" }, - "engines": { - "node": ">=4.2.0" + "bin": { + "which": "bin/which" } }, - "node_modules/fill-range": { - "version": "7.0.1", + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, - "license": "MIT", "dependencies": { - "to-regex-range": "^5.0.1" + "type-fest": "^0.20.2" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/find-node-modules": { - "version": "2.1.3", + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", "dev": true, - "license": "MIT", "dependencies": { - "findup-sync": "^4.0.0", - "merge": "^2.1.1" + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/find-root": { - "version": "1.1.0", - "dev": true, - "license": "MIT" - }, - "node_modules/find-up": { - "version": "5.0.0", + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, - "license": "MIT", "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" }, "engines": { "node": ">=10" @@ -12469,640 +11441,937 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/findit2": { - "version": "2.2.3", - "license": "MIT", - "engines": { - "node": ">=0.8.22" - } - }, - "node_modules/findup-sync": { - "version": "4.0.0", + "node_modules/gonzales-pe": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/gonzales-pe/-/gonzales-pe-4.3.0.tgz", + "integrity": "sha512-otgSPpUmdWJ43VXyiNgEYE4luzHCL2pz4wQ0OnDluC6Eg4Ko3Vexy/SrSynglw/eR+OhkzmqFCZa/OFa/RgAOQ==", "dev": true, - "license": "MIT", "dependencies": { - "detect-file": "^1.0.0", - "is-glob": "^4.0.0", - "micromatch": "^4.0.2", - "resolve-dir": "^1.0.1" + "minimist": "^1.2.5" + }, + "bin": { + "gonzales": "bin/gonzales.js" }, "engines": { - "node": ">= 8" + "node": ">=0.6.0" } }, - "node_modules/flat": { - "version": "5.0.2", - "license": "BSD-3-Clause", - "bin": { - "flat": "cli.js" + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/flat-cache": { - "version": "3.0.4", + "node_modules/got": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz", + "integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==", "dev": true, - "license": "MIT", "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" + "@sindresorhus/is": "^0.7.0", + "cacheable-request": "^2.1.1", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "into-stream": "^3.1.0", + "is-retry-allowed": "^1.1.0", + "isurl": "^1.0.0-alpha5", + "lowercase-keys": "^1.0.0", + "mimic-response": "^1.0.0", + "p-cancelable": "^0.4.0", + "p-timeout": "^2.0.1", + "pify": "^3.0.0", + "safe-buffer": "^5.1.1", + "timed-out": "^4.0.1", + "url-parse-lax": "^3.0.0", + "url-to-options": "^1.0.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=4" } }, - "node_modules/flatted": { - "version": "3.2.7", + "node_modules/got/node_modules/get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", "dev": true, - "license": "ISC" + "engines": { + "node": ">=4" + } }, - "node_modules/flatten": { - "version": "1.0.3", + "node_modules/got/node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=4" + } }, - "node_modules/fn.name": { - "version": "1.1.0", - "license": "MIT" + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true }, - "node_modules/follow-redirects": { - "version": "1.15.2", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "license": "MIT", + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw==", + "dev": true + }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, "engines": { - "node": ">=4.0" + "node": ">=0.4.7" }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } + "optionalDependencies": { + "uglify-js": "^3.1.4" } }, - "node_modules/for-each": { - "version": "0.3.3", + "node_modules/handlebars/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.1.3" + "engines": { + "node": ">=6" } }, - "node_modules/foreground-child": { - "version": "3.1.1", + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", "dev": true, - "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" + "get-intrinsic": "^1.2.2" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", "engines": { - "node": ">=14" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", + "node_modules/has-symbol-support-x": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", + "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==", "dev": true, - "license": "ISC", "engines": { - "node": ">=14" + "node": "*" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/form-data": { - "version": "4.0.0", - "license": "MIT", + "node_modules/has-to-string-tag-x": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", + "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", + "dev": true, "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "has-symbol-support-x": "^1.4.1" }, "engines": { - "node": ">= 6" + "node": "*" } }, - "node_modules/formidable": { - "version": "2.1.2", - "dev": true, - "license": "MIT", + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", "dependencies": { - "dezalgo": "^1.0.4", - "hexoid": "^1.0.0", - "once": "^1.4.0", - "qs": "^6.11.0" + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://ko-fi.com/tunnckoCore/commissions" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/fresh": { - "version": "0.5.2", - "license": "MIT", + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" + }, + "node_modules/has-value": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-2.0.2.tgz", + "integrity": "sha512-ybKOlcRsK2MqrM3Hmz/lQxXHZ6ejzSPzpNabKB45jb5qDgJvKPa3SdapTsTLwEb9WltgWpOmNax7i+DzNOk4TA==", + "dependencies": { + "get-value": "^3.0.0", + "has-values": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/has-values": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-2.0.1.tgz", + "integrity": "sha512-+QdH3jOmq9P8GfdjFg0eJudqx1FqU62NQJ4P16rOEHeRdl7ckgwn6uqQjzYE0ZoHVV/e5E2esuJ5Gl5+HUW19w==", + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dependencies": { + "function-bind": "^1.1.2" + }, "engines": { - "node": ">= 0.6" + "node": ">= 0.4" } }, - "node_modules/from2": { - "version": "2.3.0", + "node_modules/heap": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", + "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==" + }, + "node_modules/hexoid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", + "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/fs-extra": { - "version": "9.1.0", + "node_modules/homedir-polyfill": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", + "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", "dev": true, - "license": "MIT", "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "parse-passwd": "^1.0.0" }, "engines": { - "node": ">=10" + "node": ">=0.10.0" } }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "license": "ISC", + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-assert": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/http-assert/-/http-assert-1.5.0.tgz", + "integrity": "sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w==", "dependencies": { - "minipass": "^3.0.0" + "deep-equal": "~1.0.1", + "http-errors": "~1.8.0" }, "engines": { - "node": ">= 8" + "node": ">= 0.8" } }, - "node_modules/fs-minipass/node_modules/minipass": { - "version": "3.3.6", - "license": "ISC", + "node_modules/http-assert/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/http-assert/node_modules/http-errors": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz", + "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==", "dependencies": { - "yallist": "^4.0.0" + "depd": "~1.1.2", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.1" }, "engines": { - "node": ">=8" + "node": ">= 0.6" } }, - "node_modules/fs-minipass/node_modules/yallist": { - "version": "4.0.0", - "license": "ISC" + "node_modules/http-assert/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "engines": { + "node": ">= 0.6" + } }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "license": "ISC" + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", + "dev": true }, - "node_modules/fsevents": { - "version": "2.3.2", - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "node": ">= 0.8" } }, - "node_modules/function-bind": { - "version": "1.1.1", - "license": "MIT" + "node_modules/http-graceful-shutdown": { + "version": "3.1.13", + "resolved": "https://registry.npmjs.org/http-graceful-shutdown/-/http-graceful-shutdown-3.1.13.tgz", + "integrity": "sha512-Ci5LRufQ8AtrQ1U26AevS8QoMXDOhnAHCJI3eZu1com7mZGHxREmw3dNj85ftpQokQCvak8nI2pnFS8zyM1M+Q==", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">=4.0.0" + } }, - "node_modules/function.prototype.name": { - "version": "1.1.5", + "node_modules/http-terminator": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/http-terminator/-/http-terminator-3.2.0.tgz", + "integrity": "sha512-JLjck1EzPaWjsmIf8bziM3p9fgR1Y3JoUKAkyYEbZmFrIvJM6I8vVJfBGWlEtV9IWOvzNnaTtjuwZeBY2kwB4g==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" + "delay": "^5.0.0", + "p-wait-for": "^3.2.0", + "roarr": "^7.0.4", + "type-fest": "^2.3.3" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=14" } }, - "node_modules/functions-have-names": { - "version": "1.2.3", + "node_modules/http-terminator/node_modules/type-fest": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", + "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=12.20" + }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/gauge": { - "version": "3.0.2", - "license": "ISC", + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.2", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.1", - "object-assign": "^4.1.1", - "signal-exit": "^3.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.2" + "agent-base": "6", + "debug": "4" }, "engines": { - "node": ">=10" + "node": ">= 6" } }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", + "node_modules/human-format": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/human-format/-/human-format-1.2.0.tgz", + "integrity": "sha512-GIjOefWusTiXEPezbuI59uc1G2SNMpym6w1wNfoWAG6QrTsWueuauR5We0xHHuzoJKIYTwwNtTEy0ahyji5KXw==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": ">=4" } }, - "node_modules/get-amd-module-type": { - "version": "4.1.0", + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "license": "MIT", - "dependencies": { - "ast-module-types": "^4.0.0", - "node-source-walk": "^5.0.1" - }, "engines": { - "node": ">=12" + "node": ">=10.17.0" } }, - "node_modules/get-amd-module-type/node_modules/ast-module-types": { - "version": "4.0.0", + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", "dev": true, - "license": "MIT", + "bin": { + "husky": "lib/bin.js" + }, "engines": { - "node": ">=12.0" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" } }, - "node_modules/get-amd-module-type/node_modules/node-source-walk": { - "version": "5.0.1", - "dev": true, - "license": "MIT", + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dependencies": { - "@babel/parser": "^7.0.0" + "safer-buffer": ">= 2.1.2 < 3" }, "engines": { - "node": ">=12" + "node": ">=0.10.0" } }, - "node_modules/get-caller-file": { - "version": "2.0.5", + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", "dev": true, - "license": "ISC", "engines": { - "node": "6.* || 8.* || >= 10.*" + "node": ">= 4" } }, - "node_modules/get-intrinsic": { - "version": "1.1.3", - "license": "MIT", + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/get-own-enumerable-property-symbols": { - "version": "3.0.2", - "dev": true, - "license": "ISC" - }, - "node_modules/get-package-type": { - "version": "0.1.0", + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8.0.0" + "node": ">=4" } }, - "node_modules/get-pkg-repo": { - "version": "4.2.1", + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, - "license": "MIT", "dependencies": { - "@hutson/parse-repository-url": "^3.0.0", - "hosted-git-info": "^4.0.0", - "through2": "^2.0.0", - "yargs": "^16.2.0" + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" }, "bin": { - "get-pkg-repo": "src/cli.js" + "import-local-fixture": "fixtures/cli.js" }, "engines": { - "node": ">=6.9.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/get-pkg-repo/node_modules/cliui": { - "version": "7.0.4", + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/indexes-of": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", + "integrity": "sha512-bup+4tap3Hympa+JBJUG7XuOsdNQ6fxt0MHyXMKuLBKn0OqsTfvUxkUrroEX1+B2VsSHvCjiIcZVxRtYa4nllA==", + "dev": true + }, + "node_modules/inflation": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/inflation/-/inflation-2.1.0.tgz", + "integrity": "sha512-t54PPJHG1Pp7VQvxyVCJ9mBbjG3Hqryges9bXoOO6GExCPa+//i/d5GSuFtpx3ALLd7lgIAur6zrIlBQyJuMlQ==", + "engines": { + "node": ">= 0.8.0" } }, - "node_modules/get-pkg-repo/node_modules/through2": { - "version": "2.0.5", - "dev": true, - "license": "MIT", + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "once": "^1.3.0", + "wrappy": "1" } }, - "node_modules/get-pkg-repo/node_modules/yargs": { - "version": "16.2.0", + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + }, + "node_modules/inquirer": { + "version": "8.2.6", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", + "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", "dev": true, - "license": "MIT", "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^6.0.1" }, "engines": { - "node": ">=10" + "node": ">=12.0.0" } }, - "node_modules/get-stdin": { - "version": "4.0.1", + "node_modules/inquirer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/get-stream": { - "version": "6.0.1", + "node_modules/inquirer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/get-symbol-description": { - "version": "1.0.0", + "node_modules/inquirer/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" + "color-name": "~1.1.4" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=7.0.0" } }, - "node_modules/get-value": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "isobject": "^3.0.1" - }, + "node_modules/inquirer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/inquirer/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">=6.0" + "node": ">=8" } }, - "node_modules/gh-got": { - "version": "7.1.0", + "node_modules/inquirer/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "got": "^8.0.0", - "is-plain-obj": "^1.1.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/git-raw-commits": { - "version": "2.0.11", + "node_modules/inquirer/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "license": "MIT", "dependencies": { - "dargs": "^7.0.0", - "lodash": "^4.17.15", - "meow": "^8.0.0", - "split2": "^3.0.0", - "through2": "^4.0.0" - }, - "bin": { - "git-raw-commits": "cli.js" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/git-remote-origin-url": { - "version": "2.0.0", + "node_modules/internal-slot": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", + "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", "dev": true, - "license": "MIT", "dependencies": { - "gitconfiglocal": "^1.0.0", - "pify": "^2.3.0" + "get-intrinsic": "^1.2.2", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" }, "engines": { - "node": ">=4" + "node": ">= 0.4" } }, - "node_modules/git-remote-origin-url/node_modules/pify": { - "version": "2.3.0", + "node_modules/into-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", + "integrity": "sha512-TcdjPibTksa1NQximqep2r17ISRiNE9fwlfbg3F8ANdvP5/yrFTew86VcO//jk4QTaMlbjypPBq76HN2zaKfZQ==", "dev": true, - "license": "MIT", + "dependencies": { + "from2": "^2.1.1", + "p-is-promise": "^1.1.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/git-semver-tags": { - "version": "4.1.1", - "dev": true, - "license": "MIT", + "node_modules/ioredis": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.3.2.tgz", + "integrity": "sha512-1DKMMzlIHM02eBBVOFQ1+AolGjs6+xEcM4PDL7NqOS6szq7H9jSaEkIUH6/a5Hl241LzW6JLSiAbNvTQjUupUA==", "dependencies": { - "meow": "^8.0.0", - "semver": "^6.0.0" + "@ioredis/commands": "^1.1.1", + "cluster-key-slot": "^1.1.0", + "debug": "^4.3.4", + "denque": "^2.1.0", + "lodash.defaults": "^4.2.0", + "lodash.isarguments": "^3.1.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0", + "standard-as-callback": "^2.1.0" }, - "bin": { - "git-semver-tags": "cli.js" + "engines": { + "node": ">=12.22.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ioredis" + } + }, + "node_modules/ip-regex": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", + "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/git-semver-tags/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "node_modules/is": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/is/-/is-3.3.0.tgz", + "integrity": "sha512-nW24QBoPcFGGHJGUwnfpI7Yc5CdqWNdsyHQszVE/z2pKHXzh7FZ5GWhJqSyaQ9wMkQnsTx+kAI8bHlCX4tKdbg==", + "engines": { + "node": "*" } }, - "node_modules/gitconfiglocal": { - "version": "1.0.0", + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", "dev": true, - "license": "BSD", "dependencies": { - "ini": "^1.3.2" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/glob": { - "version": "10.3.3", + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", "dev": true, - "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.0.3", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" - }, - "bin": { - "glob": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=16 || 14 >=14.17" + "has-bigints": "^1.0.1" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/glob-parent": { - "version": "6.0.2", + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", "dev": true, - "license": "ISC", "dependencies": { - "is-glob": "^4.0.3" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=10.13.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" + "node_modules/is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "engines": { + "node": ">=4" } }, - "node_modules/glob/node_modules/minimatch": { - "version": "9.0.3", + "node_modules/is-builtin-module": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", + "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", "dev": true, - "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "builtin-modules": "^3.3.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/global-dirs": { - "version": "0.1.1", + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", "dev": true, - "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", "dependencies": { - "ini": "^1.3.4" + "hasown": "^2.0.0" }, - "engines": { - "node": ">=4" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/global-modules": { - "version": "1.0.0", + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", "dev": true, - "license": "MIT", "dependencies": { - "global-prefix": "^1.0.1", - "is-windows": "^1.0.1", - "resolve-dir": "^1.0.0" + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/global-prefix": { - "version": "1.0.2", + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", "dev": true, - "license": "MIT", - "dependencies": { - "expand-tilde": "^2.0.2", - "homedir-polyfill": "^1.0.1", - "ini": "^1.3.4", - "is-windows": "^1.0.1", - "which": "^1.2.14" + "bin": { + "is-docker": "cli.js" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/global-prefix/node_modules/which": { - "version": "1.3.1", + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/globals": { - "version": "13.20.0", + "node_modules/is-finite": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz", + "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==", "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" + "node": ">=0.10.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globals/node_modules/type-fest": { - "version": "0.20.2", + "node_modules/is-fullwidth-code-point": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", + "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globalthis": { - "version": "1.0.3", + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", "dependencies": { - "define-properties": "^1.1.3" + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -13111,195 +12380,200 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/globby": { - "version": "11.1.0", + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, - "license": "MIT", "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" + "is-extglob": "^2.1.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "node_modules/gonzales-pe": { - "version": "4.3.0", + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-ip": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", + "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "gonzales": "bin/gonzales.js" + "ip-regex": "^4.0.0" }, "engines": { - "node": ">=0.6.0" + "node": ">=8" } }, - "node_modules/gopd": { - "version": "1.0.1", + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/got": { - "version": "8.3.2", + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", - "dependencies": { - "@sindresorhus/is": "^0.7.0", - "cacheable-request": "^2.1.1", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^3.0.0", - "into-stream": "^3.1.0", - "is-retry-allowed": "^1.1.0", - "isurl": "^1.0.0-alpha5", - "lowercase-keys": "^1.0.0", - "mimic-response": "^1.0.0", - "p-cancelable": "^0.4.0", - "p-timeout": "^2.0.1", - "pify": "^3.0.0", - "safe-buffer": "^5.1.1", - "timed-out": "^4.0.1", - "url-parse-lax": "^3.0.0", - "url-to-options": "^1.0.1" - }, "engines": { - "node": ">=4" + "node": ">=0.12.0" } }, - "node_modules/got/node_modules/get-stream": { - "version": "3.0.0", + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", "dev": true, - "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, "engines": { - "node": ">=4" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/got/node_modules/pify": { - "version": "3.0.0", + "node_modules/is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/graceful-fs": { - "version": "4.2.10", + "node_modules/is-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.2.tgz", + "integrity": "sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==", "dev": true, - "license": "ISC" + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "node_modules/graphemer": { - "version": "1.4.0", + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=8" + } }, - "node_modules/growly": { - "version": "1.3.0", + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/handlebars": { - "version": "4.7.8", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", - "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" + "isobject": "^3.0.1" }, "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" + "node": ">=0.10.0" } }, - "node_modules/hard-rejection": { - "version": "2.1.0", - "dev": true, - "license": "MIT", + "node_modules/is-primitive": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-3.0.1.tgz", + "integrity": "sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==", "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/has": { - "version": "1.0.3", - "license": "MIT", + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, "dependencies": { - "function-bind": "^1.1.1" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">= 0.4.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-bigints": { - "version": "1.0.2", + "node_modules/is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/has-flag": { - "version": "4.0.0", + "node_modules/is-relative-path": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-relative-path/-/is-relative-path-1.0.2.tgz", + "integrity": "sha512-i1h+y50g+0hRbBD+dbnInl3JlJ702aar58snAeX+MxBAPvzXGej7sYoPMhlnykabt0ZzCJNBEyzMlekuQZN7fA==", + "dev": true + }, + "node_modules/is-retry-allowed": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", + "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", "dev": true, - "license": "MIT", "dependencies": { - "get-intrinsic": "^1.1.1" + "call-bind": "^1.0.2" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-proto": { - "version": "1.0.1", - "dev": true, - "license": "MIT", + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "engines": { - "node": ">= 0.4" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/has-symbol-support-x": { - "version": "1.4.2", + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, "engines": { "node": ">= 0.4" }, @@ -13307,20 +12581,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-to-string-tag-x": { - "version": "1.4.1", + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", "dev": true, - "license": "MIT", - "dependencies": { - "has-symbol-support-x": "^1.4.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" }, @@ -13331,1126 +12596,1410 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-unicode": { - "version": "2.0.1", - "license": "ISC" - }, - "node_modules/has-value": { - "version": "2.0.2", - "license": "MIT", + "node_modules/is-text-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", + "integrity": "sha512-xFuJpne9oFz5qDaodwmmG08e3CawH/2ZV8Qqza1Ko7Sk8POWbkRdwIoAWVhqvq0XeUzANEhKo2n0IXUGBm7A/w==", + "dev": true, "dependencies": { - "get-value": "^3.0.0", - "has-values": "^2.0.1" + "text-extensions": "^1.0.0" }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/has-values": { - "version": "2.0.1", - "license": "MIT", + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, "dependencies": { - "kind-of": "^6.0.2" + "which-typed-array": "^1.1.11" }, "engines": { - "node": ">=6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/heap": { - "version": "0.2.7", - "license": "MIT" + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/hexoid": { - "version": "1.0.0", + "node_modules/is-url": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz", + "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==", + "dev": true + }, + "node_modules/is-url-superb": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-4.0.0.tgz", + "integrity": "sha512-GI+WjezhPPcbM+tqE9LnmsY5qqjwHzTvjJ36wxYX5ujNXefSUJ/T17r5bqDV8yLhcgB59KTPNOc9O9cmHTPWsA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/homedir-polyfill": { - "version": "1.0.3", + "node_modules/is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", + "dev": true + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", "dev": true, - "license": "MIT", "dependencies": { - "parse-passwd": "^1.0.0" + "call-bind": "^1.0.2" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/hosted-git-info": { - "version": "4.1.0", + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dev": true, - "license": "ISC", "dependencies": { - "lru-cache": "^6.0.0" + "is-docker": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/iserror": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/iserror/-/iserror-0.0.2.tgz", + "integrity": "sha512-oKGGrFVaWwETimP3SiWwjDeY27ovZoyZPHtxblC4hCq9fXxed/jasx+ATWFFjCVSRZng8VTMsN1nDnGo6zMBSw==" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", "engines": { - "node": ">=10" + "node": ">=0.10.0" } }, - "node_modules/hosted-git-info/node_modules/yallist": { - "version": "4.0.0", - "dev": true, - "license": "ISC" + "node_modules/isolated-vm": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/isolated-vm/-/isolated-vm-4.5.0.tgz", + "integrity": "sha512-Kse0m5t+B9wZQVeTDqzPoX1SIFNTNfyaUxhnCuFgpXL1+5GYJ9GUAN3mpD+ainixGmUXgeYaVBX+QPDjEBBu0w==", + "hasInstallScript": true, + "engines": { + "node": ">=10.4.0" + } }, - "node_modules/html-escaper": { - "version": "2.0.2", + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=8" + } }, - "node_modules/http-assert": { - "version": "1.5.0", - "license": "MIT", + "node_modules/istanbul-lib-instrument": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz", + "integrity": "sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==", + "dev": true, "dependencies": { - "deep-equal": "~1.0.1", - "http-errors": "~1.8.0" + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" }, "engines": { - "node": ">= 0.8" + "node": ">=10" } }, - "node_modules/http-assert/node_modules/deep-equal": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/http-errors": { - "version": "1.8.1", - "license": "MIT", "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.1" + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">= 0.6" + "node": ">=10" } }, - "node_modules/http-errors/node_modules/depd": { - "version": "1.1.2", - "license": "MIT", + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { - "node": ">= 0.6" + "node": ">=8" } }, - "node_modules/http-graceful-shutdown": { - "version": "3.1.13", - "license": "MIT", + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "debug": "^4.3.4" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4.0.0" + "node": ">=8" } }, - "node_modules/http-terminator": { - "version": "3.2.0", + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "delay": "^5.0.0", - "p-wait-for": "^3.2.0", - "roarr": "^7.0.4", - "type-fest": "^2.3.3" + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" }, "engines": { - "node": ">=14" + "node": ">=10" } }, - "node_modules/http-terminator/node_modules/type-fest": { - "version": "2.19.0", + "node_modules/istanbul-lib-source-maps/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "license": "MIT", + "node_modules/istanbul-reports": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", + "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "dev": true, "dependencies": { - "agent-base": "6", - "debug": "4" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" }, "engines": { - "node": ">= 6" + "node": ">=8" } }, - "node_modules/human-format": { + "node_modules/isurl": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", + "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", "dev": true, - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "dev": true, - "license": "Apache-2.0", + "dependencies": { + "has-to-string-tag-x": "^1.2.0", + "is-object": "^1.0.1" + }, "engines": { - "node": ">=10.17.0" + "node": ">= 4" } }, - "node_modules/husky": { - "version": "8.0.3", + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", "dev": true, - "license": "MIT", - "bin": { - "husky": "lib/bin.js" + "dependencies": { + "@isaacs/cliui": "^8.0.2" }, "engines": { "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/typicode" + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "license": "MIT", + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.2.4", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" } }, - "node_modules/import-fresh": { - "version": "3.3.0", + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, - "license": "MIT", "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, - "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, "engines": { - "node": ">=4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/import-local": { - "version": "3.1.0", + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" + "color-convert": "^2.0.1" }, "engines": { "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">=0.8.19" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/indent-string": { - "version": "4.0.0", + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, "engines": { - "node": ">=8" + "node": ">=7.0.0" } }, - "node_modules/indexes-of": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/inflation": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "node_modules/jest-circus/node_modules/dedent": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", + "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } } }, - "node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "node_modules/ini": { - "version": "1.3.8", + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "ISC" + "engines": { + "node": ">=8" + } }, - "node_modules/inquirer": { - "version": "8.2.4", + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.1", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.21", - "mute-stream": "0.0.8", - "ora": "^5.4.1", - "run-async": "^2.4.0", - "rxjs": "^7.5.5", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6", - "wrap-ansi": "^7.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=12.0.0" + "node": ">=8" } }, - "node_modules/internal-slot": { - "version": "1.0.4", + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, - "license": "MIT", "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "side-channel": "^1.0.4" + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" }, "engines": { - "node": ">= 0.4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/into-stream": { - "version": "3.1.0", + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "from2": "^2.1.1", - "p-is-promise": "^1.1.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/ioredis": { - "version": "5.3.2", - "license": "MIT", + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "@ioredis/commands": "^1.1.1", - "cluster-key-slot": "^1.1.0", - "debug": "^4.3.4", - "denque": "^2.1.0", - "lodash.defaults": "^4.2.0", - "lodash.isarguments": "^3.1.0", - "redis-errors": "^1.2.0", - "redis-parser": "^3.0.0", - "standard-as-callback": "^2.1.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=12.22.0" + "node": ">=10" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/ioredis" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/ip-regex": { - "version": "4.3.0", - "license": "MIT", + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, "engines": { - "node": ">=8" + "node": ">=7.0.0" } }, - "node_modules/is": { - "version": "3.3.0", - "license": "MIT", - "engines": { - "node": "*" - } + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/is-array-buffer": { - "version": "3.0.1", + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=8" } }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "license": "MIT" - }, - "node_modules/is-bigint": { - "version": "1.0.4", + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "has-bigints": "^1.0.1" + "has-flag": "^4.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=8" } }, - "node_modules/is-boolean-object": { - "version": "1.1.2", + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" }, "engines": { - "node": ">= 0.4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } } }, - "node_modules/is-buffer": { - "version": "1.1.6", - "license": "MIT" - }, - "node_modules/is-builtin-module": { - "version": "3.2.1", + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "builtin-modules": "^3.3.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=6" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } - }, - "node_modules/is-callable": { - "version": "1.2.7", + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/is-core-module": { - "version": "2.11.0", - "license": "MIT", + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "has": "^1.0.3" + "color-name": "~1.1.4" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=7.0.0" } }, - "node_modules/is-date-object": { - "version": "1.0.5", + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-config/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": ">= 0.4" + "node": "*" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/is-docker": { - "version": "2.2.1", + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-extglob": { - "version": "2.1.1", + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/is-finite": { - "version": "1.1.0", + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-fullwidth-code-point": { - "version": "4.0.0", + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "node": ">=12" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/is-generator-fn": { - "version": "2.1.0", + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">= 0.4" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/is-glob": { - "version": "4.0.3", + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "is-extglob": "^2.1.1" + "color-name": "~1.1.4" }, "engines": { - "node": ">=0.10.0" + "node": ">=7.0.0" } }, - "node_modules/is-interactive": { - "version": "1.0.0", + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/is-ip": { - "version": "3.1.0", - "license": "MIT", + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "ip-regex": "^4.0.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/is-negative-zero": { - "version": "2.0.2", + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" + "dependencies": { + "detect-newline": "^3.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-number": { - "version": "7.0.0", + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, - "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, "engines": { - "node": ">=0.12.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-number-object": { - "version": "1.0.7", + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">= 0.4" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/is-object": { - "version": "1.0.2", + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/is-path-inside": { - "version": "3.0.3", + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/is-plain-obj": { - "version": "1.1.0", + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/is-plain-object": { - "version": "2.0.4", - "license": "MIT", + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, "dependencies": { - "isobject": "^3.0.1" + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-primitive": { - "version": "3.0.1", - "license": "MIT", + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-regex": { - "version": "1.1.4", + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" }, "engines": { - "node": ">= 0.4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "optionalDependencies": { + "fsevents": "^2.3.2" } }, - "node_modules/is-regexp": { - "version": "1.0.0", + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, - "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-relative-path": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/is-retry-allowed": { - "version": "1.2.0", + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, - "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2" + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/is-stream": { - "version": "2.0.1", - "license": "MIT", + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/is-string": { - "version": "1.0.7", + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" } }, - "node_modules/is-symbol": { - "version": "1.0.4", + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "has-symbols": "^1.0.2" + "has-flag": "^4.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/is-text-path": { - "version": "1.0.1", + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, - "license": "MIT", "dependencies": { - "text-extensions": "^1.0.0" + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-typed-array": { - "version": "1.1.10", + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">= 0.4" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-url": { - "version": "1.2.4", - "dev": true, - "license": "MIT" - }, - "node_modules/is-url-superb": { - "version": "4.0.0", - "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/is-utf8": { - "version": "0.2.1", - "dev": true, - "license": "MIT" - }, - "node_modules/is-weakref": { - "version": "1.0.2", + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2" + "color-name": "~1.1.4" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=7.0.0" } }, - "node_modules/is-windows": { - "version": "1.0.2", + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/is-wsl": { - "version": "2.2.0", + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "is-docker": "^2.0.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/isarray": { - "version": "1.0.0", + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, - "license": "MIT" - }, - "node_modules/iserror": { - "version": "0.0.2", - "license": "MIT" + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } }, - "node_modules/isexe": { - "version": "2.0.0", + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, - "license": "ISC" - }, - "node_modules/isobject": { - "version": "3.0.1", - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } } }, - "node_modules/isolated-vm": { - "version": "4.5.0", - "hasInstallScript": true, - "license": "ISC", + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, "engines": { - "node": ">=10.4.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, - "license": "BSD-3-Clause", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/istanbul-lib-instrument": { - "version": "5.2.1", + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.1", + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/istanbul-lib-report": { - "version": "3.0.0", + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", + "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" + "color-name": "~1.1.4" }, "engines": { - "node": ">=10" + "node": ">=7.0.0" } }, - "node_modules/istanbul-reports": { - "version": "3.1.5", + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/isurl": { - "version": "1.0.0", + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, - "license": "MIT", "dependencies": { - "has-to-string-tag-x": "^1.2.0", - "is-object": "^1.0.1" + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" }, "engines": { - "node": ">= 4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jackspeak": { - "version": "2.2.2", + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { - "@isaacs/cliui": "^8.0.2" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=14" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest": { - "version": "29.6.0", + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/core": "^29.6.0", - "@jest/types": "^29.6.0", - "import-local": "^3.0.2", - "jest-cli": "^29.6.0" - }, - "bin": { - "jest": "bin/jest.js" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + "node": ">=10" }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/jest-changed-files": { - "version": "29.5.0", + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "execa": "^5.0.0", - "p-limit": "^3.1.0" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/jest-circus": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "^29.6.0", - "@jest/expect": "^29.6.0", - "@jest/test-result": "^29.6.0", - "@jest/types": "^29.6.0", + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.6.0", - "jest-matcher-utils": "^29.6.0", - "jest-message-util": "^29.6.0", - "jest-runtime": "^29.6.0", - "jest-snapshot": "^29.6.0", - "jest-util": "^29.6.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.6.0", - "pure-rand": "^6.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0", - "stack-utils": "^2.0.3" + "strip-bom": "^4.0.0" }, "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-cli": { - "version": "29.6.0", + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/core": "^29.6.0", - "@jest/test-result": "^29.6.0", - "@jest/types": "^29.6.0", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^29.6.0", - "jest-util": "^29.6.0", - "jest-validate": "^29.6.0", - "prompts": "^2.0.1", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" + "color-convert": "^2.0.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + "node": ">=8" }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-config": { - "version": "29.6.0", + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.6.0", - "@jest/types": "^29.6.0", - "babel-jest": "^29.6.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.6.0", - "jest-environment-node": "^29.6.0", - "jest-get-type": "^29.4.3", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.0", - "jest-runner": "^29.6.0", - "jest-util": "^29.6.0", - "jest-validate": "^29.6.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.6.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=10" }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "ts-node": { - "optional": true - } + "engines": { + "node": ">=7.0.0" } }, - "node_modules/jest-config/node_modules/glob": { + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/glob": { "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -14466,405 +14015,418 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/jest-diff": { - "version": "29.6.0", + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, - "license": "MIT", "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.0" + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" }, "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-docblock": { - "version": "29.4.3", + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "detect-newline": "^3.0.0" + "color-convert": "^2.0.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-each": { - "version": "29.6.0", + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/types": "^29.6.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "jest-util": "^29.6.0", - "pretty-format": "^29.6.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/jest-environment-node": { - "version": "29.6.0", + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/environment": "^29.6.0", - "@jest/fake-timers": "^29.6.0", - "@jest/types": "^29.6.0", - "@types/node": "*", - "jest-mock": "^29.6.0", - "jest-util": "^29.6.0" + "color-name": "~1.1.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=7.0.0" } }, - "node_modules/jest-get-type": { - "version": "29.4.3", + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/jest-haste-map": { - "version": "29.6.0", + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/types": "^29.6.0", - "@types/graceful-fs": "^4.1.3", + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-sonar": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/jest-sonar/-/jest-sonar-0.2.16.tgz", + "integrity": "sha512-ES6Z9BbIVDELtbz+/b6pv41B2qOfp38cQpoCLqei21FtlkG/GzhyQ0M3egEIM+erpJOkpRKM8Tc8/YQtHdiTXA==", + "dev": true, + "dependencies": { + "entities": "4.3.0", + "strip-ansi": "6.0.1" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.6.0", - "jest-worker": "^29.6.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" + "picomatch": "^2.2.3" }, "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" }, - "optionalDependencies": { - "fsevents": "^2.3.2" + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-leak-detector": { - "version": "29.6.0", + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/jest-matcher-utils": { - "version": "29.6.0", + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.6.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.0" + "color-name": "~1.1.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=7.0.0" } }, - "node_modules/jest-message-util": { - "version": "29.6.0", + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.0", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.6.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/jest-mock": { - "version": "29.6.0", + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/types": "^29.6.0", - "@types/node": "*", - "jest-util": "^29.6.0" + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" }, "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" + "dependencies": { + "color-convert": "^2.0.1" }, - "peerDependencies": { - "jest-resolve": "*" + "engines": { + "node": ">=8" }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-regex-util": { - "version": "29.4.3", + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/jest-resolve": { - "version": "29.6.0", + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.6.0", - "jest-validate": "^29.6.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" + "dependencies": { + "color-name": "~1.1.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=7.0.0" } }, - "node_modules/jest-resolve-dependencies": { - "version": "29.6.0", + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", - "dependencies": { - "jest-regex-util": "^29.4.3", - "jest-snapshot": "^29.6.0" - }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/jest-runner": { - "version": "29.6.0", + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/console": "^29.6.0", - "@jest/environment": "^29.6.0", - "@jest/test-result": "^29.6.0", - "@jest/transform": "^29.6.0", - "@jest/types": "^29.6.0", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.4.3", - "jest-environment-node": "^29.6.0", - "jest-haste-map": "^29.6.0", - "jest-leak-detector": "^29.6.0", - "jest-message-util": "^29.6.0", - "jest-resolve": "^29.6.0", - "jest-runtime": "^29.6.0", - "jest-util": "^29.6.0", - "jest-watcher": "^29.6.0", - "jest-worker": "^29.6.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/jest-runtime": { - "version": "29.6.0", + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/environment": "^29.6.0", - "@jest/fake-timers": "^29.6.0", - "@jest/globals": "^29.6.0", - "@jest/source-map": "^29.6.0", - "@jest/test-result": "^29.6.0", - "@jest/transform": "^29.6.0", - "@jest/types": "^29.6.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", + "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.0", - "jest-message-util": "^29.6.0", - "jest-mock": "^29.6.0", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.0", - "jest-snapshot": "^29.6.0", - "jest-util": "^29.6.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" }, "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-runtime/node_modules/glob": { - "version": "7.2.3", + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "ISC", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "color-convert": "^2.0.1" }, "engines": { - "node": "*" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-snapshot": { - "version": "29.6.0", + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.6.0", - "@jest/transform": "^29.6.0", - "@jest/types": "^29.6.0", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.6.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.6.0", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.6.0", - "jest-message-util": "^29.6.0", - "jest-util": "^29.6.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.6.0", - "semver": "^7.5.3" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-sonar": { - "version": "0.2.16", - "dev": true, - "license": "MIT", - "dependencies": { - "entities": "4.3.0", - "strip-ansi": "6.0.1" - } - }, - "node_modules/jest-util": { - "version": "29.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.6.0", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" + "node": ">=10" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/jest-validate": { - "version": "29.6.0", + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/types": "^29.6.0", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "leven": "^3.1.0", - "pretty-format": "^29.6.0" + "color-name": "~1.1.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=7.0.0" } }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/jest-watcher": { - "version": "29.6.0", + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/test-result": "^29.6.0", - "@jest/types": "^29.6.0", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.6.0", - "string-length": "^4.0.1" + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, "node_modules/jest-when": { - "version": "3.5.2", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/jest-when/-/jest-when-3.6.0.tgz", + "integrity": "sha512-+cZWTy0ekAJo7M9Om0Scdor1jm3wDiYJWmXE8U22UVnkH54YCXAuaqz3P+up/FdtOg8g4wHOxV7Thd7nKhT6Dg==", "dev": true, - "license": "MIT", "peerDependencies": { "jest": ">= 25" } }, "node_modules/jest-worker": { - "version": "29.6.0", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*", - "jest-util": "^29.6.0", + "jest-util": "^29.7.0", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, @@ -14872,10 +14434,20 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -14886,9 +14458,20 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/jiti": { + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", + "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", + "dev": true, + "optional": true, + "bin": { + "jiti": "bin/jiti.js" + } + }, "node_modules/joi": { - "version": "17.9.2", - "license": "BSD-3-Clause", + "version": "17.11.0", + "resolved": "https://registry.npmjs.org/joi/-/joi-17.11.0.tgz", + "integrity": "sha512-NgB+lZLNoqISVy1rZocE9PZI36bL/77ie924Ri43yEvi9GUUMPeyVIr8KdFTMUlby1p0PBYMk9spIxEUQYqrJQ==", "dependencies": { "@hapi/hoek": "^9.0.0", "@hapi/topo": "^5.0.0", @@ -14899,15 +14482,18 @@ }, "node_modules/js-sha1": { "version": "0.6.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/js-sha1/-/js-sha1-0.6.0.tgz", + "integrity": "sha512-01gwBFreYydzmU9BmZxpVk6svJJHrVxEN3IOiGl6VO93bVKYETJ0sIth6DASI6mIFdt7NmfX9UiByRzsYHGU9w==" }, "node_modules/js-tokens": { "version": "4.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/js-yaml": { "version": "4.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dependencies": { "argparse": "^2.0.1" }, @@ -14916,24 +14502,27 @@ } }, "node_modules/jsesc": { - "version": "2.5.2", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", + "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json-buffer": { - "version": "3.0.0", - "dev": true, - "license": "MIT" + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true }, "node_modules/json-diff": { - "version": "1.0.3", - "license": "MIT", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/json-diff/-/json-diff-1.0.6.tgz", + "integrity": "sha512-tcFIPRdlc35YkYdGxcamJjllUhXWv4n2rK9oJ2RsAzV4FBkuV4ojKEDgcZ+kpKxDmJKv+PFK65+1tVVOnSeEqA==", "dependencies": { "@ewoudenberg/difflib": "0.1.0", "colors": "^1.4.0", @@ -14948,38 +14537,45 @@ }, "node_modules/json-parse-better-errors": { "version": "1.0.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, "node_modules/json-schema-traverse": { "version": "1.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, "node_modules/json-size": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/json-size/-/json-size-1.0.0.tgz", + "integrity": "sha512-sh8Ff4sNVI3FU1LjFXiNpcG9Er9bsn8WbeR79mGj4Ljd+/NBmxqYCV1sPzndUTGsWXa3LVUx3aLlZxpq1DzCBA==", "dependencies": { "utf8-length": "0.0.1" } }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true }, "node_modules/json-stringify-safe": { "version": "5.0.1", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true }, "node_modules/json5": { "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -14989,20 +14585,23 @@ }, "node_modules/jsonata": { "version": "2.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/jsonata/-/jsonata-2.0.3.tgz", + "integrity": "sha512-Up2H81MUtjqI/dWwWX7p4+bUMfMrQJVMN/jW6clFMTiYP528fBOBNtRu944QhKTs3+IsVWbgMeUTny5fw2VMUA==", "engines": { "node": ">= 8" } }, "node_modules/jsonc-parser": { "version": "3.2.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", + "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", + "dev": true }, "node_modules/jsonfile": { "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, - "license": "MIT", "dependencies": { "universalify": "^2.0.0" }, @@ -15012,16 +14611,18 @@ }, "node_modules/jsonparse": { "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", "dev": true, "engines": [ "node >= 0.2.0" - ], - "license": "MIT" + ] }, "node_modules/JSONStream": { "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", "dev": true, - "license": "(MIT OR Apache-2.0)", "dependencies": { "jsonparse": "^1.2.0", "through": ">=2.2.7 <3" @@ -15035,14 +14636,16 @@ }, "node_modules/jsontoxml": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/jsontoxml/-/jsontoxml-1.0.1.tgz", + "integrity": "sha512-dtKGq0K8EWQBRqcAaePSgKR4Hyjfsz/LkurHSV3Cxk4H+h2fWDeaN2jzABz+ZmOJylgXS7FGeWmbZ6jgYUMdJQ==", "engines": { "node": ">=0.2.0" } }, "node_modules/keygrip": { "version": "1.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.1.0.tgz", + "integrity": "sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==", "dependencies": { "tsscmp": "1.0.6" }, @@ -15051,37 +14654,41 @@ } }, "node_modules/keyv": { - "version": "3.0.0", + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, - "license": "MIT", "dependencies": { - "json-buffer": "3.0.0" + "json-buffer": "3.0.1" } }, "node_modules/kind-of": { "version": "6.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "engines": { "node": ">=0.10.0" } }, "node_modules/kleur": { "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/koa": { - "version": "2.14.1", - "license": "MIT", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/koa/-/koa-2.15.0.tgz", + "integrity": "sha512-KEL/vU1knsoUvfP4MC4/GthpQrY/p6dzwaaGI6Rt4NQuFqkw3qrvsdYF5pz3wOfi7IGTvMPHC9aZIcUKYFNxsw==", "dependencies": { "accepts": "^1.3.5", "cache-content-type": "^1.0.0", "content-disposition": "~0.5.2", "content-type": "^1.0.4", - "cookies": "~0.8.0", + "cookies": "~0.9.0", "debug": "^4.3.2", "delegates": "^1.0.0", "depd": "^2.0.0", @@ -15106,11 +14713,13 @@ } }, "node_modules/koa-bodyparser": { - "version": "4.4.0", - "license": "MIT", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/koa-bodyparser/-/koa-bodyparser-4.4.1.tgz", + "integrity": "sha512-kBH3IYPMb+iAXnrxIhXnW+gXV8OTzCu8VPDqvcDHW9SQrbkHmqPQtiZwrltNmSq6/lpipHnT7k7PsjlVD7kK0w==", "dependencies": { "co-body": "^6.0.0", - "copy-to": "^2.0.1" + "copy-to": "^2.0.1", + "type-is": "^1.6.18" }, "engines": { "node": ">=8.0.0" @@ -15118,11 +14727,13 @@ }, "node_modules/koa-compose": { "version": "4.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/koa-compose/-/koa-compose-4.1.0.tgz", + "integrity": "sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw==" }, "node_modules/koa-convert": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/koa-convert/-/koa-convert-2.0.0.tgz", + "integrity": "sha512-asOvN6bFlSnxewce2e/DK3p4tltyfC4VM7ZwuTuepI7dEQVcvpyFuBcEARu1+Hxg8DIwytce2n7jrZtRlPrARA==", "dependencies": { "co": "^4.6.0", "koa-compose": "^4.1.0" @@ -15131,40 +14742,172 @@ "node": ">= 10" } }, + "node_modules/koa/node_modules/http-errors": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz", + "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/koa/node_modules/http-errors/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/koa/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/koa2-swagger-ui": { - "version": "5.8.0", - "license": "MIT", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/koa2-swagger-ui/-/koa2-swagger-ui-5.10.0.tgz", + "integrity": "sha512-UEktDUyWP5BvBB8glVWHN14246IH6WZC8sryONC+v9Rm6FA3/8V+CgXpRuHkAEy0KntMwp2sJ5CutTu6ODtC3w==", "dependencies": { - "@types/koa": "^2.13.6", - "handlebars": "^4.7.7", + "handlebars": "^4.7.8", "lodash": "^4.17.21", - "read-pkg-up": "^7.0.1" + "read-pkg-up": "7.0.1" + }, + "peerDependencies": { + "@types/koa": "*" + } + }, + "node_modules/koa2-swagger-ui/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/koa2-swagger-ui/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/koa2-swagger-ui/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/koa2-swagger-ui/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/koa2-swagger-ui/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/koa2-swagger-ui/node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/koa2-swagger-ui/node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/koa2-swagger-ui/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "engines": { + "node": ">=8" } }, "node_modules/kuler": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", + "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" }, "node_modules/lazy-ass": { "version": "1.6.0", + "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", + "integrity": "sha512-cc8oEVoctTvsFZ/Oje/kGnHbpWHYBe8IAJe4C0QNc3t8uM/0Y8+erSz/7Y1ALuXTEZTMvxXwO6YbX1ey3ujiZw==", "dev": true, - "license": "MIT", "engines": { "node": "> 0.8" } }, "node_modules/leven": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/levn": { "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, - "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -15175,49 +14918,50 @@ }, "node_modules/lilconfig": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/lines-and-columns": { "version": "1.2.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "node_modules/lint-staged": { - "version": "13.2.2", + "version": "13.3.0", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.3.0.tgz", + "integrity": "sha512-mPRtrYnipYYv1FEE134ufbWpeggNTo+O/UPzngoaKzbzHAthvR55am+8GfHTnqNRQVRRrYQLGW9ZyUoD7DsBHQ==", "dev": true, - "license": "MIT", "dependencies": { - "chalk": "5.2.0", - "cli-truncate": "^3.1.0", - "commander": "^10.0.0", - "debug": "^4.3.4", - "execa": "^7.0.0", + "chalk": "5.3.0", + "commander": "11.0.0", + "debug": "4.3.4", + "execa": "7.2.0", "lilconfig": "2.1.0", - "listr2": "^5.0.7", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "object-inspect": "^1.12.3", - "pidtree": "^0.6.0", - "string-argv": "^0.3.1", - "yaml": "^2.2.2" + "listr2": "6.6.1", + "micromatch": "4.0.5", + "pidtree": "0.6.0", + "string-argv": "0.3.2", + "yaml": "2.3.1" }, "bin": { "lint-staged": "bin/lint-staged.js" }, "engines": { - "node": "^14.13.1 || >=16.0.0" + "node": "^16.14.0 || >=18.0.0" }, "funding": { "url": "https://opencollective.com/lint-staged" } }, "node_modules/lint-staged/node_modules/chalk": { - "version": "5.2.0", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", "dev": true, - "license": "MIT", "engines": { "node": "^12.17.0 || ^14.13 || >=16.0.0" }, @@ -15225,10 +14969,20 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/lint-staged/node_modules/commander": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.0.0.tgz", + "integrity": "sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==", + "dev": true, + "engines": { + "node": ">=16" + } + }, "node_modules/lint-staged/node_modules/execa": { - "version": "7.1.1", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", + "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", "dev": true, - "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.1", @@ -15249,16 +15003,18 @@ }, "node_modules/lint-staged/node_modules/human-signals": { "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=14.18.0" } }, "node_modules/lint-staged/node_modules/is-stream": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", "dev": true, - "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, @@ -15268,8 +15024,9 @@ }, "node_modules/lint-staged/node_modules/mimic-fn": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -15278,9 +15035,10 @@ } }, "node_modules/lint-staged/node_modules/npm-run-path": { - "version": "5.1.0", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.2.0.tgz", + "integrity": "sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^4.0.0" }, @@ -15291,18 +15049,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lint-staged/node_modules/object-inspect": { - "version": "1.12.3", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/lint-staged/node_modules/onetime": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", "dev": true, - "license": "MIT", "dependencies": { "mimic-fn": "^4.0.0" }, @@ -15315,8 +15066,9 @@ }, "node_modules/lint-staged/node_modules/path-key": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -15326,8 +15078,9 @@ }, "node_modules/lint-staged/node_modules/strip-final-newline": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -15335,22 +15088,30 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lint-staged/node_modules/yaml": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, "node_modules/listr2": { - "version": "5.0.8", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-6.6.1.tgz", + "integrity": "sha512-+rAXGHh0fkEWdXBmX+L6mmfmXmXvDGEKzkjxO+8mP3+nI/r/CWznVBvsibXdxda9Zz0OW2e2ikphN3OwCT/jSg==", "dev": true, - "license": "MIT", "dependencies": { - "cli-truncate": "^2.1.0", - "colorette": "^2.0.19", - "log-update": "^4.0.0", - "p-map": "^4.0.0", + "cli-truncate": "^3.1.0", + "colorette": "^2.0.20", + "eventemitter3": "^5.0.1", + "log-update": "^5.0.1", "rfdc": "^1.3.0", - "rxjs": "^7.8.0", - "through": "^2.3.8", - "wrap-ansi": "^7.0.0" + "wrap-ansi": "^8.1.0" }, "engines": { - "node": "^14.13.1 || >=16.0.0" + "node": ">=16.0.0" }, "peerDependencies": { "enquirer": ">= 2.3.0 < 3" @@ -15361,46 +15122,96 @@ } } }, - "node_modules/listr2/node_modules/cli-truncate": { - "version": "2.1.0", + "node_modules/listr2/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/listr2/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/listr2/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/listr2/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "dev": true + }, + "node_modules/listr2/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, - "license": "MIT", "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=8" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/listr2/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", + "node_modules/listr2/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, - "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/listr2/node_modules/slice-ansi": { - "version": "3.0.0", + "node_modules/listr2/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/load-json-file": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", "dev": true, - "license": "MIT", "dependencies": { "graceful-fs": "^4.1.2", "parse-json": "^4.0.0", @@ -15413,8 +15224,9 @@ }, "node_modules/load-json-file/node_modules/parse-json": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", "dev": true, - "license": "MIT", "dependencies": { "error-ex": "^1.3.1", "json-parse-better-errors": "^1.0.1" @@ -15425,24 +15237,27 @@ }, "node_modules/load-json-file/node_modules/pify": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/load-json-file/node_modules/strip-bom": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/locate-path": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -15455,80 +15270,96 @@ }, "node_modules/lodash": { "version": "4.17.21", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/lodash._reinterpolate": { "version": "3.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==", + "dev": true }, "node_modules/lodash.camelcase": { "version": "4.3.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true }, "node_modules/lodash.defaults": { "version": "4.2.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", + "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" }, "node_modules/lodash.isarguments": { "version": "3.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==" }, "node_modules/lodash.isfunction": { "version": "3.0.9", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz", + "integrity": "sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==", + "dev": true }, "node_modules/lodash.ismatch": { "version": "4.4.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", + "integrity": "sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==", + "dev": true }, "node_modules/lodash.isplainobject": { "version": "4.0.6", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "dev": true }, "node_modules/lodash.kebabcase": { "version": "4.1.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", + "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", + "dev": true }, "node_modules/lodash.map": { "version": "4.6.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.map/-/lodash.map-4.6.0.tgz", + "integrity": "sha512-worNHGKLDetmcEYDvh2stPCrrQRkP20E4l0iIS7F8EvzMqBBi7ltvFN5m1HvTf1P7Jk1txKhvFcmYsCr8O2F1Q==", + "dev": true }, "node_modules/lodash.memoize": { "version": "4.1.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true }, "node_modules/lodash.merge": { "version": "4.6.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true }, "node_modules/lodash.mergewith": { "version": "4.6.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz", + "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==", + "dev": true }, "node_modules/lodash.snakecase": { "version": "4.1.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", + "dev": true }, "node_modules/lodash.startcase": { "version": "4.4.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz", + "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==", + "dev": true }, "node_modules/lodash.template": { "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", + "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", "dev": true, - "license": "MIT", "dependencies": { "lodash._reinterpolate": "^3.0.0", "lodash.templatesettings": "^4.0.0" @@ -15536,25 +15367,29 @@ }, "node_modules/lodash.templatesettings": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", "dev": true, - "license": "MIT", "dependencies": { "lodash._reinterpolate": "^3.0.0" } }, "node_modules/lodash.uniq": { "version": "4.5.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" }, "node_modules/lodash.upperfirst": { "version": "4.3.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", + "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", + "dev": true }, "node_modules/log-symbols": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" @@ -15566,87 +15401,267 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/log-update": { - "version": "4.0.0", + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/log-update/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", + "node_modules/log-symbols/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/log-update/node_modules/slice-ansi": { + "node_modules/log-symbols/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-update": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-5.0.1.tgz", + "integrity": "sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==", + "dev": true, + "dependencies": { + "ansi-escapes": "^5.0.0", + "cli-cursor": "^4.0.0", + "slice-ansi": "^5.0.0", + "strip-ansi": "^7.0.1", + "wrap-ansi": "^8.0.1" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/ansi-escapes": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-5.0.0.tgz", + "integrity": "sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA==", + "dev": true, + "dependencies": { + "type-fest": "^1.0.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/log-update/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-update/node_modules/cli-cursor": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz", + "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "restore-cursor": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/log-update/node_modules/restore-cursor": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz", + "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==", + "dev": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/log-update/node_modules/type-fest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz", + "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==", + "dev": true, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/log-update/node_modules/wrap-ansi": { - "version": "6.2.0", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/logform": { - "version": "2.4.2", - "license": "MIT", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.6.0.tgz", + "integrity": "sha512-1ulHeNPp6k/LD8H91o7VYFBng5i1BDE7HoKxVbZiGFidS1Rj65qcywLxX+pVfAPoQJEjRdvKcusKwOupHCVOVQ==", "dependencies": { - "@colors/colors": "1.5.0", + "@colors/colors": "1.6.0", + "@types/triple-beam": "^1.3.2", "fecha": "^4.2.0", "ms": "^2.1.1", "safe-stable-stringify": "^2.3.1", "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 12.0.0" } }, "node_modules/long": { "version": "5.2.3", - "license": "Apache-2.0" + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/longest": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-2.0.1.tgz", + "integrity": "sha512-Ajzxb8CM6WAnFjgiloPsI3bF+WCxcvhdIG3KNA2KN962+tdBsHcuQ4k4qX/EcS/2CRkcc0iAkR956Nib6aXU/Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/loud-rejection": { "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ==", "dev": true, - "license": "MIT", "dependencies": { "currently-unhandled": "^0.4.1", "signal-exit": "^3.0.0" @@ -15657,24 +15672,27 @@ }, "node_modules/lowercase-keys": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/lru-cache": { "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^3.0.2" } }, "node_modules/madge": { "version": "6.1.0", + "resolved": "https://registry.npmjs.org/madge/-/madge-6.1.0.tgz", + "integrity": "sha512-irWhT5RpFOc6lkzGHKLihonCVgM0YtfNUh4IrFeW3EqHpnt/JHUG3z26j8PeJEktCGB4tmGOOOJi1Rl/ACWucQ==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.1.1", "commander": "^7.2.0", @@ -15703,66 +15721,135 @@ "madge": "bin/cli.js" }, "engines": { - "node": ">=14" + "node": ">=14" + }, + "funding": { + "type": "individual", + "url": "https://www.paypal.me/pahen" + }, + "peerDependencies": { + "typescript": "^3.9.5 || ^4.9.5 || ^5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/madge/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" }, "funding": { - "type": "individual", - "url": "https://www.paypal.me/pahen" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/madge/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, - "peerDependencies": { - "typescript": "^3.9.5 || ^4.9.5 || ^5" + "engines": { + "node": ">=10" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/madge/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, + "node_modules/madge/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/madge/node_modules/commander": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 10" } }, - "node_modules/make-dir": { - "version": "3.1.0", - "license": "MIT", + "node_modules/madge/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/madge/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "semver": "^6.0.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.1", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/make-error": { "version": "1.3.6", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true }, "node_modules/makeerror": { "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } }, "node_modules/map-obj": { "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -15771,29 +15858,38 @@ } }, "node_modules/match-json": { - "version": "1.3.5", - "license": "MIT" + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/match-json/-/match-json-1.3.7.tgz", + "integrity": "sha512-2/GIaio/oVWVHGdKOIbqfgqT5vH91K3c91l6EAsVydMAjB0iGy5PVABicKzNT1VAgHskZHbaZK9q96AmgTEqkw==" }, "node_modules/md5": { "version": "2.3.0", - "license": "BSD-3-Clause", + "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", + "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", "dependencies": { "charenc": "0.0.2", "crypt": "0.0.2", "is-buffer": "~1.1.6" } }, + "node_modules/md5/node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, "node_modules/media-typer": { "version": "0.3.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", "engines": { "node": ">= 0.6" } }, "node_modules/meow": { "version": "8.1.2", + "resolved": "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz", + "integrity": "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==", "dev": true, - "license": "MIT", "dependencies": { "@types/minimist": "^1.2.0", "camelcase-keys": "^6.2.2", @@ -15814,10 +15910,179 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/meow/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/meow/node_modules/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/meow/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/meow/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/meow/node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/meow/node_modules/read-pkg/node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/meow/node_modules/read-pkg/node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/meow/node_modules/read-pkg/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/meow/node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/meow/node_modules/type-fest": { "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -15825,35 +16090,46 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/meow/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/merge": { "version": "2.1.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/merge/-/merge-2.1.1.tgz", + "integrity": "sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w==", + "dev": true }, "node_modules/merge-stream": { "version": "2.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "node_modules/merge2": { "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/methods": { "version": "1.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", "engines": { "node": ">= 0.6" } }, "node_modules/micromatch": { "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, - "license": "MIT", "dependencies": { "braces": "^3.0.2", "picomatch": "^2.3.1" @@ -15864,8 +16140,9 @@ }, "node_modules/mime": { "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", "dev": true, - "license": "MIT", "bin": { "mime": "cli.js" }, @@ -15875,14 +16152,16 @@ }, "node_modules/mime-db": { "version": "1.52.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { "version": "2.1.35", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dependencies": { "mime-db": "1.52.0" }, @@ -15892,31 +16171,35 @@ }, "node_modules/mimic-fn": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/mimic-response": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/min-indent": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/minimatch": { "version": "3.1.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -15925,13 +16208,18 @@ } }, "node_modules/minimist": { - "version": "1.2.6", - "license": "MIT" + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/minimist-options": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", "dev": true, - "license": "MIT", "dependencies": { "arrify": "^1.0.1", "is-plain-obj": "^1.1.0", @@ -15942,16 +16230,18 @@ } }, "node_modules/minipass": { - "version": "7.0.2", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", "dev": true, - "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" } }, "node_modules/minizlib": { "version": "2.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" @@ -15962,7 +16252,8 @@ }, "node_modules/minizlib/node_modules/minipass": { "version": "3.3.6", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dependencies": { "yallist": "^4.0.0" }, @@ -15972,11 +16263,13 @@ }, "node_modules/minizlib/node_modules/yallist": { "version": "4.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/mkdirp": { "version": "1.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "bin": { "mkdirp": "bin/cmd.js" }, @@ -15986,8 +16279,9 @@ }, "node_modules/mocked-env": { "version": "1.3.5", + "resolved": "https://registry.npmjs.org/mocked-env/-/mocked-env-1.3.5.tgz", + "integrity": "sha512-GyYY6ynVOdEoRlaGpaq8UYwdWkvrsU2xRme9B+WPSuJcNjh17+3QIxSYU6zwee0SbehhV6f06VZ4ahjG+9zdrA==", "dev": true, - "license": "MIT", "dependencies": { "check-more-types": "2.24.0", "debug": "4.3.2", @@ -16000,8 +16294,9 @@ }, "node_modules/mocked-env/node_modules/debug": { "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", "dev": true, - "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -16016,7 +16311,8 @@ }, "node_modules/modclean": { "version": "3.0.0-beta.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/modclean/-/modclean-3.0.0-beta.1.tgz", + "integrity": "sha512-NyJpuqXMUI190sZePU+dBcwlGaqhfFC+UL5WyNSxmNLOHATg9cVSgRpbY+mUbwUj7t5trb4vYscgXArKevYsdA==", "dependencies": { "await-handler": "^1.1.0", "chalk": "^2.4.1", @@ -16044,36 +16340,16 @@ }, "node_modules/modclean/node_modules/ansi-regex": { "version": "3.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/modclean/node_modules/ansi-styles": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/modclean/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", "engines": { "node": ">=4" } }, "node_modules/modclean/node_modules/cli-cursor": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", "dependencies": { "restore-cursor": "^2.0.0" }, @@ -16083,29 +16359,21 @@ }, "node_modules/modclean/node_modules/cli-spinners": { "version": "1.3.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-1.3.1.tgz", + "integrity": "sha512-1QL4544moEsDVH9T/l6Cemov/37iv1RtoKf7NJ04A60+4MREXNfx/QvavbH6QoGdsD4N4Mwy49cmaINR/o2mdg==", "engines": { "node": ">=4" } }, - "node_modules/modclean/node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/modclean/node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" - }, "node_modules/modclean/node_modules/commander": { "version": "2.20.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "node_modules/modclean/node_modules/glob": { "version": "7.2.3", - "license": "ISC", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -16121,16 +16389,10 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/modclean/node_modules/has-flag": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/modclean/node_modules/log-symbols": { "version": "2.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", "dependencies": { "chalk": "^2.0.1" }, @@ -16140,14 +16402,16 @@ }, "node_modules/modclean/node_modules/mimic-fn": { "version": "1.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", "engines": { "node": ">=4" } }, "node_modules/modclean/node_modules/onetime": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", "dependencies": { "mimic-fn": "^1.0.0" }, @@ -16157,7 +16421,8 @@ }, "node_modules/modclean/node_modules/ora": { "version": "2.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ora/-/ora-2.1.0.tgz", + "integrity": "sha512-hNNlAd3gfv/iPmsNxYoAPLvxg7HuPozww7fFonMZvL84tP6Ox5igfk5j/+a9rtJJwqMgKK+JgWsAQik5o0HTLA==", "dependencies": { "chalk": "^2.3.1", "cli-cursor": "^2.1.0", @@ -16172,7 +16437,8 @@ }, "node_modules/modclean/node_modules/restore-cursor": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", "dependencies": { "onetime": "^2.0.0", "signal-exit": "^3.0.2" @@ -16183,7 +16449,8 @@ }, "node_modules/modclean/node_modules/rimraf": { "version": "2.7.1", - "license": "ISC", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "dependencies": { "glob": "^7.1.3" }, @@ -16193,7 +16460,8 @@ }, "node_modules/modclean/node_modules/strip-ansi": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", "dependencies": { "ansi-regex": "^3.0.0" }, @@ -16201,28 +16469,20 @@ "node": ">=4" } }, - "node_modules/modclean/node_modules/supports-color": { - "version": "5.5.0", - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/modify-values": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", + "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/module-definition": { "version": "3.4.0", + "resolved": "https://registry.npmjs.org/module-definition/-/module-definition-3.4.0.tgz", + "integrity": "sha512-XxJ88R1v458pifaSkPNLUTdSPNVGMP2SXVncVmApGO+gAfrLANiYe6JofymCzVceGOMwQE2xogxBSc8uB7XegA==", "dev": true, - "license": "MIT", "dependencies": { "ast-module-types": "^3.0.0", "node-source-walk": "^4.0.0" @@ -16234,10 +16494,32 @@ "node": ">=6.0" } }, + "node_modules/module-definition/node_modules/ast-module-types": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ast-module-types/-/ast-module-types-3.0.0.tgz", + "integrity": "sha512-CMxMCOCS+4D+DkOQfuZf+vLrSEmY/7xtORwdxs4wtcC1wVgvk2MqFFTwQCFhvWsI4KPU9lcWXPI8DgRiz+xetQ==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/module-definition/node_modules/node-source-walk": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-4.3.0.tgz", + "integrity": "sha512-8Q1hXew6ETzqKRAs3jjLioSxNfT1cx74ooiF8RlAONwVMcfq+UdzLC2eB5qcPldUxaE5w3ytLkrmV1TGddhZTA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.0.0" + }, + "engines": { + "node": ">=6.0" + } + }, "node_modules/module-lookup-amd": { "version": "7.0.1", + "resolved": "https://registry.npmjs.org/module-lookup-amd/-/module-lookup-amd-7.0.1.tgz", + "integrity": "sha512-w9mCNlj0S8qviuHzpakaLVc+/7q50jl9a/kmJ/n8bmXQZgDPkQHnPBb8MUOYh3WpAYkXuNc2c+khsozhIp/amQ==", "dev": true, - "license": "MIT", "dependencies": { "commander": "^2.8.1", "debug": "^4.1.0", @@ -16254,13 +16536,15 @@ }, "node_modules/module-lookup-amd/node_modules/commander": { "version": "2.20.3", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "node_modules/module-lookup-amd/node_modules/glob": { "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -16277,15 +16561,17 @@ } }, "node_modules/moment": { - "version": "2.29.4", - "license": "MIT", + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", "engines": { "node": "*" } }, "node_modules/moment-timezone": { - "version": "0.5.43", - "license": "MIT", + "version": "0.5.44", + "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.44.tgz", + "integrity": "sha512-nv3YpzI/8lkQn0U6RkLd+f0W/zy/JnoR5/EyPz/dNkPTBjA2jNLCVxaiQ8QpeLymhSZvX0wCL5s27NQWdOPwAw==", "dependencies": { "moment": "^2.29.4" }, @@ -16295,21 +16581,31 @@ }, "node_modules/ms": { "version": "2.1.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/mute-stream": { "version": "0.0.8", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true }, "node_modules/nan": { - "version": "2.17.0", - "license": "MIT" + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.18.0.tgz", + "integrity": "sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==" }, "node_modules/nanoid": { - "version": "3.3.4", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", "dev": true, - "license": "MIT", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -16319,28 +16615,33 @@ }, "node_modules/natural-compare": { "version": "1.4.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true }, "node_modules/natural-compare-lite": { "version": "1.4.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true }, "node_modules/negotiator": { "version": "0.6.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", "engines": { "node": ">= 0.6" } }, "node_modules/neo-async": { "version": "2.6.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, "node_modules/node-cache": { "version": "5.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/node-cache/-/node-cache-5.1.2.tgz", + "integrity": "sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==", "dependencies": { "clone": "2.x" }, @@ -16350,7 +16651,8 @@ }, "node_modules/node-fetch": { "version": "2.7.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -16366,25 +16668,10 @@ } } }, - "node_modules/node-fetch/node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/node-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/node-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/node-gyp-build": { "version": "3.9.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-3.9.0.tgz", + "integrity": "sha512-zLcTg6P4AbcHPq465ZMFNXx7XpKKJh+7kkN699NiQWisR2uWYOWNWqRHAmbnmKiL4e9aLSlmy5U7rEMUXV59+A==", "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js", @@ -16393,13 +16680,15 @@ }, "node_modules/node-int64": { "version": "0.4.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true }, "node_modules/node-notifier": { "version": "10.0.1", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-10.0.1.tgz", + "integrity": "sha512-YX7TSyDukOZ0g+gmzjB6abKu+hTGvO8+8+gIFDsRCU2t8fLV/P2unmt+LGFaIa4y64aX98Qksa97rgz4vMNeLQ==", "dev": true, - "license": "MIT", "dependencies": { "growly": "^1.3.0", "is-wsl": "^2.2.0", @@ -16411,31 +16700,35 @@ }, "node_modules/node-notifier/node_modules/uuid": { "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "dev": true, - "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } }, "node_modules/node-releases": { - "version": "2.0.12", - "dev": true, - "license": "MIT" + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true }, "node_modules/node-source-walk": { - "version": "4.3.0", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-5.0.2.tgz", + "integrity": "sha512-Y4jr/8SRS5hzEdZ7SGuvZGwfORvNsSsNRwDXx5WisiqzsVfeftDvRgfeqWNgZvWSJbgubTRVRYBzK6UO+ErqjA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.0.0" + "@babel/parser": "^7.21.4" }, "engines": { - "node": ">=6.0" + "node": ">=12" } }, "node_modules/nopt": { "version": "5.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", "dependencies": { "abbrev": "1" }, @@ -16447,31 +16740,38 @@ } }, "node_modules/normalize-package-data": { - "version": "3.0.3", - "dev": true, - "license": "BSD-2-Clause", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", "dependencies": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" - }, - "engines": { - "node": ">=10" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" } }, "node_modules/normalize-path": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/normalize-url": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", + "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", "dev": true, - "license": "MIT", "dependencies": { "prepend-http": "^2.0.0", "query-string": "^5.0.1", @@ -16483,8 +16783,9 @@ }, "node_modules/npm-run-path": { "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -16494,7 +16795,8 @@ }, "node_modules/npmlog": { "version": "5.0.1", - "license": "ISC", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", "dependencies": { "are-we-there-yet": "^2.0.0", "console-control-strings": "^1.1.0", @@ -16504,54 +16806,63 @@ }, "node_modules/number-is-nan": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/oauth-1.0a": { "version": "2.2.6", - "license": "MIT" + "resolved": "https://registry.npmjs.org/oauth-1.0a/-/oauth-1.0a-2.2.6.tgz", + "integrity": "sha512-6bkxv3N4Gu5lty4viIcIAnq5GbxECviMBeKR3WX/q87SPQ8E8aursPZUtsXDnxCs787af09WPRBLqYrf/lwoYQ==" }, "node_modules/object-assign": { "version": "4.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "engines": { "node": ">=0.10.0" } }, "node_modules/object-hash": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", "engines": { "node": ">= 6" } }, "node_modules/object-inspect": { - "version": "1.12.2", - "license": "MIT", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/object-keys": { "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/object-sizeof": { "version": "2.6.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/object-sizeof/-/object-sizeof-2.6.3.tgz", + "integrity": "sha512-GNkVRrLh11Qr5BGr73dwwPE200/78QG2rbx30cnXPnMvt7UuttH4Dup5t+LtcQhARkg8Hbr0c8Kiz52+CFxYmw==", "dependencies": { "buffer": "^6.0.3" } }, "node_modules/object-sizeof/node_modules/buffer": { "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", "funding": [ { "type": "github", @@ -16566,19 +16877,19 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" } }, "node_modules/object.assign": { - "version": "4.1.4", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", "has-symbols": "^1.0.3", "object-keys": "^1.1.1" }, @@ -16590,26 +16901,57 @@ } }, "node_modules/object.entries": { - "version": "1.1.6", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", + "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" } }, "node_modules/object.values": { - "version": "1.1.6", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "engines": { "node": ">= 0.4" @@ -16620,7 +16962,8 @@ }, "node_modules/on-finished": { "version": "2.4.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", "dependencies": { "ee-first": "1.1.1" }, @@ -16630,22 +16973,25 @@ }, "node_modules/once": { "version": "1.4.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dependencies": { "wrappy": "1" } }, "node_modules/one-time": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", + "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", "dependencies": { "fn.name": "1.x.x" } }, "node_modules/onetime": { "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -16657,18 +17003,22 @@ } }, "node_modules/only": { - "version": "0.0.2" + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/only/-/only-0.0.2.tgz", + "integrity": "sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ==" }, "node_modules/openapi-types": { "version": "12.1.3", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz", + "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==", "dev": true, - "license": "MIT", "peer": true }, "node_modules/optionator": { "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, - "license": "MIT", "dependencies": { "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", @@ -16683,8 +17033,9 @@ }, "node_modules/ora": { "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", "dev": true, - "license": "MIT", "dependencies": { "bl": "^4.1.0", "chalk": "^4.1.0", @@ -16703,41 +17054,116 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/ora/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ora/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ora/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ora/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/ora/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ora/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/os-tmpdir": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/p-cancelable": { "version": "0.4.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", + "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/p-finally": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/p-is-promise": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", + "integrity": "sha512-zL7VE4JVS2IFSkR2GQKDSPEVxkoH43/p7oEnwpdCndKYJO0HVeRB7fA8TJwuLOTBREtK0ea8eHaxdwcpob5dmg==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/p-limit": { "version": "3.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -16750,8 +17176,9 @@ }, "node_modules/p-locate": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -16762,24 +17189,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-map": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/p-timeout": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", + "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", "dev": true, - "license": "MIT", "dependencies": { "p-finally": "^1.0.0" }, @@ -16789,15 +17203,17 @@ }, "node_modules/p-try": { "version": "2.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "engines": { "node": ">=6" } }, "node_modules/p-wait-for": { "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-wait-for/-/p-wait-for-3.2.0.tgz", + "integrity": "sha512-wpgERjNkLrBiFmkMEjuZJEWKKDrNfHCKA1OhyN1wg1FrLkULbviEy6py1AyJUgZ72YWFbZ38FIpnqvVqAlDUwA==", "dev": true, - "license": "MIT", "dependencies": { "p-timeout": "^3.0.0" }, @@ -16810,8 +17226,9 @@ }, "node_modules/p-wait-for/node_modules/p-timeout": { "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", "dev": true, - "license": "MIT", "dependencies": { "p-finally": "^1.0.0" }, @@ -16821,8 +17238,9 @@ }, "node_modules/parent-module": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "license": "MIT", "dependencies": { "callsites": "^3.0.0" }, @@ -16832,12 +17250,14 @@ }, "node_modules/parse-github-repo-url": { "version": "1.4.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz", + "integrity": "sha512-bSWyzBKqcSL4RrncTpGsEKoJ7H8a4L3++ifTAbTFeMHyq2wRV+42DGmQcHIrJIvdcacjIOxEuKH/w4tthF17gg==", + "dev": true }, "node_modules/parse-json": { "version": "5.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -16853,61 +17273,70 @@ }, "node_modules/parse-ms": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-2.1.0.tgz", + "integrity": "sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/parse-passwd": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", + "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/parse-static-imports": { "version": "1.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/parse-static-imports/-/parse-static-imports-1.1.0.tgz", + "integrity": "sha512-HlxrZcISCblEV0lzXmAHheH/8qEkKgmqkdxyHTPbSqsTUV8GzqmN1L+SSti+VbNPfbBO3bYLPHDiUs2avbAdbA==" }, "node_modules/parseurl": { "version": "1.3.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", "engines": { "node": ">= 0.8" } }, "node_modules/path-exists": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "engines": { "node": ">=8" } }, "node_modules/path-is-absolute": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "engines": { "node": ">=0.10.0" } }, "node_modules/path-key": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/path-parse": { "version": "1.0.7", - "license": "MIT" + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-scurry": { "version": "1.10.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^9.1.1 || ^10.0.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -16920,34 +17349,39 @@ } }, "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.0.0", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.1.0.tgz", + "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==", "dev": true, - "license": "ISC", "engines": { "node": "14 || >=16.14" } }, "node_modules/path-to-regexp": { "version": "6.2.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz", + "integrity": "sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==" }, "node_modules/path-type": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/picocolors": { "version": "1.0.0", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.6" }, @@ -16957,8 +17391,9 @@ }, "node_modules/pidtree": { "version": "0.6.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", + "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", "dev": true, - "license": "MIT", "bin": { "pidtree": "bin/pidtree.js" }, @@ -16967,27 +17402,28 @@ } }, "node_modules/pify": { - "version": "5.0.0", - "license": "MIT", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, "node_modules/pinkie": { "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/pinkie-promise": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", "dev": true, - "license": "MIT", "dependencies": { "pinkie": "^2.0.0" }, @@ -16996,17 +17432,19 @@ } }, "node_modules/pirates": { - "version": "4.0.5", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/pkg-dir": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -17016,8 +17454,9 @@ }, "node_modules/pkg-dir/node_modules/find-up": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -17028,8 +17467,9 @@ }, "node_modules/pkg-dir/node_modules/locate-path": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -17039,8 +17479,9 @@ }, "node_modules/pkg-dir/node_modules/p-limit": { "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -17053,8 +17494,9 @@ }, "node_modules/pkg-dir/node_modules/p-locate": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -17064,14 +17506,17 @@ }, "node_modules/pluralize": { "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/postcss": { - "version": "8.4.21", + "version": "8.4.33", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", + "integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==", "dev": true, "funding": [ { @@ -17081,11 +17526,14 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { - "nanoid": "^3.3.4", + "nanoid": "^3.3.7", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" }, @@ -17095,8 +17543,9 @@ }, "node_modules/postcss-values-parser": { "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-6.0.2.tgz", + "integrity": "sha512-YLJpK0N1brcNJrs9WatuJFtHaV9q5aAOj+S4DI5S7jgHlRfm0PIbDCAFRYMQD5SHq7Fy6xsDhyutgS0QOAs0qw==", "dev": true, - "license": "MPL-2.0", "dependencies": { "color-name": "^1.1.4", "is-url-superb": "^4.0.0", @@ -17109,10 +17558,17 @@ "postcss": "^8.2.9" } }, + "node_modules/postcss-values-parser/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/pprof": { "version": "3.2.1", + "resolved": "https://registry.npmjs.org/pprof/-/pprof-3.2.1.tgz", + "integrity": "sha512-KnextTM3EHQ2zqN8fUjB0VpE+njcVR7cOfo7DjJSLKzIbKTPelDtokI04ScR/Vd8CLDj+M99tsaKV+K6FHzpzA==", "hasInstallScript": true, - "license": "Apache-2.0", "dependencies": { "@mapbox/node-pre-gyp": "^1.0.0", "bindings": "^1.2.1", @@ -17131,19 +17587,25 @@ }, "node_modules/pprof-format": { "version": "2.0.7", - "license": "MIT" + "resolved": "https://registry.npmjs.org/pprof-format/-/pprof-format-2.0.7.tgz", + "integrity": "sha512-1qWaGAzwMpaXJP9opRa23nPnt2Egi7RMNoNBptEE/XwHbcn4fC2b/4U4bKc5arkGkIh2ZabpF2bEb+c5GNHEKA==" }, - "node_modules/pprof/node_modules/source-map": { - "version": "0.7.4", - "license": "BSD-3-Clause", + "node_modules/pprof/node_modules/pify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", + "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==", "engines": { - "node": ">= 8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/precinct": { "version": "8.3.1", + "resolved": "https://registry.npmjs.org/precinct/-/precinct-8.3.1.tgz", + "integrity": "sha512-pVppfMWLp2wF68rwHqBIpPBYY8Kd12lDhk8LVQzOwqllifVR15qNFyod43YLyFpurKRZQKnE7E4pofAagDOm2Q==", "dev": true, - "license": "MIT", "dependencies": { "commander": "^2.20.3", "debug": "^4.3.3", @@ -17168,8 +17630,9 @@ }, "node_modules/precinct/node_modules/@typescript-eslint/types": { "version": "4.33.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.33.0.tgz", + "integrity": "sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ==", "dev": true, - "license": "MIT", "engines": { "node": "^8.10.0 || ^10.13.0 || >=11.10.1" }, @@ -17180,8 +17643,9 @@ }, "node_modules/precinct/node_modules/@typescript-eslint/typescript-estree": { "version": "4.33.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz", + "integrity": "sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "@typescript-eslint/types": "4.33.0", "@typescript-eslint/visitor-keys": "4.33.0", @@ -17206,8 +17670,9 @@ }, "node_modules/precinct/node_modules/@typescript-eslint/visitor-keys": { "version": "4.33.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz", + "integrity": "sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/types": "4.33.0", "eslint-visitor-keys": "^2.0.0" @@ -17220,15 +17685,26 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/precinct/node_modules/ast-module-types": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ast-module-types/-/ast-module-types-3.0.0.tgz", + "integrity": "sha512-CMxMCOCS+4D+DkOQfuZf+vLrSEmY/7xtORwdxs4wtcC1wVgvk2MqFFTwQCFhvWsI4KPU9lcWXPI8DgRiz+xetQ==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, "node_modules/precinct/node_modules/commander": { "version": "2.20.3", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "node_modules/precinct/node_modules/detective-amd": { "version": "3.1.2", + "resolved": "https://registry.npmjs.org/detective-amd/-/detective-amd-3.1.2.tgz", + "integrity": "sha512-jffU26dyqJ37JHR/o44La6CxtrDf3Rt9tvd2IbImJYxWKTMdBjctp37qoZ6ZcY80RHg+kzWz4bXn39e4P7cctQ==", "dev": true, - "license": "MIT", "dependencies": { "ast-module-types": "^3.0.0", "escodegen": "^2.0.0", @@ -17244,8 +17720,9 @@ }, "node_modules/precinct/node_modules/detective-cjs": { "version": "3.1.3", + "resolved": "https://registry.npmjs.org/detective-cjs/-/detective-cjs-3.1.3.tgz", + "integrity": "sha512-ljs7P0Yj9MK64B7G0eNl0ThWSYjhAaSYy+fQcpzaKalYl/UoQBOzOeLCSFEY1qEBhziZ3w7l46KG/nH+s+L7BQ==", "dev": true, - "license": "MIT", "dependencies": { "ast-module-types": "^3.0.0", "node-source-walk": "^4.0.0" @@ -17256,8 +17733,9 @@ }, "node_modules/precinct/node_modules/detective-es6": { "version": "2.2.2", + "resolved": "https://registry.npmjs.org/detective-es6/-/detective-es6-2.2.2.tgz", + "integrity": "sha512-eZUKCUsbHm8xoeoCM0z6JFwvDfJ5Ww5HANo+jPR7AzkFpW9Mun3t/TqIF2jjeWa2TFbAiGaWESykf2OQp3oeMw==", "dev": true, - "license": "MIT", "dependencies": { "node-source-walk": "^4.0.0" }, @@ -17267,8 +17745,9 @@ }, "node_modules/precinct/node_modules/detective-postcss": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detective-postcss/-/detective-postcss-4.0.0.tgz", + "integrity": "sha512-Fwc/g9VcrowODIAeKRWZfVA/EufxYL7XfuqJQFroBKGikKX83d2G7NFw6kDlSYGG3LNQIyVa+eWv1mqre+v4+A==", "dev": true, - "license": "Apache-2.0", "dependencies": { "debug": "^4.1.1", "is-url": "^1.2.4", @@ -17281,8 +17760,9 @@ }, "node_modules/precinct/node_modules/detective-sass": { "version": "3.0.2", + "resolved": "https://registry.npmjs.org/detective-sass/-/detective-sass-3.0.2.tgz", + "integrity": "sha512-DNVYbaSlmti/eztFGSfBw4nZvwsTaVXEQ4NsT/uFckxhJrNRFUh24d76KzoCC3aarvpZP9m8sC2L1XbLej4F7g==", "dev": true, - "license": "MIT", "dependencies": { "gonzales-pe": "^4.3.0", "node-source-walk": "^4.0.0" @@ -17293,8 +17773,9 @@ }, "node_modules/precinct/node_modules/detective-scss": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/detective-scss/-/detective-scss-2.0.2.tgz", + "integrity": "sha512-hDWnWh/l0tht/7JQltumpVea/inmkBaanJUcXRB9kEEXVwVUMuZd6z7eusQ6GcBFrfifu3pX/XPyD7StjbAiBg==", "dev": true, - "license": "MIT", "dependencies": { "gonzales-pe": "^4.3.0", "node-source-walk": "^4.0.0" @@ -17305,13 +17786,15 @@ }, "node_modules/precinct/node_modules/detective-stylus": { "version": "1.0.3", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/detective-stylus/-/detective-stylus-1.0.3.tgz", + "integrity": "sha512-4/bfIU5kqjwugymoxLXXLltzQNeQfxGoLm2eIaqtnkWxqbhap9puDVpJPVDx96hnptdERzS5Cy6p9N8/08A69Q==", + "dev": true }, "node_modules/precinct/node_modules/detective-typescript": { "version": "7.0.2", + "resolved": "https://registry.npmjs.org/detective-typescript/-/detective-typescript-7.0.2.tgz", + "integrity": "sha512-unqovnhxzvkCz3m1/W4QW4qGsvXCU06aU2BAm8tkza+xLnp9SOFnob2QsTxUv5PdnQKfDvWcv9YeOeFckWejwA==", "dev": true, - "license": "MIT", "dependencies": { "@typescript-eslint/typescript-estree": "^4.33.0", "ast-module-types": "^2.7.1", @@ -17324,21 +17807,24 @@ }, "node_modules/precinct/node_modules/detective-typescript/node_modules/ast-module-types": { "version": "2.7.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/ast-module-types/-/ast-module-types-2.7.1.tgz", + "integrity": "sha512-Rnnx/4Dus6fn7fTqdeLEAn5vUll5w7/vts0RN608yFa6si/rDOUonlIIiwugHBFWjylHjxm9owoSZn71KwG4gw==", + "dev": true }, "node_modules/precinct/node_modules/eslint-visitor-keys": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=10" } }, "node_modules/precinct/node_modules/get-amd-module-type": { "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-amd-module-type/-/get-amd-module-type-3.0.2.tgz", + "integrity": "sha512-PcuKwB8ouJnKuAPn6Hk3UtdfKoUV3zXRqVEvj8XGIXqjWfgd1j7QGdXy5Z9OdQfzVt1Sk29HVe/P+X74ccOuqw==", "dev": true, - "license": "MIT", "dependencies": { "ast-module-types": "^3.0.0", "node-source-walk": "^4.2.2" @@ -17347,10 +17833,23 @@ "node": ">=6.0" } }, + "node_modules/precinct/node_modules/node-source-walk": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-4.3.0.tgz", + "integrity": "sha512-8Q1hXew6ETzqKRAs3jjLioSxNfT1cx74ooiF8RlAONwVMcfq+UdzLC2eB5qcPldUxaE5w3ytLkrmV1TGddhZTA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.0.0" + }, + "engines": { + "node": ">=6.0" + } + }, "node_modules/precinct/node_modules/postcss-values-parser": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-2.0.1.tgz", + "integrity": "sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==", "dev": true, - "license": "MIT", "dependencies": { "flatten": "^1.0.2", "indexes-of": "^1.0.1", @@ -17362,8 +17861,9 @@ }, "node_modules/precinct/node_modules/typescript": { "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -17374,24 +17874,27 @@ }, "node_modules/prelude-ls": { "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8.0" } }, "node_modules/prepend-http": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/prettier": { "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", "dev": true, - "license": "MIT", "bin": { "prettier": "bin-prettier.js" }, @@ -17404,8 +17907,9 @@ }, "node_modules/pretty-bytes": { "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" }, @@ -17414,11 +17918,12 @@ } }, "node_modules/pretty-format": { - "version": "29.6.0", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, - "license": "MIT", "dependencies": { - "@jest/schemas": "^29.6.0", + "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", "react-is": "^18.0.0" }, @@ -17428,8 +17933,9 @@ }, "node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -17437,15 +17943,11 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/pretty-format/node_modules/react-is": { - "version": "18.2.0", - "dev": true, - "license": "MIT" - }, "node_modules/pretty-ms": { "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.1.tgz", + "integrity": "sha512-973driJZvxiGOQ5ONsFhOF/DtzPMOMtgC11kCpUrPGMTgqp2q/1gwzCquocrN33is0VZ5GFHXZYMM9l6h67v2Q==", "dev": true, - "license": "MIT", "dependencies": { "parse-ms": "^2.1.0" }, @@ -17458,19 +17960,22 @@ }, "node_modules/process-nextick-args": { "version": "2.0.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true }, "node_modules/progress": { "version": "2.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "engines": { "node": ">=0.4.0" } }, "node_modules/prom-client": { "version": "14.2.0", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-14.2.0.tgz", + "integrity": "sha512-sF308EhTenb/pDRPakm+WgiN+VdM/T1RaHj1x+MvAuT8UiQP8JmOEbxVqtkbfR4LrvOg5n7ic01kRBDGXjYikA==", "dependencies": { "tdigest": "^0.1.1" }, @@ -17480,8 +17985,9 @@ }, "node_modules/prompts": { "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, - "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -17492,8 +17998,9 @@ }, "node_modules/protobufjs": { "version": "7.2.5", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", + "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", "hasInstallScript": true, - "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -17514,25 +18021,30 @@ }, "node_modules/proxy-from-env": { "version": "1.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, "node_modules/pump": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "node_modules/punycode": { - "version": "2.1.1", - "license": "MIT", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "engines": { "node": ">=6" } }, "node_modules/pure-rand": { - "version": "6.0.2", + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.4.tgz", + "integrity": "sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==", "dev": true, "funding": [ { @@ -17543,21 +18055,22 @@ "type": "opencollective", "url": "https://opencollective.com/fast-check" } - ], - "license": "MIT" + ] }, "node_modules/q": { "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.6.0", "teleport": ">=0.2.0" } }, "node_modules/qs": { - "version": "6.11.1", - "license": "BSD-3-Clause", + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", + "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", "dependencies": { "side-channel": "^1.0.4" }, @@ -17570,8 +18083,9 @@ }, "node_modules/query-string": { "version": "5.1.1", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", + "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", "dev": true, - "license": "MIT", "dependencies": { "decode-uri-component": "^0.2.0", "object-assign": "^4.1.0", @@ -17583,6 +18097,8 @@ }, "node_modules/queue-microtask": { "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true, "funding": [ { @@ -17597,30 +18113,33 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/quick-lru": { "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/quote-unquote": { "version": "1.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/quote-unquote/-/quote-unquote-1.0.0.tgz", + "integrity": "sha512-twwRO/ilhlG/FIgYeKGFqyHhoEhqgnKVkcmqMKi2r524gz3ZbDTcyFt38E9xjJI2vT+KbRNHVbnJ/e0I25Azwg==", + "dev": true }, "node_modules/ramda": { "version": "0.27.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.1.tgz", + "integrity": "sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==", + "dev": true }, "node_modules/raw-body": { "version": "2.5.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", @@ -17631,31 +18150,11 @@ "node": ">= 0.8" } }, - "node_modules/raw-body/node_modules/http-errors": { - "version": "2.0.0", - "license": "MIT", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/statuses": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/rc": { "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -17668,116 +18167,139 @@ }, "node_modules/rc/node_modules/strip-json-comments": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "node_modules/read-pkg": { - "version": "5.2.0", - "license": "MIT", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", + "dev": true, "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/read-pkg-up": { - "version": "7.0.1", - "license": "MIT", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==", + "dev": true, "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" + "find-up": "^2.0.0", + "read-pkg": "^3.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, "node_modules/read-pkg-up/node_modules/find-up": { - "version": "4.1.0", - "license": "MIT", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", + "dev": true, "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "locate-path": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "5.0.0", - "license": "MIT", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "dev": true, "dependencies": { - "p-locate": "^4.1.0" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "license": "MIT", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, "dependencies": { - "p-try": "^2.0.0" + "p-try": "^1.0.0" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "4.1.0", - "license": "MIT", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", + "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "p-limit": "^1.1.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/read-pkg/node_modules/hosted-git-info": { - "version": "2.8.9", - "license": "ISC" + "node_modules/read-pkg-up/node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", + "dev": true, + "engines": { + "node": ">=4" + } }, - "node_modules/read-pkg/node_modules/normalize-package-data": { - "version": "2.5.0", - "license": "BSD-2-Clause", - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" + "node_modules/read-pkg-up/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true, + "engines": { + "node": ">=4" } }, - "node_modules/read-pkg/node_modules/semver": { - "version": "5.7.2", - "license": "ISC", - "bin": { - "semver": "bin/semver" + "node_modules/read-pkg/node_modules/path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "dependencies": { + "pify": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "license": "(MIT OR CC0-1.0)", + "node_modules/read-pkg/node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/readable-stream": { - "version": "2.3.7", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, - "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -17790,13 +18312,15 @@ }, "node_modules/readable-stream/node_modules/safe-buffer": { "version": "5.1.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true }, "node_modules/redent": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", "dev": true, - "license": "MIT", "dependencies": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" @@ -17807,14 +18331,16 @@ }, "node_modules/redis-errors": { "version": "1.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", + "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==", "engines": { "node": ">=4" } }, "node_modules/redis-parser": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", + "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", "dependencies": { "redis-errors": "^1.0.0" }, @@ -17824,24 +18350,27 @@ }, "node_modules/regenerator-runtime": { "version": "0.13.11", - "license": "MIT" + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" }, "node_modules/regexp-tree": { - "version": "0.1.24", + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", "dev": true, - "license": "MIT", "bin": { "regexp-tree": "bin/regexp-tree" } }, "node_modules/regexp.prototype.flags": { - "version": "1.4.3", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" }, "engines": { "node": ">= 0.4" @@ -17852,8 +18381,9 @@ }, "node_modules/regjsparser": { "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "jsesc": "~0.5.0" }, @@ -17863,6 +18393,8 @@ }, "node_modules/regjsparser/node_modules/jsesc": { "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", "dev": true, "bin": { "jsesc": "bin/jsesc" @@ -17870,8 +18402,9 @@ }, "node_modules/repeating": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==", "dev": true, - "license": "MIT", "dependencies": { "is-finite": "^1.0.0" }, @@ -17881,28 +18414,32 @@ }, "node_modules/require-directory": { "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/require-from-string": { "version": "2.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "engines": { "node": ">=0.10.0" } }, "node_modules/require-main-filename": { "version": "2.0.0", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true }, "node_modules/requirejs": { "version": "2.3.6", + "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz", + "integrity": "sha512-ipEzlWQe6RK3jkzikgCupiTbTvm4S0/CAU5GlgptkN5SO6F3u0UD0K18wy6ErDqiCyP4J4YYe1HuAShvsxePLg==", "dev": true, - "license": "MIT", "bin": { "r_js": "bin/r.js", "r.js": "bin/r.js" @@ -17913,8 +18450,9 @@ }, "node_modules/requirejs-config-file": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/requirejs-config-file/-/requirejs-config-file-4.0.0.tgz", + "integrity": "sha512-jnIre8cbWOyvr8a5F2KuqBnY+SDA4NXr/hzEZJG79Mxm2WiFQz2dzhC8ibtPJS7zkmBEl1mxSwp5HhC1W4qpxw==", "dev": true, - "license": "MIT", "dependencies": { "esprima": "^4.0.0", "stringify-object": "^3.2.1" @@ -17924,10 +18462,11 @@ } }, "node_modules/resolve": { - "version": "1.22.1", - "license": "MIT", + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -17940,8 +18479,9 @@ }, "node_modules/resolve-cwd": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, - "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -17951,16 +18491,18 @@ }, "node_modules/resolve-dependency-path": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-dependency-path/-/resolve-dependency-path-2.0.0.tgz", + "integrity": "sha512-DIgu+0Dv+6v2XwRaNWnumKu7GPufBBOr5I1gRPJHkvghrfCGOooJODFvgFimX/KRxk9j0whD2MnKHzM1jYvk9w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/resolve-dir": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", + "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", "dev": true, - "license": "MIT", "dependencies": { "expand-tilde": "^2.0.0", "global-modules": "^1.0.0" @@ -17971,16 +18513,18 @@ }, "node_modules/resolve-from": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/resolve-global": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-global/-/resolve-global-1.0.0.tgz", + "integrity": "sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw==", "dev": true, - "license": "MIT", "dependencies": { "global-dirs": "^0.1.1" }, @@ -17990,24 +18534,27 @@ }, "node_modules/resolve.exports": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/responselike": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", "dev": true, - "license": "MIT", "dependencies": { "lowercase-keys": "^1.0.0" } }, "node_modules/restore-cursor": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", "dev": true, - "license": "MIT", "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" @@ -18018,8 +18565,9 @@ }, "node_modules/reusify": { "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, - "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -18027,20 +18575,23 @@ }, "node_modules/rfdc": { "version": "1.3.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "dev": true }, "node_modules/right-pad": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/right-pad/-/right-pad-1.0.1.tgz", + "integrity": "sha512-bYBjgxmkvTAfgIYy328fmkwhp39v8lwVgWhhrzxPV3yHtcSqyYKe9/XOhvW48UFjATg3VuJbpsp5822ACNvkmw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.10" } }, "node_modules/rimraf": { "version": "3.0.2", - "license": "ISC", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dependencies": { "glob": "^7.1.3" }, @@ -18053,7 +18604,8 @@ }, "node_modules/rimraf/node_modules/glob": { "version": "7.2.3", - "license": "ISC", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -18070,24 +18622,23 @@ } }, "node_modules/roarr": { - "version": "7.15.0", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-7.21.0.tgz", + "integrity": "sha512-d1rPLcHmQID3GsA3p9d5vKSZYlvrTWhjbmeg9DT5DcPoLpH85VzPmkLkGKhQv376+dfkApaHwNbpYEwDB77Ibg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "boolean": "^3.1.4", - "fast-json-stringify": "^2.7.10", "fast-printf": "^1.6.9", - "globalthis": "^1.0.2", - "safe-stable-stringify": "^2.4.1", + "safe-stable-stringify": "^2.4.3", "semver-compare": "^1.0.0" }, "engines": { - "node": ">=12.0" + "node": ">=18.0" } }, "node_modules/rudder-transformer-cdk": { "version": "1.4.11", - "license": "ISC", + "resolved": "https://registry.npmjs.org/rudder-transformer-cdk/-/rudder-transformer-cdk-1.4.11.tgz", + "integrity": "sha512-u2t/L47tNe9wyzSpQptLkiECT0/P5Xx8BLmZisfuXQx3lXco57oaDX/Ii1ZhEiHM2zht+NiyrGkvhBKMt1IAyA==", "dependencies": { "get-value": "^3.0.1", "handlebars": "^4.7.7", @@ -18103,14 +18654,17 @@ }, "node_modules/run-async": { "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } }, "node_modules/run-parallel": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "funding": [ { @@ -18126,21 +18680,47 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } }, "node_modules/rxjs": { - "version": "7.8.0", + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.1.0" } }, + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-array-concat/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, "node_modules/safe-buffer": { "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "funding": [ { "type": "github", @@ -18154,21 +18734,22 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/safe-regex": { "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", "dev": true, - "license": "MIT", "dependencies": { "regexp-tree": "~0.1.1" } }, "node_modules/safe-regex-test": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.3", @@ -18179,20 +18760,23 @@ } }, "node_modules/safe-stable-stringify": { - "version": "2.4.2", - "license": "MIT", + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", "engines": { "node": ">=10" } }, "node_modules/safer-buffer": { "version": "2.1.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/sass-lookup": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/sass-lookup/-/sass-lookup-3.0.0.tgz", + "integrity": "sha512-TTsus8CfFRn1N44bvdEai1no6PqdmDiQUiqW5DlpmtT+tYnIt1tXtDIph5KA1efC+LmioJXSnCtUVpcK9gaKIg==", "dev": true, - "license": "MIT", "dependencies": { "commander": "^2.16.0" }, @@ -18205,12 +18789,14 @@ }, "node_modules/sass-lookup/node_modules/commander": { "version": "2.20.3", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "node_modules/semver": { - "version": "7.5.3", - "license": "ISC", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -18223,13 +18809,15 @@ }, "node_modules/semver-compare": { "version": "1.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true }, "node_modules/semver-regex": { "version": "3.1.4", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", + "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -18239,7 +18827,8 @@ }, "node_modules/semver/node_modules/lru-cache": { "version": "6.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dependencies": { "yallist": "^4.0.0" }, @@ -18249,20 +18838,51 @@ }, "node_modules/semver/node_modules/yallist": { "version": "4.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/set-blocking": { "version": "2.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } }, "node_modules/set-value": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-4.1.0.tgz", + "integrity": "sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==", "funding": [ "https://github.com/sponsors/jonschlinkert", "https://paypal.me/jonathanschlinkert", "https://jonschlinkert.dev/sponsor" ], - "license": "MIT", "dependencies": { "is-plain-object": "^2.0.4", "is-primitive": "^3.0.1" @@ -18273,10 +18893,13 @@ }, "node_modules/setprototypeof": { "version": "1.2.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" }, "node_modules/sha256": { "version": "0.2.0", + "resolved": "https://registry.npmjs.org/sha256/-/sha256-0.2.0.tgz", + "integrity": "sha512-kTWMJUaez5iiT9CcMv8jSq6kMhw3ST0uRdcIWl3D77s6AsLXNXRp3heeqqfu5+Dyfu4hwpQnMzhqHh8iNQxw0w==", "dependencies": { "convert-hex": "~0.1.0", "convert-string": "~0.1.0" @@ -18284,8 +18907,9 @@ }, "node_modules/shebang-command": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -18295,20 +18919,23 @@ }, "node_modules/shebang-regex": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/shellwords": { "version": "0.1.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true }, "node_modules/side-channel": { "version": "1.0.4", - "license": "MIT", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", "dependencies": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", @@ -18320,36 +18947,42 @@ }, "node_modules/signal-exit": { "version": "3.0.7", - "license": "ISC" + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, "node_modules/simple-swizzle": { "version": "0.2.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", "dependencies": { "is-arrayish": "^0.3.1" } }, "node_modules/simple-swizzle/node_modules/is-arrayish": { "version": "0.3.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, "node_modules/sisteransi": { "version": "1.0.5", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true }, "node_modules/slash": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/slice-ansi": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", + "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^6.0.0", "is-fullwidth-code-point": "^4.0.0" @@ -18363,8 +18996,9 @@ }, "node_modules/slice-ansi/node_modules/ansi-styles": { "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -18374,8 +19008,9 @@ }, "node_modules/sort-keys": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", + "integrity": "sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==", "dev": true, - "license": "MIT", "dependencies": { "is-plain-obj": "^1.0.0" }, @@ -18384,32 +19019,45 @@ } }, "node_modules/source-map": { - "version": "0.6.1", - "license": "BSD-3-Clause", + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "engines": { - "node": ">=0.10.0" + "node": ">= 8" } }, "node_modules/source-map-js": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/source-map-support": { "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, - "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/spdx-correct": { - "version": "3.1.1", - "license": "Apache-2.0", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" @@ -18417,23 +19065,27 @@ }, "node_modules/spdx-exceptions": { "version": "2.3.0", - "license": "CC-BY-3.0" + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" }, "node_modules/spdx-expression-parse": { "version": "3.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" } }, "node_modules/spdx-license-ids": { - "version": "3.0.12", - "license": "CC0-1.0" + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", + "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==" }, "node_modules/split": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", + "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", "dependencies": { "through": "2" }, @@ -18443,16 +19095,18 @@ }, "node_modules/split2": { "version": "3.2.2", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", "dev": true, - "license": "ISC", "dependencies": { "readable-stream": "^3.0.0" } }, "node_modules/split2/node_modules/readable-stream": { - "version": "3.6.0", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -18464,27 +19118,31 @@ }, "node_modules/sprintf-js": { "version": "1.0.3", - "dev": true, - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true }, "node_modules/stack-generator": { "version": "2.0.10", - "license": "MIT", + "resolved": "https://registry.npmjs.org/stack-generator/-/stack-generator-2.0.10.tgz", + "integrity": "sha512-mwnua/hkqM6pF4k8SnmZ2zfETsRUpWXREfA/goT8SLCV4iOFa4bzOX2nDipWAZFPTjLvQB82f5yaodMVhK0yJQ==", "dependencies": { "stackframe": "^1.3.4" } }, "node_modules/stack-trace": { "version": "0.0.10", - "license": "MIT", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", "engines": { "node": "*" } }, "node_modules/stack-utils": { "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, - "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -18494,19 +19152,22 @@ }, "node_modules/stack-utils/node_modules/escape-string-regexp": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/stackframe": { "version": "1.3.4", - "license": "MIT" + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", + "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" }, "node_modules/stacktrace-parser": { "version": "0.1.10", - "license": "MIT", + "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", + "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", "dependencies": { "type-fest": "^0.7.1" }, @@ -18516,112 +19177,328 @@ }, "node_modules/stacktrace-parser/node_modules/type-fest": { "version": "0.7.1", - "license": "(MIT OR CC0-1.0)", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", + "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==", "engines": { "node": ">=8" } }, - "node_modules/standard-as-callback": { - "version": "2.1.0", - "license": "MIT" - }, - "node_modules/standard-version": { - "version": "9.5.0", + "node_modules/standard-as-callback": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", + "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==" + }, + "node_modules/standard-version": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/standard-version/-/standard-version-9.5.0.tgz", + "integrity": "sha512-3zWJ/mmZQsOaO+fOlsa0+QK90pwhNd042qEcw6hKFNoLFs7peGyvPffpEBbK/DSGPbyOvli0mUIFv5A4qTjh2Q==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2", + "conventional-changelog": "3.1.25", + "conventional-changelog-config-spec": "2.1.0", + "conventional-changelog-conventionalcommits": "4.6.3", + "conventional-recommended-bump": "6.1.0", + "detect-indent": "^6.0.0", + "detect-newline": "^3.1.0", + "dotgitignore": "^2.1.0", + "figures": "^3.1.0", + "find-up": "^5.0.0", + "git-semver-tags": "^4.0.0", + "semver": "^7.1.1", + "stringify-package": "^1.0.1", + "yargs": "^16.0.0" + }, + "bin": { + "standard-version": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/standard-version/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog": { + "version": "3.1.25", + "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.25.tgz", + "integrity": "sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ==", + "dev": true, + "dependencies": { + "conventional-changelog-angular": "^5.0.12", + "conventional-changelog-atom": "^2.0.8", + "conventional-changelog-codemirror": "^2.0.8", + "conventional-changelog-conventionalcommits": "^4.5.0", + "conventional-changelog-core": "^4.2.1", + "conventional-changelog-ember": "^2.0.9", + "conventional-changelog-eslint": "^3.0.9", + "conventional-changelog-express": "^2.0.6", + "conventional-changelog-jquery": "^3.0.11", + "conventional-changelog-jshint": "^2.0.9", + "conventional-changelog-preset-loader": "^2.3.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog-angular": { + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz", + "integrity": "sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA==", + "dev": true, + "dependencies": { + "compare-func": "^2.0.0", + "q": "^1.5.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog-conventionalcommits": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz", + "integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==", + "dev": true, + "dependencies": { + "compare-func": "^2.0.0", + "lodash": "^4.17.15", + "q": "^1.5.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog-core": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz", + "integrity": "sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg==", + "dev": true, + "dependencies": { + "add-stream": "^1.0.0", + "conventional-changelog-writer": "^5.0.0", + "conventional-commits-parser": "^3.2.0", + "dateformat": "^3.0.0", + "get-pkg-repo": "^4.0.0", + "git-raw-commits": "^2.0.8", + "git-remote-origin-url": "^2.0.0", + "git-semver-tags": "^4.1.1", + "lodash": "^4.17.15", + "normalize-package-data": "^3.0.0", + "q": "^1.5.1", + "read-pkg": "^3.0.0", + "read-pkg-up": "^3.0.0", + "through2": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog-core/node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", + "dev": true, + "dependencies": { + "readable-stream": "3" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog-jquery": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz", + "integrity": "sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw==", + "dev": true, + "dependencies": { + "q": "^1.5.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog-writer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz", + "integrity": "sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ==", + "dev": true, + "dependencies": { + "conventional-commits-filter": "^2.0.7", + "dateformat": "^3.0.0", + "handlebars": "^4.7.7", + "json-stringify-safe": "^5.0.1", + "lodash": "^4.17.15", + "meow": "^8.0.0", + "semver": "^6.0.0", + "split": "^1.0.0", + "through2": "^4.0.0" + }, + "bin": { + "conventional-changelog-writer": "cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog-writer/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/standard-version/node_modules/conventional-changelog-writer/node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", + "dev": true, + "dependencies": { + "readable-stream": "3" + } + }, + "node_modules/standard-version/node_modules/conventional-commits-parser": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz", + "integrity": "sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==", "dev": true, - "license": "ISC", "dependencies": { - "chalk": "^2.4.2", - "conventional-changelog": "3.1.25", - "conventional-changelog-config-spec": "2.1.0", - "conventional-changelog-conventionalcommits": "4.6.3", - "conventional-recommended-bump": "6.1.0", - "detect-indent": "^6.0.0", - "detect-newline": "^3.1.0", - "dotgitignore": "^2.1.0", - "figures": "^3.1.0", - "find-up": "^5.0.0", - "git-semver-tags": "^4.0.0", - "semver": "^7.1.1", - "stringify-package": "^1.0.1", - "yargs": "^16.0.0" + "is-text-path": "^1.0.1", + "JSONStream": "^1.0.4", + "lodash": "^4.17.15", + "meow": "^8.0.0", + "split2": "^3.0.0", + "through2": "^4.0.0" }, "bin": { - "standard-version": "bin/cli.js" + "conventional-commits-parser": "cli.js" }, "engines": { "node": ">=10" } }, - "node_modules/standard-version/node_modules/ansi-styles": { - "version": "3.2.1", + "node_modules/standard-version/node_modules/conventional-commits-parser/node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, - "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "readable-stream": "3" + } + }, + "node_modules/standard-version/node_modules/get-pkg-repo": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz", + "integrity": "sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==", + "dev": true, + "dependencies": { + "@hutson/parse-repository-url": "^3.0.0", + "hosted-git-info": "^4.0.0", + "through2": "^2.0.0", + "yargs": "^16.2.0" + }, + "bin": { + "get-pkg-repo": "src/cli.js" }, "engines": { - "node": ">=4" + "node": ">=6.9.0" } }, - "node_modules/standard-version/node_modules/chalk": { - "version": "2.4.2", + "node_modules/standard-version/node_modules/git-semver-tags": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-4.1.1.tgz", + "integrity": "sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "meow": "^8.0.0", + "semver": "^6.0.0" + }, + "bin": { + "git-semver-tags": "cli.js" }, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/standard-version/node_modules/cliui": { - "version": "7.0.4", + "node_modules/standard-version/node_modules/git-semver-tags/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/standard-version/node_modules/color-convert": { - "version": "1.9.3", + "node_modules/standard-version/node_modules/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", "dev": true, - "license": "MIT", "dependencies": { - "color-name": "1.1.3" + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" } }, - "node_modules/standard-version/node_modules/color-name": { - "version": "1.1.3", + "node_modules/standard-version/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "MIT" + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } }, - "node_modules/standard-version/node_modules/has-flag": { - "version": "3.0.0", + "node_modules/standard-version/node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", "dev": true, - "license": "MIT", + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/standard-version/node_modules/supports-color": { - "version": "5.5.0", + "node_modules/standard-version/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { - "has-flag": "^3.0.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">=4" + "node": ">= 6" } }, + "node_modules/standard-version/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/standard-version/node_modules/yargs": { "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -18637,26 +19514,31 @@ }, "node_modules/stats-accumulator": { "version": "1.1.3", + "resolved": "https://registry.npmjs.org/stats-accumulator/-/stats-accumulator-1.1.3.tgz", + "integrity": "sha512-ys8OR2RWx4Y9xC/fkFUKI3t2ElHpR4Xdp8rIWVCTl4DWmfS80gvxl0LwNKYUio/ibBUpsoMaUYbWldonVfPBFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8" } }, "node_modules/statsd-client": { "version": "0.4.7", - "license": "MIT" + "resolved": "https://registry.npmjs.org/statsd-client/-/statsd-client-0.4.7.tgz", + "integrity": "sha512-+sGCE6FednJ/vI7vywErOg/mhVqmf6Zlktz7cdGRnF/cQWXD9ifMgtqU1CIIXmhSwm11SCk4zDN+bwNCvIR/Kg==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info." }, "node_modules/statuses": { - "version": "1.5.0", - "license": "MIT", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "engines": { - "node": ">= 0.6" + "node": ">= 0.8" } }, "node_modules/stream-browserify": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", + "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", "dependencies": { "inherits": "~2.0.4", "readable-stream": "^3.5.0" @@ -18664,7 +19546,8 @@ }, "node_modules/stream-browserify/node_modules/readable-stream": { "version": "3.6.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -18676,43 +19559,49 @@ }, "node_modules/stream-to-array": { "version": "2.3.0", + "resolved": "https://registry.npmjs.org/stream-to-array/-/stream-to-array-2.3.0.tgz", + "integrity": "sha512-UsZtOYEn4tWU2RGLOXr/o/xjRBftZRlG3dEWoaHr8j4GuypJ3isitGbVyjQKAuMu+xbiop8q224TjiZWc4XTZA==", "dev": true, - "license": "MIT", "dependencies": { "any-promise": "^1.1.0" } }, "node_modules/strict-uri-encode": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/string_decoder": { "version": "1.1.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dependencies": { "safe-buffer": "~5.1.0" } }, "node_modules/string_decoder/node_modules/safe-buffer": { "version": "5.1.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/string-argv": { - "version": "0.3.1", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.6.19" } }, "node_modules/string-length": { "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, - "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -18721,14 +19610,10 @@ "node": ">=10" } }, - "node_modules/string-similarity": { - "version": "4.0.4", - "dev": true, - "license": "ISC" - }, "node_modules/string-width": { "version": "4.2.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -18741,8 +19626,9 @@ "node_modules/string-width-cjs": { "name": "string-width", "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -18752,51 +19638,63 @@ "node": ">=8" } }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "dev": true, - "license": "MIT" - }, "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/string-width/node_modules/emoji-regex": { - "version": "8.0.0", - "license": "MIT" - }, "node_modules/string-width/node_modules/is-fullwidth-code-point": { "version": "3.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "engines": { "node": ">=8" } }, + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/string.prototype.trimend": { - "version": "1.0.6", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/string.prototype.trimstart": { - "version": "1.0.6", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -18804,8 +19702,9 @@ }, "node_modules/stringify-object": { "version": "3.3.0", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", + "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "get-own-enumerable-property-symbols": "^3.0.0", "is-obj": "^1.0.1", @@ -18815,22 +19714,17 @@ "node": ">=4" } }, - "node_modules/stringify-object/node_modules/is-obj": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/stringify-package": { "version": "1.0.1", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/stringify-package/-/stringify-package-1.0.1.tgz", + "integrity": "sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg==", + "deprecated": "This module is not used anymore, and has been replaced by @npmcli/package-json", + "dev": true }, "node_modules/strip-ansi": { "version": "6.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -18841,8 +19735,9 @@ "node_modules/strip-ansi-cjs": { "name": "strip-ansi", "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -18852,24 +19747,27 @@ }, "node_modules/strip-bom": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/strip-final-newline": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/strip-indent": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, - "license": "MIT", "dependencies": { "min-indent": "^1.0.0" }, @@ -18879,8 +19777,9 @@ }, "node_modules/strip-json-comments": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -18890,12 +19789,14 @@ }, "node_modules/strnum": { "version": "1.0.5", - "license": "MIT" + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" }, "node_modules/stylus-lookup": { "version": "3.0.2", + "resolved": "https://registry.npmjs.org/stylus-lookup/-/stylus-lookup-3.0.2.tgz", + "integrity": "sha512-oEQGHSjg/AMaWlKe7gqsnYzan8DLcGIHe0dUaFkucZZ14z4zjENRlQMCHT4FNsiWnJf17YN9OvrCfCoi7VvOyg==", "dev": true, - "license": "MIT", "dependencies": { "commander": "^2.8.1", "debug": "^4.1.0" @@ -18909,20 +19810,23 @@ }, "node_modules/stylus-lookup/node_modules/commander": { "version": "2.20.3", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "node_modules/subdirs": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/subdirs/-/subdirs-1.0.1.tgz", + "integrity": "sha512-KSbUKpwQIRcb5Th+l4EzxEZYpCwV/g0pQ348EV7CIM5YEEgzz2L1KJD8FCeTckTiE/TKn2u09DCxpdAL6/iFbg==", "dependencies": { "es6-promise": "^3.0.2" } }, "node_modules/superagent": { - "version": "8.0.9", + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-8.1.2.tgz", + "integrity": "sha512-6WTxW1EB6yCxV5VFOIPQruWGHqc3yI7hEmZK6h+pyk69Lk/Ut7rLUY6W/ONF2MjBuGjvmMiIpsrVJ2vjrHlslA==", "dev": true, - "license": "MIT", "dependencies": { "component-emitter": "^1.3.0", "cookiejar": "^2.1.4", @@ -18933,216 +19837,75 @@ "methods": "^1.1.2", "mime": "2.6.0", "qs": "^6.11.0", - "semver": "^7.3.8" - }, - "engines": { - "node": ">=6.4.0 <13 || >=14" - } - }, - "node_modules/supertest": { - "version": "6.3.3", - "dev": true, - "license": "MIT", - "dependencies": { - "methods": "^1.1.2", - "superagent": "^8.0.5" - }, - "engines": { - "node": ">=6.4.0" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/swagger-cli": { - "version": "4.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@apidevtools/swagger-cli": "4.0.4" - }, - "bin": { - "swagger-cli": "swagger-cli.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/swagger-cli/node_modules/@apidevtools/swagger-cli": { - "version": "4.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@apidevtools/swagger-parser": "^10.0.1", - "chalk": "^4.1.0", - "js-yaml": "^3.14.0", - "yargs": "^15.4.1" - }, - "bin": { - "swagger-cli": "bin/swagger-cli.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/swagger-cli/node_modules/argparse": { - "version": "1.0.10", - "dev": true, - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/swagger-cli/node_modules/cliui": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/swagger-cli/node_modules/find-up": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/swagger-cli/node_modules/js-yaml": { - "version": "3.14.1", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/swagger-cli/node_modules/locate-path": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/swagger-cli/node_modules/p-limit": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" + "semver": "^7.3.8" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6.4.0 <13 || >=14" } }, - "node_modules/swagger-cli/node_modules/p-locate": { - "version": "4.1.0", + "node_modules/supertest": { + "version": "6.3.3", + "resolved": "https://registry.npmjs.org/supertest/-/supertest-6.3.3.tgz", + "integrity": "sha512-EMCG6G8gDu5qEqRQ3JjjPs6+FYT1a7Hv5ApHvtSghmOFJYtsU5S+pSb6Y2EUeCEY3CmEL3mmQ8YWlPOzQomabA==", "dev": true, - "license": "MIT", "dependencies": { - "p-limit": "^2.2.0" + "methods": "^1.1.2", + "superagent": "^8.0.5" }, "engines": { - "node": ">=8" + "node": ">=6.4.0" } }, - "node_modules/swagger-cli/node_modules/wrap-ansi": { - "version": "6.2.0", - "dev": true, - "license": "MIT", + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "has-flag": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/swagger-cli/node_modules/y18n": { - "version": "4.0.3", - "dev": true, - "license": "ISC" - }, - "node_modules/swagger-cli/node_modules/yargs": { - "version": "15.4.1", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/swagger-cli/node_modules/yargs-parser": { - "version": "18.1.3", + "node_modules/swagger-cli": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/swagger-cli/-/swagger-cli-4.0.4.tgz", + "integrity": "sha512-Cp8YYuLny3RJFQ4CvOBTaqmOOgYsem52dPx1xM5S4EUWFblIh2Q8atppMZvXKUr1e9xH5RwipYpmdUzdPcxWcA==", "dev": true, - "license": "ISC", "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "@apidevtools/swagger-cli": "4.0.4" + }, + "bin": { + "swagger-cli": "swagger-cli.js" }, "engines": { - "node": ">=6" + "node": ">=10" } }, "node_modules/tapable": { "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/tar": { - "version": "6.1.15", - "license": "ISC", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz", + "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==", "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -19157,26 +19920,30 @@ }, "node_modules/tar/node_modules/minipass": { "version": "5.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "engines": { "node": ">=8" } }, "node_modules/tar/node_modules/yallist": { "version": "4.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/tdigest": { "version": "0.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.2.tgz", + "integrity": "sha512-+G0LLgjjo9BZX2MfdvPfH+MKLCrxlXSYec5DaPYP1fe6Iyhf0/fSmJ0bFiZ1F8BT6cGXl2LpltQptzjXKWEkKA==", "dependencies": { "bintrees": "1.0.2" } }, "node_modules/test-exclude": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -19188,8 +19955,9 @@ }, "node_modules/test-exclude/node_modules/glob": { "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -19207,58 +19975,53 @@ }, "node_modules/text-extensions": { "version": "1.9.0", + "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", + "integrity": "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10" } }, "node_modules/text-hex": { "version": "1.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", + "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" }, "node_modules/text-table": { "version": "0.2.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true }, "node_modules/through": { "version": "2.3.8", - "license": "MIT" + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" }, "node_modules/through2": { - "version": "4.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "readable-stream": "3" - } - }, - "node_modules/through2/node_modules/readable-stream": { - "version": "3.6.0", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, - "license": "MIT", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" } }, "node_modules/timed-out": { "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/tmp": { "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, - "license": "MIT", "dependencies": { "os-tmpdir": "~1.0.2" }, @@ -19268,27 +20031,32 @@ }, "node_modules/tmpl": { "version": "1.0.5", - "dev": true, - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true }, "node_modules/to-fast-properties": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/to-function": { "version": "2.0.6", + "resolved": "https://registry.npmjs.org/to-function/-/to-function-2.0.6.tgz", + "integrity": "sha512-LWfUmW851x5T8+78Nl82CA2j6w0trhoFj4rpS6pFUMgfUMUySDAKPgTvQkUqlWuH3Lihlk5sPyDHSVwmKDSc5Q==", "dependencies": { "component-props": "*" } }, "node_modules/to-regex-range": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -19298,46 +20066,60 @@ }, "node_modules/toidentifier": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "engines": { "node": ">=0.6" } }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, "node_modules/trim-newlines": { "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/triple-beam": { - "version": "1.3.0", - "license": "MIT" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.4.1.tgz", + "integrity": "sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==", + "engines": { + "node": ">= 14.0.0" + } }, "node_modules/truncate-utf8-bytes": { "version": "1.0.2", - "license": "WTFPL", + "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz", + "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==", "dependencies": { "utf8-byte-length": "^1.0.1" } }, "node_modules/ts-graphviz": { - "version": "1.5.5", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/ts-graphviz/-/ts-graphviz-1.8.1.tgz", + "integrity": "sha512-54/fe5iu0Jb6X0pmDmzsA2UHLfyHjUEUwfHtZcEOR0fZ6Myf+dFoO6eNsyL8CBDMJ9u7WWEewduVaiaXlvjSVw==", "dev": true, - "license": "MIT", "engines": { "node": ">=14.16" }, "funding": { "type": "github", - "url": "https://github.com/sponsors/kamiazya" + "url": "https://github.com/sponsors/ts-graphviz" } }, "node_modules/ts-jest": { "version": "29.1.1", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", + "integrity": "sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==", "dev": true, - "license": "MIT", "dependencies": { "bs-logger": "0.x", "fast-json-stable-stringify": "2.x", @@ -19378,16 +20160,18 @@ }, "node_modules/ts-jest/node_modules/yargs-parser": { "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } }, "node_modules/ts-node": { - "version": "10.9.1", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, - "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -19426,18 +20210,11 @@ } } }, - "node_modules/ts-node/node_modules/acorn-walk": { - "version": "8.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/tsconfig-paths": { - "version": "3.14.2", + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", "dev": true, - "license": "MIT", "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", @@ -19447,8 +20224,9 @@ }, "node_modules/tsconfig-paths/node_modules/json5": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, - "license": "MIT", "dependencies": { "minimist": "^1.2.0" }, @@ -19458,8 +20236,9 @@ }, "node_modules/tsconfig-paths/node_modules/strip-bom": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -19471,15 +20250,17 @@ }, "node_modules/tsscmp": { "version": "1.0.6", - "license": "MIT", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz", + "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==", "engines": { "node": ">=0.6.x" } }, "node_modules/tsutils": { "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^1.8.1" }, @@ -19492,13 +20273,15 @@ }, "node_modules/tsutils/node_modules/tslib": { "version": "1.14.1", - "dev": true, - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true }, "node_modules/type-check": { "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1" }, @@ -19508,22 +20291,29 @@ }, "node_modules/type-detect": { "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/type-fest": { - "version": "0.8.1", - "license": "(MIT OR CC0-1.0)", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/type-is": { "version": "1.6.18", - "license": "MIT", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" @@ -19532,10 +20322,62 @@ "node": ">= 0.6" } }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/typed-array-length": { "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "for-each": "^0.3.3", @@ -19547,23 +20389,27 @@ }, "node_modules/typedarray": { "version": "0.0.6", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true }, "node_modules/typescript": { - "version": "5.0.4", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=12.20" + "node": ">=14.17" } }, "node_modules/ua-parser-js": { - "version": "1.0.35", + "version": "1.0.37", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.37.tgz", + "integrity": "sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==", "funding": [ { "type": "opencollective", @@ -19572,16 +20418,20 @@ { "type": "paypal", "url": "https://paypal.me/faisalman" + }, + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" } ], - "license": "MIT", "engines": { "node": "*" } }, "node_modules/uglify-js": { "version": "3.17.4", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", "optional": true, "bin": { "uglifyjs": "bin/uglifyjs" @@ -19592,8 +20442,9 @@ }, "node_modules/unbox-primitive": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -19604,29 +20455,38 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/uniq": { "version": "1.0.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA==", + "dev": true }, "node_modules/universalify": { - "version": "2.0.0", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 10.0.0" } }, "node_modules/unpipe": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", "engines": { "node": ">= 0.8" } }, "node_modules/unset-value": { "version": "2.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-2.0.1.tgz", + "integrity": "sha512-2hvrBfjUE00PkqN+q0XP6yRAOGrR06uSiUoIQGZkc7GxvQ9H7v8quUPNtZjMg4uux69i8HWpIjLPUKwCuRGyNg==", "dependencies": { "has-value": "^2.0.2", "isobject": "^4.0.0" @@ -19637,13 +20497,16 @@ }, "node_modules/unset-value/node_modules/isobject": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", + "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==", "engines": { "node": ">=0.10.0" } }, "node_modules/update-browserslist-db": { - "version": "1.0.11", + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", "dev": true, "funding": [ { @@ -19659,7 +20522,6 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -19673,15 +20535,17 @@ }, "node_modules/uri-js": { "version": "4.4.1", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dependencies": { "punycode": "^2.1.0" } }, "node_modules/url-parse-lax": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", "dev": true, - "license": "MIT", "dependencies": { "prepend-http": "^2.0.0" }, @@ -19691,55 +20555,69 @@ }, "node_modules/url-to-options": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", + "integrity": "sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } }, "node_modules/utf8-byte-length": { "version": "1.0.4", - "license": "WTFPL" + "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz", + "integrity": "sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA==" }, "node_modules/utf8-length": { "version": "0.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/utf8-length/-/utf8-length-0.0.1.tgz", + "integrity": "sha512-j/XH2ftofBiobnyApxlN/J6j/ixwT89WEjDcjT66d2i0+GIn9RZfzt8lpEXXE4jUe4NsjBSUq70kS2euQ4nnMw==" }, "node_modules/util-deprecate": { "version": "1.0.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "node_modules/uuid": { - "version": "9.0.0", - "license": "MIT", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true }, "node_modules/v8-to-istanbul": { - "version": "9.1.0", + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", "dev": true, - "license": "ISC", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" + "convert-source-map": "^2.0.0" }, "engines": { "node": ">=10.12.0" } }, "node_modules/valid-url": { - "version": "1.0.9" + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/valid-url/-/valid-url-1.0.9.tgz", + "integrity": "sha512-QQDsV8OnSf5Uc30CKSwG9lnhMPe6exHtTXLRYX8uMwKENy640pU+2BgBL0LRbDh/eYRahNCS7aewCx0wf3NYVA==" }, "node_modules/validate-npm-package-license": { "version": "3.0.4", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" @@ -19747,15 +20625,17 @@ }, "node_modules/vary": { "version": "1.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", "engines": { "node": ">= 0.8" } }, "node_modules/vscode-json-languageservice": { "version": "4.2.1", + "resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-4.2.1.tgz", + "integrity": "sha512-xGmv9QIWs2H8obGbWg+sIPI/3/pFgj/5OWBhNzs00BkYQ9UaB2F6JJaGB/2/YOZJ3BvLXQTC4Q7muqU25QgAhA==", "dev": true, - "license": "MIT", "dependencies": { "jsonc-parser": "^3.0.0", "vscode-languageserver-textdocument": "^1.0.3", @@ -19765,52 +20645,74 @@ } }, "node_modules/vscode-languageserver-textdocument": { - "version": "1.0.8", - "dev": true, - "license": "MIT" + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.11.tgz", + "integrity": "sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==", + "dev": true }, "node_modules/vscode-languageserver-types": { - "version": "3.17.2", - "dev": true, - "license": "MIT" + "version": "3.17.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", + "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", + "dev": true }, "node_modules/vscode-nls": { "version": "5.2.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-5.2.0.tgz", + "integrity": "sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==", + "dev": true }, "node_modules/vscode-uri": { - "version": "3.0.7", - "dev": true, - "license": "MIT" + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", + "dev": true }, "node_modules/walkdir": { "version": "0.4.1", + "resolved": "https://registry.npmjs.org/walkdir/-/walkdir-0.4.1.tgz", + "integrity": "sha512-3eBwRyEln6E1MSzcxcVpQIhRG8Q1jLvEqRmCZqS3dsfXEDR/AhOF4d+jHg1qvDCpYaVRZjENPQyrVxAkQqxPgQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/walker": { "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } }, "node_modules/wcwidth": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", "dependencies": { "defaults": "^1.0.3" } }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/which": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -19823,8 +20725,9 @@ }, "node_modules/which-boxed-primitive": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", "dev": true, - "license": "MIT", "dependencies": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -19838,20 +20741,21 @@ }, "node_modules/which-module": { "version": "2.0.1", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "dev": true }, "node_modules/which-typed-array": { - "version": "1.1.9", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", "dev": true, - "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", + "call-bind": "^1.0.4", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -19862,15 +20766,17 @@ }, "node_modules/wide-align": { "version": "1.1.5", - "license": "ISC", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", "dependencies": { "string-width": "^1.0.2 || 2 || 3 || 4" } }, "node_modules/widest-line": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", "dev": true, - "license": "MIT", "dependencies": { "string-width": "^4.0.0" }, @@ -19879,10 +20785,11 @@ } }, "node_modules/winston": { - "version": "3.8.2", - "license": "MIT", + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.11.0.tgz", + "integrity": "sha512-L3yR6/MzZAOl0DsysUXHVjOwv8mKZ71TrA/41EIduGpOOV5LQVodqN+QdQ6BS6PJ/RdIshZhq84P/fStEZkk7g==", "dependencies": { - "@colors/colors": "1.5.0", + "@colors/colors": "^1.6.0", "@dabh/diagnostics": "^2.0.2", "async": "^3.2.3", "is-stream": "^2.0.0", @@ -19899,20 +20806,22 @@ } }, "node_modules/winston-transport": { - "version": "4.5.0", - "license": "MIT", + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.6.0.tgz", + "integrity": "sha512-wbBA9PbPAHxKiygo7ub7BYRiKxms0tpfU2ljtWzb3SjRjv5yl6Ozuy/TkXf00HTAt+Uylo3gSkNwzc4ME0wiIg==", "dependencies": { "logform": "^2.3.2", "readable-stream": "^3.6.0", "triple-beam": "^1.3.0" }, "engines": { - "node": ">= 6.4.0" + "node": ">= 12.0.0" } }, "node_modules/winston-transport/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -19923,8 +20832,9 @@ } }, "node_modules/winston/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -19936,20 +20846,23 @@ }, "node_modules/word-wrap": { "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/wordwrap": { "version": "1.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" }, "node_modules/wrap-ansi": { "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -19965,8 +20878,9 @@ "node_modules/wrap-ansi-cjs": { "name": "wrap-ansi", "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -19979,30 +20893,113 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/wrappy": { "version": "1.0.2", - "license": "ISC" + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } }, "node_modules/xtend": { "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.4" } }, "node_modules/y18n": { "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "license": "ISC", "engines": { "node": ">=10" } }, "node_modules/yallist": { "version": "3.1.1", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true }, "node_modules/yaml": { "version": "2.3.4", @@ -20013,9 +21010,10 @@ } }, "node_modules/yargs": { - "version": "17.7.1", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -20031,38 +21029,43 @@ }, "node_modules/yargs-parser": { "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, - "license": "ISC", "engines": { "node": ">=10" } }, "node_modules/yargs/node_modules/yargs-parser": { "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } }, "node_modules/ylru": { "version": "1.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ylru/-/ylru-1.3.2.tgz", + "integrity": "sha512-RXRJzMiK6U2ye0BlGGZnmpwJDPgakn6aNQ0A7gHRbD4I0uvK4TW6UqkK1V0pp9jskjJBAXd3dRrbzWkqJ+6cxA==", "engines": { "node": ">= 4.0.0" } }, "node_modules/yn": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/yocto-queue": { "version": "0.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "engines": { "node": ">=10" }, diff --git a/package.json b/package.json index 8a8b6177bd..43aa0d9890 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rudder-transformer", - "version": "1.50.0", + "version": "1.54.1", "description": "", "homepage": "https://github.com/rudderlabs/rudder-transformer#readme", "bugs": { @@ -23,7 +23,7 @@ "lint:fix": "eslint . --fix", "lint:fix:json": "eslint --ext .json --fix .", "check:merge": "npm run verify || exit 1; codecov", - "start": "node ./dist/src/index.js", + "start": "cd dist;node ./src/index.js;cd ..", "build:start": "npm run build && npm run start", "build:ci": "tsc -p tsconfig.json", "build:swagger": "npm run build && npm run setup:swagger", @@ -54,11 +54,11 @@ "check:lint": "eslint . -f json -o reports/eslint.json || exit 0" }, "dependencies": { - "@amplitude/ua-parser-js": "^0.7.24", - "@aws-sdk/client-personalize": "^3.391.0", - "@aws-sdk/client-s3": "^3.370.0", + "@amplitude/ua-parser-js": "0.7.24", + "@aws-sdk/client-personalize": "^3.470.0", + "@aws-sdk/client-s3": "^3.474.0", "@aws-sdk/credential-providers": "^3.391.0", - "@aws-sdk/lib-storage": "^3.391.0", + "@aws-sdk/lib-storage": "^3.474.0", "@bugsnag/js": "^7.20.2", "@datadog/pprof": "^3.1.0", "@koa/router": "^12.0.0", @@ -69,7 +69,7 @@ "ajv": "^8.12.0", "ajv-draft-04": "^1.0.0", "ajv-formats": "^2.1.1", - "axios": "^1.6.0", + "axios": "^1.6.4", "btoa": "^1.2.1", "component-each": "^0.2.6", "crypto-js": "^4.2.0", @@ -110,7 +110,7 @@ "stacktrace-parser": "^0.1.10", "statsd-client": "^0.4.7", "truncate-utf8-bytes": "^1.0.2", - "ua-parser-js": "^1.0.35", + "ua-parser-js": "^1.0.37", "unset-value": "^2.0.1", "uuid": "^9.0.0", "valid-url": "^1.0.9" diff --git a/src/adapters/network.js b/src/adapters/network.js index 375d9dc908..b0bd14374e 100644 --- a/src/adapters/network.js +++ b/src/adapters/network.js @@ -287,7 +287,7 @@ function getFormData(payload) { * @returns */ const prepareProxyRequest = (request) => { - const { body, method, params, endpoint, headers } = request; + const { body, method, params, endpoint, headers, destinationConfig: config } = request; const { payload, payloadFormat } = getPayloadData(body); let data; @@ -313,7 +313,7 @@ const prepareProxyRequest = (request) => { } // Ref: https://github.com/rudderlabs/rudder-server/blob/master/router/network.go#L164 headers['User-Agent'] = 'RudderLabs'; - return removeUndefinedValues({ endpoint, data, params, headers, method }); + return removeUndefinedValues({ endpoint, data, params, headers, method, config }); }; /** diff --git a/src/adapters/networkHandlerFactory.js b/src/adapters/networkHandlerFactory.js index 7cfa4b048e..e8c3748d15 100644 --- a/src/adapters/networkHandlerFactory.js +++ b/src/adapters/networkHandlerFactory.js @@ -8,6 +8,8 @@ const { getIntegrations } = require('../routes/utils'); const handlers = { generic: GenericNetworkHandler, + v0: {}, + v1: {}, }; // Dynamically import the network handlers for all @@ -16,7 +18,17 @@ SUPPORTED_VERSIONS.forEach((version) => { const destinations = getIntegrations(path.resolve(__dirname, `../${version}/destinations`)); destinations.forEach((dest) => { try { - handlers[dest] = require(`../${version}/destinations/${dest}/networkHandler`).networkHandler; + // handles = { + // v0: { + // dest: handler + // }, + // v1: { + // dest: handler + // }, + // generic: GenericNetworkHandler, + // } + handlers[version][dest] = + require(`../${version}/destinations/${dest}/networkHandler`).networkHandler; } catch { // Do nothing as exception indicates // network handler is not defined for that destination @@ -24,9 +36,15 @@ SUPPORTED_VERSIONS.forEach((version) => { }); }); -const getNetworkHandler = (type) => { - const NetworkHandler = handlers[type] || handlers.generic; - return new NetworkHandler(); +const getNetworkHandler = (type, version) => { + let handlerVersion = version; + let NetworkHandler = handlers[version][type] || handlers.generic; + if (version === 'v1' && NetworkHandler === handlers.generic) { + NetworkHandler = handlers.v0[type] || handlers.generic; + handlerVersion = 'v0'; + } + const networkHandler = new NetworkHandler(); + return { networkHandler, handlerVersion }; }; module.exports = { diff --git a/src/adapters/networkHandlerFactory.test.js b/src/adapters/networkHandlerFactory.test.js new file mode 100644 index 0000000000..e2b4a231e1 --- /dev/null +++ b/src/adapters/networkHandlerFactory.test.js @@ -0,0 +1,34 @@ +const { getNetworkHandler } = require('./networkHandlerFactory'); +const { networkHandler: GenericNetworkHandler } = require('./networkhandler/genericNetworkHandler'); + +describe(`Network Handler Tests`, () => { + it('Should return v0 networkhandler', () => { + let { networkHandler, handlerVersion } = getNetworkHandler('campaign_manager', `v0`); + const cmProxy = require(`../v0/destinations/campaign_manager/networkHandler`).networkHandler; + expect(networkHandler).toEqual(new cmProxy()); + }); + + it('Should return v0 networkhandler braze', () => { + let { networkHandler, handlerVersion } = getNetworkHandler('braze', `v0`); + const brazeProxy = require(`../v0/destinations/braze/networkHandler`).networkHandler; + expect(networkHandler).toEqual(new brazeProxy()); + }); + + it('Should return v1 networkhandler', () => { + let { networkHandler, handlerVersion } = getNetworkHandler('campaign_manager', `v1`); + const cmProxy = require(`../v1/destinations/campaign_manager/networkHandler`).networkHandler; + expect(networkHandler).toEqual(new cmProxy()); + }); + + it('Should return v0 handler if v1 version and handler is present for destination in v0', () => { + const { networkHandler, handlerVersion } = getNetworkHandler('braze', `v1`); + const brazeProxy = require(`../v0/destinations/braze/networkHandler`).networkHandler; + expect(networkHandler).toEqual(new brazeProxy()); + }); + + it('Should return generic handler', () => { + const { networkHandler, handlerVersion } = getNetworkHandler('abc', `v1`); + const brazeProxy = require(`../v0/destinations/braze/networkHandler`).networkHandler; + expect(networkHandler).toEqual(new GenericNetworkHandler()); + }); +}); diff --git a/src/cdk/v2/destinations/dcm_floodlight/procWorkflow.yaml b/src/cdk/v2/destinations/dcm_floodlight/procWorkflow.yaml index fbd8fb7498..db7871a7b7 100644 --- a/src/cdk/v2/destinations/dcm_floodlight/procWorkflow.yaml +++ b/src/cdk/v2/destinations/dcm_floodlight/procWorkflow.yaml @@ -84,7 +84,6 @@ steps: $.transformCustomVariable(conversionEvent.customVariables || [], .message) ); $.context.salesTag = conversionEvent.salesTag; - console.log("$.context.salesTag", $.context.salesTag); - name: handleSalesTag condition: $.context.salesTag template: | diff --git a/src/cdk/v2/destinations/gladly/utils.js b/src/cdk/v2/destinations/gladly/utils.js index 5abc9b6dd0..0489f410ec 100644 --- a/src/cdk/v2/destinations/gladly/utils.js +++ b/src/cdk/v2/destinations/gladly/utils.js @@ -1,9 +1,6 @@ const get = require('get-value'); const { InstrumentationError } = require('@rudderstack/integrations-lib'); -const { - base64Convertor, - getDestinationExternalID, -} = require('../../../../v0/util'); +const { base64Convertor, getDestinationExternalID } = require('../../../../v0/util'); const { MappedToDestinationKey } = require('../../../../constants'); const reservedCustomAttributes = [ @@ -35,7 +32,6 @@ const getEndpoint = (destination) => { return `https://${domain}/api/v1/customer-profiles`; }; - const getFieldValue = (field) => { if (field) { if (Array.isArray(field)) { @@ -44,7 +40,7 @@ const getFieldValue = (field) => { return [{ original: field }]; } return undefined; -} +}; const formatFieldForRETl = (message, fieldName) => { const identifierType = get(message, identifierTypeKey); @@ -70,7 +66,6 @@ const formatField = (message, fieldName) => { return formatFieldForRETl(message, fieldName); } return formatFieldForEventStream(message, fieldName); - }; const getCustomAttributes = (message) => { @@ -78,7 +73,9 @@ const getCustomAttributes = (message) => { // for rETL if (mappedToDestination) { if (message?.traits?.customAttributes && typeof message.traits.customAttributes === 'object') { - return Object.keys(message.traits.customAttributes).length > 0 ? message.traits.customAttributes : undefined; + return Object.keys(message.traits.customAttributes).length > 0 + ? message.traits.customAttributes + : undefined; } return undefined; } @@ -140,25 +137,27 @@ const getCustomerId = (message) => { const validatePayload = (payload) => { if (!(payload?.phones || payload?.emails || payload?.id || payload?.externalCustomerId)) { - throw new InstrumentationError('One of phone, email, userId or GladlyCustomerId is required for an identify call'); + throw new InstrumentationError( + 'One of phone, email, userId or GladlyCustomerId is required for an identify call', + ); } }; const getQueryParams = (payload) => { if (payload.emails && payload.emails.length > 0) { - return `email=${encodeURIComponent(payload.emails[0].original)}` + return `email=${encodeURIComponent(payload.emails[0].original)}`; } if (payload.phones && payload.phones.length > 0) { - return `phoneNumber=${encodeURIComponent(payload.phones[0].original)}` + return `phoneNumber=${encodeURIComponent(payload.phones[0].original)}`; } if (payload.externalCustomerId) { - return `externalCustomerId=${encodeURIComponent(payload.externalCustomerId)}` + return `externalCustomerId=${encodeURIComponent(payload.externalCustomerId)}`; } return undefined; -} +}; module.exports = { getHeaders, @@ -171,5 +170,5 @@ module.exports = { formatFieldForRETl, getCustomAttributes, getExternalCustomerId, - formatFieldForEventStream + formatFieldForEventStream, }; diff --git a/src/cdk/v2/destinations/ortto/procWorkflow.yaml b/src/cdk/v2/destinations/ortto/procWorkflow.yaml index 4b98f6246f..dfd7118c41 100644 --- a/src/cdk/v2/destinations/ortto/procWorkflow.yaml +++ b/src/cdk/v2/destinations/ortto/procWorkflow.yaml @@ -34,6 +34,7 @@ steps: description: | Builds common fields in destination payload. template: | + let phone = .message.().({{{{$.getGenericPaths("phone")}}}}); let commonFields = .message.().({ "fields": { "str::first": {{{{$.getGenericPaths("firstName")}}}}, @@ -46,7 +47,7 @@ steps: "dtz::b": $.getBirthdayObj({{{{$.getGenericPaths("birthday")}}}}), "str::ei": {{{{$.getGenericPaths("userId")}}}}, "str::language": .context.traits.language || .context.locale, - "phn::phone": {"n": {{{{$.getGenericPaths("phone")}}}}}, + "phn::phone": phone ? {"n": phone}, "bol::gdpr": .context.traits.gdpr ?? true, "bol::p": .context.traits.emailConsent || false, "bol::sp": .context.traits.smsConsent || false, diff --git a/src/cdk/v2/destinations/pinterest_tag/procWorkflow.yaml b/src/cdk/v2/destinations/pinterest_tag/procWorkflow.yaml index 7bcb804126..8a956e905c 100644 --- a/src/cdk/v2/destinations/pinterest_tag/procWorkflow.yaml +++ b/src/cdk/v2/destinations/pinterest_tag/procWorkflow.yaml @@ -9,6 +9,8 @@ bindings: path: ../../../../v0/util - name: removeUndefinedAndNullAndEmptyValues path: ../../../../v0/util + - name: validateEventName + path: ../../../../v0/util steps: - name: checkIfProcessed condition: .message.statusCode @@ -175,6 +177,7 @@ steps: name: eventNamesForOthers template: | let event = .message.event ?? .message.name; + $.validateEventName(event); let eventInLowerCase = event.toLowerCase(); let eventNames = .destination.Config.eventsMapping.(){.from === event}.to[] ?? []; eventNames = $.convertToSnakeCase(eventNames); @@ -243,4 +246,4 @@ steps: }, "params": $.outputs.checkSendTestEventConfig, "files": {} - })[] + })[] \ No newline at end of file diff --git a/src/cdk/v2/destinations/reddit/config.js b/src/cdk/v2/destinations/reddit/config.js new file mode 100644 index 0000000000..5c2c778ea5 --- /dev/null +++ b/src/cdk/v2/destinations/reddit/config.js @@ -0,0 +1,31 @@ +const ENDPOINT = 'https://ads-api.reddit.com/api/v2.0/conversions/events/'; +const maxBatchSize = 1000; + +const ecomEventMaps = [ + { + src: ['product viewed', 'product list viewed'], + dest: 'ViewContent', + }, + { + src: ['product added'], + dest: 'AddToCart', + }, + { + src: ['product added to wishlist'], + dest: 'AddToWishlist', + }, + { + src: ['order completed'], + dest: 'Purchase', + }, + { + src: ['products searched'], + dest: 'Search', + }, +]; + +module.exports = { + ENDPOINT, + maxBatchSize, + ecomEventMaps, +}; diff --git a/src/cdk/v2/destinations/reddit/procWorkflow.yaml b/src/cdk/v2/destinations/reddit/procWorkflow.yaml new file mode 100644 index 0000000000..65b466bc7c --- /dev/null +++ b/src/cdk/v2/destinations/reddit/procWorkflow.yaml @@ -0,0 +1,135 @@ +bindings: + - name: EventType + path: ../../../../constants + - path: ../../bindings/jsontemplate + exportAll: true + - path: ./config + - name: removeUndefinedAndNullValues + path: ../../../../v0/util + - name: defaultRequestConfig + path: ../../../../v0/util + - name: isAppleFamily + path: ../../../../v0/util/index + - name: OAuthSecretError + path: '@rudderstack/integrations-lib' + +steps: + - name: validateInput + template: | + let messageType = .message.type; + $.assertConfig(.destination.Config.accountId, "Account is not present. Aborting message."); + $.assert(.message.type, "message Type is not present. Aborting message."); + $.assert(.message.type.toLowerCase() ==='track', "Event type " + .message.type.toLowerCase() + " is not supported. Aborting message."); + $.assert(.message.event, "Event is not present. Aborting message."); + $.assert(.message.().({{{{$.getGenericPaths("timestamp")}}}}), "Timestamp is not present. Aborting message."); + + - name: messageType + template: | + .message.type.toLowerCase() + + - name: prepareTrackPayload + condition: $.outputs.messageType === {{$.EventType.TRACK}} + steps: + - name: prepareUserObject + template: | + const os = (.message.context.os.name)? .message.context.os.name.toLowerCase(): null; + const hashData = .destination.Config.hashData; + let user = .message.().({ + "email": hashData ? $.SHA256({{{{$.getGenericPaths("email")}}}}) : ({{{{$.getGenericPaths("email")}}}}), + "external_id": hashData ? $.SHA256({{{{$.getGenericPaths("userId")}}}}) : ({{{{$.getGenericPaths("userId")}}}}), + "ip_address": hashData? $.SHA256(.context.ip || .request_ip) : (.context.ip || .request_ip), + "uuid": .properties.uuid, + "user_agent": .context.userAgent, + "idfa": $.isAppleFamily(os)? (hashData? $.SHA256(.context.device.advertisingId): .context.device.advertisingId): null, + "aaid": os === "android" && .context.device ? (hashData? $.SHA256(.context.device.advertisingId): .context.device.advertisingId): null, + "opt_out": .properties.optOut, + "screen_dimensions": {"width": .context.screen.width, "height": .context.screen.height}, + }); + $.removeUndefinedAndNullValues(user) + + - name: eventType + template: | + let event = .message.event; + let eventInLowerCase = event.trim().toLowerCase();; + let eventNames = .destination.Config.eventsMapping? .destination.Config.eventsMapping.(){.from === event}.to[] ?? []: []; + eventNames.length === 0 ? eventNames = $.ecomEventMaps.(){eventInLowerCase in .src}.dest[] ?? []; + const event_type = (eventNames.length === 0 || eventNames[0]==="") ? ({"tracking_type": "Custom", "custom_event_name": event}): ({tracking_type: eventNames[0]}); + + - name: customFields + condition: $.outputs.eventType.tracking_type === "Purchase" + template: | + const customFields = .message.().({ + "currency": .properties.currency, + "value": .properties.revenue !== undefined ? Number(.properties.revenue) : undefined, + "item_count": (Array.isArray(.properties.products) && .properties.products.length) || (.properties.itemCount && Number(.properties.itemCount)), + "value_decimal": .properties.revenue !== undefined ? Number(.properties.revenue)/100 : undefined, + "conversion_id": .properties.conversionId || .messageId, + }); + $.removeUndefinedAndNullValues(customFields) + else: + name: nonRevenueTypeEvents + template: | + const customFields = .message.().({ + "conversion_id": .properties.conversionId || .messageId, + }); + $.removeUndefinedAndNullValues(customFields) + + - name: productFields + condition: .message.properties.products + description: When event contains multiple products + template: | + let products = .message.properties.products; + { + "item_count": $.sum(products.quantity.(Number(.))[]) || 0, + "products": .message.properties@prop.products.({ + "id": .product_id ?? prop.product_id, + "name": .name ?? prop.name, + "category": .category ?? prop.category, + })[] + } + else: + name: singleProductFields + template: | + const props = .message.properties; + const output = { + "item_count": Number(props.quantity) || 0, + "products": { + "id": props.product_id, + "name": props.name, + "category": props.category, + }[] + }; + - name: combineAllEcomFields + template: | + {...$.outputs.prepareTrackPayload.productFields, ...$.outputs.prepareTrackPayload.customFields} + + - name: prepareFinalPayload + template: | + { + events: [{ + "click_id": .message.properties.clickId, + "event_at": .message.().({{{{$.getGenericPaths("timestamp")}}}}), + "event_type": $.outputs.prepareTrackPayload.eventType, + "user": $.outputs.prepareTrackPayload.prepareUserObject, + "event_metadata": $.outputs.prepareTrackPayload.combineAllEcomFields, + }] + } + + - name: payload + condition: $.outputs.messageType === {{$.EventType.TRACK}} + template: | + const outputPayload = $.outputs.prepareTrackPayload + + - name: buildResponseForProcessTransformation + description: build response + template: | + $.assertThrow((.metadata.secret && .metadata.secret.accessToken), new $.OAuthSecretError("Secret or accessToken is not present in the metadata")) + const accessToken = .metadata.secret.accessToken + const response = $.defaultRequestConfig(); + response.body.JSON = $.outputs.payload; + response.headers = { + "Authorization": "Bearer "+ accessToken, + "Content-Type": "application/json" + } + response.endpoint = $.ENDPOINT+.destination.Config.accountId; + finalResponse = response; diff --git a/src/cdk/v2/destinations/reddit/rtWorkflow.yaml b/src/cdk/v2/destinations/reddit/rtWorkflow.yaml new file mode 100644 index 0000000000..937ff021f4 --- /dev/null +++ b/src/cdk/v2/destinations/reddit/rtWorkflow.yaml @@ -0,0 +1,67 @@ +bindings: + - path: ./utils + - path: ./config + +steps: + - name: validateInput + template: | + $.assert(Array.isArray(^) && ^.length > 0, "Invalid event array") + + - name: transform + externalWorkflow: + path: ./procWorkflow.yaml + bindings: + - name: batchMode + value: true + loopOverInput: true + - name: successfulEvents + template: | + $.outputs.transform#idx.output.({ + "message": .[], + "destination": ^ [idx].destination, + "metadata": ^ [idx].metadata + })[] + - name: failedEvents + template: | + $.outputs.transform#idx.error.({ + "metadata": ^[idx].metadata[], + "destination": ^[idx].destination, + "batched": false, + "statusCode": .status, + "error": .message, + "statTags": .originalError.statTags + })[] + + - name: batchSuccessfulEvents + description: Batches the successfulEvents using endpoint + condition: $.outputs.successfulEvents.length + template: | + let batches = $.batchEvents($.outputs.successfulEvents); + batches@batch.({ + "batchedRequest": { + "body": { + "JSON": batch.message.body.JSON, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": batch.message.endpoint, + "headers": batch.message.headers, + "params": {}, + "files": {} + }, + "metadata": batch.metadata, + "batched": true, + "statusCode": 200, + "destination": batch.destination + })[]; + else: + name: returnEmptyOuput + template: '[]' + + - name: finalPayload + template: | + [...$.outputs.batchSuccessfulEvents, ...$.outputs.failedEvents] diff --git a/src/cdk/v2/destinations/reddit/utils.js b/src/cdk/v2/destinations/reddit/utils.js new file mode 100644 index 0000000000..c108603235 --- /dev/null +++ b/src/cdk/v2/destinations/reddit/utils.js @@ -0,0 +1,33 @@ +const lodash = require('lodash'); +const { maxBatchSize } = require('./config'); + +const batchEventChunks = (eventChunks) => { + const batchedEvents = []; + if (Array.isArray(eventChunks)) { + eventChunks.forEach((chunk) => { + const response = { destination: chunk[0].destination }; + chunk.forEach((event, index) => { + if (index === 0) { + const [firstMessage] = event.message; + response.message = firstMessage; + response.destination = event.destination; + response.metadata = [event.metadata]; + } else { + response.message.body.JSON.events.push(...event.message[0].body.JSON.events); + response.metadata.push(event.metadata); + } + }); + batchedEvents.push(response); + }); + } + return batchedEvents; +}; + +const batchEvents = (successfulEvents) => { + const eventChunks = lodash.chunk(successfulEvents, maxBatchSize); + const batchedEvents = batchEventChunks(eventChunks); + return batchedEvents; +}; +module.exports = { + batchEvents, +}; diff --git a/src/cdk/v2/destinations/sprig/procWorkflow.yaml b/src/cdk/v2/destinations/sprig/procWorkflow.yaml new file mode 100644 index 0000000000..18b46913fd --- /dev/null +++ b/src/cdk/v2/destinations/sprig/procWorkflow.yaml @@ -0,0 +1,73 @@ +bindings: + - name: EventType + path: ../../../../constants + - path: ../../bindings/jsontemplate + - name: defaultRequestConfig + path: ../../../../v0/util + - name: removeUndefinedAndNullValues + path: ../../../../v0/util + +steps: + - name: messageType + template: | + .message.type.toLowerCase(); + + - name: validateInput + template: | + let messageType = $.outputs.messageType; + $.assert(messageType, "message Type is not present. Aborting"); + $.assert(messageType in {{$.EventType.([.IDENTIFY, .TRACK])}}, "message type " + messageType + " is not supported"); + $.assertConfig(.destination.Config.apiKey, "API Key is not present. Aborting"); + + - name: validateIdentifyPayload + condition: $.outputs.messageType === {{$.EventType.IDENTIFY}} + template: | + const userId = .message.({{{{$.getGenericPaths("userIdOnly")}}}});; + $.assert(userId, "userId is required"); + + - name: prepareIdentifyPayload + condition: $.outputs.messageType === {{$.EventType.IDENTIFY}} + template: | + $.context.payload = .message.({ + userId: {{{{$.getGenericPaths("userIdOnly")}}}}, + emailAddress: {{{{$.getGenericPaths("email")}}}}, + attributes: .context.traits + }); + $.context.payload = $.removeUndefinedAndNullValues($.context.payload); + + - name: validateTrackPayload + condition: $.outputs.messageType === {{$.EventType.TRACK}} + template: | + const userId = .message.({{{{$.getGenericPaths("userIdOnly")}}}});; + $.assert(userId, "userId is required"); + $.assert(.message.event, "event name is required"); + + - name: prepareTrackPayload + condition: $.outputs.messageType === {{$.EventType.TRACK}} + template: | + $.context.payload = .message.({ + userId: {{{{$.getGenericPaths("userIdOnly")}}}}, + emailAddress: {{{{$.getGenericPaths("email")}}}} + }); + const events = [ + { + event: .message.event, + timestamp: $.toMilliseconds(.message.().({{{{$.getGenericPaths("timestamp")}}}})) + } + ] + $.context.payload.events = events; + $.context.payload = $.removeUndefinedAndNullValues($.context.payload); + + - name: buildResponse + template: | + const response = $.defaultRequestConfig(); + response.body.JSON = $.context.payload; + response.endpoint = "https://api.sprig.com/v2/users"; + response.headers = { + "accept": "application/json", + "content-type": "application/json", + "authorization": "API-Key " + .destination.Config.apiKey + }; + response + + diff --git a/src/cdk/v2/destinations/the_trade_desk/config.js b/src/cdk/v2/destinations/the_trade_desk/config.js new file mode 100644 index 0000000000..9455c818fd --- /dev/null +++ b/src/cdk/v2/destinations/the_trade_desk/config.js @@ -0,0 +1,21 @@ +const SUPPORTED_EVENT_TYPE = 'record'; +const ACTION_TYPES = ['insert', 'delete']; +const DATA_PROVIDER_ID = 'rudderstack'; + +// ref:- https://partner.thetradedesk.com/v3/portal/data/doc/DataEnvironments +const DATA_SERVERS_BASE_ENDPOINTS_MAP = { + apac: 'https://sin-data.adsrvr.org', + tokyo: 'https://tok-data.adsrvr.org', + usEastCoast: 'https://use-data.adsrvr.org', + usWestCoast: 'https://usw-data.adsrvr.org', + ukEu: 'https://euw-data.adsrvr.org', + china: 'https://data-cn2.adsrvr.cn', +}; + +module.exports = { + SUPPORTED_EVENT_TYPE, + ACTION_TYPES, + DATA_PROVIDER_ID, + MAX_REQUEST_SIZE_IN_BYTES: 2500000, + DATA_SERVERS_BASE_ENDPOINTS_MAP, +}; diff --git a/src/cdk/v2/destinations/the_trade_desk/rtWorkflow.yaml b/src/cdk/v2/destinations/the_trade_desk/rtWorkflow.yaml new file mode 100644 index 0000000000..0c8963e0ac --- /dev/null +++ b/src/cdk/v2/destinations/the_trade_desk/rtWorkflow.yaml @@ -0,0 +1,17 @@ +bindings: + - name: processRouterDest + path: ./utils + +steps: + - name: validateInput + template: | + $.assert(Array.isArray(^) && ^.length > 0, "Invalid event array") + const config = ^[0].destination.Config + $.assertConfig(config.audienceId, "Segment name is not present. Aborting") + $.assertConfig(config.advertiserId, "Advertiser ID is not present. Aborting") + $.assertConfig(config.advertiserSecretKey, "Advertiser Secret Key is not present. Aborting") + config.ttlInDays ? $.assertConfig(config.ttlInDays >=0 && config.ttlInDays <= 180, "TTL is out of range. Allowed values are 0 to 180 days") + + - name: processRouterDest + template: | + $.processRouterDest(^) diff --git a/src/cdk/v2/destinations/the_trade_desk/utils.js b/src/cdk/v2/destinations/the_trade_desk/utils.js new file mode 100644 index 0000000000..632442d74e --- /dev/null +++ b/src/cdk/v2/destinations/the_trade_desk/utils.js @@ -0,0 +1,118 @@ +const lodash = require('lodash'); +const CryptoJS = require('crypto-js'); +const { InstrumentationError, AbortedError } = require('@rudderstack/integrations-lib'); +const { BatchUtils } = require('@rudderstack/workflow-engine'); +const { + defaultPostRequestConfig, + defaultRequestConfig, + getSuccessRespEvents, + removeUndefinedAndNullValues, + handleRtTfSingleEventError, + isEmptyObject, +} = require('../../../../v0/util'); +const tradeDeskConfig = require('./config'); + +const { DATA_PROVIDER_ID, DATA_SERVERS_BASE_ENDPOINTS_MAP } = tradeDeskConfig; + +const ttlInMin = (ttl) => parseInt(ttl, 10) * 1440; +const getBaseEndpoint = (dataServer) => DATA_SERVERS_BASE_ENDPOINTS_MAP[dataServer]; +const getFirstPartyEndpoint = (dataServer) => `${getBaseEndpoint(dataServer)}/data/advertiser`; + +const getSignatureHeader = (request, secretKey) => { + if (!secretKey) { + throw new AbortedError('Secret key is missing. Aborting'); + } + const sha1 = CryptoJS.HmacSHA1(JSON.stringify(request), secretKey); + const base = CryptoJS.enc.Base64.stringify(sha1); + return base; +}; + +const responseBuilder = (items, config) => { + const { advertiserId, dataServer } = config; + + const payload = { DataProviderId: DATA_PROVIDER_ID, AdvertiserId: advertiserId, Items: items }; + + const response = defaultRequestConfig(); + response.endpoint = getFirstPartyEndpoint(dataServer); + response.method = defaultPostRequestConfig.requestMethod; + response.body.JSON = removeUndefinedAndNullValues(payload); + return response; +}; + +const batchResponseBuilder = (items, config) => { + const response = []; + const itemsChunks = BatchUtils.chunkArrayBySizeAndLength(items, { + // TODO: use destructuring at the top of file once proper 'mocking' is implemented. + // eslint-disable-next-line unicorn/consistent-destructuring + maxSizeInBytes: tradeDeskConfig.MAX_REQUEST_SIZE_IN_BYTES, + }); + + itemsChunks.items.forEach((chunk) => { + response.push(responseBuilder(chunk, config)); + }); + + return response; +}; + +const processRecordInputs = (inputs, destination) => { + const { Config } = destination; + const items = []; + const successMetadata = []; + const errorResponseList = []; + + const invalidActionTypeError = new InstrumentationError('Invalid action type'); + const emptyFieldsError = new InstrumentationError('Fields cannot be empty'); + + inputs.forEach((input) => { + const { fields, action } = input.message; + const isInsertOrDelete = action === 'insert' || action === 'delete'; + + if (!isInsertOrDelete) { + errorResponseList.push(handleRtTfSingleEventError(input, invalidActionTypeError, {})); + return; + } + + if (isEmptyObject(fields)) { + errorResponseList.push(handleRtTfSingleEventError(input, emptyFieldsError, {})); + return; + } + + successMetadata.push(input.metadata); + const data = [ + { + Name: Config.audienceId, + TTLInMinutes: action === 'insert' ? ttlInMin(Config.ttlInDays) : 0, + }, + ]; + + Object.keys(fields).forEach((id) => { + const value = fields[id]; + if (value) { + // adding only non empty ID's + items.push({ [id]: value, Data: data }); + } + }); + }); + + const payloads = batchResponseBuilder(items, Config); + if (payloads.length === 0) { + return errorResponseList; + } + + const response = getSuccessRespEvents(payloads, successMetadata, destination, true); + return [response, ...errorResponseList]; +}; + +const processRouterDest = (inputs) => { + const respList = []; + const { destination } = inputs[0]; + const groupedInputs = lodash.groupBy(inputs, (input) => input.message.type); + if (groupedInputs.record) { + const transformedRecordEvent = processRecordInputs(groupedInputs.record, destination); + respList.push(...transformedRecordEvent); + } + + return respList; +}; + +module.exports = { getSignatureHeader, processRouterDest }; diff --git a/src/cdk/v2/destinations/the_trade_desk/utils.test.js b/src/cdk/v2/destinations/the_trade_desk/utils.test.js new file mode 100644 index 0000000000..81fd7cf17d --- /dev/null +++ b/src/cdk/v2/destinations/the_trade_desk/utils.test.js @@ -0,0 +1,49 @@ +const { AbortedError } = require('@rudderstack/integrations-lib'); +const { getSignatureHeader } = require('./utils'); + +describe('getSignatureHeader', () => { + it('should calculate the signature header for a valid request and secret key', () => { + const request = { data: 'example' }; + const secretKey = 'secret'; + const expected = 'rvxETQ7kIU5Cko3GddD2AeFpz8E='; + + const result = getSignatureHeader(request, secretKey); + + expect(result).toBe(expected); + }); + + it('should handle requests with different data types and secret key', () => { + const request1 = { data: 'example' }; + const secretKey1 = 'secret'; + const expected1 = 'rvxETQ7kIU5Cko3GddD2AeFpz8E='; + + const result1 = getSignatureHeader(request1, secretKey1); + + expect(result1).toBe(expected1); + + const request2 = { data: 123 }; + const secretKey2 = 'secret'; + const expected2 = 'V5RSVwxqHRLkZftZ0+IrZAp4L4s='; + + const result2 = getSignatureHeader(request2, secretKey2); + + expect(result2).toBe(expected2); + + const request3 = { data: true }; + const secretKey3 = 'secret'; + const expected3 = 'oZ28NtyMYDGxRV0E+Tgvz7B1jds='; + + const result3 = getSignatureHeader(request3, secretKey3); + + expect(result3).toBe(expected3); + }); + + it('should throw an AbortedError when secret key is missing', () => { + const request = { data: 'example' }; + const secretKey = null; + + expect(() => { + getSignatureHeader(request, secretKey); + }).toThrow(AbortedError); + }); +}); diff --git a/src/cdk/v2/destinations/tiktok_audience/rtWorkflow.yaml b/src/cdk/v2/destinations/tiktok_audience/rtWorkflow.yaml index 3db4c405ad..a7fa855938 100644 --- a/src/cdk/v2/destinations/tiktok_audience/rtWorkflow.yaml +++ b/src/cdk/v2/destinations/tiktok_audience/rtWorkflow.yaml @@ -13,7 +13,6 @@ steps: loopOverInput: true - name: successfulEvents - debug: true template: | $.outputs.transform#idx{"output" in .}.({ "batchedRequest": .output, diff --git a/src/constants/destinationCanonicalNames.js b/src/constants/destinationCanonicalNames.js index 48e7c6d8bb..d1e199c9e2 100644 --- a/src/constants/destinationCanonicalNames.js +++ b/src/constants/destinationCanonicalNames.js @@ -140,7 +140,7 @@ const DestCanonicalNames = { 'twitter_ads', 'TWITTER_ADS', ], - BRAZE: ['BRAZE', 'Braze', 'braze'] + BRAZE: ['BRAZE', 'Braze', 'braze'], }; module.exports = { DestHandlerMap, DestCanonicalNames }; diff --git a/src/controllers/bulkUpload.ts b/src/controllers/bulkUpload.ts index 85c4fe6b4f..babb8b6db1 100644 --- a/src/controllers/bulkUpload.ts +++ b/src/controllers/bulkUpload.ts @@ -1,7 +1,7 @@ /* eslint-disable global-require, import/no-dynamic-require, @typescript-eslint/no-unused-vars */ import { client as errNotificationClient } from '../util/errorNotifier'; import logger from '../logger'; -import { CatchErr } from '../util/types'; +import { CatchErr, ContextBodySimple } from '../util/types'; // TODO: To be refactored and redisgned const getDestFileUploadHandler = (version, dest) => @@ -45,7 +45,7 @@ export const fileUpload = async (ctx) => { return {}; }; - const { destType } = ctx.request.body; + const { destType }: ContextBodySimple = ctx.request.body; const destFileUploadHandler = getDestFileUploadHandler('v0', destType.toLowerCase()); if (!destFileUploadHandler || !destFileUploadHandler.processFileData) { @@ -82,7 +82,7 @@ export const pollStatus = async (ctx) => { JSON.stringify(ctx.request.body), ); - const { destType } = ctx.request.body; + const { destType }: ContextBodySimple = ctx.request.body; const destFileUploadHandler = getPollStatusHandler('v0', destType.toLowerCase()); let response; if (!destFileUploadHandler || !destFileUploadHandler.processPolling) { @@ -117,7 +117,7 @@ export const getWarnJobStatus = async (ctx) => { JSON.stringify(ctx.request.body), ); - const { destType } = ctx.request.body; + const { destType }: ContextBodySimple = ctx.request.body; const destFileUploadHandler = getJobStatusHandler('v0', destType.toLowerCase()); if (!destFileUploadHandler || !destFileUploadHandler.processJobStatus) { @@ -153,7 +153,7 @@ export const getFailedJobStatus = async (ctx) => { JSON.stringify(ctx.request.body), ); - const { destType } = ctx.request.body; + const { destType }: ContextBodySimple = ctx.request.body; const destFileUploadHandler = getJobStatusHandler('v0', destType.toLowerCase()); if (!destFileUploadHandler || !destFileUploadHandler.processJobStatus) { diff --git a/src/controllers/delivery.ts b/src/controllers/delivery.ts index af94764d46..eba24ccf58 100644 --- a/src/controllers/delivery.ts +++ b/src/controllers/delivery.ts @@ -1,6 +1,14 @@ +/* eslint-disable prefer-destructuring */ +/* eslint-disable sonarjs/no-duplicate-string */ import { Context } from 'koa'; import { MiscService } from '../services/misc'; -import { DeliveryResponse, ProcessorTransformationOutput } from '../types/index'; +import { + DeliveriesResponse, + DeliveryResponse, + ProcessorTransformationOutput, + ProxyDeliveriesRequest, + ProxyDeliveryRequest, +} from '../types/index'; import { ServiceSelector } from '../helpers/serviceSelector'; import { DeliveryTestService } from '../services/delivertTest/deliveryTest'; import { ControllerUtility } from './util'; @@ -9,24 +17,32 @@ import { DestinationPostTransformationService } from '../services/destination/po import tags from '../v0/util/tags'; import { FixMe } from '../util/types'; +const NON_DETERMINABLE = 'Non-determinable'; + export class DeliveryController { public static async deliverToDestination(ctx: Context) { logger.debug('Native(Delivery):: Request to transformer::', JSON.stringify(ctx.request.body)); let deliveryResponse: DeliveryResponse; const requestMetadata = MiscService.getRequestMetadata(ctx); - const event = ctx.request.body as ProcessorTransformationOutput; + const deliveryRequest = ctx.request.body as ProxyDeliveryRequest; const { destination }: { destination: string } = ctx.params; const integrationService = ServiceSelector.getNativeDestinationService(); try { - deliveryResponse = await integrationService.deliver(event, destination, requestMetadata); + deliveryResponse = (await integrationService.deliver( + deliveryRequest, + destination, + requestMetadata, + 'v0', + )) as DeliveryResponse; } catch (error: any) { + const { metadata } = deliveryRequest; const metaTO = integrationService.getTags( destination, - event.metadata?.destinationId || 'Non-determininable', - event.metadata?.workspaceId || 'Non-determininable', + metadata?.destinationId || NON_DETERMINABLE, + metadata?.workspaceId || NON_DETERMINABLE, tags.FEATURES.DATA_DELIVERY, ); - metaTO.metadata = event.metadata; + metaTO.metadata = metadata; deliveryResponse = DestinationPostTransformationService.handleDeliveryFailureEvents( error, metaTO, @@ -34,6 +50,42 @@ export class DeliveryController { } ctx.body = { output: deliveryResponse }; ControllerUtility.deliveryPostProcess(ctx, deliveryResponse.status); + + logger.debug('Native(Delivery):: Response from transformer::', JSON.stringify(ctx.body)); + return ctx; + } + + public static async deliverToDestinationV1(ctx: Context) { + logger.debug('Native(Delivery):: Request to transformer::', JSON.stringify(ctx.request.body)); + let deliveryResponse: DeliveriesResponse; + const requestMetadata = MiscService.getRequestMetadata(ctx); + const deliveryRequest = ctx.request.body as ProxyDeliveriesRequest; + const { destination }: { destination: string } = ctx.params; + const integrationService = ServiceSelector.getNativeDestinationService(); + try { + deliveryResponse = (await integrationService.deliver( + deliveryRequest, + destination, + requestMetadata, + 'v1', + )) as DeliveriesResponse; + } catch (error: any) { + const { metadata } = deliveryRequest; + const metaTO = integrationService.getTags( + destination, + metadata[0].destinationId || NON_DETERMINABLE, + metadata[0].workspaceId || NON_DETERMINABLE, + tags.FEATURES.DATA_DELIVERY, + ); + metaTO.metadatas = metadata; + deliveryResponse = DestinationPostTransformationService.handlevV1DeliveriesFailureEvents( + error, + metaTO, + ); + } + ctx.body = { output: deliveryResponse }; + ControllerUtility.deliveryPostProcess(ctx, deliveryResponse.status); + logger.debug('Native(Delivery):: Response from transformer::', JSON.stringify(ctx.body)); return ctx; } @@ -44,6 +96,7 @@ export class DeliveryController { JSON.stringify(ctx.request.body), ); const { destination }: { destination: string } = ctx.params; + const { version }: { version: string } = ctx.params; const { deliveryPayload, destinationRequestPayload, @@ -55,6 +108,7 @@ export class DeliveryController { destination, destinationRequestPayload, deliveryPayload, + version, ); ctx.body = { output: response }; ControllerUtility.postProcess(ctx); diff --git a/src/controllers/util/index.test.ts b/src/controllers/util/index.test.ts index e23d3f6832..6065920846 100644 --- a/src/controllers/util/index.test.ts +++ b/src/controllers/util/index.test.ts @@ -1,4 +1,11 @@ +import { + Destination, + Metadata, + ProcessorTransformationRequest, + RouterTransformationRequestData, +} from '../../types'; import { ControllerUtility } from './index'; +import lodash from 'lodash'; describe('adaptInputToVersion', () => { it('should return the input unchanged when the implementation version is not found', () => { @@ -147,3 +154,408 @@ describe('adaptInputToVersion', () => { expect(result).toEqual(expected); }); }); + +type timestampTestCases = { + caseName: string; + expectedOutputEvents: Array; + inputEvents: Array; +}; + +const metadata: Metadata = { + sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', + workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', + namespace: '', + instanceId: '1', + sourceType: 'HTTP', + sourceCategory: '', + trackingPlanId: '', + trackingPlanVersion: 0, + sourceTpConfig: {}, + mergedTpConfig: {}, + destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', + jobRunId: '', + jobId: 1, + sourceBatchId: '', + sourceJobId: '', + sourceJobRunId: '', + sourceTaskId: '', + sourceTaskRunId: '', + recordId: {}, + destinationType: 'WEBHOOK', + messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', + oauthAccessToken: '', + messageIds: [], + rudderId: '<<>>2073230<<>>2564871', + receivedAt: '2022-12-23T00:29:10.189+05:30', + eventName: 'Test', + eventType: 'track', + sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', + destinationDefinitionId: '', + transformationId: '', +}; + +const destination: Destination = { + ID: 'string', + Name: 'string', + DestinationDefinition: { + ID: 'defid1', + Name: 'INTERCOM', + DisplayName: 'intercom', + Config: {}, + }, + Config: {}, + Enabled: true, + WorkspaceID: 'wspId', + Transformations: [], +}; + +const message = { + anonymousId: '2073230', + event: 'Test', + messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', + originalTimestamp: '2022-12-23T00:29:12.117+05:30', + channel: 'sources', + properties: { + timestamp: '2023-01-23T00:29:12.117+05:30', + }, + sentAt: '2022-12-23T00:29:12.117+05:30', + timestamp: '2023-01-23T00:29:12.117+05:30', + type: 'track', + userId: '2564871', +}; + +function getMetadata(overrides: Metadata): Metadata { + return lodash.merge({}, metadata, overrides); +} + +function getDestination(overrides: Destination): Destination { + return lodash.merge({}, destination, overrides); +} + +function getMessage(overrides: object): object { + return lodash.merge({}, message, overrides); +} + +function getMessageWithShallowMerge(overrides: object): object { + return lodash.assign({}, message, overrides); +} + +const timestampEventsCases: timestampTestCases[] = [ + { + caseName: 'when events(all track), timestamp should be taken from properties.timestamp', + expectedOutputEvents: [ + { + message: message, + metadata: metadata, + destination: destination, + }, + ], + inputEvents: [ + { + message: getMessage({ + timestamp: '2022-12-23T00:29:10.188+05:30', + }), + metadata: metadata, + destination: destination, + }, + ], + }, + { + caseName: + 'when events(all track) without properties.timestamp, timestamp should be taken from timestamp', + expectedOutputEvents: [ + { + message: getMessageWithShallowMerge({ + properties: { + someTime: '2023-01-23T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + }), + metadata: metadata, + destination: destination, + }, + ], + inputEvents: [ + { + message: getMessageWithShallowMerge({ + properties: { + someTime: '2023-01-23T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + }), + metadata: metadata, + destination: destination, + }, + ], + }, + { + caseName: + 'when events(all identify) without context.timestamp, timestamp should be taken from timestamp', + expectedOutputEvents: [ + { + message: getMessage({ + context: { + timestamp: '2023-01-12T00:29:12.117+05:30', + }, + timestamp: '2023-01-12T00:29:12.117+05:30', + type: 'identify', + }), + metadata: metadata, + destination: destination, + }, + ], + inputEvents: [ + { + message: getMessage({ + context: { + timestamp: '2023-01-12T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'identify', + }), + metadata: metadata, + destination: destination, + }, + ], + }, + { + caseName: + 'when proc events(identify, track, group) are mixed, timestamp should be taken from relevant places for identify & track, skipped for group', + expectedOutputEvents: [ + { + message: getMessage({ + context: { + traits: { + timestamp: '2023-01-22T00:29:12.117+05:30', + }, + }, + timestamp: '2023-01-22T00:29:12.117+05:30', + type: 'identify', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073231', + traits: { + timestamp: '2023-01-11T00:29:12.117+05:30', + }, + timestamp: '2023-01-11T00:29:12.117+05:30', + type: 'identify', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073232', + properties: { + timestamp: '2023-01-13T00:29:12.117+05:30', + }, + timestamp: '2023-01-13T00:29:12.117+05:30', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073232', + properties: { + timestamp: '2023-01-13T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'group', + }), + metadata: metadata, + destination: destination, + }, + ], + inputEvents: [ + { + message: getMessage({ + context: { + traits: { + timestamp: '2023-01-22T00:29:12.117+05:30', + }, + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'identify', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073231', + traits: { + timestamp: '2023-01-11T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'identify', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073232', + properties: { + timestamp: '2023-01-13T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073232', + properties: { + timestamp: '2023-01-13T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'group', + }), + metadata: metadata, + destination: destination, + }, + ], + }, + { + caseName: + 'when a mix of VDM enabled & non-VDM destinations are available, the timestamp will be applied to only non-VDM destination', + expectedOutputEvents: [ + { + message: getMessage({ + context: { + traits: { + timestamp: '2023-01-22T00:29:12.117+05:30', + }, + mappedToDestination: true, + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'identify', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073231', + traits: { + timestamp: '2023-01-11T00:29:12.117+05:30', + }, + timestamp: '2023-01-11T00:29:12.117+05:30', + type: 'identify', + }), + metadata: getMetadata({ + destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPy', + } as any), + destination: getDestination({ + ID: 'string-2', + } as any), + }, + { + message: getMessage({ + anonymousId: '2073232', + context: { + mappedToDestination: true, + }, + properties: { + timestamp: '2023-01-13T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073232', + context: { + mappedToDestination: true, + }, + properties: { + timestamp: '2023-01-13T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'group', + }), + metadata: metadata, + destination: destination, + }, + ], + inputEvents: [ + { + message: getMessage({ + context: { + traits: { + timestamp: '2023-01-22T00:29:12.117+05:30', + }, + mappedToDestination: true, + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'identify', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073231', + traits: { + timestamp: '2023-01-11T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'identify', + }), + metadata: getMetadata({ + destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPy', + } as any), + destination: getDestination({ + ID: 'string-2', + } as any), + }, + { + message: getMessage({ + anonymousId: '2073232', + context: { + mappedToDestination: true, + }, + properties: { + timestamp: '2023-01-13T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + }), + metadata: metadata, + destination: destination, + }, + { + message: getMessage({ + anonymousId: '2073232', + context: { + mappedToDestination: true, + }, + properties: { + timestamp: '2023-01-13T00:29:12.117+05:30', + }, + timestamp: '2022-11-22T00:29:10.188+05:30', + type: 'group', + }), + metadata: metadata, + destination: destination, + }, + ], + }, +]; + +describe('controller utility tests -- handleTimestampInEvents for retl connections', () => { + test.each(timestampEventsCases)( + '$caseName', + ({ inputEvents, expectedOutputEvents: outputEvents }) => { + const actualEvents = ControllerUtility.handleTimestampInEvents(inputEvents); + expect(actualEvents).toStrictEqual(outputEvents); + }, + ); +}); diff --git a/src/features.json b/src/features.json index 224968c99b..8709dce432 100644 --- a/src/features.json +++ b/src/features.json @@ -62,7 +62,25 @@ "ORTTO": true, "GLADLY": true, "ONE_SIGNAL": true, - "TIKTOK_AUDIENCE": true + "TIKTOK_AUDIENCE": true, + "REDDIT": true, + "THE_TRADE_DESK": true, + "INTERCOM": true }, - "supportSourceTransformV1": true + "regulations": [ + "BRAZE", + "AM", + "INTERCOM", + "CLEVERTAP", + "AF", + "MP", + "GA", + "ITERABLE", + "ENGAGE", + "CUSTIFY", + "SENDGRID", + "SPRIG" + ], + "supportSourceTransformV1": true, + "supportTransformerProxyV1": false } diff --git a/src/interfaces/DestinationService.ts b/src/interfaces/DestinationService.ts index b27f98da2a..bf39024d85 100644 --- a/src/interfaces/DestinationService.ts +++ b/src/interfaces/DestinationService.ts @@ -5,9 +5,10 @@ import { ProcessorTransformationResponse, RouterTransformationRequestData, RouterTransformationResponse, - ProcessorTransformationOutput, UserDeletionRequest, UserDeletionResponse, + ProxyRequest, + DeliveriesResponse, } from '../types/index'; export interface DestinationService { @@ -44,10 +45,11 @@ export interface DestinationService { ): RouterTransformationResponse[]; deliver( - event: ProcessorTransformationOutput, + event: ProxyRequest, destinationType: string, requestMetadata: NonNullable, - ): Promise; + version: string, + ): Promise; processUserDeletion( requests: UserDeletionRequest[], diff --git a/src/routes/delivery.ts b/src/routes/delivery.ts index 0591dc8b9e..30f4e2fb78 100644 --- a/src/routes/delivery.ts +++ b/src/routes/delivery.ts @@ -5,12 +5,19 @@ import { RouteActivationMiddleware } from '../middlewares/routeActivation'; const router = new Router(); router.post( - '/:version/destinations/:destination/proxy', + '/v0/destinations/:destination/proxy', RouteActivationMiddleware.isDeliveryRouteActive, RouteActivationMiddleware.destinationDeliveryFilter, DeliveryController.deliverToDestination, ); +router.post( + '/v1/destinations/:destination/proxy', + RouteActivationMiddleware.isDeliveryRouteActive, + RouteActivationMiddleware.destinationDeliveryFilter, + DeliveryController.deliverToDestinationV1, +); + router.post( '/:version/destinations/:destination/proxyTest', RouteActivationMiddleware.isDeliveryTestRouteActive, diff --git a/src/routes/utils/constants.js b/src/routes/utils/constants.js index f074db6c62..ccec8e54dd 100644 --- a/src/routes/utils/constants.js +++ b/src/routes/utils/constants.js @@ -1,4 +1,4 @@ -const SUPPORTED_VERSIONS = ['v0']; +const SUPPORTED_VERSIONS = ['v0', 'v1']; const API_VERSION = '2'; const INTEGRATION_SERVICE = { COMPARATOR: 'comparator', @@ -7,8 +7,8 @@ const INTEGRATION_SERVICE = { NATIVE_DEST: 'native_dest', NATIVE_SOURCE: 'native_source', }; -const CHANNELS= { - sources: 'sources' +const CHANNELS = { + sources: 'sources', }; const RETL_TIMESTAMP = 'timestamp'; diff --git a/src/services/comparator.ts b/src/services/comparator.ts index 7f63da9402..d1e085b4bd 100644 --- a/src/services/comparator.ts +++ b/src/services/comparator.ts @@ -1,13 +1,14 @@ /* eslint-disable class-methods-use-this */ import { DestinationService } from '../interfaces/DestinationService'; import { + DeliveriesResponse, DeliveryResponse, Destination, ErrorDetailer, MetaTransferObject, - ProcessorTransformationOutput, ProcessorTransformationRequest, ProcessorTransformationResponse, + ProxyRequest, RouterTransformationRequestData, RouterTransformationResponse, UserDeletionRequest, @@ -365,17 +366,18 @@ export class ComparatorService implements DestinationService { } public async deliver( - event: ProcessorTransformationOutput, + event: ProxyRequest, destinationType: string, requestMetadata: NonNullable, - ): Promise { + version: string, + ): Promise { const primaryResplist = await this.primaryService.deliver( event, destinationType, requestMetadata, + version, ); logger.error('[LIVE_COMPARE_TEST] not implemented for delivery routine'); - return primaryResplist; } diff --git a/src/services/delivertTest/deliveryTest.ts b/src/services/delivertTest/deliveryTest.ts index 0d960ade17..2f5db183e5 100644 --- a/src/services/delivertTest/deliveryTest.ts +++ b/src/services/delivertTest/deliveryTest.ts @@ -12,12 +12,13 @@ export class DeliveryTestService { destination: string, routerDestReqPayload: any, routerDeliveryPayload: any, + version, ) { let response: any; try { - const destNetworkHandler = networkHandlerFactory.getNetworkHandler(destination); + const { networkHandler } = networkHandlerFactory.getNetworkHandler(destination, version); - const proxyDestReqPayload = destNetworkHandler.prepareProxy(routerDeliveryPayload); + const proxyDestReqPayload = networkHandler.prepareProxy(routerDeliveryPayload); response = { destinationRequestPayload: proxyDestReqPayload, }; diff --git a/src/services/destination/cdkV1Integration.ts b/src/services/destination/cdkV1Integration.ts index 8ccd3341e5..197e3162ea 100644 --- a/src/services/destination/cdkV1Integration.ts +++ b/src/services/destination/cdkV1Integration.ts @@ -11,9 +11,10 @@ import { ProcessorTransformationResponse, RouterTransformationRequestData, RouterTransformationResponse, - ProcessorTransformationOutput, UserDeletionRequest, UserDeletionResponse, + ProxyRequest, + DeliveriesResponse, } from '../../types/index'; import { DestinationPostTransformationService } from './postTransformation'; import tags from '../../v0/util/tags'; @@ -117,10 +118,10 @@ export class CDKV1DestinationService implements DestinationService { } public deliver( - _event: ProcessorTransformationOutput, + _event: ProxyRequest, _destinationType: string, _requestMetadata: NonNullable, - ): Promise { + ): Promise { throw new TransformationError('CDV1 Does not Implement Delivery Routine'); } diff --git a/src/services/destination/cdkV2Integration.ts b/src/services/destination/cdkV2Integration.ts index f3be2c0144..be7f0e51d5 100644 --- a/src/services/destination/cdkV2Integration.ts +++ b/src/services/destination/cdkV2Integration.ts @@ -15,6 +15,8 @@ import { ProcessorTransformationOutput, UserDeletionRequest, UserDeletionResponse, + ProxyRequest, + DeliveriesResponse, } from '../../types/index'; import tags from '../../v0/util/tags'; import { DestinationPostTransformationService } from './postTransformation'; @@ -64,7 +66,7 @@ export class CDKV2DestinationService implements DestinationService { destinationType, event, tags.FEATURES.PROCESSOR, - requestMetadata + requestMetadata, ); stats.increment('event_transform_success', { @@ -127,7 +129,12 @@ export class CDKV2DestinationService implements DestinationService { metaTo.metadata = destInputArray[0].metadata; try { const doRouterTransformationResponse: RouterTransformationResponse[] = - await processCdkV2Workflow(destinationType, destInputArray, tags.FEATURES.ROUTER, requestMetadata); + await processCdkV2Workflow( + destinationType, + destInputArray, + tags.FEATURES.ROUTER, + requestMetadata, + ); return DestinationPostTransformationService.handleRouterTransformSuccessEvents( doRouterTransformationResponse, undefined, @@ -160,10 +167,10 @@ export class CDKV2DestinationService implements DestinationService { } public deliver( - _event: ProcessorTransformationOutput, + _event: ProxyRequest, _destinationType: string, _requestMetadata: NonNullable, - ): Promise { + ): Promise { throw new TransformationError('CDKV2 Does not Implement Delivery Routine'); } diff --git a/src/services/destination/nativeIntegration.ts b/src/services/destination/nativeIntegration.ts index 6763f54c7e..6b680e3f4a 100644 --- a/src/services/destination/nativeIntegration.ts +++ b/src/services/destination/nativeIntegration.ts @@ -1,3 +1,5 @@ +/* eslint-disable prefer-destructuring */ +/* eslint-disable sonarjs/no-duplicate-string */ /* eslint-disable @typescript-eslint/no-unused-vars */ import groupBy from 'lodash/groupBy'; import cloneDeep from 'lodash/cloneDeep'; @@ -13,11 +15,17 @@ import { ProcessorTransformationOutput, UserDeletionRequest, UserDeletionResponse, + ProxyRequest, + ProxyDeliveriesRequest, + ProxyDeliveryRequest, + DeliveriesResponse, + DeliveryJobState, } from '../../types/index'; import { DestinationPostTransformationService } from './postTransformation'; import networkHandlerFactory from '../../adapters/networkHandlerFactory'; import { FetchHandler } from '../../helpers/fetchHandlers'; import tags from '../../v0/util/tags'; +import stats from '../../util/stats'; export class NativeIntegrationDestinationService implements DestinationService { public init() {} @@ -169,29 +177,69 @@ export class NativeIntegrationDestinationService implements DestinationService { } public async deliver( - destinationRequest: ProcessorTransformationOutput, + deliveryRequest: ProxyRequest, destinationType: string, _requestMetadata: NonNullable, - ): Promise { + version: string, + ): Promise { try { - const networkHandler = networkHandlerFactory.getNetworkHandler(destinationType); - const rawProxyResponse = await networkHandler.proxy(destinationRequest, destinationType); + const { networkHandler, handlerVersion } = networkHandlerFactory.getNetworkHandler( + destinationType, + version, + ); + const rawProxyResponse = await networkHandler.proxy(deliveryRequest, destinationType); const processedProxyResponse = networkHandler.processAxiosResponse(rawProxyResponse); - return networkHandler.responseHandler( + let rudderJobMetadata = + version.toLowerCase() === 'v1' + ? (deliveryRequest as ProxyDeliveriesRequest).metadata + : (deliveryRequest as ProxyDeliveryRequest).metadata; + + if (version.toLowerCase() === 'v1' && handlerVersion.toLowerCase() === 'v0') { + rudderJobMetadata = rudderJobMetadata[0]; + } + + let responseProxy = networkHandler.responseHandler( { ...processedProxyResponse, - rudderJobMetadata: destinationRequest.metadata, + rudderJobMetadata, }, destinationType, - ) as DeliveryResponse; + ); + // Adaption Logic for V0 to V1 + if (handlerVersion.toLowerCase() === 'v0' && version.toLowerCase() === 'v1') { + const v0Response = responseProxy as DeliveryResponse; + const jobStates = (deliveryRequest as ProxyDeliveriesRequest).metadata.map( + (metadata) => + ({ + error: JSON.stringify(v0Response.destinationResponse?.response), + statusCode: v0Response.status, + metadata, + } as DeliveryJobState), + ); + responseProxy = { + response: jobStates, + status: v0Response.status, + message: v0Response.message, + authErrorCategory: v0Response.authErrorCategory, + } as DeliveriesResponse; + } + return responseProxy; } catch (err: any) { + const metadata = Array.isArray(deliveryRequest.metadata) + ? deliveryRequest.metadata[0] + : deliveryRequest.metadata; const metaTO = this.getTags( destinationType, - destinationRequest.metadata?.destinationId || 'Non-determininable', - destinationRequest.metadata?.workspaceId || 'Non-determininable', + metadata?.destinationId || 'Non-determininable', + metadata?.workspaceId || 'Non-determininable', tags.FEATURES.DATA_DELIVERY, ); - metaTO.metadata = destinationRequest.metadata; + + if (version.toLowerCase() === 'v1') { + metaTO.metadatas = (deliveryRequest as ProxyDeliveriesRequest).metadata; + return DestinationPostTransformationService.handlevV1DeliveriesFailureEvents(err, metaTO); + } + metaTO.metadata = (deliveryRequest as ProxyDeliveryRequest).metadata; return DestinationPostTransformationService.handleDeliveryFailureEvents(err, metaTO); } } @@ -202,6 +250,7 @@ export class NativeIntegrationDestinationService implements DestinationService { ): Promise { const response = await Promise.all( requests.map(async (request) => { + const startTime = new Date(); const { destType } = request; const destUserDeletionHandler: any = FetchHandler.getDeletionHandler( destType.toLowerCase(), @@ -218,6 +267,11 @@ export class NativeIntegrationDestinationService implements DestinationService { ...request, rudderDestInfo, }); + stats.timing('regulation_worker_requests_dest_latency', startTime, { + feature: tags.FEATURES.USER_DELETION, + implementation: tags.IMPLEMENTATIONS.NATIVE, + destType, + }); return result; } catch (error: any) { const metaTO = this.getTags(destType, 'unknown', 'unknown', tags.FEATURES.USER_DELETION); diff --git a/src/services/destination/postTransformation.ts b/src/services/destination/postTransformation.ts index 0b91eb7cc1..eef4152b2b 100644 --- a/src/services/destination/postTransformation.ts +++ b/src/services/destination/postTransformation.ts @@ -2,6 +2,7 @@ import cloneDeep from 'lodash/cloneDeep'; import isObject from 'lodash/isObject'; import isEmpty from 'lodash/isEmpty'; +import { PlatformError } from '@rudderstack/integrations-lib'; import { ProcessorTransformationRequest, ProcessorTransformationResponse, @@ -10,11 +11,14 @@ import { DeliveryResponse, MetaTransferObject, UserDeletionResponse, + DeliveriesResponse, + DeliveryJobState, } from '../../types/index'; import { generateErrorObject } from '../../v0/util'; import { ErrorReportingService } from '../errorReporting'; import tags from '../../v0/util/tags'; import stats from '../../util/stats'; +import { FixMe } from '../../util/types'; export class DestinationPostTransformationService { public static handleProcessorTransformSucessEvents( @@ -139,7 +143,7 @@ export class DestinationPostTransformationService { } public static handleDeliveryFailureEvents( - error: NonNullable, + error: any, metaTo: MetaTransferObject, ): DeliveryResponse { const errObj = generateErrorObject(error, metaTo.errorDetails, false); @@ -152,6 +156,41 @@ export class DestinationPostTransformationService { authErrorCategory: errObj.authErrorCategory, }), } as DeliveryResponse; + + ErrorReportingService.reportError(error, metaTo.errorContext, resp); + return resp; + } + + public static handlevV1DeliveriesFailureEvents( + error: FixMe, + metaTo: MetaTransferObject, + ): DeliveriesResponse { + const errObj = generateErrorObject(error, metaTo.errorDetails, false); + const metadataArray = metaTo.metadatas; + if (!Array.isArray(metadataArray)) { + // Panic + throw new PlatformError('Proxy v1 endpoint error : metadataArray is not an array'); + } + const responses = metadataArray.map((metadata) => { + const resp = { + error: + JSON.stringify(error.destinationResponse?.response) || + errObj.message || + '[Delivery] Error occured while processing payload', + statusCode: errObj.status, + metadata, + } as DeliveryJobState; + return resp; + }); + + const resp = { + response: responses, + statTags: errObj.statTags, + authErrorCategory: errObj.authErrorCategory, + message: errObj.message.toString(), + status: errObj.status, + } as DeliveriesResponse; + ErrorReportingService.reportError(error, metaTo.errorContext, resp); return resp; } @@ -161,7 +200,7 @@ export class DestinationPostTransformationService { metaTo: MetaTransferObject, ): UserDeletionResponse { const errObj = generateErrorObject(error, metaTo.errorDetails, false); - // TODO: Add stat tags here + stats.increment('regulation_worker_user_deletion_failure', metaTo.errorDetails); const resp = { statusCode: errObj.status, error: errObj.message, diff --git a/src/services/userTransform.ts b/src/services/userTransform.ts index ddd5c82f67..bf34e3d82a 100644 --- a/src/services/userTransform.ts +++ b/src/services/userTransform.ts @@ -65,6 +65,7 @@ export class UserTransformService { sourceId: eventsToProcess[0]?.metadata?.sourceId, destinationId: eventsToProcess[0]?.metadata.destinationId, destinationType: eventsToProcess[0]?.metadata.destinationType, + workspaceId: eventsToProcess[0]?.metadata.workspaceId, messageIds, }; diff --git a/src/types/index.ts b/src/types/index.ts index 9292fe2cc2..f4432e5c2a 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -16,9 +16,46 @@ type ProcessorTransformationOutput = { FORM?: Record; }; files?: Record; - metadata?: Metadata; }; +type ProxyDeliveryRequest = { + version: string; + type: string; + method: string; + endpoint: string; + userId: string; + headers?: Record; + params?: Record; + body?: { + JSON?: Record; + JSON_ARRAY?: Record; + XML?: Record; + FORM?: Record; + }; + files?: Record; + metadata: Metadata; +}; + +type ProxyDeliveriesRequest = { + version: string; + type: string; + method: string; + endpoint: string; + userId: string; + headers?: Record; + params?: Record; + body?: { + JSON?: Record; + JSON_ARRAY?: Record; + XML?: Record; + FORM?: Record; + }; + files?: Record; + metadata: Metadata[]; +}; + +type ProxyRequest = ProxyDeliveryRequest | ProxyDeliveriesRequest; + type Metadata = { sourceId: string; workspaceId: string; @@ -50,6 +87,7 @@ type Metadata = { sourceDefinitionId: string; destinationDefinitionId: string; transformationId: string; + dontBatch?: boolean; }; type MessageIdMetadataMap = { @@ -142,6 +180,20 @@ type DeliveryResponse = { authErrorCategory?: string; }; +type DeliveryJobState = { + error: string; + statusCode: number; + metadata: Metadata; +}; + +type DeliveriesResponse = { + status?: number; + message?: string; + statTags?: object; + authErrorCategory?: string; + response: DeliveryJobState[]; +}; + enum MessageType { IDENTIFY = 'identify', TRACK = 'track', @@ -253,26 +305,31 @@ type SourceInput = { source?: Source; }; export { - Metadata, + ComparatorInput, + DeliveryJobState, + DeliveryResponse, + DeliveriesResponse, + Destination, + ErrorDetailer, MessageIdMetadataMap, - UserTransformationLibrary, + MetaTransferObject, + Metadata, + ProcessorTransformationOutput, ProcessorTransformationRequest, ProcessorTransformationResponse, + ProxyDeliveriesRequest, + ProxyDeliveryRequest, + ProxyRequest, RouterTransformationRequest, RouterTransformationRequestData, RouterTransformationResponse, RudderMessage, - ProcessorTransformationOutput, SourceTransformationResponse, - DeliveryResponse, - ErrorDetailer, - UserTransformationResponse, - UserTransformationServiceResponse, - MetaTransferObject, UserDeletionRequest, UserDeletionResponse, - Destination, - ComparatorInput, SourceInput, Source, + UserTransformationLibrary, + UserTransformationResponse, + UserTransformationServiceResponse, }; diff --git a/src/util/openfaas/index.js b/src/util/openfaas/index.js index 47a69aeb18..878fa706d9 100644 --- a/src/util/openfaas/index.js +++ b/src/util/openfaas/index.js @@ -247,24 +247,13 @@ const executeFaasFunction = async ( try { if (testMode) await awaitFunctionReadiness(name); return await invokeFunction(name, events); - } catch (error) { logger.error(`Error while invoking ${name}: ${error.message}`); errorRaised = error; - if ( - error.statusCode === 404 && - error.message.includes(`error finding function ${name}`) - ) { + if (error.statusCode === 404 && error.message.includes(`error finding function ${name}`)) { removeFunctionFromCache(name); - await setupFaasFunction( - name, - null, - versionId, - libraryVersionIDs, - testMode, - trMetadata, - ); + await setupFaasFunction(name, null, versionId, libraryVersionIDs, testMode, trMetadata); throw new RetryRequestError(`${name} not found`); } @@ -277,29 +266,30 @@ const executeFaasFunction = async ( } if (error.statusCode === 504) { - throw new RespStatusError(`${name} timed out`); + throw new RespStatusError(`${name} timed out`, 504); } throw error; } finally { // delete the function created, if it's called as part of testMode if (testMode) { - deleteFunction(name).catch((err) => - logger.error(`[Faas] Error while deleting ${name}: ${err.message}`)) + deleteFunction(name).catch((err) => + logger.error(`[Faas] Error while deleting ${name}: ${err.message}`), + ); } // setup the tags for observability and then fire the stats const tags = { - identifier: "openfaas", + identifier: 'openfaas', testMode: testMode, errored: errorRaised ? true : false, statusCode: errorRaised ? errorRaised.statusCode : HTTP_STATUS_CODES.OK, // default statuscode is 200OK - ...events.length && events[0].metadata ? getMetadata(events[0].metadata) : {}, - ...events.length && events[0].metadata ? getTransformationMetadata(events[0].metadata) : {}, - } + ...(events.length && events[0].metadata ? getMetadata(events[0].metadata) : {}), + ...(events.length && events[0].metadata ? getTransformationMetadata(events[0].metadata) : {}), + }; - stats.counter('user_transform_function_input_events', events.length, tags) - stats.timing('user_transform_function_latency', startTime, tags) + stats.counter('user_transform_function_input_events', events.length, tags); + stats.timing('user_transform_function_latency', startTime, tags); } }; diff --git a/src/util/prometheus.js b/src/util/prometheus.js index 116f77d214..d7ba3b7c61 100644 --- a/src/util/prometheus.js +++ b/src/util/prometheus.js @@ -451,6 +451,12 @@ class Prometheus { type: 'counter', labelNames: ['writeKey', 'timestamp'], }, + { + name: 'regulation_worker_user_deletion_failure', + help: 'regulation_worker_user_deletion_failure', + type: 'counter', + labelNames: ['destType', 'module', 'implementation', 'feature'], + }, { name: 'shopify_server_side_identifier_event', help: 'shopify_server_side_identifier_event', @@ -487,6 +493,12 @@ class Prometheus { type: 'counter', labelNames: ['type', 'writeKey', 'source'], }, + { + name: 'shopify_anon_id_resolve', + help: 'shopify_anon_id_resolve', + type: 'counter', + labelNames: ['method', 'writeKey', 'shopifyTopic'], + }, { name: 'shopify_redis_calls', help: 'shopify_redis_calls', @@ -599,6 +611,12 @@ class Prometheus { type: 'histogram', labelNames: ['sourceType', 'destinationType', 'k8_namespace'], }, + { + name: 'regulation_worker_requests_dest_latency', + help: 'regulation_worker_requests_dest_latency', + type: 'histogram', + labelNames: ['feature', 'implementation', 'destType'], + }, { name: 'dest_transform_request_latency', help: 'dest_transform_request_latency', @@ -918,7 +936,7 @@ class Prometheus { 'errored', 'statusCode', 'transformationId', - 'workspaceId' + 'workspaceId', ], }, { @@ -934,9 +952,9 @@ class Prometheus { 'errored', 'statusCode', 'transformationId', - 'workspaceId' + 'workspaceId', ], - } + }, ]; metrics.forEach((metric) => { diff --git a/src/util/trackingPlan.js b/src/util/trackingPlan.js index 0c03820308..a77265a5b8 100644 --- a/src/util/trackingPlan.js +++ b/src/util/trackingPlan.js @@ -4,7 +4,7 @@ const logger = require('../logger'); const { responseStatusHandler } = require('./utils'); const stats = require('./stats'); -const tpCache = new NodeCache(); +const tpCache = new NodeCache({ useClones: false }); const CONFIG_BACKEND_URL = process.env.CONFIG_BACKEND_URL || 'https://api.rudderlabs.com'; const TRACKING_PLAN_URL = `${CONFIG_BACKEND_URL}/workspaces`; diff --git a/src/util/types.ts b/src/util/types.ts index 579c35579c..bd2836d710 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -3,6 +3,9 @@ export type FixMe = any; export type CatchErr = any; +export type ContextBodySimple = { + destType: string; +}; export interface Config { cdkEnabled?: boolean; cdkV2Enabled?: boolean; diff --git a/src/v0/destinations/active_campaign/transform.js b/src/v0/destinations/active_campaign/transform.js index e00808622d..981dbd7520 100644 --- a/src/v0/destinations/active_campaign/transform.js +++ b/src/v0/destinations/active_campaign/transform.js @@ -1,11 +1,7 @@ /* eslint-disable array-callback-return */ /* eslint-disable no-empty */ const get = require('get-value'); -const { - InstrumentationError, - TransformationError, - NetworkError, -} = require('@rudderstack/integrations-lib'); +const { InstrumentationError, TransformationError } = require('@rudderstack/integrations-lib'); const { EventType } = require('../../../constants'); const { CONFIG_CATEGORIES, MAPPING_CONFIG, getHeader } = require('./config'); const { @@ -17,8 +13,6 @@ const { } = require('../../util'); const { errorHandler } = require('./util'); const { httpGET, httpPOST } = require('../../../adapters/network'); -const { getDynamicErrorType } = require('../../../adapters/utils/networkUtils'); -const tags = require('../../util/tags'); const TOTAL_RECORDS_KEY = 'response.data.meta.total'; const EVENT_DATA_KEY = 'properties.eventData'; @@ -56,7 +50,8 @@ const responseBuilderSimple = (payload, category, destination) => { }; const syncContact = async (contactPayload, category, destination) => { - const endpoint = `${destination.Config.apiUrl}${category.endPoint}`; + const { endPoint } = category; + const endpoint = `${destination.Config.apiUrl}${endPoint}`; const requestData = { contact: contactPayload, }; @@ -66,20 +61,14 @@ const syncContact = async (contactPayload, category, destination) => { const res = await httpPOST(endpoint, requestData, requestOptions, { destType: 'active_campaign', feature: 'transformation', + endpointPath: endPoint, }); if (res.success === false) { - errorHandler(res.response, 'Failed to create new contact'); + errorHandler(res, 'Failed to create new contact'); } const createdContact = get(res, 'response.data.contact'); // null safe if (!createdContact) { - throw new NetworkError( - 'Unable to Create Contact', - res.response?.status, - { - [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(res.response?.status), - }, - res.response, - ); + errorHandler(res, 'Failed to create new contact'); } return createdContact.id; }; @@ -91,6 +80,7 @@ const customTagProcessor = async (message, category, destination, contactId) => let endpoint; let requestOptions; let requestData; + const { tagEndPoint, mergeTagWithContactUrl } = category; // Here we extract the tags which are to be mapped to the created contact from the message const msgTags = get(message?.context?.traits, 'tags') || get(message?.traits, 'tags'); @@ -102,16 +92,17 @@ const customTagProcessor = async (message, category, destination, contactId) => // Step - 1 // Fetch already created tags from dest, so that we avoid duplicate tag creation request // Ref - https://developers.activecampaign.com/reference/retrieve-all-tags - endpoint = `${destination.Config.apiUrl}${`${category.tagEndPoint}?limit=100`}`; + endpoint = `${destination.Config.apiUrl}${`${tagEndPoint}?limit=100`}`; requestOptions = { headers: getHeader(destination), }; res = await httpGET(endpoint, requestOptions, { destType: 'active_campaign', feature: 'transformation', + tagEndPoint, }); if (res.success === false) { - errorHandler(res.response, 'Failed to fetch already created tags'); + errorHandler(res, 'Failed to fetch already created tags'); } const storedTags = {}; @@ -130,15 +121,14 @@ const customTagProcessor = async (message, category, destination, contactId) => if (parseInt(get(res, TOTAL_RECORDS_KEY), 10) > 100) { const limit = Math.floor(parseInt(get(res, TOTAL_RECORDS_KEY), 10) / 100); for (let i = 0; i < limit; i += 1) { - endpoint = `${destination.Config.apiUrl}${category.tagEndPoint}?limit=100&offset=${ - 100 * (i + 1) - }`; + endpoint = `${destination.Config.apiUrl}${tagEndPoint}?limit=100&offset=${100 * (i + 1)}`; requestOptions = { headers: getHeader(destination), }; const resp = httpGET(endpoint, requestOptions, { destType: 'active_campaign', feature: 'transformation', + endpointPath: `/api/3/tags`, }); promises.push(resp); } @@ -166,7 +156,7 @@ const customTagProcessor = async (message, category, destination, contactId) => if (tagsToBeCreated.length > 0) { await Promise.all( tagsToBeCreated.map(async (tag) => { - endpoint = `${destination.Config.apiUrl}${category.tagEndPoint}`; + endpoint = `${destination.Config.apiUrl}${tagEndPoint}`; requestData = { tag: { tag, @@ -182,7 +172,7 @@ const customTagProcessor = async (message, category, destination, contactId) => feature: 'transformation', }); if (res.success === false) { - errorHandler(res.response, 'Failed to create new tag'); + errorHandler(res, 'Failed to create new tag'); // For each tags successfully created the response id is pushed to tagIds } if (res.response.status === 201) tagIds.push(res.response.data.tag.id); @@ -195,7 +185,7 @@ const customTagProcessor = async (message, category, destination, contactId) => // Ref - https://developers.activecampaign.com/reference/create-contact-tag const responsesArr = await Promise.all( tagIds.map(async (tagId) => { - endpoint = `${destination.Config.apiUrl}${category.mergeTagWithContactUrl}`; + endpoint = `${destination.Config.apiUrl}${mergeTagWithContactUrl}`; requestData = { contactTag: { contact: contactId, @@ -214,12 +204,13 @@ const customTagProcessor = async (message, category, destination, contactId) => ); responsesArr.forEach((respItem) => { if (respItem.success === false) - errorHandler(respItem.response, 'Failed to merge created contact with created tags'); + errorHandler(respItem, 'Failed to merge created contact with created tags'); }); }; const customFieldProcessor = async (message, category, destination) => { const responseStaging = []; + const { fieldEndPoint } = category; // Step - 1 // Extract the custom field info from the message const fieldInfo = get(message?.context?.traits, 'fieldInfo') || get(message.traits, 'fieldInfo'); @@ -232,7 +223,7 @@ const customFieldProcessor = async (message, category, destination) => { // Step - 2 // Get the existing field data from dest and store it in responseStaging // Ref - https://developers.activecampaign.com/reference/retrieve-fields - let endpoint = `${destination.Config.apiUrl}${`${category.fieldEndPoint}?limit=100`}`; + let endpoint = `${destination.Config.apiUrl}${fieldEndPoint}?limit=100`; const requestOptions = { headers: { 'Api-Token': destination.Config.apiKey, @@ -241,9 +232,10 @@ const customFieldProcessor = async (message, category, destination) => { const res = await httpGET(endpoint, requestOptions, { destType: 'active_campaign', feature: 'transformation', + fieldEndPoint, }); if (res.success === false) { - errorHandler(res.response, 'Failed to get existing field data'); + errorHandler(res, 'Failed to get existing field data'); } responseStaging.push(res.response.status === 200 ? res.response.data.fields : []); @@ -251,9 +243,7 @@ const customFieldProcessor = async (message, category, destination) => { const limit = Math.floor(parseInt(get(res, TOTAL_RECORDS_KEY), 10) / 100); if (parseInt(get(res, TOTAL_RECORDS_KEY), 10) > 100) { for (let i = 0; i < limit; i += 1) { - endpoint = `${destination.Config.apiUrl}${category.fieldEndPoint}?limit=100&offset=${ - 100 * (i + 1) - }`; + endpoint = `${destination.Config.apiUrl}${fieldEndPoint}?limit=100&offset=${100 * (i + 1)}`; const requestOpt = { headers: { 'Api-Token': destination.Config.apiKey, @@ -262,6 +252,7 @@ const customFieldProcessor = async (message, category, destination) => { const resp = httpGET(endpoint, requestOpt, { destType: 'active_campaign', feature: 'transformation', + endpointPath: `/api/3/fields`, }); promises.push(resp); } @@ -270,7 +261,7 @@ const customFieldProcessor = async (message, category, destination) => { if (resp.success === true && resp.response.status === 200) { responseStaging.push(resp.response.data.fields); } else { - errorHandler(resp.response, 'Failed to get existing field data'); + errorHandler(resp, 'Failed to get existing field data'); } }); } @@ -321,6 +312,7 @@ const customFieldProcessor = async (message, category, destination) => { }; const customListProcessor = async (message, category, destination, contactId) => { + const { mergeListWithContactUrl } = category; // Here we extract the list info from the message const listInfo = get(message?.context?.traits, 'lists') ? get(message.context.traits, 'lists') @@ -344,7 +336,7 @@ const customListProcessor = async (message, category, destination, contactId) => // eslint-disable-next-line no-restricted-syntax for (const li of listArr) { if (li.status === 'subscribe' || li.status === 'unsubscribe') { - const endpoint = `${destination.Config.apiUrl}${category.mergeListWithContactUrl}`; + const endpoint = `${destination.Config.apiUrl}${mergeListWithContactUrl}`; const requestData = { contactList: { list: li.id, @@ -358,6 +350,7 @@ const customListProcessor = async (message, category, destination, contactId) => const res = httpPOST(endpoint, requestData, requestOptions, { destType: 'active_campaign', feature: 'transformation', + endpointPath: mergeListWithContactUrl, }); promises.push(res); } @@ -365,7 +358,7 @@ const customListProcessor = async (message, category, destination, contactId) => const responses = await Promise.all(promises); responses.forEach((respItem) => { if (respItem.success === false) { - errorHandler(respItem.response, 'Failed to map created contact with the list'); + errorHandler(respItem, 'Failed to map created contact with the list'); } }); }; @@ -415,20 +408,14 @@ const screenRequestHandler = async (message, category, destination) => { res = await httpGET(endpoint, requestOptions, { destType: 'active_campaign', feature: 'transformation', + endpointPath: `/api/3/eventTrackingEvents`, }); if (res.success === false) { - errorHandler(res.response, 'Failed to retrieve events'); + errorHandler(res, 'Failed to retrieve events'); } if (res?.response?.status !== 200) { - throw new NetworkError( - 'Unable to create event', - res.response?.status, - { - [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(res.response?.status), - }, - res.response, - ); + errorHandler(res, 'Unable to create event'); } const storedEventsArr = res.response?.data?.eventTrackingEvents; @@ -451,18 +438,11 @@ const screenRequestHandler = async (message, category, destination) => { feature: 'transformation', }); if (res.success === false) { - errorHandler(res.response, 'Failed to create event'); + errorHandler(res, 'Failed to create event'); } if (res.response.status !== 201) { - throw new NetworkError( - 'Unable to create event', - res.response.status, - { - [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(res.response.status), - }, - res?.response, - ); + errorHandler(res, 'Unable to create event'); } } // Previous operations successfull then @@ -492,21 +472,15 @@ const trackRequestHandler = async (message, category, destination) => { let res = await httpGET(endpoint, requestOptions, { destType: 'active_campaign', feature: 'transformation', + endpointPath: `/api/3/eventTrackingEvents`, }); if (res.success === false) { - errorHandler(res.response, 'Failed to retrieve events'); + errorHandler(res, 'Failed to retrieve events'); } if (res.response.status !== 200) { - throw new NetworkError( - 'Unable to fetch events. Aborting', - res.response.status, - { - [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(res.response.status), - }, - res?.response, - ); + errorHandler(res, 'Unable to fetch events. Aborting'); } const storedEventsArr = res.response?.data?.eventTrackingEvents; @@ -529,14 +503,7 @@ const trackRequestHandler = async (message, category, destination) => { feature: 'transformation', }); if (res.response?.status !== 201) { - throw new NetworkError( - 'Unable to create event. Aborting', - res.response.status, - { - [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(res.response.status), - }, - res.response, - ); + errorHandler(res, 'Unable to create event. Aborting'); } } diff --git a/src/v0/destinations/active_campaign/util.js b/src/v0/destinations/active_campaign/util.js index 6e1f5a3683..40e15f95b3 100644 --- a/src/v0/destinations/active_campaign/util.js +++ b/src/v0/destinations/active_campaign/util.js @@ -1,31 +1,24 @@ const { NetworkError } = require('@rudderstack/integrations-lib'); const { - nodeSysErrorToStatus, getDynamicErrorType, + processAxiosResponse, } = require('../../../adapters/utils/networkUtils'); const tags = require('../../util/tags'); -const errorHandler = (err, message) => { - if (err.response) { - throw new NetworkError( - `${message} (${err.response?.statusText},${JSON.stringify(err.response?.data)})`, - err.status, - { - [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(err.status), - }, - err, - ); - } else { - const httpError = nodeSysErrorToStatus(err.code); - throw new NetworkError( - `${message} ${httpError.message}`, - httpError.status, - { - [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(httpError.status), - }, - err, - ); +const errorHandler = (httpCallError, message) => { + const { response, status } = processAxiosResponse(httpCallError); + let msg = message; + if (response) { + msg = `${message} (${httpCallError.response?.statusText},${JSON.stringify(response)})`; } + throw new NetworkError( + msg, + status, + { + [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(status), + }, + response, + ); }; const offsetLimitVarPath = 'response.data.meta.total'; diff --git a/src/v0/destinations/adobe_analytics/config.js b/src/v0/destinations/adobe_analytics/config.js index 7a66b32a48..ed5852f5a5 100644 --- a/src/v0/destinations/adobe_analytics/config.js +++ b/src/v0/destinations/adobe_analytics/config.js @@ -44,4 +44,5 @@ module.exports = { ECOM_PRODUCT_EVENTS, commonConfig: MAPPING_CONFIG[CONFIG_CATEGORIES.COMMON.name], formatDestinationConfig, + DESTINATION: 'ADOBE_ANALYTICS', }; diff --git a/src/v0/destinations/adobe_analytics/networkHandler.js b/src/v0/destinations/adobe_analytics/networkHandler.js new file mode 100644 index 0000000000..0ec1fad286 --- /dev/null +++ b/src/v0/destinations/adobe_analytics/networkHandler.js @@ -0,0 +1,55 @@ +const { InstrumentationError } = require('@rudderstack/integrations-lib'); +const { proxyRequest, prepareProxyRequest } = require('../../../adapters/network'); +const { processAxiosResponse } = require('../../../adapters/utils/networkUtils'); +const { DESTINATION } = require('./config'); + +/** + * Extract data inside different tags from an xml payload + * @param {*} xml + * @param {*} tagName + * @returns data inside the tagName + */ +function extractContent(xmlPayload, tagName) { + const pattern = new RegExp(`<${tagName}>(.*?)`); + const match = xmlPayload.match(pattern); + return match ? match[1] : null; +} + +const responseHandler = (destinationResponse, dest) => { + const message = `[${DESTINATION}] - Request Processed Successfully`; + const { response, status } = destinationResponse; + + // Extract values between different tags + const responseStatus = extractContent(response, 'status'); + const reason = extractContent(response, 'reason'); + + // if the status tag in XML contains FAILURE, we build and throw an explicit error + if (responseStatus === 'FAILURE') { + if (reason) { + throw new InstrumentationError( + `[${DESTINATION} Response Handler] Request failed for destination ${dest} : ${reason}`, + ); + } else { + throw new InstrumentationError( + `[${DESTINATION} Response Handler] Request failed for destination ${dest} with a general error`, + ); + } + } + + return { + status, + message, + destinationResponse, + }; +}; + +function networkHandler() { + this.responseHandler = responseHandler; + this.proxy = proxyRequest; + this.prepareProxy = prepareProxyRequest; + this.processAxiosResponse = processAxiosResponse; +} + +module.exports = { + networkHandler, +}; diff --git a/src/v0/destinations/adobe_analytics/transform.js b/src/v0/destinations/adobe_analytics/transform.js index a805e379ff..b428138724 100644 --- a/src/v0/destinations/adobe_analytics/transform.js +++ b/src/v0/destinations/adobe_analytics/transform.js @@ -76,6 +76,7 @@ const responseBuilderSimple = async (message, destinationConfig, basicPayload) = } payload.linkURL = adobeIntegrationsObject?.linkURL || context?.page?.url || 'No linkURL provided'; + payload.linkURL = encodeURI(payload.linkURL); } // handle hier if (overrideHiers) { @@ -97,7 +98,7 @@ const responseBuilderSimple = async (message, destinationConfig, basicPayload) = const propertiesPageUrl = properties?.pageUrl; const pageUrl = contextPageUrl || propertiesPageUrl; if (isDefinedAndNotNullAndNotEmpty(pageUrl)) { - payload.pageUrl = pageUrl; + payload.pageUrl = encodeURI(pageUrl); } if (trackPageName) { // better handling possible here, both error and implementation wise @@ -345,6 +346,9 @@ const processTrackEvent = (message, adobeEventName, destinationConfig, extras = const handleTrack = (message, destinationConfig) => { const ORDER_ID_KEY = 'properties.order_id'; const { event: rawEvent, properties } = message; + if (!rawEvent) { + throw new InstrumentationError('Event name is not present. Aborting message.'); + } let payload = null; // handle ecommerce events separately // generic events should go to the default diff --git a/src/v0/destinations/adobe_analytics/utils.js b/src/v0/destinations/adobe_analytics/utils.js index cbd4f51c23..97dc6e90bb 100644 --- a/src/v0/destinations/adobe_analytics/utils.js +++ b/src/v0/destinations/adobe_analytics/utils.js @@ -75,6 +75,28 @@ function handleContextData(payload, destinationConfig, message) { return payload; } +/** + * This function is used for replacing '&', '<' and '>' with their respective HTML entities + * @param {*} inputString + * @returns string with HTML entities replaced + * + */ + +function escapeToHTML(inputString) { + if (typeof inputString !== 'string') { + return inputString; + } + return inputString.replace( + /[&<>]/g, + (match) => + ({ + '&': '&', + '<': '<', + '>': '>', + }[match]), + ); +} + /** * This function is used for populating the eVars and hVars in the payload * @param {*} destVarMapping @@ -90,16 +112,16 @@ function rudderPropToDestMap(destVarMapping, message, payload, destVarStrPrefix) let val = get(message, `properties.${key}`); if (isDefinedAndNotNull(val)) { const destVarKey = destVarStrPrefix + destVarMapping[key]; - mappedVar[destVarKey] = val; + mappedVar[destVarKey] = escapeToHTML(val); } else { SOURCE_KEYS.some((sourceKey) => { val = getMappingFieldValueFormMessage(message, sourceKey, key); if (isDefinedAndNotNull(val)) { - mappedVar[`${destVarStrPrefix}${[destVarMapping[key]]}`] = val; + mappedVar[`${destVarStrPrefix}${[destVarMapping[key]]}`] = escapeToHTML(val); } else { val = getValueByPath(message, key); if (isDefinedAndNotNull(val)) { - mappedVar[`${destVarStrPrefix}${[destVarMapping[key]]}`] = val; + mappedVar[`${destVarStrPrefix}${[destVarMapping[key]]}`] = escapeToHTML(val); } } }); @@ -200,4 +222,5 @@ module.exports = { handleList, handleCustomProperties, stringifyValueAndJoinWithDelimiter, + escapeToHTML, }; diff --git a/src/v0/destinations/af/deleteUsers.js b/src/v0/destinations/af/deleteUsers.js index 2d68549fcc..bb711292c0 100644 --- a/src/v0/destinations/af/deleteUsers.js +++ b/src/v0/destinations/af/deleteUsers.js @@ -38,6 +38,7 @@ const deleteUser = async (config, endpoint, body, identityType, identityValue) = { destType: 'af', feature: 'deleteUsers', + endpointPath: `appsflyer.com/api/gdpr/v1/opendsr_requests`, }, ); const handledDelResponse = processAxiosResponse(response); diff --git a/src/v0/destinations/am/deleteUsers.js b/src/v0/destinations/am/deleteUsers.js index 578c58fb5c..6de9cf64a1 100644 --- a/src/v0/destinations/am/deleteUsers.js +++ b/src/v0/destinations/am/deleteUsers.js @@ -28,6 +28,7 @@ const userDeletionHandler = async (userAttributes, config) => { // Ref : https://www.docs.developers.amplitude.com/analytics/apis/user-privacy-api/#response const batchEvents = getUserIdBatches(userAttributes, DELETE_MAX_BATCH_SIZE); const url = 'https://amplitude.com/api/2/deletions/users'; + const endpointPath = '/api/2/deletions/users'; await Promise.all( batchEvents.map(async (batch) => { const data = { @@ -41,6 +42,7 @@ const userDeletionHandler = async (userAttributes, config) => { const resp = await httpPOST(url, data, requestOptions, { destType: 'am', feature: 'deleteUsers', + endpointPath, }); const handledDelResponse = processAxiosResponse(resp); if (!isHttpStatusSuccess(handledDelResponse.status)) { diff --git a/src/v0/destinations/am/transform.js b/src/v0/destinations/am/transform.js index bed5d45b28..911ec51be0 100644 --- a/src/v0/destinations/am/transform.js +++ b/src/v0/destinations/am/transform.js @@ -297,6 +297,15 @@ const identifyBuilder = (message, destination, rawPayload) => { } }); } + // update identify call request with unset fields + // AM docs https://www.docs.developers.amplitude.com/analytics/apis/http-v2-api/#keys-for-the-event-argument:~:text=exceed%2040%20layers.-,user_properties,-Optional.%20Object.%20A + const unsetObject = AMUtils.getUnsetObj(message); + if (unsetObject) { + // Example unsetObject = { + // "testObj.del1": "-" + // } + set(rawPayload, `user_properties.$unset`, unsetObject); + } return rawPayload; }; @@ -334,7 +343,7 @@ const getResponseData = (evType, destination, rawPayload, message, groupInfo) => case EventType.IDENTIFY: // event_type for identify event is $identify rawPayload.event_type = IDENTIFY_AM; - identifyBuilder(message, destination, rawPayload); + rawPayload = identifyBuilder(message, destination, rawPayload); break; case EventType.GROUP: // event_type for identify event is $identify @@ -591,8 +600,12 @@ const processSingleMessage = (message, destination) => { const { name, event, properties } = message; const messageType = message.type.toLowerCase(); const CATEGORY_KEY = 'properties.category'; - const { useUserDefinedPageEventName, userProvidedPageEventString, - useUserDefinedScreenEventName, userProvidedScreenEventString } = destination.Config; + const { + useUserDefinedPageEventName, + userProvidedPageEventString, + useUserDefinedScreenEventName, + userProvidedScreenEventString, + } = destination.Config; switch (messageType) { case EventType.IDENTIFY: payloadObjectName = 'events'; // identify same as events @@ -602,17 +615,17 @@ const processSingleMessage = (message, destination) => { case EventType.PAGE: if (useUserDefinedPageEventName) { const getMessagePath = userProvidedPageEventString - .substring( - userProvidedPageEventString.indexOf('{') + 2, - userProvidedPageEventString.indexOf('}'), - ) - .trim(); + .substring( + userProvidedPageEventString.indexOf('{') + 2, + userProvidedPageEventString.indexOf('}'), + ) + .trim(); evType = - userProvidedPageEventString.trim() === '' - ? name - : userProvidedPageEventString - .trim() - .replaceAll(/{{([^{}]+)}}/g, get(message, getMessagePath)); + userProvidedPageEventString.trim() === '' + ? name + : userProvidedPageEventString + .trim() + .replaceAll(/{{([^{}]+)}}/g, get(message, getMessagePath)); } else { evType = `Viewed ${name || get(message, CATEGORY_KEY) || ''} Page`; } @@ -625,25 +638,25 @@ const processSingleMessage = (message, destination) => { case EventType.SCREEN: { const { eventType, updatedProperties } = getScreenevTypeAndUpdatedProperties( - message, - CATEGORY_KEY, + message, + CATEGORY_KEY, ); let customScreenEv = ''; if (useUserDefinedScreenEventName) { const getMessagePath = userProvidedScreenEventString - .substring( - userProvidedScreenEventString.indexOf('{') + 2, - userProvidedScreenEventString.indexOf('}'), - ) - .trim(); + .substring( + userProvidedScreenEventString.indexOf('{') + 2, + userProvidedScreenEventString.indexOf('}'), + ) + .trim(); customScreenEv = - userProvidedScreenEventString.trim() === '' - ? name - : userProvidedScreenEventString - .trim() - .replaceAll(/{{([^{}]+)}}/g, get(message, getMessagePath)); + userProvidedScreenEventString.trim() === '' + ? name + : userProvidedScreenEventString + .trim() + .replaceAll(/{{([^{}]+)}}/g, get(message, getMessagePath)); } - evType =useUserDefinedScreenEventName ? customScreenEv : eventType; + evType = useUserDefinedScreenEventName ? customScreenEv : eventType; message.properties = updatedProperties; category = ConfigCategory.SCREEN; } diff --git a/src/v0/destinations/am/util.test.js b/src/v0/destinations/am/util.test.js new file mode 100644 index 0000000000..faaa9170f0 --- /dev/null +++ b/src/v0/destinations/am/util.test.js @@ -0,0 +1,66 @@ +const { getUnsetObj } = require('./utils'); + +describe('getUnsetObj', () => { + it("should return undefined when 'message.integrations.Amplitude.fieldsToUnset' is not array", () => { + const message = { + integrations: { + Amplitude: { fieldsToUnset: 'field_name' }, + }, + }; + const result = getUnsetObj(message); + expect(result).toBeUndefined(); + }); + it("should return undefined when 'message.integrations.Amplitude.fieldsToUnset' is undefined", () => { + const message = { + integrations: { + Amplitude: {}, + }, + }; + const result = getUnsetObj(message); + expect(result).toBeUndefined(); + }); + + it("should return an empty objecty when 'message.integrations.Amplitude.fieldsToUnset' is an empty array", () => { + const message = { + integrations: { + Amplitude: { fieldsToUnset: [] }, + }, + }; + const result = getUnsetObj(message); + expect(result).toEqual({}); + }); + + it("should return an object with keys and values set to '-' when 'message.integrations.Amplitude.fieldsToUnset' is an array of strings", () => { + const message = { + integrations: { + Amplitude: { fieldsToUnset: ['Unset1', 'Unset2'] }, + }, + }; + const result = getUnsetObj(message); + expect(result).toEqual({ + Unset1: '-', + Unset2: '-', + }); + }); + + it("should handle missing 'message' parameter", () => { + const result = getUnsetObj(); + expect(result).toBeUndefined(); + }); + + // Should handle missing 'integrations' property in 'message' parameter + it("should handle missing 'integrations' property in 'message' parameter", () => { + const message = {}; + const result = getUnsetObj(message); + expect(result).toBeUndefined(); + }); + + // Should handle missing 'Amplitude' property in 'message.integrations' parameter + it("should handle missing 'Amplitude' property in 'message.integrations' parameter", () => { + const message = { + integrations: {}, + }; + const result = getUnsetObj(message); + expect(result).toBeUndefined(); + }); +}); diff --git a/src/v0/destinations/am/utils.js b/src/v0/destinations/am/utils.js index b9925c20d8..71fe0ab459 100644 --- a/src/v0/destinations/am/utils.js +++ b/src/v0/destinations/am/utils.js @@ -82,6 +82,32 @@ const getEventId = (payload, sourceKey) => { return undefined; }; +/** + * generates the unsetObject and returns it + * @param {*} message + * @returns + * + * Example message = { + integrations: { + Amplitude: { fieldsToUnset: ['Unset1', 'Unset2'] }, + All: true, + }, + }; + return unsetObj = { + "Unset1": "-", + "Unset2": "-" + } + AM docs: https://www.docs.developers.amplitude.com/analytics/apis/http-v2-api/#keys-for-the-event-argument:~:text=exceed%2040%20layers.-,user_properties,-Optional.%20Object.%20A + */ +const getUnsetObj = (message) => { + const fieldsToUnset = get(message, 'integrations.Amplitude.fieldsToUnset'); + let unsetObject; + if (Array.isArray(fieldsToUnset)) { + unsetObject = Object.fromEntries(fieldsToUnset.map((field) => [field, '-'])); + } + + return unsetObject; +}; module.exports = { getOSName, getOSVersion, @@ -90,4 +116,5 @@ module.exports = { getPlatform, getBrand, getEventId, + getUnsetObj, }; diff --git a/src/v0/destinations/bqstream/util.test.js b/src/v0/destinations/bqstream/util.test.js index c7635772ac..ae07d90383 100644 --- a/src/v0/destinations/bqstream/util.test.js +++ b/src/v0/destinations/bqstream/util.test.js @@ -196,7 +196,6 @@ describe('getRearrangedEvents', () => { ], ]; const result = getRearrangedEvents(successEventslist, errorEventsList); - console.log(JSON.stringify(result)); expect(result).toEqual(expected); }); @@ -261,7 +260,6 @@ describe('getRearrangedEvents', () => { ], ]; const result = getRearrangedEvents(successEventslist, errorEventsList); - console.log(JSON.stringify(result)); expect(result).toEqual(expected); }); }); diff --git a/src/v0/destinations/braze/braze.util.test.js b/src/v0/destinations/braze/braze.util.test.js index eb5a46fe34..9e82a235f1 100644 --- a/src/v0/destinations/braze/braze.util.test.js +++ b/src/v0/destinations/braze/braze.util.test.js @@ -660,9 +660,19 @@ describe('dedup utility tests', () => { color: 'green', age: 30, gender: 'male', + country: 'US', + language: 'en', + email_subscribe: true, + push_subscribe: false, + subscription_groups: ['group1', 'group2'], }; const storeData = { external_id: '123', + country: 'US', + language: 'en', + email_subscribe: true, + push_subscribe: false, + subscription_groups: ['group1', 'group2'], custom_attributes: { color: 'blue', age: 25, @@ -676,6 +686,49 @@ describe('dedup utility tests', () => { color: 'green', age: 30, gender: 'male', + country: 'US', + language: 'en', + email_subscribe: true, + push_subscribe: false, + subscription_groups: ['group1', 'group2'], + }); + }); + + test('deduplicates user data correctly 2', () => { + const userData = { + external_id: '123', + color: 'green', + age: 30, + gender: 'male', + language: 'en', + email_subscribe: true, + push_subscribe: false, + subscription_groups: ['group1', 'group2'], + }; + const storeData = { + external_id: '123', + country: 'US', + language: 'en', + email_subscribe: true, + push_subscribe: false, + subscription_groups: ['group1', 'group2'], + custom_attributes: { + color: 'blue', + age: 25, + }, + }; + store.set('123', storeData); + const result = BrazeDedupUtility.deduplicate(userData, store); + expect(store.size).toBe(1); + expect(result).toEqual({ + external_id: '123', + color: 'green', + age: 30, + gender: 'male', + language: 'en', + email_subscribe: true, + push_subscribe: false, + subscription_groups: ['group1', 'group2'], }); }); @@ -1219,4 +1272,145 @@ describe('getPurchaseObjs', () => { ); } }); + + test('products having extra properties', () => { + const output = getPurchaseObjs( + { + properties: { + products: [ + { product_id: '123', price: 10.99, quantity: 2, random_extra_property_a: 'abc' }, + { product_id: '456', price: 5.49, quantity: 1, random_extra_property_b: 'efg' }, + { + product_id: '789', + price: 15.49, + quantity: 1, + random_extra_property_a: 'abc', + random_extra_property_b: 'efg', + random_extra_property_c: 'hij', + }, + ], + currency: 'USD', + }, + timestamp: '2023-08-04T12:34:56Z', + anonymousId: 'abc', + }, + { + sendPurchaseEventWithExtraProperties: true, + }, + ); + expect(output).toEqual([ + { + product_id: '123', + price: 10.99, + currency: 'USD', + quantity: 2, + time: '2023-08-04T12:34:56Z', + properties: { + random_extra_property_a: 'abc', + }, + _update_existing_only: false, + user_alias: { + alias_name: 'abc', + alias_label: 'rudder_id', + }, + }, + { + product_id: '456', + price: 5.49, + currency: 'USD', + quantity: 1, + time: '2023-08-04T12:34:56Z', + properties: { + random_extra_property_b: 'efg', + }, + _update_existing_only: false, + user_alias: { + alias_name: 'abc', + alias_label: 'rudder_id', + }, + }, + { + product_id: '789', + price: 15.49, + currency: 'USD', + quantity: 1, + time: '2023-08-04T12:34:56Z', + properties: { + random_extra_property_a: 'abc', + random_extra_property_b: 'efg', + random_extra_property_c: 'hij', + }, + _update_existing_only: false, + user_alias: { + alias_name: 'abc', + alias_label: 'rudder_id', + }, + }, + ]); + }); + + test('products having extra properties with sendPurchaseEventWithExtraProperties as false', () => { + const output = getPurchaseObjs( + { + properties: { + products: [ + { product_id: '123', price: 10.99, quantity: 2, random_extra_property_a: 'abc' }, + { product_id: '456', price: 5.49, quantity: 1, random_extra_property_b: 'efg' }, + { + product_id: '789', + price: 15.49, + quantity: 1, + random_extra_property_a: 'abc', + random_extra_property_b: 'efg', + random_extra_property_c: 'hij', + }, + ], + currency: 'USD', + }, + timestamp: '2023-08-04T12:34:56Z', + anonymousId: 'abc', + }, + { + sendPurchaseEventWithExtraProperties: false, + }, + ); + expect(output).toEqual([ + { + product_id: '123', + price: 10.99, + currency: 'USD', + quantity: 2, + time: '2023-08-04T12:34:56Z', + _update_existing_only: false, + user_alias: { + alias_name: 'abc', + alias_label: 'rudder_id', + }, + }, + { + product_id: '456', + price: 5.49, + currency: 'USD', + quantity: 1, + time: '2023-08-04T12:34:56Z', + _update_existing_only: false, + user_alias: { + alias_name: 'abc', + alias_label: 'rudder_id', + }, + }, + { + product_id: '789', + price: 15.49, + currency: 'USD', + quantity: 1, + time: '2023-08-04T12:34:56Z', + _update_existing_only: false, + user_alias: { + alias_name: 'abc', + alias_label: 'rudder_id', + }, + }, + ]); + }); }); diff --git a/src/v0/destinations/braze/config.js b/src/v0/destinations/braze/config.js index 2e24f43f61..2bbade2754 100644 --- a/src/v0/destinations/braze/config.js +++ b/src/v0/destinations/braze/config.js @@ -56,6 +56,7 @@ const BRAZE_NON_BILLABLE_ATTRIBUTES = [ 'subscription_groups', ]; +const BRAZE_PURCHASE_STANDARD_PROPERTIES = ['product_id', 'sku', 'price', 'quantity', 'currency']; module.exports = { ConfigCategory, mappingConfig, @@ -64,6 +65,7 @@ module.exports = { getSubscriptionGroupEndPoint, getAliasMergeEndPoint, BRAZE_PARTNER_NAME, + BRAZE_PURCHASE_STANDARD_PROPERTIES, TRACK_BRAZE_MAX_REQ_COUNT, IDENTIFY_BRAZE_MAX_REQ_COUNT, DESTINATION, @@ -71,5 +73,5 @@ module.exports = { DEL_MAX_BATCH_SIZE, BRAZE_NON_BILLABLE_ATTRIBUTES, ALIAS_BRAZE_MAX_REQ_COUNT, - SUBSCRIPTION_BRAZE_MAX_REQ_COUNT + SUBSCRIPTION_BRAZE_MAX_REQ_COUNT, }; diff --git a/src/v0/destinations/braze/transform.js b/src/v0/destinations/braze/transform.js index b939e1f414..6549f5658f 100644 --- a/src/v0/destinations/braze/transform.js +++ b/src/v0/destinations/braze/transform.js @@ -22,6 +22,7 @@ const { getFieldValueFromMessage, removeUndefinedValues, isHttpStatusSuccess, + isDefinedAndNotNull, simpleProcessRouterDestSync, simpleProcessRouterDest, isNewStatusCodesAccepted, @@ -95,7 +96,10 @@ function populateCustomAttributesWithOperation( // add,update,remove on json attributes if (enableNestedArrayOperations) { Object.keys(traits) - .filter((key) => typeof traits[key] === 'object' && !Array.isArray(traits[key])) + .filter( + (key) => + traits[key] !== null && typeof traits[key] === 'object' && !Array.isArray(traits[key]), + ) .forEach((key) => { if (traits[key][CustomAttributeOperationTypes.UPDATE]) { CustomAttributeOperationUtil.customAttributeUpdateOperation( @@ -150,11 +154,19 @@ function getUserAttributesObject(message, mappingJson, destination) { Object.keys(mappingJson).forEach((destKey) => { let value = get(traits, mappingJson[destKey]); if (value || (value === null && reservedKeys.includes(destKey))) { - // handle gender special case - if (destKey === 'gender') { - value = formatGender(value); - } else if (destKey === 'email' && value !== null) { - value = value?.toLowerCase(); + switch (destKey) { + case 'gender': + value = formatGender(value); + break; + case 'email': + if (typeof value === 'string') { + value = value.toLowerCase(); + } else if (isDefinedAndNotNull(value)) { + throw new InstrumentationError('Invalid email, email must be a valid string'); + } + break; + default: + break; } data[destKey] = value; } @@ -315,7 +327,7 @@ function processTrackEvent(messageType, message, destination, mappingJson, proce typeof eventName === 'string' && eventName.toLowerCase() === 'order completed' ) { - const purchaseObjs = getPurchaseObjs(message); + const purchaseObjs = getPurchaseObjs(message, destination.Config); // del used properties delete properties.products; diff --git a/src/v0/destinations/braze/util.js b/src/v0/destinations/braze/util.js index 9b5d57d6bc..40b9a7eada 100644 --- a/src/v0/destinations/braze/util.js +++ b/src/v0/destinations/braze/util.js @@ -21,6 +21,7 @@ const { SUBSCRIPTION_BRAZE_MAX_REQ_COUNT, ALIAS_BRAZE_MAX_REQ_COUNT, TRACK_BRAZE_MAX_REQ_COUNT, + BRAZE_PURCHASE_STANDARD_PROPERTIES, } = require('./config'); const { JSON_MIME_TYPE, HTTP_STATUS_CODES } = require('../../util/constant'); const { isObject } = require('../../util'); @@ -300,6 +301,14 @@ const BrazeDedupUtility = { }; const identifier = external_id || user_alias?.alias_name; store.set(identifier, { ...storedUserData, ...deduplicatedUserData }); + + // add non billable attributes back to the deduplicated user object + BRAZE_NON_BILLABLE_ATTRIBUTES.forEach((key) => { + if (isDefinedAndNotNull(userData[key])) { + deduplicatedUserData[key] = userData[key]; + } + }); + return removeUndefinedValues(deduplicatedUserData); }, }; @@ -539,7 +548,7 @@ function addMandatoryPurchaseProperties(productId, price, currencyCode, quantity }; } -function getPurchaseObjs(message) { +function getPurchaseObjs(message, config) { // ref:https://www.braze.com/docs/api/objects_filters/purchase_object/ const validateForPurchaseEvent = (message) => { const { properties } = message; @@ -634,6 +643,10 @@ function getPurchaseObjs(message) { parseInt(quantity, 10), timestamp, ); + const extraProperties = _.omit(product, BRAZE_PURCHASE_STANDARD_PROPERTIES); + if (Object.keys(extraProperties).length > 0 && config.sendPurchaseEventWithExtraProperties) { + purchaseObj = { ...purchaseObj, properties: extraProperties }; + } purchaseObj = setExternalIdOrAliasObject(purchaseObj, message); purchaseObjs.push(purchaseObj); }); diff --git a/src/v0/destinations/campaign_manager/config.js b/src/v0/destinations/campaign_manager/config.js index 063f65cb14..b3a9531347 100644 --- a/src/v0/destinations/campaign_manager/config.js +++ b/src/v0/destinations/campaign_manager/config.js @@ -9,6 +9,8 @@ const ConfigCategories = { }, }; +const MAX_BATCH_CONVERSATIONS_SIZE = 1000; + const EncryptionEntityType = [ 'ENCRYPTION_ENTITY_TYPE_UNKNOWN', 'DCM_ACCOUNT', @@ -28,4 +30,5 @@ module.exports = { BASE_URL, EncryptionEntityType, EncryptionSource, + MAX_BATCH_CONVERSATIONS_SIZE, }; diff --git a/src/v0/destinations/campaign_manager/networkHandler.js b/src/v0/destinations/campaign_manager/networkHandler.js index 0683b0c55c..a1fa24835c 100644 --- a/src/v0/destinations/campaign_manager/networkHandler.js +++ b/src/v0/destinations/campaign_manager/networkHandler.js @@ -1,3 +1,4 @@ +/* eslint-disable no-restricted-syntax */ const { AbortedError, RetryableError, NetworkError } = require('@rudderstack/integrations-lib'); const { prepareProxyRequest, proxyRequest } = require('../../../adapters/network'); const { isHttpStatusSuccess, getAuthErrCategoryFromStCode } = require('../../util/index'); @@ -9,22 +10,44 @@ const { const tags = require('../../util/tags'); function checkIfFailuresAreRetryable(response) { + const { status } = response; try { - if (Array.isArray(response.status) && Array.isArray(response.status[0].errors)) { - return ( - response.status[0].errors[0].code !== 'PERMISSION_DENIED' && - response.status[0].errors[0].code !== 'INVALID_ARGUMENT' - ); + if (Array.isArray(status)) { + // iterate over each status, and if found retryable in conversations ..retry else discard + /* status : [{ + "conversion": { + object (Conversion) + }, + "errors": [ + { + object (ConversionError) + } + ], + "kind": string + }] */ + for (const st of status) { + for (const err of st.errors) { + // if code is any of these, event is not retryable + if ( + err.code === 'PERMISSION_DENIED' || + err.code === 'INVALID_ARGUMENT' || + err.code === 'NOT_FOUND' + ) { + return false; + } + } + } } return true; } catch (e) { - return true; + return false; } } const responseHandler = (destinationResponse) => { const message = `[CAMPAIGN_MANAGER Response Handler] - Request Processed Successfully`; const { response, status } = destinationResponse; + if (isHttpStatusSuccess(status)) { // check for Failures if (response.hasFailures === true) { @@ -53,7 +76,7 @@ const responseHandler = (destinationResponse) => { throw new NetworkError( `Campaign Manager: ${response.error?.message} during CAMPAIGN_MANAGER response transformation 3`, - status, + 500, { [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(status), }, diff --git a/src/v0/destinations/campaign_manager/transform.js b/src/v0/destinations/campaign_manager/transform.js index 7b6d6cba4c..3b480dbac2 100644 --- a/src/v0/destinations/campaign_manager/transform.js +++ b/src/v0/destinations/campaign_manager/transform.js @@ -1,13 +1,16 @@ const { InstrumentationError } = require('@rudderstack/integrations-lib'); +const lodash = require('lodash'); const { EventType } = require('../../../constants'); - const { constructPayload, defaultRequestConfig, defaultPostRequestConfig, + defaultBatchRequestConfig, removeUndefinedAndNullValues, + getSuccessRespEvents, isDefinedAndNotNull, - simpleProcessRouterDest, + checkInvalidRtTfEvents, + handleRtTfSingleEventError, getAccessToken, } = require('../../util'); @@ -17,6 +20,7 @@ const { BASE_URL, EncryptionEntityType, EncryptionSource, + MAX_BATCH_CONVERSATIONS_SIZE, } = require('./config'); const { convertToMicroseconds } = require('./util'); @@ -178,9 +182,110 @@ function process(event) { return response; } +const generateBatch = (eventKind, events) => { + const batchRequestObject = defaultBatchRequestConfig(); + const conversions = []; + let encryptionInfo = {}; + const metadata = []; + // extracting destination, message from the first event in a batch + const { destination, message } = events[0]; + // Batch event into dest batch structure + events.forEach((ev) => { + conversions.push(...ev.message.body.JSON.conversions); + metadata.push(ev.metadata); + if (ev.message.body.JSON.encryptionInfo) { + encryptionInfo = ev.message.body.JSON.encryptionInfo; + } + }); + + batchRequestObject.batchedRequest.body.JSON = { + kind: eventKind, + conversions, + }; + + if (Object.keys(encryptionInfo).length > 0) { + batchRequestObject.batchedRequest.body.JSON.encryptionInfo = encryptionInfo; + } + + batchRequestObject.batchedRequest.endpoint = message.endpoint; + + batchRequestObject.batchedRequest.headers = message.headers; + + return { + ...batchRequestObject, + metadata, + destination, + }; +}; + +const batchEvents = (eventChunksArray) => { + const batchedResponseList = []; + + // group batchInsert and batchUpdate payloads + const groupedEventChunks = lodash.groupBy( + eventChunksArray, + (event) => event.message.body.JSON.kind, + ); + Object.keys(groupedEventChunks).forEach((eventKind) => { + // eventChunks = [[e1,e2,e3,..batchSize],[e1,e2,e3,..batchSize]..] + const eventChunks = lodash.chunk(groupedEventChunks[eventKind], MAX_BATCH_CONVERSATIONS_SIZE); + eventChunks.forEach((chunk) => { + const batchEventResponse = generateBatch(eventKind, chunk); + batchedResponseList.push( + getSuccessRespEvents( + batchEventResponse.batchedRequest, + batchEventResponse.metadata, + batchEventResponse.destination, + true, + ), + ); + }); + }); + return batchedResponseList; +}; + const processRouterDest = async (inputs, reqMetadata) => { - const respList = await simpleProcessRouterDest(inputs, process, reqMetadata); - return respList; + const errorRespEvents = checkInvalidRtTfEvents(inputs); + if (errorRespEvents.length > 0) { + return errorRespEvents; + } + + const batchErrorRespList = []; + const eventChunksArray = []; + const { destination } = inputs[0]; + await Promise.all( + inputs.map(async (event) => { + try { + if (event.message.statusCode) { + // already transformed event + eventChunksArray.push({ + message: event.message, + metadata: event.metadata, + destination, + }); + } else { + // if not transformed + const proccessedRespList = process(event); + const transformedPayload = { + message: proccessedRespList, + metadata: event.metadata, + destination, + }; + eventChunksArray.push(transformedPayload); + } + } catch (error) { + const errRespEvent = handleRtTfSingleEventError(event, error, reqMetadata); + batchErrorRespList.push(errRespEvent); + } + }), + ); + + let batchResponseList = []; + if (eventChunksArray.length > 0) { + batchResponseList = batchEvents(eventChunksArray); + } + + return [...batchResponseList, ...batchErrorRespList]; }; module.exports = { process, processRouterDest }; diff --git a/src/v0/destinations/canny/util.js b/src/v0/destinations/canny/util.js index 59644bcd6b..f514a01e5c 100644 --- a/src/v0/destinations/canny/util.js +++ b/src/v0/destinations/canny/util.js @@ -45,6 +45,7 @@ const retrieveUserId = async (apiKey, message) => { { destType: 'canny', feature: 'transformation', + endpointPath: `/v1/users/retrieve`, }, ); logger.debug(response); diff --git a/src/v0/destinations/custify/util.js b/src/v0/destinations/custify/util.js index ae6f21fe20..8ecabccd2e 100644 --- a/src/v0/destinations/custify/util.js +++ b/src/v0/destinations/custify/util.js @@ -40,6 +40,7 @@ const createUpdateCompany = async (companyPayload, Config) => { { destType: 'custify', feature: 'transformation', + endpointPath: `/company`, }, ); const processedCompanyResponse = processAxiosResponse(companyResponse); diff --git a/src/v0/destinations/facebook_pixel/config.js b/src/v0/destinations/facebook_pixel/config.js index f5f895aea9..17d5887e1b 100644 --- a/src/v0/destinations/facebook_pixel/config.js +++ b/src/v0/destinations/facebook_pixel/config.js @@ -1,5 +1,7 @@ const { getMappingConfig } = require('../../util'); +const VERSION = 'v18.0'; + const CONFIG_CATEGORIES = { USERDATA: { standard: false, @@ -106,6 +108,7 @@ const STANDARD_ECOMM_EVENTS_TYPE = [ ]; module.exports = { + VERSION, CONFIG_CATEGORIES, MAPPING_CONFIG, ACTION_SOURCES_VALUES, diff --git a/src/v0/destinations/facebook_pixel/transform.js b/src/v0/destinations/facebook_pixel/transform.js index 1bc97ac1fb..8a63998b45 100644 --- a/src/v0/destinations/facebook_pixel/transform.js +++ b/src/v0/destinations/facebook_pixel/transform.js @@ -4,6 +4,7 @@ const moment = require('moment'); const { InstrumentationError, ConfigurationError } = require('@rudderstack/integrations-lib'); const stats = require('../../../util/stats'); const { + VERSION, CONFIG_CATEGORIES, MAPPING_CONFIG, FB_PIXEL_DEFAULT_EXCLUSION, @@ -65,7 +66,7 @@ const responseBuilderSimple = (message, category, destination) => { } = Config; const integrationsObj = getIntegrationsObj(message, 'fb_pixel'); - const endpoint = `https://graph.facebook.com/v17.0/${pixelId}/events?access_token=${accessToken}`; + const endpoint = `https://graph.facebook.com/${VERSION}/${pixelId}/events?access_token=${accessToken}`; const userData = fetchUserData( message, diff --git a/src/v0/destinations/factorsai/data/FactorsAIGroupConfig.json b/src/v0/destinations/factorsai/data/FactorsAIGroupConfig.json index f5f78e71e4..d581f56070 100644 --- a/src/v0/destinations/factorsai/data/FactorsAIGroupConfig.json +++ b/src/v0/destinations/factorsai/data/FactorsAIGroupConfig.json @@ -34,5 +34,10 @@ "destKey": "email", "sourceKeys": "email", "required": false + }, + { + "sourceKeys": "context", + "destKey": "context", + "required": false } ] diff --git a/src/v0/destinations/factorsai/data/FactorsAIIdentifyConfig.json b/src/v0/destinations/factorsai/data/FactorsAIIdentifyConfig.json index 9a08c382d4..b34cd2147e 100644 --- a/src/v0/destinations/factorsai/data/FactorsAIIdentifyConfig.json +++ b/src/v0/destinations/factorsai/data/FactorsAIIdentifyConfig.json @@ -34,5 +34,10 @@ "destKey": "channel", "sourceKeys": "channel", "required": false + }, + { + "sourceKeys": "context", + "destKey": "context", + "required": false } ] diff --git a/src/v0/destinations/factorsai/data/FactorsAITrackConfig.json b/src/v0/destinations/factorsai/data/FactorsAITrackConfig.json index ccb9686c29..67df67fc76 100644 --- a/src/v0/destinations/factorsai/data/FactorsAITrackConfig.json +++ b/src/v0/destinations/factorsai/data/FactorsAITrackConfig.json @@ -44,5 +44,10 @@ "destKey": "channel", "sourceKeys": "channel", "required": false + }, + { + "sourceKeys": "context", + "destKey": "context", + "required": false } ] diff --git a/src/v0/destinations/factorsai/transform.js b/src/v0/destinations/factorsai/transform.js index 9824b73bbf..9fbfc926f7 100644 --- a/src/v0/destinations/factorsai/transform.js +++ b/src/v0/destinations/factorsai/transform.js @@ -13,6 +13,14 @@ const { JSON_MIME_TYPE } = require('../../util/constant'); const { ConfigCategories, mappingConfig, BASE_URL } = require('./config'); +function populateIpDetails(requestJson, message) { + const payload = requestJson; + if (message.context || message.request_ip) { + payload.context = { ...(payload.context || {}), ip: message.context?.ip || message.request_ip }; + } + return payload; +} + // build final response function buildResponse(payload, factorsAIApiKey) { const response = defaultRequestConfig(); @@ -29,13 +37,15 @@ function buildResponse(payload, factorsAIApiKey) { // process identify call function processIdentify(message, factorsAIApiKey) { - const requestJson = constructPayload(message, mappingConfig[ConfigCategories.IDENTIFY.name]); + let requestJson = constructPayload(message, mappingConfig[ConfigCategories.IDENTIFY.name]); + requestJson = populateIpDetails(requestJson, message); return buildResponse(requestJson, factorsAIApiKey); } // process track call function processTrack(message, factorsAIApiKey) { - const requestJson = constructPayload(message, mappingConfig[ConfigCategories.TRACK.name]); + let requestJson = constructPayload(message, mappingConfig[ConfigCategories.TRACK.name]); + requestJson = populateIpDetails(requestJson, message); // flatten json as factorsAi do not support nested properties requestJson.properties = flattenJson(requestJson.properties); return buildResponse(requestJson, factorsAIApiKey); @@ -43,7 +53,8 @@ function processTrack(message, factorsAIApiKey) { // process Page Call function processPageAndGroup(message, factorsAIApiKey, category) { - const requestJson = constructPayload(message, mappingConfig[category]); + let requestJson = constructPayload(message, mappingConfig[category]); + requestJson = populateIpDetails(requestJson, message); requestJson.type = message.type; return buildResponse(requestJson, factorsAIApiKey); } diff --git a/src/v0/destinations/fb/config.js b/src/v0/destinations/fb/config.js index 2ad9aeacba..0e52b42416 100644 --- a/src/v0/destinations/fb/config.js +++ b/src/v0/destinations/fb/config.js @@ -1,6 +1,8 @@ const fs = require('fs'); const path = require('path'); +const VERSION = 'v18.0'; + const getPath = (file) => path.resolve(__dirname, file); const baseMapping = JSON.parse(fs.readFileSync(getPath('./data/FbAppBasicMapping.json'))); @@ -20,6 +22,7 @@ const eventPropToTypeMapping = JSON.parse( ); module.exports = { + VERSION, baseMapping, eventNameMapping, eventPropsMapping, diff --git a/src/v0/destinations/fb/transform.js b/src/v0/destinations/fb/transform.js index c0d78a2b3f..e6f8e986cf 100644 --- a/src/v0/destinations/fb/transform.js +++ b/src/v0/destinations/fb/transform.js @@ -14,6 +14,7 @@ const { } = require('../../util'); const { + VERSION, baseMapping, eventNameMapping, eventPropsMapping, @@ -250,7 +251,7 @@ function responseBuilderSimple(message, payload, destination) { // "https://graph.facebook.com/v13.0/644748472345539/activities" - const endpoint = `https://graph.facebook.com/v17.0/${appID}/activities`; + const endpoint = `https://graph.facebook.com/${VERSION}/${appID}/activities`; const response = defaultRequestConfig(); response.endpoint = endpoint; diff --git a/src/v0/destinations/fb_custom_audience/config.js b/src/v0/destinations/fb_custom_audience/config.js index 635ad2a9bb..284ab0d4a4 100644 --- a/src/v0/destinations/fb_custom_audience/config.js +++ b/src/v0/destinations/fb_custom_audience/config.js @@ -1,4 +1,4 @@ -const BASE_URL = 'https://graph.facebook.com/v17.0'; +const BASE_URL = 'https://graph.facebook.com/v18.0'; function getEndPoint(audienceId) { return `${BASE_URL}/${audienceId}/users`; @@ -93,7 +93,7 @@ const subTypeFields = [ // const MAX_USER_COUNT = 500; (using from destination definition) const USER_ADD = 'add'; const USER_DELETE = 'remove'; -/* No official Documentation is available for this but using trial +/* No official Documentation is available for this but using trial and error method we found that 65000 bytes is the maximum payload allowed size but we are 60000 just to be sure batching is done properly */ const maxPayloadSize = 60000; // bytes diff --git a/src/v0/destinations/fb_custom_audience/util.js b/src/v0/destinations/fb_custom_audience/util.js index 47ccb9bf7d..6c53ed2814 100644 --- a/src/v0/destinations/fb_custom_audience/util.js +++ b/src/v0/destinations/fb_custom_audience/util.js @@ -131,21 +131,21 @@ const getUpdatedDataElement = (dataElement, isHashRequired, eachProperty, update /** * hash the original value for the properties apart from 'MADID' && 'EXTERN_ID as hashing is not required for them * ref: https://developers.facebook.com/docs/marketing-api/audiences/guides/custom-audiences#hash - * sending null values for the properties for which user hasn't provided any value + * sending empty string for the properties for which user hasn't provided any value */ if (isHashRequired && eachProperty !== 'MADID' && eachProperty !== 'EXTERN_ID') { if (tmpUpdatedProperty) { tmpUpdatedProperty = `${tmpUpdatedProperty}`; dataElement.push(sha256(tmpUpdatedProperty)); } else { - dataElement.push(null); + dataElement.push(''); } } - // if property name is MADID or EXTERN_ID if the value is undefined send null + // if property name is MADID or EXTERN_ID if the value is undefined send empty string else if (!tmpUpdatedProperty && (eachProperty === 'MADID' || eachProperty === 'EXTERN_ID')) { - dataElement.push(null); + dataElement.push(''); } else { - dataElement.push(tmpUpdatedProperty); + dataElement.push(tmpUpdatedProperty || ''); } return dataElement; }; diff --git a/src/v0/destinations/freshmarketer/utils.js b/src/v0/destinations/freshmarketer/utils.js index 6fa1fe9976..5e3ba6e67e 100644 --- a/src/v0/destinations/freshmarketer/utils.js +++ b/src/v0/destinations/freshmarketer/utils.js @@ -49,6 +49,7 @@ const createUpdateAccount = async (payload, Config) => { let accountResponse = await httpPOST(endPoint, payloadBody, requestOptions, { destType: 'freshmarketer', feature: 'transformation', + endpointPath: `/crm/sales/api/sales_accounts/upsert`, }); accountResponse = processAxiosResponse(accountResponse); if (accountResponse.status !== 200 && accountResponse.status !== 201) { @@ -93,6 +94,7 @@ const getUserAccountDetails = async (payload, userEmail, Config) => { let userSalesAccountResponse = await httpPOST(endPoint, userPayload, requestOptions, { destType: 'freshmarketer', feature: 'transformation', + endpointPath: `crm/sales/api/contacts/upsert?include=sales_accounts`, }); userSalesAccountResponse = processAxiosResponse(userSalesAccountResponse); if (userSalesAccountResponse.status !== 200 && userSalesAccountResponse.status !== 201) { @@ -142,6 +144,7 @@ const createOrUpdateListDetails = async (listName, Config) => { let listResponse = await httpGET(endPoint, requestOptions, { destType: 'freshmarketer', feature: 'transformation', + endpointPath: `/crm/sales/api/lists`, }); listResponse = processAxiosResponse(listResponse); if (listResponse.status !== 200) { @@ -161,6 +164,7 @@ const createOrUpdateListDetails = async (listName, Config) => { listResponse = await httpPOST(endPoint, { name: listName }, requestOptions, { destType: 'freshmarketer', feature: 'transformation', + endpointPath: `/crm/sales/api/lists`, }); listResponse = processAxiosResponse(listResponse); if (listResponse.status !== 200) { @@ -235,6 +239,7 @@ const getContactsDetails = async (userEmail, Config) => { let userResponse = await httpPOST(endPoint, userPayload, requestOptions, { destType: 'freshmarketer', feature: 'transformation', + endpointPath: `/crm/sales/api/contacts/upsert`, }); userResponse = processAxiosResponse(userResponse); if (userResponse.status !== 200 && userResponse.status !== 201) { @@ -308,6 +313,7 @@ const UpdateContactWithLifeCycleStage = async (message, Config) => { let lifeCycleStagesResponse = await httpGET(endPoint, requestOptions, { destType: 'freshmarketer', feature: 'transformation', + endpointPath: `/crm/sales/api/selector/lifecycle_stages`, }); lifeCycleStagesResponse = processAxiosResponse(lifeCycleStagesResponse); if (lifeCycleStagesResponse.status !== 200) { @@ -393,6 +399,7 @@ const UpdateContactWithSalesActivity = async (payload, message, Config) => { let salesActivityResponse = await httpGET(endPoint, requestOptions, { destType: 'freshmarketer', feature: 'transformation', + endpointPath: `/crm/sales/api/selector/sales_activity_types`, }); salesActivityResponse = processAxiosResponse(salesActivityResponse); if (salesActivityResponse.status !== 200) { diff --git a/src/v0/destinations/freshsales/utils.js b/src/v0/destinations/freshsales/utils.js index 96acabb037..5008fedc2d 100644 --- a/src/v0/destinations/freshsales/utils.js +++ b/src/v0/destinations/freshsales/utils.js @@ -47,6 +47,7 @@ const createUpdateAccount = async (payload, Config) => { let accountResponse = await httpPOST(endPoint, payloadBody, requestOptions, { destType: 'freshsales', feature: 'transformation', + endpointPath: `/crm/sales/api/sales_accounts/upsert`, }); accountResponse = processAxiosResponse(accountResponse); if (accountResponse.status !== 200 && accountResponse.status !== 201) { @@ -90,6 +91,7 @@ const getUserAccountDetails = async (payload, userEmail, Config) => { let userSalesAccountResponse = await httpPOST(endPoint, userPayload, requestOptions, { destType: 'freshsales', feature: 'transformation', + endpointPath: `/crm/sales/api/contacts/upsert?include=sales_accounts`, }); userSalesAccountResponse = processAxiosResponse(userSalesAccountResponse); if (userSalesAccountResponse.status !== 200 && userSalesAccountResponse.status !== 201) { @@ -145,6 +147,7 @@ const getContactsDetails = async (userEmail, Config) => { let userResponse = await httpPOST(endPoint, userPayload, requestOptions, { destType: 'freshsales', feature: 'transformation', + endpointPath: `/crm/sales/api/contacts/upsert`, }); userResponse = processAxiosResponse(userResponse); if (userResponse.status !== 200 && userResponse.status !== 201) { @@ -235,6 +238,7 @@ const UpdateContactWithSalesActivity = async (payload, message, Config) => { let salesActivityResponse = await httpGET(endPoint, requestOptions, { destType: 'freshsales', feature: 'transformation', + endpointPath: `/crm/sales/api/sales_activity_types`, }); salesActivityResponse = processAxiosResponse(salesActivityResponse); if (salesActivityResponse.status !== 200) { @@ -314,6 +318,7 @@ const UpdateContactWithLifeCycleStage = async (message, Config) => { let lifeCycleStagesResponse = await httpGET(endPoint, requestOptions, { destType: 'freshsales', feature: 'transformation', + endpointPath: `/crm/sales/api/lifecycle_stages`, }); lifeCycleStagesResponse = processAxiosResponse(lifeCycleStagesResponse); if (lifeCycleStagesResponse.status !== 200) { diff --git a/src/v0/destinations/ga/deleteUsers.js b/src/v0/destinations/ga/deleteUsers.js index bb909a0053..06e674048a 100644 --- a/src/v0/destinations/ga/deleteUsers.js +++ b/src/v0/destinations/ga/deleteUsers.js @@ -80,6 +80,7 @@ const userDeletionHandler = async (userAttributes, config, rudderDestInfo) => { { destType: 'ga', feature: 'deleteUsers', + endpointPath: '/userDeletion/userDeletionRequests:upsert', }, ); // process the response to know about refreshing scenario diff --git a/src/v0/destinations/ga4/utils.test.js b/src/v0/destinations/ga4/utils.test.js index 7826c23d35..18b3ab5766 100644 --- a/src/v0/destinations/ga4/utils.test.js +++ b/src/v0/destinations/ga4/utils.test.js @@ -147,7 +147,6 @@ describe('Google Analytics 4 utils test', () => { const output = validateEventName('Grisly1234567_Open_General_Setting'); expect(output).toEqual(); } catch (error) { - console.log(error.message); expect(error.message).toEqual(); } }); diff --git a/src/v0/destinations/gainsight_px/data/GainsightPX_Identify.json b/src/v0/destinations/gainsight_px/data/GainsightPX_Identify.json index 5d07b290dc..c37c992d84 100644 --- a/src/v0/destinations/gainsight_px/data/GainsightPX_Identify.json +++ b/src/v0/destinations/gainsight_px/data/GainsightPX_Identify.json @@ -55,12 +55,7 @@ }, { "destKey": "signUpDate", - "sourceKeys": [ - "traits.signUpDate", - "context.traits.signUpDate", - "timestamp", - "originalTimestamp" - ], + "sourceKeys": ["traits.signUpDate", "context.traits.signUpDate"], "required": false, "metadata": { "type": "timestamp" @@ -109,12 +104,7 @@ }, { "destKey": "createDate", - "sourceKeys": [ - "traits.createDate", - "context.traits.createDate", - "timestamp", - "originalTimestamp" - ], + "sourceKeys": ["traits.createDate", "context.traits.createDate"], "required": false, "metadata": { "type": "timestamp" diff --git a/src/v0/destinations/gainsight_px/transform.js b/src/v0/destinations/gainsight_px/transform.js index 4d91980f11..a63be08c80 100644 --- a/src/v0/destinations/gainsight_px/transform.js +++ b/src/v0/destinations/gainsight_px/transform.js @@ -1,5 +1,9 @@ /* eslint-disable no-nested-ternary */ -const { InstrumentationError, ConfigurationError } = require('@rudderstack/integrations-lib'); +const { + InstrumentationError, + ConfigurationError, + formatTimeStamp, +} = require('@rudderstack/integrations-lib'); const { EventType } = require('../../../constants'); const { isEmptyObject, @@ -47,7 +51,7 @@ const identifyResponseBuilder = async (message, { Config }) => { 'Content-Type': JSON_MIME_TYPE, }; - const { success: isPresent } = await objectExists(userId, Config, 'user'); + const { success: isUserPresent } = await objectExists(userId, Config, 'user'); let payload = constructPayload(message, identifyMapping); const name = getValueFromMessage(message, ['traits.name', 'context.traits.name']); @@ -56,6 +60,16 @@ const identifyResponseBuilder = async (message, { Config }) => { payload.firstName = fName; payload.lastName = lName; } + // Only for the case of new user creation, if signUpDate is not provided in traits, timestamp / originalTimestamp is mapped + if (!isUserPresent && !payload.signUpDate) { + payload.signUpDate = formatTimeStamp(message.timestamp || message.originalTimestamp); + } + + // Only for the case of new user creation, if createDate is not provided in traits, timestamp / originalTimestamp is mapped + if (!isUserPresent && !payload.createDate) { + payload.createDate = formatTimeStamp(message.timestamp || message.originalTimestamp); + } + let customAttributes = {}; customAttributes = extractCustomFields( message, @@ -75,7 +89,7 @@ const identifyResponseBuilder = async (message, { Config }) => { type: 'USER', }; - if (isPresent) { + if (isUserPresent) { // update user response.method = defaultPutRequestConfig.requestMethod; response.endpoint = `${ENDPOINTS.USERS_ENDPOINT}/${userId}`; diff --git a/src/v0/destinations/google_adwords_enhanced_conversions/config.js b/src/v0/destinations/google_adwords_enhanced_conversions/config.js index 66d12c34d7..8d194655f7 100644 --- a/src/v0/destinations/google_adwords_enhanced_conversions/config.js +++ b/src/v0/destinations/google_adwords_enhanced_conversions/config.js @@ -1,6 +1,6 @@ const { getMappingConfig } = require('../../util'); -const BASE_ENDPOINT = 'https://googleads.googleapis.com/v14/customers'; +const BASE_ENDPOINT = 'https://googleads.googleapis.com/v15/customers'; const CONFIG_CATEGORIES = { TRACK_CONFIG: { type: 'track', name: 'trackConfig' }, diff --git a/src/v0/destinations/google_adwords_enhanced_conversions/networkHandler.js b/src/v0/destinations/google_adwords_enhanced_conversions/networkHandler.js index 8ac432935f..7266154a09 100644 --- a/src/v0/destinations/google_adwords_enhanced_conversions/networkHandler.js +++ b/src/v0/destinations/google_adwords_enhanced_conversions/networkHandler.js @@ -44,6 +44,7 @@ const getConversionActionId = async (method, headers, params) => { { destType: 'google_adwords_enhanced_conversions', feature: 'proxy', + endpointPath: `/googleAds:searchStream`, }, ); if (!isHttpStatusSuccess(gaecConversionActionIdResponse.status)) { @@ -96,6 +97,7 @@ const ProxyRequest = async (request) => { const { httpResponse: response } = await handleHttpRequest('constructor', requestBody, { destType: 'google_adwords_enhanced_conversions', feature: 'proxy', + endpointPath: `/googleAds:uploadOfflineUserData`, }); return response; }; diff --git a/src/v0/destinations/google_adwords_offline_conversions/networkHandler.js b/src/v0/destinations/google_adwords_offline_conversions/networkHandler.js index a87a2431f2..6922cde8c8 100644 --- a/src/v0/destinations/google_adwords_offline_conversions/networkHandler.js +++ b/src/v0/destinations/google_adwords_offline_conversions/networkHandler.js @@ -33,6 +33,7 @@ const createJob = async (endpoint, headers, payload) => { { destType: 'google_adwords_offline_conversions', feature: 'proxy', + endpointPath: `/create`, }, ); createJobResponse = processAxiosResponse(createJobResponse); @@ -57,6 +58,7 @@ const addConversionToJob = async (endpoint, headers, jobId, payload) => { { destType: 'google_adwords_offline_conversions', feature: 'proxy', + endpointPath: `/addOperations`, }, ); addConversionToJobResponse = processAxiosResponse(addConversionToJobResponse); @@ -80,6 +82,7 @@ const runTheJob = async (endpoint, headers, payload, jobId) => { { destType: 'google_adwords_offline_conversions', feature: 'proxy', + endpointPath: `/run`, }, ); return executeJobResponse; @@ -106,6 +109,7 @@ const getConversionCustomVariable = async (headers, params) => { let searchStreamResponse = await httpPOST(endpoint, data, requestOptions, { destType: 'google_adwords_offline_conversions', feature: 'proxy', + endpointPath: `/searchStream`, }); searchStreamResponse = processAxiosResponse(searchStreamResponse); if (!isHttpStatusSuccess(searchStreamResponse.status)) { @@ -190,9 +194,11 @@ const ProxyRequest = async (request) => { const addPayload = body.JSON.addConversionPayload; // Mapping Conversion Action const conversionId = await getConversionActionId(headers, params); - addPayload.operations.forEach((operation) => { - set(operation, 'create.transaction_attribute.conversion_action', conversionId); - }); + if (Array.isArray(addPayload.operations)) { + addPayload.operations.forEach((operation) => { + set(operation, 'create.transaction_attribute.conversion_action', conversionId); + }); + } await addConversionToJob(endpoint, headers, firstResponse, addPayload); const thirdResponse = await runTheJob( endpoint, @@ -240,6 +246,7 @@ const ProxyRequest = async (request) => { const response = await httpSend(requestBody, { feature: 'proxy', destType: 'gogole_adwords_offline_conversions', + endpointPath: `/proxy`, }); return response; }; diff --git a/src/v0/destinations/google_adwords_offline_conversions/utils.js b/src/v0/destinations/google_adwords_offline_conversions/utils.js index c69c5a436f..599a163c54 100644 --- a/src/v0/destinations/google_adwords_offline_conversions/utils.js +++ b/src/v0/destinations/google_adwords_offline_conversions/utils.js @@ -63,6 +63,7 @@ const getConversionActionId = async (headers, params) => { let searchStreamResponse = await httpPOST(endpoint, data, requestOptions, { destType: 'google_adwords_offline_conversions', feature: 'transformation', + endpointPath: `/googleAds:searchStream`, }); searchStreamResponse = processAxiosResponse(searchStreamResponse); if (!isHttpStatusSuccess(searchStreamResponse.status)) { diff --git a/src/v0/destinations/google_adwords_remarketing_lists/config.js b/src/v0/destinations/google_adwords_remarketing_lists/config.js index 94059c69f1..5bf0d8a299 100644 --- a/src/v0/destinations/google_adwords_remarketing_lists/config.js +++ b/src/v0/destinations/google_adwords_remarketing_lists/config.js @@ -1,6 +1,6 @@ const { getMappingConfig } = require('../../util'); -const BASE_ENDPOINT = 'https://googleads.googleapis.com/v14/customers'; +const BASE_ENDPOINT = 'https://googleads.googleapis.com/v15/customers'; const CONFIG_CATEGORIES = { AUDIENCE_LIST: { type: 'audienceList', name: 'offlineDataJobs' }, ADDRESSINFO: { type: 'addressInfo', name: 'addressInfo' }, diff --git a/src/v0/destinations/google_adwords_remarketing_lists/networkHandler.js b/src/v0/destinations/google_adwords_remarketing_lists/networkHandler.js index 5be8597bdb..bf703ccb1b 100644 --- a/src/v0/destinations/google_adwords_remarketing_lists/networkHandler.js +++ b/src/v0/destinations/google_adwords_remarketing_lists/networkHandler.js @@ -14,18 +14,24 @@ const tags = require('../../util/tags'); * @param listId * @param headers * @param method + * @consentBlock + * ref: https://developers.google.com/google-ads/api/rest/reference/rest/v15/CustomerMatchUserListMetadata */ -const createJob = async (endpoint, customerId, listId, headers, method) => { +const createJob = async (endpoint, headers, method, params) => { const jobCreatingUrl = `${endpoint}:create`; + const customerMatchUserListMetadata = { + userList: `customers/${params.customerId}/userLists/${params.listId}`, + }; + if (Object.keys(params.consent).length > 0) { + customerMatchUserListMetadata.consent = params.consent; + } const jobCreatingRequest = { url: jobCreatingUrl, data: { job: { type: 'CUSTOMER_MATCH_USER_LIST', - customerMatchUserListMetadata: { - userList: `customers/${customerId}/userLists/${listId}`, - }, + customerMatchUserListMetadata, }, }, headers, @@ -34,6 +40,7 @@ const createJob = async (endpoint, customerId, listId, headers, method) => { const response = await httpSend(jobCreatingRequest, { destType: 'google_adwords_remarketing_lists', feature: 'proxy', + endpointPath: '/customers/create', }); return response; }; @@ -57,6 +64,7 @@ const addUserToJob = async (endpoint, headers, method, jobId, body) => { const response = await httpSend(secondRequest, { destType: 'google_adwords_remarketing_lists', feature: 'proxy', + endpointPath: '/addOperations', }); return response; }; @@ -78,6 +86,7 @@ const runTheJob = async (endpoint, headers, method, jobId) => { const response = await httpSend(thirdRequest, { destType: 'google_adwords_remarketing_lists', feature: 'proxy', + endpointPath: '/run', }); return response; }; @@ -91,11 +100,10 @@ const runTheJob = async (endpoint, headers, method, jobId) => { const gaAudienceProxyRequest = async (request) => { const { body, method, params, endpoint } = request; const { headers } = request; - const { customerId, listId } = params; // step1: offlineUserDataJobs creation - const firstResponse = await createJob(endpoint, customerId, listId, headers, method); + const firstResponse = await createJob(endpoint, headers, method, params); if (!firstResponse.success && !isHttpStatusSuccess(firstResponse?.response?.status)) { return firstResponse; } diff --git a/src/v0/destinations/google_adwords_remarketing_lists/transform.js b/src/v0/destinations/google_adwords_remarketing_lists/transform.js index 884fcd71f6..9526973fb8 100644 --- a/src/v0/destinations/google_adwords_remarketing_lists/transform.js +++ b/src/v0/destinations/google_adwords_remarketing_lists/transform.js @@ -15,6 +15,8 @@ const { getAccessToken, } = require('../../util'); +const { populateConsentForGoogleDestinations } = require('../../util/googleUtils'); + const { offlineDataJobsMapping, addressInfoMapping, @@ -43,7 +45,7 @@ const hashEncrypt = (object) => { * @param {*} param2 * @returns */ -const responseBuilder = (metadata, body, { Config }, message) => { +const responseBuilder = (metadata, body, { Config }, message, consentBlock) => { const payload = body; const response = defaultRequestConfig(); const filteredCustomerId = removeHyphens(Config.customerId); @@ -62,7 +64,11 @@ const responseBuilder = (metadata, body, { Config }, message) => { if (!isDefinedAndNotNullAndNotEmpty(operationAudienceId)) { throw new ConfigurationError('List ID is a mandatory field'); } - response.params = { listId: operationAudienceId, customerId: filteredCustomerId }; + response.params = { + listId: operationAudienceId, + customerId: filteredCustomerId, + consent: consentBlock, + }; response.headers = { Authorization: `Bearer ${accessToken}`, 'Content-Type': JSON_MIME_TYPE, @@ -212,7 +218,8 @@ const processEvent = async (metadata, message, destination) => { } Object.values(createdPayload).forEach((data) => { - response.push(responseBuilder(metadata, data, destination, message)); + const consentObj = populateConsentForGoogleDestinations(message.properties); + response.push(responseBuilder(metadata, data, destination, message, consentObj)); }); return response; } diff --git a/src/v0/destinations/hs/util.js b/src/v0/destinations/hs/util.js index f83ce0b6de..5c8f4a908a 100644 --- a/src/v0/destinations/hs/util.js +++ b/src/v0/destinations/hs/util.js @@ -100,6 +100,7 @@ const getProperties = async (destination) => { hubspotPropertyMapResponse = await httpGET(CONTACT_PROPERTY_MAP_ENDPOINT, requestOptions, { destType: 'hs', feature: 'transformation', + endpointPath: `/properties/v1/contacts/properties`, }); hubspotPropertyMapResponse = processAxiosResponse(hubspotPropertyMapResponse); } else { @@ -111,6 +112,7 @@ const getProperties = async (destination) => { { destType: 'hs', feature: 'transformation', + endpointPath: `/properties/v1/contacts/properties?hapikey`, }, ); hubspotPropertyMapResponse = processAxiosResponse(hubspotPropertyMapResponse); diff --git a/src/v0/destinations/intercom/deleteUsers.js b/src/v0/destinations/intercom/deleteUsers.js index e11d352117..085e842458 100644 --- a/src/v0/destinations/intercom/deleteUsers.js +++ b/src/v0/destinations/intercom/deleteUsers.js @@ -38,6 +38,7 @@ const userDeletionHandler = async (userAttributes, config) => { const resp = await httpPOST(url, data, requestOptions, { destType: 'intercom', feature: 'deleteUsers', + endpointPath: '/user_delete_requests', }); const handledDelResponse = processAxiosResponse(resp); if (!isHttpStatusSuccess(handledDelResponse.status) && handledDelResponse.status !== 404) { diff --git a/src/v0/destinations/klaviyo/transform.js b/src/v0/destinations/klaviyo/transform.js index 7c9061fc41..3c2f8137f2 100644 --- a/src/v0/destinations/klaviyo/transform.js +++ b/src/v0/destinations/klaviyo/transform.js @@ -93,6 +93,10 @@ const identifyRequestHandler = async (message, category, destination, reqMetadat data.attributes.properties = flattenProperties ? flattenJson(data.attributes.properties, '.', 'normal', false) : data.attributes.properties; + + if (isEmptyObject(data.attributes.properties)) { + delete data.attributes.properties; + } const payload = { data: removeUndefinedAndNullValues(data), }; @@ -152,6 +156,9 @@ const trackRequestHandler = (message, category, destination) => { const payload = {}; const { privateApiKey, flattenProperties } = destination.Config; let event = get(message, 'event'); + if (event && typeof event !== 'string') { + throw new InstrumentationError('Event type should be a string'); + } event = event ? event.trim().toLowerCase() : event; let attributes = {}; if (ecomEvents.includes(event) && message.properties) { diff --git a/src/v0/destinations/marketo/config.js b/src/v0/destinations/marketo/config.js index 5d70cc0425..604be41dc0 100644 --- a/src/v0/destinations/marketo/config.js +++ b/src/v0/destinations/marketo/config.js @@ -14,24 +14,18 @@ const DESTINATION = 'marketo'; const formatConfig = (destination) => ({ ID: destination.ID, ...destination.Config, - customActivityEventMap: getHashFromArray( - destination.Config.customActivityEventMap, - 'from', - 'to', - false, - ), + customActivityEventMap: destination.Config?.rudderEventsMapping + ? getHashFromArray(destination.Config.rudderEventsMapping, 'event', 'marketoActivityId', false) + : getHashFromArray(destination.Config.customActivityEventMap, 'from', 'to', false), customActivityPropertyMap: getHashFromArray( destination.Config.customActivityPropertyMap, 'from', 'to', false, ), - customActivityPrimaryKeyMap: getHashFromArray( - destination.Config.customActivityPrimaryKeyMap, - 'from', - 'to', - false, - ), + customActivityPrimaryKeyMap: destination.Config?.rudderEventsMapping + ? getHashFromArray(destination.Config.rudderEventsMapping, 'event', 'marketoPrimarykey', false) + : getHashFromArray(destination.Config.customActivityPrimaryKeyMap, 'from', 'to', false), leadTraitMapping: getHashFromArray(destination.Config.leadTraitMapping, 'from', 'to', false), responseRules: destination.DestinationDefinition ? destination.DestinationDefinition.ResponseRules diff --git a/src/v0/destinations/marketo/util.js b/src/v0/destinations/marketo/util.js index 203e0bf859..54ff70708a 100644 --- a/src/v0/destinations/marketo/util.js +++ b/src/v0/destinations/marketo/util.js @@ -247,6 +247,7 @@ const sendGetRequest = async (url, options) => { const clientResponse = await httpGET(url, options, { destType: 'marketo', feature: 'transformation', + endpointPath: `/v1/leads`, }); const processedResponse = processAxiosResponse(clientResponse); return processedResponse; @@ -262,6 +263,7 @@ const sendPostRequest = async (url, data, options) => { const clientResponse = await httpPOST(url, data, options, { destType: 'marketo', feature: 'transformation', + endpointPath: `/v1/leads`, }); const processedResponse = processAxiosResponse(clientResponse); return processedResponse; diff --git a/src/v0/destinations/marketo_bulk_upload/fileUpload.js b/src/v0/destinations/marketo_bulk_upload/fileUpload.js index c7212ff9cb..4c1679cbfc 100644 --- a/src/v0/destinations/marketo_bulk_upload/fileUpload.js +++ b/src/v0/destinations/marketo_bulk_upload/fileUpload.js @@ -206,8 +206,8 @@ const getImportID = async (input, config, accessToken, csvHeader) => { stats.counter('marketo_bulk_upload_upload_file_unsuccJobs', unsuccessfulJobs.length); if (!isHttpStatusSuccess(resp.status)) { throw new NetworkError( - 'Unable to upload file', - hydrateStatusForServer(resp.status, 'During fetching poll status'), + `Unable to upload file due to error : ${resp.response}`, + hydrateStatusForServer(resp.status, 'During uploading file'), ); } return handleFileUploadResponse(resp, successfulJobs, unsuccessfulJobs, requestTime, config); diff --git a/src/v0/destinations/marketo_bulk_upload/poll.js b/src/v0/destinations/marketo_bulk_upload/poll.js index 3ad458c545..97211c4763 100644 --- a/src/v0/destinations/marketo_bulk_upload/poll.js +++ b/src/v0/destinations/marketo_bulk_upload/poll.js @@ -34,7 +34,7 @@ const getPollStatus = async (event) => { state: 'Retryable', }); throw new NetworkError( - 'Could not poll status', + `Could not poll status: due to error ${pollStatus.response}`, hydrateStatusForServer(pollStatus.status, 'During fetching poll status'), ); } diff --git a/src/v0/destinations/marketo_bulk_upload/util.js b/src/v0/destinations/marketo_bulk_upload/util.js index 7b329a3441..9661b0e4cb 100644 --- a/src/v0/destinations/marketo_bulk_upload/util.js +++ b/src/v0/destinations/marketo_bulk_upload/util.js @@ -153,7 +153,7 @@ const getAccessToken = async (config) => // sample response : {response: '[ENOTFOUND] :: DNS lookup failed', status: 400} if (!isHttpStatusSuccess(accessTokenResponse.status)) { throw new NetworkError( - 'Could not retrieve authorisation token', + `Could not retrieve authorisation token due to error ${accessTokenResponse}`, hydrateStatusForServer(accessTokenResponse.status, FETCH_ACCESS_TOKEN), { [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(accessTokenResponse.status), @@ -172,7 +172,7 @@ const getAccessToken = async (config) => // when access token is present if (accessTokenResponse.response.access_token) { - /* This scenario will handle the case when we get the foloowing response + /* This scenario will handle the case when we get the following response status: 200 respnse: {"access_token":"","token_type":"bearer","expires_in":0,"scope":"dummy@scope.com"} wherein "expires_in":0 denotes that we should refresh the accessToken but its not expired yet. @@ -185,7 +185,10 @@ const getAccessToken = async (config) => } return accessTokenResponse.response.access_token; } - throw new AbortedError('Could not retrieve authorisation token', 400); + throw new AbortedError( + `Could not retrieve authorisation token due to error ${accessTokenResponse}`, + 400, + ); }); /** @@ -254,14 +257,18 @@ const handleFetchJobStatusResponse = (resp, type) => { if (!isHttpStatusSuccess(marketoReposnseStatus)) { logger.info('[Network Error]:Failed during fetching job status', { marketoResponse, type }); throw new NetworkError( - 'Unable to fetch job status', + `Unable to fetch job status: due to error ${marketoResponse}`, hydrateStatusForServer(marketoReposnseStatus, 'During fetching job status'), ); } if (marketoResponse?.success === false) { logger.info('[Application Error]Failed during fetching job status', { marketoResponse, type }); - throw new RetryableError('Failure during fetching job status', 500, resp); + throw new RetryableError( + `Failure during fetching job status due to error : ${marketoResponse}`, + 500, + resp, + ); } /* @@ -394,7 +401,11 @@ const getFieldSchemaMap = async (accessToken, munchkinId) => { fieldMap[field?.name] = field?.dataType; }); } else { - throw new RetryableError('Failed to fetch Marketo Field Schema', 500, fieldSchemaMapping); + throw new RetryableError( + `Failed to fetch Marketo Field Schema due to error ${fieldSchemaMapping}`, + 500, + fieldSchemaMapping, + ); } return fieldMap; }; diff --git a/src/v0/destinations/marketo_static_list/testData/constants.js b/src/v0/destinations/marketo_static_list/testData/constants.js new file mode 100644 index 0000000000..2c420c6bc2 --- /dev/null +++ b/src/v0/destinations/marketo_static_list/testData/constants.js @@ -0,0 +1,45 @@ +const EXTERNAL_ID = 'marketoStaticListId'; +const TOKEN = 'Bearer access_token_success'; +const CONTENT_TYPE = 'application/json'; +const DEST_CONFIG = { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1234, +}; +const DEST_DEFINITION = { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', +}; +const DEST_OBJECT = { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: DEST_DEFINITION, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, +}; +const MESSAGE_SOURCES_CONTEXT = { + job_id: '2VsZs4hyPpq7f1p8igrpmHsibHl', + job_run_id: 'ck99nbd2kqiljdihhkh0', + task_run_id: 'ck99nbd2kqiljdihhkhg', +}; + +module.exports = { + EXTERNAL_ID, + TOKEN, + CONTENT_TYPE, + DEST_OBJECT, + DEST_DEFINITION, + MESSAGE_SOURCES_CONTEXT, + DEST_CONFIG, +}; diff --git a/src/v0/destinations/marketo_static_list/testData/testData.js b/src/v0/destinations/marketo_static_list/testData/testData.js new file mode 100644 index 0000000000..45328436ce --- /dev/null +++ b/src/v0/destinations/marketo_static_list/testData/testData.js @@ -0,0 +1,3085 @@ +const { + EXTERNAL_ID, + TOKEN, + CONTENT_TYPE, + DEST_OBJECT, + DEST_DEFINITION, + MESSAGE_SOURCES_CONTEXT, + DEST_CONFIG, +} = require('./constants'); + +const recordInputs = [ + { + destination: DEST_OBJECT, + message: { + type: 'record', + action: 'insert', + fields: { + id: 1001, + }, + channel: 'sources', + context: { + sources: MESSAGE_SOURCES_CONTEXT, + externalId: [ + { + type: EXTERNAL_ID, + id: 'id001', + }, + ], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { + jobId: 1, + }, + }, + { + destination: DEST_OBJECT, + message: { + type: 'record', + action: 'insert', + fields: { + id: 1002, + }, + channel: 'sources', + context: { + sources: MESSAGE_SOURCES_CONTEXT, + externalId: [ + { + type: EXTERNAL_ID, + id: 'id002', + }, + ], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { + jobId: 2, + }, + }, + { + destination: DEST_OBJECT, + message: { + type: 'record', + action: 'insert', + fields: { + id: 1003, + }, + channel: 'sources', + context: { + sources: MESSAGE_SOURCES_CONTEXT, + externalId: [ + { + type: EXTERNAL_ID, + id: 'id001', + }, + ], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { + jobId: 3, + }, + }, + { + destination: DEST_OBJECT, + message: { + action: 'delete', + context: { + destinationFields: 'id', + externalId: [ + { + id: 'id002', + type: EXTERNAL_ID, + }, + ], + mappedToDestination: 'true', + sources: { + job_id: 'sf', + job_run_id: 'ck985bve58cvnti48120', + task_run_id: 'ck985bve58cvnti4812g', + version: '', + }, + }, + recordId: '2', + rudderId: '2', + fields: { + id: '2001', + }, + type: 'record', + }, + metadata: { + jobId: 4, + }, + }, +]; + +const recordOutput = [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id001/leads.json?id=1001&id=1003', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 1, + }, + { + jobId: 3, + }, + ], + batched: true, + statusCode: 200, + destination: DEST_OBJECT, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id002/leads.json?id=2001', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 4, + }, + ], + batched: true, + statusCode: 200, + destination: DEST_OBJECT, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id002/leads.json?id=1002', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 2, + }, + ], + batched: true, + statusCode: 200, + destination: DEST_OBJECT, + }, +]; + +const audiencelistInputs = [ + { + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo', + DestinationDefinition: DEST_DEFINITION, + Config: DEST_CONFIG, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + id: 501, + }, + { + id: 502, + }, + { + id: 503, + }, + ], + remove: [ + { + id: 704, + }, + { + id: 705, + }, + { + id: 706, + }, + ], + }, + enablePartialFailure: true, + }, + context: { + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + metadata: { + jobId: 1, + }, + }, + { + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo', + DestinationDefinition: DEST_DEFINITION, + Config: DEST_CONFIG, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + id: 0, + }, + { + id: 1, + }, + { + id: 2, + }, + { + id: 3, + }, + { + id: 4, + }, + { + id: 5, + }, + { + id: 6, + }, + { + id: 7, + }, + { + id: 8, + }, + { + id: 9, + }, + { + id: 10, + }, + { + id: 11, + }, + { + id: 12, + }, + { + id: 13, + }, + { + id: 14, + }, + { + id: 15, + }, + { + id: 16, + }, + { + id: 17, + }, + { + id: 18, + }, + { + id: 19, + }, + { + id: 20, + }, + { + id: 21, + }, + { + id: 22, + }, + { + id: 23, + }, + { + id: 24, + }, + { + id: 25, + }, + { + id: 26, + }, + { + id: 27, + }, + { + id: 28, + }, + { + id: 29, + }, + { + id: 30, + }, + { + id: 31, + }, + { + id: 32, + }, + { + id: 33, + }, + { + id: 34, + }, + { + id: 35, + }, + { + id: 36, + }, + { + id: 37, + }, + { + id: 38, + }, + { + id: 39, + }, + { + id: 40, + }, + { + id: 41, + }, + { + id: 42, + }, + { + id: 43, + }, + { + id: 44, + }, + { + id: 45, + }, + { + id: 46, + }, + { + id: 47, + }, + { + id: 48, + }, + { + id: 49, + }, + { + id: 50, + }, + { + id: 51, + }, + { + id: 52, + }, + { + id: 53, + }, + { + id: 54, + }, + { + id: 55, + }, + { + id: 56, + }, + { + id: 57, + }, + { + id: 58, + }, + { + id: 59, + }, + { + id: 60, + }, + { + id: 61, + }, + { + id: 62, + }, + { + id: 63, + }, + { + id: 64, + }, + { + id: 65, + }, + { + id: 66, + }, + { + id: 67, + }, + { + id: 68, + }, + { + id: 69, + }, + { + id: 70, + }, + { + id: 71, + }, + { + id: 72, + }, + { + id: 73, + }, + { + id: 74, + }, + { + id: 75, + }, + { + id: 76, + }, + { + id: 77, + }, + { + id: 78, + }, + { + id: 79, + }, + { + id: 80, + }, + { + id: 81, + }, + { + id: 82, + }, + { + id: 83, + }, + { + id: 84, + }, + { + id: 85, + }, + { + id: 86, + }, + { + id: 87, + }, + { + id: 88, + }, + { + id: 89, + }, + { + id: 90, + }, + { + id: 91, + }, + { + id: 92, + }, + { + id: 93, + }, + { + id: 94, + }, + { + id: 95, + }, + { + id: 96, + }, + { + id: 97, + }, + { + id: 98, + }, + { + id: 99, + }, + { + id: 100, + }, + { + id: 101, + }, + { + id: 102, + }, + { + id: 103, + }, + { + id: 104, + }, + { + id: 105, + }, + { + id: 106, + }, + { + id: 107, + }, + { + id: 108, + }, + { + id: 109, + }, + { + id: 110, + }, + { + id: 111, + }, + { + id: 112, + }, + { + id: 113, + }, + { + id: 114, + }, + { + id: 115, + }, + { + id: 116, + }, + { + id: 117, + }, + { + id: 118, + }, + { + id: 119, + }, + { + id: 120, + }, + { + id: 121, + }, + { + id: 122, + }, + { + id: 123, + }, + { + id: 124, + }, + { + id: 125, + }, + { + id: 126, + }, + { + id: 127, + }, + { + id: 128, + }, + { + id: 129, + }, + { + id: 130, + }, + { + id: 131, + }, + { + id: 132, + }, + { + id: 133, + }, + { + id: 134, + }, + { + id: 135, + }, + { + id: 136, + }, + { + id: 137, + }, + { + id: 138, + }, + { + id: 139, + }, + { + id: 140, + }, + { + id: 141, + }, + { + id: 142, + }, + { + id: 143, + }, + { + id: 144, + }, + { + id: 145, + }, + { + id: 146, + }, + { + id: 147, + }, + { + id: 148, + }, + { + id: 149, + }, + { + id: 150, + }, + { + id: 151, + }, + { + id: 152, + }, + { + id: 153, + }, + { + id: 154, + }, + { + id: 155, + }, + { + id: 156, + }, + { + id: 157, + }, + { + id: 158, + }, + { + id: 159, + }, + { + id: 160, + }, + { + id: 161, + }, + { + id: 162, + }, + { + id: 163, + }, + { + id: 164, + }, + { + id: 165, + }, + { + id: 166, + }, + { + id: 167, + }, + { + id: 168, + }, + { + id: 169, + }, + { + id: 170, + }, + { + id: 171, + }, + { + id: 172, + }, + { + id: 173, + }, + { + id: 174, + }, + { + id: 175, + }, + { + id: 176, + }, + { + id: 177, + }, + { + id: 178, + }, + { + id: 179, + }, + { + id: 180, + }, + { + id: 181, + }, + { + id: 182, + }, + { + id: 183, + }, + { + id: 184, + }, + { + id: 185, + }, + { + id: 186, + }, + { + id: 187, + }, + { + id: 188, + }, + { + id: 189, + }, + { + id: 190, + }, + { + id: 191, + }, + { + id: 192, + }, + { + id: 193, + }, + { + id: 194, + }, + { + id: 195, + }, + { + id: 196, + }, + { + id: 197, + }, + { + id: 198, + }, + { + id: 199, + }, + { + id: 200, + }, + { + id: 201, + }, + { + id: 202, + }, + { + id: 203, + }, + { + id: 204, + }, + { + id: 205, + }, + { + id: 206, + }, + { + id: 207, + }, + { + id: 208, + }, + { + id: 209, + }, + { + id: 210, + }, + { + id: 211, + }, + { + id: 212, + }, + { + id: 213, + }, + { + id: 214, + }, + { + id: 215, + }, + { + id: 216, + }, + { + id: 217, + }, + { + id: 218, + }, + { + id: 219, + }, + { + id: 220, + }, + { + id: 221, + }, + { + id: 222, + }, + { + id: 223, + }, + { + id: 224, + }, + { + id: 225, + }, + { + id: 226, + }, + { + id: 227, + }, + { + id: 228, + }, + { + id: 229, + }, + { + id: 230, + }, + { + id: 231, + }, + { + id: 232, + }, + { + id: 233, + }, + { + id: 234, + }, + { + id: 235, + }, + { + id: 236, + }, + { + id: 237, + }, + { + id: 238, + }, + { + id: 239, + }, + { + id: 240, + }, + { + id: 241, + }, + { + id: 242, + }, + { + id: 243, + }, + { + id: 244, + }, + { + id: 245, + }, + { + id: 246, + }, + { + id: 247, + }, + { + id: 248, + }, + { + id: 249, + }, + { + id: 250, + }, + { + id: 251, + }, + { + id: 252, + }, + { + id: 253, + }, + { + id: 254, + }, + { + id: 255, + }, + { + id: 256, + }, + { + id: 257, + }, + { + id: 258, + }, + { + id: 259, + }, + { + id: 260, + }, + { + id: 261, + }, + { + id: 262, + }, + { + id: 263, + }, + { + id: 264, + }, + { + id: 265, + }, + { + id: 266, + }, + { + id: 267, + }, + { + id: 268, + }, + { + id: 269, + }, + { + id: 270, + }, + { + id: 271, + }, + { + id: 272, + }, + { + id: 273, + }, + { + id: 274, + }, + { + id: 275, + }, + { + id: 276, + }, + { + id: 277, + }, + { + id: 278, + }, + { + id: 279, + }, + { + id: 280, + }, + { + id: 281, + }, + { + id: 282, + }, + { + id: 283, + }, + { + id: 284, + }, + { + id: 285, + }, + { + id: 286, + }, + { + id: 287, + }, + { + id: 288, + }, + { + id: 289, + }, + { + id: 290, + }, + { + id: 291, + }, + { + id: 292, + }, + { + id: 293, + }, + { + id: 294, + }, + { + id: 295, + }, + { + id: 296, + }, + { + id: 297, + }, + { + id: 298, + }, + { + id: 299, + }, + { + id: 300, + }, + { + id: 301, + }, + { + id: 302, + }, + { + id: 303, + }, + { + id: 304, + }, + { + id: 305, + }, + { + id: 306, + }, + { + id: 307, + }, + { + id: 308, + }, + { + id: 309, + }, + { + id: 310, + }, + { + id: 311, + }, + { + id: 312, + }, + { + id: 313, + }, + { + id: 314, + }, + { + id: 315, + }, + { + id: 316, + }, + { + id: 317, + }, + { + id: 318, + }, + { + id: 319, + }, + { + id: 320, + }, + { + id: 321, + }, + { + id: 322, + }, + { + id: 323, + }, + { + id: 324, + }, + { + id: 325, + }, + { + id: 326, + }, + { + id: 327, + }, + { + id: 328, + }, + { + id: 329, + }, + { + id: 330, + }, + { + id: 331, + }, + { + id: 332, + }, + { + id: 333, + }, + { + id: 334, + }, + { + id: 335, + }, + { + id: 336, + }, + { + id: 337, + }, + { + id: 338, + }, + { + id: 339, + }, + { + id: 340, + }, + { + id: 341, + }, + { + id: 342, + }, + { + id: 343, + }, + { + id: 344, + }, + { + id: 345, + }, + { + id: 346, + }, + { + id: 347, + }, + { + id: 348, + }, + { + id: 349, + }, + { + id: 350, + }, + ], + }, + enablePartialFailure: true, + }, + context: { + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + metadata: { + jobId: 2, + }, + }, +]; + +const reqMetadata = { + namespace: 'Unknown', + cluster: 'Unknown', + features: {}, +}; + +const largeRecordOutput = [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=351&id=352&id=353&id=354&id=355&id=356&id=357&id=358&id=359&id=360&id=361&id=362&id=363&id=364&id=365&id=366&id=367&id=368&id=369&id=370&id=371&id=372&id=373&id=374&id=375&id=376&id=377&id=378&id=379&id=380&id=381&id=382&id=383&id=384&id=385&id=386&id=387&id=388&id=389&id=390&id=391&id=392&id=393&id=394&id=395&id=396&id=397&id=398&id=399&id=400&id=401&id=402&id=403&id=404&id=405&id=406&id=407&id=408&id=409&id=410&id=411&id=412&id=413&id=414&id=415&id=416&id=417&id=418&id=419&id=420&id=421&id=422&id=423&id=424&id=425&id=426&id=427&id=428&id=429&id=430&id=431&id=432&id=433&id=434&id=435&id=436&id=437&id=438&id=439&id=440&id=441&id=442&id=443&id=444&id=445&id=446&id=447&id=448&id=449&id=450', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 351, + }, + { + jobId: 352, + }, + { + jobId: 353, + }, + { + jobId: 354, + }, + { + jobId: 355, + }, + { + jobId: 356, + }, + { + jobId: 357, + }, + { + jobId: 358, + }, + { + jobId: 359, + }, + { + jobId: 360, + }, + { + jobId: 361, + }, + { + jobId: 362, + }, + { + jobId: 363, + }, + { + jobId: 364, + }, + { + jobId: 365, + }, + { + jobId: 366, + }, + { + jobId: 367, + }, + { + jobId: 368, + }, + { + jobId: 369, + }, + { + jobId: 370, + }, + { + jobId: 371, + }, + { + jobId: 372, + }, + { + jobId: 373, + }, + { + jobId: 374, + }, + { + jobId: 375, + }, + { + jobId: 376, + }, + { + jobId: 377, + }, + { + jobId: 378, + }, + { + jobId: 379, + }, + { + jobId: 380, + }, + { + jobId: 381, + }, + { + jobId: 382, + }, + { + jobId: 383, + }, + { + jobId: 384, + }, + { + jobId: 385, + }, + { + jobId: 386, + }, + { + jobId: 387, + }, + { + jobId: 388, + }, + { + jobId: 389, + }, + { + jobId: 390, + }, + { + jobId: 391, + }, + { + jobId: 392, + }, + { + jobId: 393, + }, + { + jobId: 394, + }, + { + jobId: 395, + }, + { + jobId: 396, + }, + { + jobId: 397, + }, + { + jobId: 398, + }, + { + jobId: 399, + }, + { + jobId: 400, + }, + { + jobId: 401, + }, + { + jobId: 402, + }, + { + jobId: 403, + }, + { + jobId: 404, + }, + { + jobId: 405, + }, + { + jobId: 406, + }, + { + jobId: 407, + }, + { + jobId: 408, + }, + { + jobId: 409, + }, + { + jobId: 410, + }, + { + jobId: 411, + }, + { + jobId: 412, + }, + { + jobId: 413, + }, + { + jobId: 414, + }, + { + jobId: 415, + }, + { + jobId: 416, + }, + { + jobId: 417, + }, + { + jobId: 418, + }, + { + jobId: 419, + }, + { + jobId: 420, + }, + { + jobId: 421, + }, + { + jobId: 422, + }, + { + jobId: 423, + }, + { + jobId: 424, + }, + { + jobId: 425, + }, + { + jobId: 426, + }, + { + jobId: 427, + }, + { + jobId: 428, + }, + { + jobId: 429, + }, + { + jobId: 430, + }, + { + jobId: 431, + }, + { + jobId: 432, + }, + { + jobId: 433, + }, + { + jobId: 434, + }, + { + jobId: 435, + }, + { + jobId: 436, + }, + { + jobId: 437, + }, + { + jobId: 438, + }, + { + jobId: 439, + }, + { + jobId: 440, + }, + { + jobId: 441, + }, + { + jobId: 442, + }, + { + jobId: 443, + }, + { + jobId: 444, + }, + { + jobId: 445, + }, + { + jobId: 446, + }, + { + jobId: 447, + }, + { + jobId: 448, + }, + { + jobId: 449, + }, + { + jobId: 450, + }, + ], + batched: true, + statusCode: 200, + destination: DEST_OBJECT, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=1&id=2&id=3&id=4&id=5&id=6&id=7&id=8&id=9&id=10&id=11&id=12&id=13&id=14&id=15&id=16&id=17&id=18&id=19&id=20&id=21&id=22&id=23&id=24&id=25&id=26&id=27&id=28&id=29&id=30&id=31&id=32&id=33&id=34&id=35&id=36&id=37&id=38&id=39&id=40&id=41&id=42&id=43&id=44&id=45&id=46&id=47&id=48&id=49&id=50&id=51&id=52&id=53&id=54&id=55&id=56&id=57&id=58&id=59&id=60&id=61&id=62&id=63&id=64&id=65&id=66&id=67&id=68&id=69&id=70&id=71&id=72&id=73&id=74&id=75&id=76&id=77&id=78&id=79&id=80&id=81&id=82&id=83&id=84&id=85&id=86&id=87&id=88&id=89&id=90&id=91&id=92&id=93&id=94&id=95&id=96&id=97&id=98&id=99&id=100&id=101&id=102&id=103&id=104&id=105&id=106&id=107&id=108&id=109&id=110&id=111&id=112&id=113&id=114&id=115&id=116&id=117&id=118&id=119&id=120&id=121&id=122&id=123&id=124&id=125&id=126&id=127&id=128&id=129&id=130&id=131&id=132&id=133&id=134&id=135&id=136&id=137&id=138&id=139&id=140&id=141&id=142&id=143&id=144&id=145&id=146&id=147&id=148&id=149&id=150&id=151&id=152&id=153&id=154&id=155&id=156&id=157&id=158&id=159&id=160&id=161&id=162&id=163&id=164&id=165&id=166&id=167&id=168&id=169&id=170&id=171&id=172&id=173&id=174&id=175&id=176&id=177&id=178&id=179&id=180&id=181&id=182&id=183&id=184&id=185&id=186&id=187&id=188&id=189&id=190&id=191&id=192&id=193&id=194&id=195&id=196&id=197&id=198&id=199&id=200&id=201&id=202&id=203&id=204&id=205&id=206&id=207&id=208&id=209&id=210&id=211&id=212&id=213&id=214&id=215&id=216&id=217&id=218&id=219&id=220&id=221&id=222&id=223&id=224&id=225&id=226&id=227&id=228&id=229&id=230&id=231&id=232&id=233&id=234&id=235&id=236&id=237&id=238&id=239&id=240&id=241&id=242&id=243&id=244&id=245&id=246&id=247&id=248&id=249&id=250&id=251&id=252&id=253&id=254&id=255&id=256&id=257&id=258&id=259&id=260&id=261&id=262&id=263&id=264&id=265&id=266&id=267&id=268&id=269&id=270&id=271&id=272&id=273&id=274&id=275&id=276&id=277&id=278&id=279&id=280&id=281&id=282&id=283&id=284&id=285&id=286&id=287&id=288&id=289&id=290&id=291&id=292&id=293&id=294&id=295&id=296&id=297&id=298&id=299&id=300', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=301&id=302&id=303&id=304&id=305&id=306&id=307&id=308&id=309&id=310&id=311&id=312&id=313&id=314&id=315&id=316&id=317&id=318&id=319&id=320&id=321&id=322&id=323&id=324&id=325&id=326&id=327&id=328&id=329&id=330&id=331&id=332&id=333&id=334&id=335&id=336&id=337&id=338&id=339&id=340&id=341&id=342&id=343&id=344&id=345&id=346&id=347&id=348&id=349&id=350', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 1, + }, + { + jobId: 2, + }, + { + jobId: 3, + }, + { + jobId: 4, + }, + { + jobId: 5, + }, + { + jobId: 6, + }, + { + jobId: 7, + }, + { + jobId: 8, + }, + { + jobId: 9, + }, + { + jobId: 10, + }, + { + jobId: 11, + }, + { + jobId: 12, + }, + { + jobId: 13, + }, + { + jobId: 14, + }, + { + jobId: 15, + }, + { + jobId: 16, + }, + { + jobId: 17, + }, + { + jobId: 18, + }, + { + jobId: 19, + }, + { + jobId: 20, + }, + { + jobId: 21, + }, + { + jobId: 22, + }, + { + jobId: 23, + }, + { + jobId: 24, + }, + { + jobId: 25, + }, + { + jobId: 26, + }, + { + jobId: 27, + }, + { + jobId: 28, + }, + { + jobId: 29, + }, + { + jobId: 30, + }, + { + jobId: 31, + }, + { + jobId: 32, + }, + { + jobId: 33, + }, + { + jobId: 34, + }, + { + jobId: 35, + }, + { + jobId: 36, + }, + { + jobId: 37, + }, + { + jobId: 38, + }, + { + jobId: 39, + }, + { + jobId: 40, + }, + { + jobId: 41, + }, + { + jobId: 42, + }, + { + jobId: 43, + }, + { + jobId: 44, + }, + { + jobId: 45, + }, + { + jobId: 46, + }, + { + jobId: 47, + }, + { + jobId: 48, + }, + { + jobId: 49, + }, + { + jobId: 50, + }, + { + jobId: 51, + }, + { + jobId: 52, + }, + { + jobId: 53, + }, + { + jobId: 54, + }, + { + jobId: 55, + }, + { + jobId: 56, + }, + { + jobId: 57, + }, + { + jobId: 58, + }, + { + jobId: 59, + }, + { + jobId: 60, + }, + { + jobId: 61, + }, + { + jobId: 62, + }, + { + jobId: 63, + }, + { + jobId: 64, + }, + { + jobId: 65, + }, + { + jobId: 66, + }, + { + jobId: 67, + }, + { + jobId: 68, + }, + { + jobId: 69, + }, + { + jobId: 70, + }, + { + jobId: 71, + }, + { + jobId: 72, + }, + { + jobId: 73, + }, + { + jobId: 74, + }, + { + jobId: 75, + }, + { + jobId: 76, + }, + { + jobId: 77, + }, + { + jobId: 78, + }, + { + jobId: 79, + }, + { + jobId: 80, + }, + { + jobId: 81, + }, + { + jobId: 82, + }, + { + jobId: 83, + }, + { + jobId: 84, + }, + { + jobId: 85, + }, + { + jobId: 86, + }, + { + jobId: 87, + }, + { + jobId: 88, + }, + { + jobId: 89, + }, + { + jobId: 90, + }, + { + jobId: 91, + }, + { + jobId: 92, + }, + { + jobId: 93, + }, + { + jobId: 94, + }, + { + jobId: 95, + }, + { + jobId: 96, + }, + { + jobId: 97, + }, + { + jobId: 98, + }, + { + jobId: 99, + }, + { + jobId: 100, + }, + { + jobId: 101, + }, + { + jobId: 102, + }, + { + jobId: 103, + }, + { + jobId: 104, + }, + { + jobId: 105, + }, + { + jobId: 106, + }, + { + jobId: 107, + }, + { + jobId: 108, + }, + { + jobId: 109, + }, + { + jobId: 110, + }, + { + jobId: 111, + }, + { + jobId: 112, + }, + { + jobId: 113, + }, + { + jobId: 114, + }, + { + jobId: 115, + }, + { + jobId: 116, + }, + { + jobId: 117, + }, + { + jobId: 118, + }, + { + jobId: 119, + }, + { + jobId: 120, + }, + { + jobId: 121, + }, + { + jobId: 122, + }, + { + jobId: 123, + }, + { + jobId: 124, + }, + { + jobId: 125, + }, + { + jobId: 126, + }, + { + jobId: 127, + }, + { + jobId: 128, + }, + { + jobId: 129, + }, + { + jobId: 130, + }, + { + jobId: 131, + }, + { + jobId: 132, + }, + { + jobId: 133, + }, + { + jobId: 134, + }, + { + jobId: 135, + }, + { + jobId: 136, + }, + { + jobId: 137, + }, + { + jobId: 138, + }, + { + jobId: 139, + }, + { + jobId: 140, + }, + { + jobId: 141, + }, + { + jobId: 142, + }, + { + jobId: 143, + }, + { + jobId: 144, + }, + { + jobId: 145, + }, + { + jobId: 146, + }, + { + jobId: 147, + }, + { + jobId: 148, + }, + { + jobId: 149, + }, + { + jobId: 150, + }, + { + jobId: 151, + }, + { + jobId: 152, + }, + { + jobId: 153, + }, + { + jobId: 154, + }, + { + jobId: 155, + }, + { + jobId: 156, + }, + { + jobId: 157, + }, + { + jobId: 158, + }, + { + jobId: 159, + }, + { + jobId: 160, + }, + { + jobId: 161, + }, + { + jobId: 162, + }, + { + jobId: 163, + }, + { + jobId: 164, + }, + { + jobId: 165, + }, + { + jobId: 166, + }, + { + jobId: 167, + }, + { + jobId: 168, + }, + { + jobId: 169, + }, + { + jobId: 170, + }, + { + jobId: 171, + }, + { + jobId: 172, + }, + { + jobId: 173, + }, + { + jobId: 174, + }, + { + jobId: 175, + }, + { + jobId: 176, + }, + { + jobId: 177, + }, + { + jobId: 178, + }, + { + jobId: 179, + }, + { + jobId: 180, + }, + { + jobId: 181, + }, + { + jobId: 182, + }, + { + jobId: 183, + }, + { + jobId: 184, + }, + { + jobId: 185, + }, + { + jobId: 186, + }, + { + jobId: 187, + }, + { + jobId: 188, + }, + { + jobId: 189, + }, + { + jobId: 190, + }, + { + jobId: 191, + }, + { + jobId: 192, + }, + { + jobId: 193, + }, + { + jobId: 194, + }, + { + jobId: 195, + }, + { + jobId: 196, + }, + { + jobId: 197, + }, + { + jobId: 198, + }, + { + jobId: 199, + }, + { + jobId: 200, + }, + { + jobId: 201, + }, + { + jobId: 202, + }, + { + jobId: 203, + }, + { + jobId: 204, + }, + { + jobId: 205, + }, + { + jobId: 206, + }, + { + jobId: 207, + }, + { + jobId: 208, + }, + { + jobId: 209, + }, + { + jobId: 210, + }, + { + jobId: 211, + }, + { + jobId: 212, + }, + { + jobId: 213, + }, + { + jobId: 214, + }, + { + jobId: 215, + }, + { + jobId: 216, + }, + { + jobId: 217, + }, + { + jobId: 218, + }, + { + jobId: 219, + }, + { + jobId: 220, + }, + { + jobId: 221, + }, + { + jobId: 222, + }, + { + jobId: 223, + }, + { + jobId: 224, + }, + { + jobId: 225, + }, + { + jobId: 226, + }, + { + jobId: 227, + }, + { + jobId: 228, + }, + { + jobId: 229, + }, + { + jobId: 230, + }, + { + jobId: 231, + }, + { + jobId: 232, + }, + { + jobId: 233, + }, + { + jobId: 234, + }, + { + jobId: 235, + }, + { + jobId: 236, + }, + { + jobId: 237, + }, + { + jobId: 238, + }, + { + jobId: 239, + }, + { + jobId: 240, + }, + { + jobId: 241, + }, + { + jobId: 242, + }, + { + jobId: 243, + }, + { + jobId: 244, + }, + { + jobId: 245, + }, + { + jobId: 246, + }, + { + jobId: 247, + }, + { + jobId: 248, + }, + { + jobId: 249, + }, + { + jobId: 250, + }, + { + jobId: 251, + }, + { + jobId: 252, + }, + { + jobId: 253, + }, + { + jobId: 254, + }, + { + jobId: 255, + }, + { + jobId: 256, + }, + { + jobId: 257, + }, + { + jobId: 258, + }, + { + jobId: 259, + }, + { + jobId: 260, + }, + { + jobId: 261, + }, + { + jobId: 262, + }, + { + jobId: 263, + }, + { + jobId: 264, + }, + { + jobId: 265, + }, + { + jobId: 266, + }, + { + jobId: 267, + }, + { + jobId: 268, + }, + { + jobId: 269, + }, + { + jobId: 270, + }, + { + jobId: 271, + }, + { + jobId: 272, + }, + { + jobId: 273, + }, + { + jobId: 274, + }, + { + jobId: 275, + }, + { + jobId: 276, + }, + { + jobId: 277, + }, + { + jobId: 278, + }, + { + jobId: 279, + }, + { + jobId: 280, + }, + { + jobId: 281, + }, + { + jobId: 282, + }, + { + jobId: 283, + }, + { + jobId: 284, + }, + { + jobId: 285, + }, + { + jobId: 286, + }, + { + jobId: 287, + }, + { + jobId: 288, + }, + { + jobId: 289, + }, + { + jobId: 290, + }, + { + jobId: 291, + }, + { + jobId: 292, + }, + { + jobId: 293, + }, + { + jobId: 294, + }, + { + jobId: 295, + }, + { + jobId: 296, + }, + { + jobId: 297, + }, + { + jobId: 298, + }, + { + jobId: 299, + }, + { + jobId: 300, + }, + { + jobId: 301, + }, + { + jobId: 302, + }, + { + jobId: 303, + }, + { + jobId: 304, + }, + { + jobId: 305, + }, + { + jobId: 306, + }, + { + jobId: 307, + }, + { + jobId: 308, + }, + { + jobId: 309, + }, + { + jobId: 310, + }, + { + jobId: 311, + }, + { + jobId: 312, + }, + { + jobId: 313, + }, + { + jobId: 314, + }, + { + jobId: 315, + }, + { + jobId: 316, + }, + { + jobId: 317, + }, + { + jobId: 318, + }, + { + jobId: 319, + }, + { + jobId: 320, + }, + { + jobId: 321, + }, + { + jobId: 322, + }, + { + jobId: 323, + }, + { + jobId: 324, + }, + { + jobId: 325, + }, + { + jobId: 326, + }, + { + jobId: 327, + }, + { + jobId: 328, + }, + { + jobId: 329, + }, + { + jobId: 330, + }, + { + jobId: 331, + }, + { + jobId: 332, + }, + { + jobId: 333, + }, + { + jobId: 334, + }, + { + jobId: 335, + }, + { + jobId: 336, + }, + { + jobId: 337, + }, + { + jobId: 338, + }, + { + jobId: 339, + }, + { + jobId: 340, + }, + { + jobId: 341, + }, + { + jobId: 342, + }, + { + jobId: 343, + }, + { + jobId: 344, + }, + { + jobId: 345, + }, + { + jobId: 346, + }, + { + jobId: 347, + }, + { + jobId: 348, + }, + { + jobId: 349, + }, + { + jobId: 350, + }, + ], + batched: true, + statusCode: 200, + destination: DEST_OBJECT, + }, +]; + +const mixedBatchOutput = [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=911&id=912&id=913&id=914&id=915&id=916&id=917&id=918&id=919&id=920', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 911, + }, + { + jobId: 912, + }, + { + jobId: 913, + }, + { + jobId: 914, + }, + { + jobId: 915, + }, + { + jobId: 916, + }, + { + jobId: 917, + }, + { + jobId: 918, + }, + { + jobId: 919, + }, + { + jobId: 920, + }, + ], + batched: true, + statusCode: 200, + destination: DEST_OBJECT, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=901&id=902&id=903&id=904&id=905&id=906&id=907&id=908&id=909&id=910', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 901, + }, + { + jobId: 902, + }, + { + jobId: 903, + }, + { + jobId: 904, + }, + { + jobId: 905, + }, + { + jobId: 906, + }, + { + jobId: 907, + }, + { + jobId: 908, + }, + { + jobId: 909, + }, + { + jobId: 910, + }, + ], + batched: true, + statusCode: 200, + destination: DEST_OBJECT, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=704&id=705&id=706', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=501&id=502&id=503', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo', + DestinationDefinition: DEST_DEFINITION, + Config: DEST_CONFIG, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=0&id=1&id=2&id=3&id=4&id=5&id=6&id=7&id=8&id=9&id=10&id=11&id=12&id=13&id=14&id=15&id=16&id=17&id=18&id=19&id=20&id=21&id=22&id=23&id=24&id=25&id=26&id=27&id=28&id=29&id=30&id=31&id=32&id=33&id=34&id=35&id=36&id=37&id=38&id=39&id=40&id=41&id=42&id=43&id=44&id=45&id=46&id=47&id=48&id=49&id=50&id=51&id=52&id=53&id=54&id=55&id=56&id=57&id=58&id=59&id=60&id=61&id=62&id=63&id=64&id=65&id=66&id=67&id=68&id=69&id=70&id=71&id=72&id=73&id=74&id=75&id=76&id=77&id=78&id=79&id=80&id=81&id=82&id=83&id=84&id=85&id=86&id=87&id=88&id=89&id=90&id=91&id=92&id=93&id=94&id=95&id=96&id=97&id=98&id=99&id=100&id=101&id=102&id=103&id=104&id=105&id=106&id=107&id=108&id=109&id=110&id=111&id=112&id=113&id=114&id=115&id=116&id=117&id=118&id=119&id=120&id=121&id=122&id=123&id=124&id=125&id=126&id=127&id=128&id=129&id=130&id=131&id=132&id=133&id=134&id=135&id=136&id=137&id=138&id=139&id=140&id=141&id=142&id=143&id=144&id=145&id=146&id=147&id=148&id=149&id=150&id=151&id=152&id=153&id=154&id=155&id=156&id=157&id=158&id=159&id=160&id=161&id=162&id=163&id=164&id=165&id=166&id=167&id=168&id=169&id=170&id=171&id=172&id=173&id=174&id=175&id=176&id=177&id=178&id=179&id=180&id=181&id=182&id=183&id=184&id=185&id=186&id=187&id=188&id=189&id=190&id=191&id=192&id=193&id=194&id=195&id=196&id=197&id=198&id=199&id=200&id=201&id=202&id=203&id=204&id=205&id=206&id=207&id=208&id=209&id=210&id=211&id=212&id=213&id=214&id=215&id=216&id=217&id=218&id=219&id=220&id=221&id=222&id=223&id=224&id=225&id=226&id=227&id=228&id=229&id=230&id=231&id=232&id=233&id=234&id=235&id=236&id=237&id=238&id=239&id=240&id=241&id=242&id=243&id=244&id=245&id=246&id=247&id=248&id=249&id=250&id=251&id=252&id=253&id=254&id=255&id=256&id=257&id=258&id=259&id=260&id=261&id=262&id=263&id=264&id=265&id=266&id=267&id=268&id=269&id=270&id=271&id=272&id=273&id=274&id=275&id=276&id=277&id=278&id=279&id=280&id=281&id=282&id=283&id=284&id=285&id=286&id=287&id=288&id=289&id=290&id=291&id=292&id=293&id=294&id=295&id=296&id=297&id=298&id=299', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=300&id=301&id=302&id=303&id=304&id=305&id=306&id=307&id=308&id=309&id=310&id=311&id=312&id=313&id=314&id=315&id=316&id=317&id=318&id=319&id=320&id=321&id=322&id=323&id=324&id=325&id=326&id=327&id=328&id=329&id=330&id=331&id=332&id=333&id=334&id=335&id=336&id=337&id=338&id=339&id=340&id=341&id=342&id=343&id=344&id=345&id=346&id=347&id=348&id=349&id=350', + headers: { + Authorization: TOKEN, + 'Content-Type': CONTENT_TYPE, + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo', + DestinationDefinition: DEST_DEFINITION, + Config: DEST_CONFIG, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, +]; + +const recordEventGenerator = (id, action, externalId) => { + // this function is used to generate record events for testing + const testRecordEvent = { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: DEST_DEFINITION, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'record', + action, + fields: { + id, + }, + channel: 'sources', + context: { + sources: MESSAGE_SOURCES_CONTEXT, + externalId: [ + { + type: EXTERNAL_ID, + id: externalId, + }, + ], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { + jobId: id, + }, + }; + return testRecordEvent; +}; + +module.exports = { + recordInputs, + audiencelistInputs, + reqMetadata, + recordOutput, + largeRecordOutput, + mixedBatchOutput, + recordEventGenerator, +}; diff --git a/src/v0/destinations/marketo_static_list/transform.js b/src/v0/destinations/marketo_static_list/transform.js index 856947c33c..294e34f91b 100644 --- a/src/v0/destinations/marketo_static_list/transform.js +++ b/src/v0/destinations/marketo_static_list/transform.js @@ -5,6 +5,7 @@ const { defaultPostRequestConfig, defaultDeleteRequestConfig, generateErrorObject, + simpleProcessRouterDest, } = require('../../util'); const { AUTH_CACHE_TTL, JSON_MIME_TYPE } = require('../../util/constant'); const { getIds, validateMessageType } = require('./util'); @@ -12,11 +13,11 @@ const { getDestinationExternalID, defaultRequestConfig, getErrorRespEvents, - simpleProcessRouterDest, } = require('../../util'); const { formatConfig, MAX_LEAD_IDS_SIZE } = require('./config'); const Cache = require('../../util/cache'); const { getAuthToken } = require('../marketo/transform'); +const { processRecordInputs } = require('./transformV2'); const authCache = new Cache(AUTH_CACHE_TTL); // 1 hr @@ -57,8 +58,8 @@ const batchResponseBuilder = (message, Config, token, leadIds, operation) => { return response; }; -const processEvent = (input) => { - const { token, message, destination } = input; +const processEvent = (event) => { + const { token, message, destination } = event; const { Config } = destination; validateMessageType(message, ['audiencelist']); const response = []; @@ -70,77 +71,92 @@ const processEvent = (input) => { if (message.properties?.listData?.remove) { toRemove = getIds(message.properties.listData.remove); } - if ( - (Array.isArray(toAdd) && toAdd.length > 0) || - (Array.isArray(toRemove) && toRemove.length > 0) - ) { - if (Array.isArray(toAdd) && toAdd.length > 0) { - const payload = batchResponseBuilder(message, Config, token, toAdd, 'add'); - if (payload) { - response.push(...payload); - } + if (Array.isArray(toRemove) && toRemove.length > 0) { + const payload = batchResponseBuilder(message, Config, token, toRemove, 'remove'); + if (payload) { + response.push(...payload); } - if (Array.isArray(toRemove) && toRemove.length > 0) { - const payload = batchResponseBuilder(message, Config, token, toRemove, 'remove'); - if (payload) { - response.push(...payload); - } + } + if (Array.isArray(toAdd) && toAdd.length > 0) { + const payload = batchResponseBuilder(message, Config, token, toAdd, 'add'); + if (payload) { + response.push(...payload); } - } else { + } + if (response.length === 0) { throw new InstrumentationError( 'Invalid leadIds format or no leadIds found neither to add nor to remove', ); } return response; }; -const process = async (event) => { - const token = await getAuthToken(formatConfig(event.destination)); +// eslint-disable-next-line @typescript-eslint/no-unused-vars +const process = async (event, _processParams) => { + const token = await getAuthToken(formatConfig(event.destination)); if (!token) { throw new UnauthorizedError('Authorization failed'); } - const response = processEvent({ ...event, token }); + const updatedEvent = { ...event, token }; + const response = processEvent(updatedEvent); return response; }; const processRouterDest = async (inputs, reqMetadata) => { // Token needs to be generated for marketo which will be done on input level. // If destination information is not present Error should be thrown - let token; + + const { destination } = inputs[0]; try { - token = await getAuthToken(formatConfig(inputs[0].destination)); + const token = await getAuthToken(formatConfig(destination)); if (!token) { - const errResp = { - status: 400, - message: 'Authorisation failed', - responseTransformFailure: true, - statTags: {}, - }; - const respEvents = getErrorRespEvents( - inputs.map((input) => input.metadata), - errResp.status, - errResp.message, - errResp.statTags, - ); - return [{ ...respEvents, destination: inputs?.[0]?.destination }]; + throw new UnauthorizedError('Could not retrieve authorisation token'); } } catch (error) { - // Not using handleRtTfSingleEventError here as this is for multiple events - const errObj = generateErrorObject(error); - const respEvents = getErrorRespEvents( - inputs.map((input) => input.metadata), - errObj.status, - errObj.message, - errObj.statTags, + const errorObj = generateErrorObject(error); + const errResponses = inputs.map((input) => + getErrorRespEvents(input.metadata, errorObj.status, errorObj.message, errorObj.statTags), ); - return [{ ...respEvents, destination: inputs?.[0]?.destination }]; + + return errResponses; } - // Checking previous status Code. Initially setting to false. - // If true then previous status is 500 and every subsequent event output should be - // sent with status code 500 to the router to be retried. - const tokenisedInputs = inputs.map((input) => ({ ...input, token })); - const respList = await simpleProcessRouterDest(tokenisedInputs, processEvent, reqMetadata); + // use lodash.groupby to group the inputs based on message type + const transformedRecordEvent = []; + let transformedAudienceEvent = []; + const groupedInputs = lodash.groupBy(inputs, (input) => input.message.type?.toLowerCase()); + + const respList = []; + // process record events + if (groupedInputs.record) { + const groupedRecordInputs = groupedInputs.record; + const { staticListId } = destination.Config; + const externalIdGroupedRecordInputs = lodash.groupBy( + groupedRecordInputs, + (input) => getDestinationExternalID(input.message, 'marketoStaticListId') || staticListId, + ); + const alltransformedGroupedRecordEvent = await Promise.all( + Object.keys(externalIdGroupedRecordInputs).map(async (key) => { + const transformedGroupedRecordEvent = await processRecordInputs( + externalIdGroupedRecordInputs[key], + destination, + key, + ); + return transformedGroupedRecordEvent; + }), + ); + + transformedRecordEvent.push(...alltransformedGroupedRecordEvent.flat()); + } + // process audiencelist events + if (groupedInputs.audiencelist) { + transformedAudienceEvent = await simpleProcessRouterDest( + groupedInputs.audiencelist, + process, + reqMetadata, + ); + } + respList.push(...transformedRecordEvent, ...transformedAudienceEvent); return respList; }; @@ -152,16 +168,20 @@ const processRouterDest = async (inputs, reqMetadata) => { function processMetadataForRouter(output) { const { metadata, destination } = output; const clonedMetadata = cloneDeep(metadata); - clonedMetadata.forEach((metadataElement) => { - // eslint-disable-next-line no-param-reassign - metadataElement.destInfo = { authKey: destination.ID }; - }); + if (Array.isArray(clonedMetadata)) { + clonedMetadata.forEach((metadataElement) => { + // eslint-disable-next-line no-param-reassign + metadataElement.destInfo = { authKey: destination?.ID }; + }); + } return clonedMetadata; } module.exports = { process, + processEvent, processRouterDest, processMetadataForRouter, authCache, + batchResponseBuilder, }; diff --git a/src/v0/destinations/marketo_static_list/transform.test.js b/src/v0/destinations/marketo_static_list/transform.test.js new file mode 100644 index 0000000000..3c387c4295 --- /dev/null +++ b/src/v0/destinations/marketo_static_list/transform.test.js @@ -0,0 +1,138 @@ +const { processRouterDest } = require('./transform'); +const axios = require('axios'); +const MockAxiosAdapter = require('axios-mock-adapter'); +const { + recordInputs, + audiencelistInputs, + reqMetadata, + recordOutput, + largeRecordOutput, + mixedBatchOutput, + recordEventGenerator, +} = require('./testData/testData'); + +const mockAdapter = new MockAxiosAdapter(axios, { onNoMatch: 'throwException' }); +beforeAll(() => { + mockAdapter + .onGet('https://marketo_acct_id_success.mktorest.com/identity/oauth/token') + .reply(200, { access_token: 'access_token_success' }); +}); +describe('Unit cases covering the router flow for both record and audiencelist event types', () => { + it('Sending a small batch of only record events (4 events)', async () => { + const inputs = recordInputs; + const result = await processRouterDest(inputs, reqMetadata); + + // assert that the result is as expected + expect(result.length).toEqual(3); + expect(result[0].batchedRequest.length).toEqual(1); // 1 batched request for 2 record events + expect(result[1].batchedRequest.length).toEqual(1); // 1 batched request for 1 record events + expect(result[2].batchedRequest.length).toEqual(1); // 1 batched request for 1 record events + expect(result[0].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id001/leads.json?id=1001&id=1003', + ); // 1 api call for 2 leadIds + expect(result[1].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id002/leads.json?id=2001', + ); // 1 api call for 1 leadId + expect(result[2].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id002/leads.json?id=1002', + ); // 1 api call for 1 leadId + expect(result[1].batchedRequest[0].method).toEqual('DELETE'); // DELETE requests are sent first + expect(result[0].metadata.length).toEqual(2); // 2 metadata objects for 2 record events + expect(result[1].metadata.length).toEqual(1); // 1 metadata object for 1 record event + expect(result[2].metadata.length).toEqual(1); // 1 metadata object for 1 record event + expect(result).toEqual(recordOutput); // overall result should be equal to the expected output + }); + + it('Sending a large batch of only record events (450 events: 350 inserts | 100 deletes )', async () => { + const largeRecordInputs = []; + for (let index = 0; index < 350; index++) { + largeRecordInputs.push(recordEventGenerator(index + 1, 'insert', 1122)); + } + for (let index = 350; index < 450; index++) { + largeRecordInputs.push(recordEventGenerator(index + 1, 'delete', 1122)); + } + const result = await processRouterDest(largeRecordInputs, reqMetadata); + + // assert that the result is as expected + /* + Total 3 API calls + 1. 1 API call for 100 DELETE requests + 2. 1 API call for 100 POST requests = limit reached for Marketo, leads split to next API call + 3. 1 API call for 50 POST requests + */ + expect(result.length).toEqual(2); + expect(result[0].batchedRequest.length).toEqual(1); // 1 batched request for 1 record event + expect(result[1].batchedRequest.length).toEqual(2); // 1 batched request for 2 record events + expect(result[0].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=351&id=352&id=353&id=354&id=355&id=356&id=357&id=358&id=359&id=360&id=361&id=362&id=363&id=364&id=365&id=366&id=367&id=368&id=369&id=370&id=371&id=372&id=373&id=374&id=375&id=376&id=377&id=378&id=379&id=380&id=381&id=382&id=383&id=384&id=385&id=386&id=387&id=388&id=389&id=390&id=391&id=392&id=393&id=394&id=395&id=396&id=397&id=398&id=399&id=400&id=401&id=402&id=403&id=404&id=405&id=406&id=407&id=408&id=409&id=410&id=411&id=412&id=413&id=414&id=415&id=416&id=417&id=418&id=419&id=420&id=421&id=422&id=423&id=424&id=425&id=426&id=427&id=428&id=429&id=430&id=431&id=432&id=433&id=434&id=435&id=436&id=437&id=438&id=439&id=440&id=441&id=442&id=443&id=444&id=445&id=446&id=447&id=448&id=449&id=450', + ); + expect(result[1].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=1&id=2&id=3&id=4&id=5&id=6&id=7&id=8&id=9&id=10&id=11&id=12&id=13&id=14&id=15&id=16&id=17&id=18&id=19&id=20&id=21&id=22&id=23&id=24&id=25&id=26&id=27&id=28&id=29&id=30&id=31&id=32&id=33&id=34&id=35&id=36&id=37&id=38&id=39&id=40&id=41&id=42&id=43&id=44&id=45&id=46&id=47&id=48&id=49&id=50&id=51&id=52&id=53&id=54&id=55&id=56&id=57&id=58&id=59&id=60&id=61&id=62&id=63&id=64&id=65&id=66&id=67&id=68&id=69&id=70&id=71&id=72&id=73&id=74&id=75&id=76&id=77&id=78&id=79&id=80&id=81&id=82&id=83&id=84&id=85&id=86&id=87&id=88&id=89&id=90&id=91&id=92&id=93&id=94&id=95&id=96&id=97&id=98&id=99&id=100&id=101&id=102&id=103&id=104&id=105&id=106&id=107&id=108&id=109&id=110&id=111&id=112&id=113&id=114&id=115&id=116&id=117&id=118&id=119&id=120&id=121&id=122&id=123&id=124&id=125&id=126&id=127&id=128&id=129&id=130&id=131&id=132&id=133&id=134&id=135&id=136&id=137&id=138&id=139&id=140&id=141&id=142&id=143&id=144&id=145&id=146&id=147&id=148&id=149&id=150&id=151&id=152&id=153&id=154&id=155&id=156&id=157&id=158&id=159&id=160&id=161&id=162&id=163&id=164&id=165&id=166&id=167&id=168&id=169&id=170&id=171&id=172&id=173&id=174&id=175&id=176&id=177&id=178&id=179&id=180&id=181&id=182&id=183&id=184&id=185&id=186&id=187&id=188&id=189&id=190&id=191&id=192&id=193&id=194&id=195&id=196&id=197&id=198&id=199&id=200&id=201&id=202&id=203&id=204&id=205&id=206&id=207&id=208&id=209&id=210&id=211&id=212&id=213&id=214&id=215&id=216&id=217&id=218&id=219&id=220&id=221&id=222&id=223&id=224&id=225&id=226&id=227&id=228&id=229&id=230&id=231&id=232&id=233&id=234&id=235&id=236&id=237&id=238&id=239&id=240&id=241&id=242&id=243&id=244&id=245&id=246&id=247&id=248&id=249&id=250&id=251&id=252&id=253&id=254&id=255&id=256&id=257&id=258&id=259&id=260&id=261&id=262&id=263&id=264&id=265&id=266&id=267&id=268&id=269&id=270&id=271&id=272&id=273&id=274&id=275&id=276&id=277&id=278&id=279&id=280&id=281&id=282&id=283&id=284&id=285&id=286&id=287&id=288&id=289&id=290&id=291&id=292&id=293&id=294&id=295&id=296&id=297&id=298&id=299&id=300', + ); + expect(result[1].batchedRequest[1].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=301&id=302&id=303&id=304&id=305&id=306&id=307&id=308&id=309&id=310&id=311&id=312&id=313&id=314&id=315&id=316&id=317&id=318&id=319&id=320&id=321&id=322&id=323&id=324&id=325&id=326&id=327&id=328&id=329&id=330&id=331&id=332&id=333&id=334&id=335&id=336&id=337&id=338&id=339&id=340&id=341&id=342&id=343&id=344&id=345&id=346&id=347&id=348&id=349&id=350', + ); + expect(result[0].batchedRequest[0].method).toEqual('DELETE'); // DELETE requests are sent first + expect(result[1].batchedRequest[0].method).toEqual('POST'); + expect(result[1].batchedRequest[1].method).toEqual('POST'); + expect(result[0].metadata.length).toEqual(100); // 100 metadata objects for 100 record events + expect(result[1].metadata.length).toEqual(350); // 350 metadata objects for 350 record events + expect(result).toEqual(largeRecordOutput); // overall result should be equal to the expected output + }); + + it('Sending a mixed batch of record and audiencelist events (22 events: 10 inserts | 10 deletes | 2 audiencelist (⌐■_■) )', async () => { + const mixedBatchInputs = []; + for (let index = 900; index < 910; index++) { + mixedBatchInputs.push(recordEventGenerator(index + 1, 'insert', 1122)); + } + for (let index = 910; index < 920; index++) { + mixedBatchInputs.push(recordEventGenerator(index + 1, 'delete', 1122)); + } + mixedBatchInputs.push(...audiencelistInputs); + const result = await processRouterDest(mixedBatchInputs, reqMetadata); + + // assert that the result is as expected + /* + Total 4 API calls + 1. 1 API call for 10 DELETE requests + 2. 1 API call for 10 POST requests = limit reached for Marketo, leads split to next API call + 3. 1 API call for 2 POST requests + 4. 1 API call for 2 POST requests + */ + expect(result.length).toEqual(4); + expect(result[0].batchedRequest.length).toEqual(1); // 1 batched request for 1 record event + expect(result[1].batchedRequest.length).toEqual(1); // 1 batched request for 1 record event + expect(result[2].batchedRequest.length).toEqual(2); // 1 batched request for 2 audiencelist events + expect(result[3].batchedRequest.length).toEqual(2); // 1 batched request for 2 audiencelist events + expect(result[0].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=911&id=912&id=913&id=914&id=915&id=916&id=917&id=918&id=919&id=920', + ); + expect(result[1].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=901&id=902&id=903&id=904&id=905&id=906&id=907&id=908&id=909&id=910', + ); + expect(result[2].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=704&id=705&id=706', + ); + expect(result[2].batchedRequest[1].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=501&id=502&id=503', + ); + expect(result[3].batchedRequest[0].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=0&id=1&id=2&id=3&id=4&id=5&id=6&id=7&id=8&id=9&id=10&id=11&id=12&id=13&id=14&id=15&id=16&id=17&id=18&id=19&id=20&id=21&id=22&id=23&id=24&id=25&id=26&id=27&id=28&id=29&id=30&id=31&id=32&id=33&id=34&id=35&id=36&id=37&id=38&id=39&id=40&id=41&id=42&id=43&id=44&id=45&id=46&id=47&id=48&id=49&id=50&id=51&id=52&id=53&id=54&id=55&id=56&id=57&id=58&id=59&id=60&id=61&id=62&id=63&id=64&id=65&id=66&id=67&id=68&id=69&id=70&id=71&id=72&id=73&id=74&id=75&id=76&id=77&id=78&id=79&id=80&id=81&id=82&id=83&id=84&id=85&id=86&id=87&id=88&id=89&id=90&id=91&id=92&id=93&id=94&id=95&id=96&id=97&id=98&id=99&id=100&id=101&id=102&id=103&id=104&id=105&id=106&id=107&id=108&id=109&id=110&id=111&id=112&id=113&id=114&id=115&id=116&id=117&id=118&id=119&id=120&id=121&id=122&id=123&id=124&id=125&id=126&id=127&id=128&id=129&id=130&id=131&id=132&id=133&id=134&id=135&id=136&id=137&id=138&id=139&id=140&id=141&id=142&id=143&id=144&id=145&id=146&id=147&id=148&id=149&id=150&id=151&id=152&id=153&id=154&id=155&id=156&id=157&id=158&id=159&id=160&id=161&id=162&id=163&id=164&id=165&id=166&id=167&id=168&id=169&id=170&id=171&id=172&id=173&id=174&id=175&id=176&id=177&id=178&id=179&id=180&id=181&id=182&id=183&id=184&id=185&id=186&id=187&id=188&id=189&id=190&id=191&id=192&id=193&id=194&id=195&id=196&id=197&id=198&id=199&id=200&id=201&id=202&id=203&id=204&id=205&id=206&id=207&id=208&id=209&id=210&id=211&id=212&id=213&id=214&id=215&id=216&id=217&id=218&id=219&id=220&id=221&id=222&id=223&id=224&id=225&id=226&id=227&id=228&id=229&id=230&id=231&id=232&id=233&id=234&id=235&id=236&id=237&id=238&id=239&id=240&id=241&id=242&id=243&id=244&id=245&id=246&id=247&id=248&id=249&id=250&id=251&id=252&id=253&id=254&id=255&id=256&id=257&id=258&id=259&id=260&id=261&id=262&id=263&id=264&id=265&id=266&id=267&id=268&id=269&id=270&id=271&id=272&id=273&id=274&id=275&id=276&id=277&id=278&id=279&id=280&id=281&id=282&id=283&id=284&id=285&id=286&id=287&id=288&id=289&id=290&id=291&id=292&id=293&id=294&id=295&id=296&id=297&id=298&id=299', + ); + expect(result[2].batchedRequest[1].endpoint).toEqual( + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=501&id=502&id=503', + ); + expect(result[0].batchedRequest[0].method).toEqual('DELETE'); // DELETE requests are sent first + expect(result[1].batchedRequest[0].method).toEqual('POST'); + expect(result[1].batchedRequest[0].method).toEqual('POST'); + expect(result[2].batchedRequest[0].method).toEqual('DELETE'); + expect(result[0].metadata.length).toEqual(10); + expect(result[1].metadata.length).toEqual(10); + expect(result[2].metadata.length).toEqual(1); + expect(result[3].metadata.length).toEqual(1); + expect(result).toEqual(mixedBatchOutput); // overall result should be equal to the expected output + }); +}); +afterAll(() => { + mockAdapter.restore(); +}); diff --git a/src/v0/destinations/marketo_static_list/transformV2.js b/src/v0/destinations/marketo_static_list/transformV2.js new file mode 100644 index 0000000000..912d548d09 --- /dev/null +++ b/src/v0/destinations/marketo_static_list/transformV2.js @@ -0,0 +1,143 @@ +const lodash = require('lodash'); +const { InstrumentationError, UnauthorizedError } = require('@rudderstack/integrations-lib'); +const { + defaultPostRequestConfig, + defaultDeleteRequestConfig, + defaultRequestConfig, + getSuccessRespEvents, + isDefinedAndNotNull, + generateErrorObject, + getErrorRespEvents, +} = require('../../util'); +const { JSON_MIME_TYPE } = require('../../util/constant'); +const { MAX_LEAD_IDS_SIZE } = require('./config'); +const { getAuthToken } = require('../marketo/transform'); +const { formatConfig } = require('../marketo/config'); + +/** + * Generates the final response structure to be sent to the destination + * @param {*} endPoint + * @param {*} leadIds + * @param {*} operation + * @param {*} token + * @returns batched response + */ +const responseBuilder = (endPoint, leadIds, operation, token) => { + let updatedEndpoint = endPoint; + if (leadIds.length > 0) { + leadIds.forEach((id) => { + updatedEndpoint = `${updatedEndpoint}id=${id}&`; + }); + } + updatedEndpoint = updatedEndpoint.slice(0, -1); + const response = defaultRequestConfig(); + response.endpoint = updatedEndpoint; + if (operation === 'insert') { + response.method = defaultPostRequestConfig.requestMethod; + } else { + response.method = defaultDeleteRequestConfig.requestMethod; + } + response.headers = { + Authorization: `Bearer ${token}`, + 'Content-Type': JSON_MIME_TYPE, + }; + return response; +}; + +/** + * The function is responsible for building the batched response for a given set of record inputs. + * @param {*} groupedRecordInputs + * @param {*} Config + * @param {*} token + * @param {*} leadIds + * @param {*} operation + * @returns an array of response objects, where each object represents a batched response for a chunk of lead IDs. + */ +const batchResponseBuilder = (listId, Config, token, leadIds, operation) => { + const { accountId } = Config; + const endpoint = `https://${accountId}.mktorest.com/rest/v1/lists/${listId}/leads.json?`; + const response = []; + const leadIdsChunks = lodash.chunk(leadIds, MAX_LEAD_IDS_SIZE); + leadIdsChunks.forEach((ids) => { + response.push(responseBuilder(endpoint, ids, operation, token)); + }); + return response; +}; + +/** + * A function that processes a list of grouped record inputs. + * It iterates through each input and groups the field IDs based on the action. + * @param {*} groupedRecordInputs + * @param {*} destination + * @param {*} listId + * @returns An array containing the batched responses for the insert and delete actions along with the metadata. + */ +async function processRecordInputs(groupedRecordInputs, destination, listId) { + const token = await getAuthToken(formatConfig(destination)); + if (!token) { + throw new UnauthorizedError('Authorization failed'); + } + const { Config } = destination; + + // iterate through each input and group field id based on action + const insertFields = []; + const deleteFields = []; + const successMetadataForInsert = []; + const successMetadataForDelete = []; + const errorMetadata = []; + + groupedRecordInputs.forEach((input) => { + const { fields, action } = input.message; + const fieldId = fields?.id; + if (action === 'insert' && isDefinedAndNotNull(fieldId)) { + insertFields.push(fieldId); + successMetadataForInsert.push(input.metadata); + } else if (action === 'delete' && isDefinedAndNotNull(fieldId)) { + deleteFields.push(fieldId); + successMetadataForDelete.push(input.metadata); + } else { + errorMetadata.push(input.metadata); + } + }); + const deletePayloads = batchResponseBuilder(listId, Config, token, deleteFields, 'delete'); + + const deleteResponse = getSuccessRespEvents( + deletePayloads, + successMetadataForDelete, + destination, + true, + ); + + const insertPayloads = batchResponseBuilder(listId, Config, token, insertFields, 'insert'); + + const insertResponse = getSuccessRespEvents( + insertPayloads, + successMetadataForInsert, + destination, + true, + ); + + const error = new InstrumentationError( + 'Invalid action type or no leadIds found neither to add nor to remove', + ); + const errorObj = generateErrorObject(error); + const errorResponseList = errorMetadata.map((metadata) => + getErrorRespEvents(metadata, errorObj.status, errorObj.message, errorObj.statTags), + ); + const finalResponse = []; + if (deleteResponse.batchedRequest.length > 0) { + finalResponse.push(deleteResponse); + } + if (insertResponse.batchedRequest.length > 0) { + finalResponse.push(insertResponse); + } + if (errorResponseList.length > 0) { + finalResponse.push(...errorResponseList); + } + return finalResponse; + // return [deleteResponse, insertResponse, ...errorResponseList]; +} + +module.exports = { + processRecordInputs, +}; diff --git a/src/v0/destinations/marketo_static_list/util.js b/src/v0/destinations/marketo_static_list/util.js index 3db6180d24..c6959cb256 100644 --- a/src/v0/destinations/marketo_static_list/util.js +++ b/src/v0/destinations/marketo_static_list/util.js @@ -1,3 +1,4 @@ +/* eslint-disable unicorn/consistent-destructuring */ const { InstrumentationError } = require('@rudderstack/integrations-lib'); /** diff --git a/src/v0/destinations/moengage/transform.js b/src/v0/destinations/moengage/transform.js index ea7db24406..8a16d9c7a7 100644 --- a/src/v0/destinations/moengage/transform.js +++ b/src/v0/destinations/moengage/transform.js @@ -119,7 +119,7 @@ const processEvent = (message, destination) => { response = responseBuilderSimple(message, category, destination); // only if device information is present device info will be added/updated // with an identify call otherwise only user info will be added/updated - if (message.context.device && message.context.device.type && message.context.device.token) { + if (message?.context?.device?.type && message?.context?.device?.token) { // build the response response = [ // user api payload (output for identify) diff --git a/src/v0/destinations/monday/util.js b/src/v0/destinations/monday/util.js index a66dd63dff..736f0133fd 100644 --- a/src/v0/destinations/monday/util.js +++ b/src/v0/destinations/monday/util.js @@ -194,6 +194,7 @@ const getBoardDetails = async (url, boardID, apiToken) => { { destType: 'monday', feature: 'transformation', + endpointPath: '/v2', }, ); const boardDetailsResponse = processAxiosResponse(clientResponse); diff --git a/src/v0/destinations/mp/config.js b/src/v0/destinations/mp/config.js index d19a005d43..3abdf2eebb 100644 --- a/src/v0/destinations/mp/config.js +++ b/src/v0/destinations/mp/config.js @@ -11,6 +11,9 @@ const ConfigCategory = { IDENTIFY: { name: 'MPIdentifyConfig', }, + SET_ONCE: { + name: 'MPSetOnceConfig', + }, PROFILE_ANDROID: { name: 'MPProfilePropertiesAndroid', }, diff --git a/src/v0/destinations/mp/data/MPSetOnceConfig.json b/src/v0/destinations/mp/data/MPSetOnceConfig.json new file mode 100644 index 0000000000..e5aaf851a3 --- /dev/null +++ b/src/v0/destinations/mp/data/MPSetOnceConfig.json @@ -0,0 +1,122 @@ +[ + { + "destKey": "$created", + "sourceKeys": "createdAt", + "required": false + }, + { + "destKey": "$email", + "sourceKeys": "email", + "required": false + }, + { + "destKey": "$first_name", + "sourceKeys": ["firstName", "firstname", "first_name"], + "required": false + }, + { + "destKey": "$last_name", + "sourceKeys": ["lastName", "lastname", "last_name"], + "required": false + }, + { + "destKey": "$name", + "sourceKeys": "name", + "required": false + }, + { + "destKey": "$username", + "sourceKeys": ["username", "userName"], + "required": false + }, + { + "destKey": "$phone", + "sourceKeys": "phone", + "required": false + }, + { + "destKey": "$avatar", + "sourceKeys": "avatar", + "required": false + }, + { + "destKey": "$country_code", + "sourceKeys": ["country", "address.country"], + "required": false + }, + { + "destKey": "$city", + "sourceKeys": ["city", "address.city"], + "required": false + }, + { + "destKey": "$region", + "sourceKeys": ["state", "address.state", "location.region"], + "required": false + }, + { + "destKey": "$unsubscribed", + "sourceKeys": "unsubscribed", + "required": false + }, + { + "destKey": "$geo_source", + "sourceKeys": "location.geoSource", + "required": false + }, + { + "destKey": "$timezone", + "sourceKeys": "location.timezone", + "required": false + }, + { + "destKey": "$latitude", + "sourceKeys": "location.latitude", + "required": false + }, + { + "destKey": "$longitude", + "sourceKeys": "location.longitude", + "required": false + }, + { + "destKey": "$carrier", + "sourceKeys": "network.carrier", + "required": false + }, + { + "destKey": "$manufacturer", + "sourceKeys": "device.manufacturer", + "required": false + }, + { + "destKey": "$model", + "sourceKeys": "device.model", + "required": false + }, + { + "destKey": "$screen_height", + "sourceKeys": "screen.height", + "required": false + }, + { + "destKey": "$screen_width", + "sourceKeys": "screen.width", + "required": false + }, + { + "destKey": "$wifi", + "sourceKeys": "network.wifi", + "required": false + }, + { + "destKey": "$initial_referrer", + "sourceKeys": "page.initial_referrer", + "required": false + }, + { + "destKey": "$initial_referring_domain", + "sourceKeys": ["page.initial_referring_domain", "page.initialReferringDomain"], + "required": false + } +] diff --git a/src/v0/destinations/mp/transform.js b/src/v0/destinations/mp/transform.js index 2ca36cfb8a..1badd4cf43 100644 --- a/src/v0/destinations/mp/transform.js +++ b/src/v0/destinations/mp/transform.js @@ -17,6 +17,7 @@ const { checkInvalidRtTfEvents, handleRtTfSingleEventError, groupEventsByType, + parseConfigArray, } = require('../../util'); const { ConfigCategory, @@ -34,6 +35,7 @@ const { combineBatchRequestsWithSameJobIds, groupEventsByEndpoint, batchEvents, + trimTraits, } = require('./util'); const { CommonUtils } = require('../../../util/common'); @@ -213,17 +215,51 @@ const processTrack = (message, destination) => { return returnValue; }; +const createSetOnceResponse = (message, type, destination, setOnce) => { + const payload = { + $set_once: setOnce, + $token: destination.Config.token, + $distinct_id: message.userId || message.anonymousId, + }; + + if (destination?.Config.identityMergeApi === 'simplified') { + payload.$distinct_id = message.userId || `$device:${message.anonymousId}`; + } + + return responseBuilderSimple(payload, message, type, destination.Config); +}; + const processIdentifyEvents = async (message, type, destination) => { + const messageClone = { ...message }; + let seggregatedTraits = {}; const returnValue = []; + let setOnceProperties = []; + + // making payload for set_once properties + if (destination.Config.setOnceProperties && destination.Config.setOnceProperties.length > 0) { + setOnceProperties = parseConfigArray(destination.Config.setOnceProperties, 'property'); + seggregatedTraits = trimTraits( + messageClone.traits, + messageClone.context.traits, + setOnceProperties, + ); + messageClone.traits = seggregatedTraits.traits; + messageClone.context.traits = seggregatedTraits.contextTraits; + if (Object.keys(seggregatedTraits.setOnce).length > 0) { + returnValue.push( + createSetOnceResponse(messageClone, type, destination, seggregatedTraits.setOnce), + ); + } + } // Creating the user profile // https://developer.mixpanel.com/reference/profile-set - returnValue.push(createIdentifyResponse(message, type, destination, responseBuilderSimple)); + returnValue.push(createIdentifyResponse(messageClone, type, destination, responseBuilderSimple)); if ( destination.Config?.identityMergeApi !== 'simplified' && - message.userId && - message.anonymousId && + messageClone.userId && + messageClone.anonymousId && isImportAuthCredentialsAvailable(destination) ) { // If userId and anonymousId both are present and required credentials for /import @@ -232,13 +268,13 @@ const processIdentifyEvents = async (message, type, destination) => { const trackPayload = { event: '$merge', properties: { - $distinct_ids: [message.userId, message.anonymousId], + $distinct_ids: [messageClone.userId, messageClone.anonymousId], token: destination.Config.token, }, }; const identifyTrackResponse = responseBuilderSimple( trackPayload, - message, + messageClone, 'merge', destination.Config, ); @@ -392,7 +428,9 @@ const processSingleMessage = (message, destination) => { return processIdentifyEvents(clonedMessage, clonedMessage.type, destination); case EventType.ALIAS: if (destination.Config?.identityMergeApi === 'simplified') { - throw new InstrumentationError('Alias call is deprecated in `Simplified ID merge`'); + throw new InstrumentationError( + 'The use of the alias call in the context of the `Simplified ID merge` feature is not supported anymore.', + ); } return processAliasEvents(message, message.type, destination); case EventType.GROUP: @@ -427,7 +465,6 @@ const processRouterDest = async (inputs, reqMetadata) => { destination: event.destination, }; } - let processedEvents = await process(event); processedEvents = CommonUtils.toArray(processedEvents); return processedEvents.map((res) => ({ diff --git a/src/v0/destinations/mp/util.js b/src/v0/destinations/mp/util.js index 219de34110..cc78c94969 100644 --- a/src/v0/destinations/mp/util.js +++ b/src/v0/destinations/mp/util.js @@ -1,3 +1,4 @@ +const lodash = require('lodash'); const set = require('set-value'); const get = require('get-value'); const { InstrumentationError } = require('@rudderstack/integrations-lib'); @@ -14,6 +15,7 @@ const { defaultBatchRequestConfig, IsGzipSupported, isObject, + isDefinedAndNotNullAndNotEmpty, } = require('../../util'); const { ConfigCategory, @@ -26,6 +28,7 @@ const { CommonUtils } = require('../../../util/common'); const mPIdentifyConfigJson = mappingConfig[ConfigCategory.IDENTIFY.name]; const mPProfileAndroidConfigJson = mappingConfig[ConfigCategory.PROFILE_ANDROID.name]; const mPProfileIosConfigJson = mappingConfig[ConfigCategory.PROFILE_IOS.name]; +const mPSetOnceConfigJson = mappingConfig[ConfigCategory.SET_ONCE.name]; /** * this function has been used to create @@ -320,6 +323,72 @@ const combineBatchRequestsWithSameJobIds = (inputBatches) => { return combineBatches(combineBatches(inputBatches)); }; +/** + * Trims the traits and contextTraits objects based on the setOnceProperties array and returns an object containing the modified traits, contextTraits, and setOnce properties. + * + * @param {object} traits - An object representing the traits. + * @param {object} contextTraits - An object representing the context traits. + * @param {string[]} setOnceProperties - An array of property paths to be considered for the setOnce transformation. + * @returns {object} - An object containing the modified traits, contextTraits, and setOnce properties. + * + * @example + * const traits = { name: 'John', age: 30 }; + * const contextTraits = { country: 'USA', language: 'English', address: { city: 'New York', state: 'NY' }}}; + * const setOnceProperties = ['name', 'country', 'address.city']; + * + * const result = trimTraits(traits, contextTraits, setOnceProperties); + * // Output: { traits: { age: 30 }, contextTraits: { language: 'English' }, setOnce: { $name: 'John', $country_code: 'USA', city: 'New York'} } + */ +function trimTraits(traits, contextTraits, setOnceProperties) { + let sentOnceTransformedPayload; + // Create a copy of the original traits object + const traitsCopy = { ...traits }; + const contextTraitsCopy = { ...contextTraits }; + + // Initialize setOnce object + const setOnceEligible = {}; + + // Step 1: find the k-v pairs of setOnceProperties in traits and contextTraits + + setOnceProperties.forEach((propertyPath) => { + const propName = lodash.last(propertyPath.split('.')); + + const traitsValue = get(traitsCopy, propertyPath); + const contextTraitsValue = get(contextTraitsCopy, propertyPath); + + if (isDefinedAndNotNullAndNotEmpty(traitsValue)) { + setOnceEligible[propName] = traitsValue; + lodash.unset(traitsCopy, propertyPath); + } + if (isDefinedAndNotNullAndNotEmpty(contextTraitsValue)) { + if (!setOnceEligible.hasOwnProperty(propName)) { + setOnceEligible[propName] = contextTraitsValue; + } + lodash.unset(contextTraitsCopy, propertyPath); + } + }); + + if (setOnceEligible && Object.keys(setOnceEligible).length > 0) { + // Step 2: transform properties eligible as per rudderstack declared identify event mapping + // setOnce should have all traits from message.traits and message.context.traits by now + sentOnceTransformedPayload = constructPayload(setOnceEligible, mPSetOnceConfigJson); + + // Step 3: combine the transformed and custom setOnce traits + sentOnceTransformedPayload = extractCustomFields( + setOnceEligible, + sentOnceTransformedPayload, + 'root', + MP_IDENTIFY_EXCLUSION_LIST, + ); + } + + return { + traits: traitsCopy, + contextTraits: contextTraitsCopy, + setOnce: sentOnceTransformedPayload || {}, + }; +} + module.exports = { createIdentifyResponse, isImportAuthCredentialsAvailable, @@ -328,4 +397,5 @@ module.exports = { generateBatchedPayloadForArray, batchEvents, combineBatchRequestsWithSameJobIds, + trimTraits, }; diff --git a/src/v0/destinations/mp/util.test.js b/src/v0/destinations/mp/util.test.js index 2373de9d7a..530208736a 100644 --- a/src/v0/destinations/mp/util.test.js +++ b/src/v0/destinations/mp/util.test.js @@ -4,6 +4,7 @@ const { batchEvents, generateBatchedPayloadForArray, buildUtmParams, + trimTraits, } = require('./util'); const { FEATURE_GZIP_SUPPORT } = require('../../util/constant'); @@ -573,4 +574,96 @@ describe('Mixpanel utils test', () => { }); }); }); + describe('Unit test cases for trimTraits', () => { + // Given a valid traits object and contextTraits object, and a valid setOnceProperties array, the function should return an object containing traits, contextTraits, and setOnce properties. + it('should return an object containing traits, contextTraits, and setOnce properties when given valid inputs', () => { + const traits = { name: 'John', age: 30 }; + const contextTraits = { email: 'john@example.com' }; + const setOnceProperties = ['name', 'email']; + + const result = trimTraits(traits, contextTraits, setOnceProperties); + + expect(result).toEqual({ + traits: { + age: 30, + }, + contextTraits: {}, + setOnce: { $name: 'John', $email: 'john@example.com' }, + }); + }); + + // Given an empty traits object and contextTraits object, and a valid setOnceProperties array, the function should return an object containing empty traits and contextTraits, and an empty setOnce property. + it('should return an object containing empty traits and contextTraits, and an empty setOnce property when given empty traits and contextTraits objects', () => { + const traits = {}; + const contextTraits = {}; + const setOnceProperties = ['name', 'email']; + + const result = trimTraits(traits, contextTraits, setOnceProperties); + + expect(result).toEqual({ + traits: {}, + contextTraits: {}, + setOnce: {}, + }); + }); + + // Given an empty setOnceProperties array, the function should return an object containing the original traits and contextTraits objects, and an empty setOnce property. + it('should return an object containing the original traits and contextTraits objects, and an empty setOnce property when given an empty setOnceProperties array', () => { + const traits = { name: 'John', age: 30 }; + const contextTraits = { email: 'john@example.com' }; + const setOnceProperties = []; + + const result = trimTraits(traits, contextTraits, setOnceProperties); + + expect(result).toEqual({ + traits: { name: 'John', age: 30 }, + contextTraits: { email: 'john@example.com' }, + setOnce: {}, + }); + }); + + // Given a setOnceProperties array containing properties that do not exist in either traits or contextTraits objects, the function should not add the property to the setOnce property. + it('should not add properties to the setOnce property when given setOnceProperties array with non-existent properties', () => { + const traits = { name: 'John', age: 30 }; + const contextTraits = { email: 'john@example.com' }; + const setOnceProperties = ['name', 'email', 'address']; + + const result = trimTraits(traits, contextTraits, setOnceProperties); + + expect(result).toEqual({ + traits: { age: 30 }, + contextTraits: {}, + setOnce: { $name: 'John', $email: 'john@example.com' }, + }); + }); + + // Given a setOnceProperties array containing properties with nested paths that do not exist in either traits or contextTraits objects, the function should not add the property to the setOnce property. + it('should not add properties to the setOnce property when given setOnceProperties array with non-existent nested properties', () => { + const traits = { name: 'John', age: 30, address: 'kolkata' }; + const contextTraits = { email: 'john@example.com' }; + const setOnceProperties = ['name', 'email', 'address.city']; + + const result = trimTraits(traits, contextTraits, setOnceProperties); + + expect(result).toEqual({ + traits: { age: 30, address: 'kolkata' }, + contextTraits: {}, + setOnce: { $name: 'John', $email: 'john@example.com' }, + }); + }); + + it('should add properties to the setOnce property when given setOnceProperties array with existent nested properties', () => { + const traits = { name: 'John', age: 30, address: { city: 'kolkata' }, isAdult: false }; + const contextTraits = { email: 'john@example.com' }; + const setOnceProperties = ['name', 'email', 'address.city']; + + const result = trimTraits(traits, contextTraits, setOnceProperties); + + expect(result).toEqual({ + traits: { age: 30, address: {}, isAdult: false }, + contextTraits: {}, + setOnce: { $name: 'John', $email: 'john@example.com', $city: 'kolkata' }, + }); + }); + }); }); diff --git a/src/v0/destinations/pinterest_tag/utils.js b/src/v0/destinations/pinterest_tag/utils.js index c1493e9dbd..340fba498e 100644 --- a/src/v0/destinations/pinterest_tag/utils.js +++ b/src/v0/destinations/pinterest_tag/utils.js @@ -8,6 +8,7 @@ const { isDefined, getHashFromArrayWithDuplicate, removeUndefinedAndNullValues, + validateEventName, } = require('../../util'); const { COMMON_CONFIGS, CUSTOM_CONFIGS, API_VERSION } = require('./config'); @@ -170,6 +171,7 @@ const deduceTrackScreenEventName = (message, Config) => { if (!trackEventOrScreenName) { throw new InstrumentationError('event_name could not be mapped. Aborting'); } + validateEventName(trackEventOrScreenName); /* Step 1: If the event is not amongst the above list of ecommerce events, will look for diff --git a/src/v0/destinations/reddit/networkHandler.js b/src/v0/destinations/reddit/networkHandler.js new file mode 100644 index 0000000000..836c015859 --- /dev/null +++ b/src/v0/destinations/reddit/networkHandler.js @@ -0,0 +1,50 @@ +const { RetryableError } = require('@rudderstack/integrations-lib'); +const { prepareProxyRequest, proxyRequest } = require('../../../adapters/network'); +const { isHttpStatusSuccess } = require('../../util/index'); +const { REFRESH_TOKEN } = require('../../../adapters/networkhandler/authConstants'); + +const { processAxiosResponse } = require('../../../adapters/utils/networkUtils'); + +const redditRespHandler = (destResponse) => { + const { status, response } = destResponse; + + // to handle the case when authorization-token is invalid + if (status === 401 && response.includes('Authorization Required')) { + throw new RetryableError( + `Request failed due to ${response} 'during reddit response transformation'`, + 500, + destResponse, + REFRESH_TOKEN, + ); + } +}; +const responseHandler = (destinationResponse) => { + const message = `Request Processed Successfully`; + const { status } = destinationResponse; + if (!isHttpStatusSuccess(status)) { + // if error, successfully return status, message and original destination response + redditRespHandler(destinationResponse); + } + const { response } = destinationResponse; + const errorMessage = + response.invalid_events && Array.isArray(response.invalid_events) + ? response?.invalid_events[0]?.error_message + : null; + const destResp = errorMessage || destinationResponse; + // Mostly any error will not have a status of 2xx + return { + status, + message, + destResp, + }; +}; +// eslint-disable-next-line @typescript-eslint/naming-convention +class networkHandler { + constructor() { + this.responseHandler = responseHandler; + this.proxy = proxyRequest; + this.prepareProxy = prepareProxyRequest; + this.processAxiosResponse = processAxiosResponse; + } +} +module.exports = { networkHandler }; diff --git a/src/v0/destinations/salesforce/networkHandler.js b/src/v0/destinations/salesforce/networkHandler.js index 622d2ae731..918084cc89 100644 --- a/src/v0/destinations/salesforce/networkHandler.js +++ b/src/v0/destinations/salesforce/networkHandler.js @@ -1,5 +1,6 @@ const { proxyRequest, prepareProxyRequest } = require('../../../adapters/network'); const { processAxiosResponse } = require('../../../adapters/utils/networkUtils'); +const { LEGACY } = require('./config'); const { salesforceResponseHandler } = require('./utils'); const responseHandler = (destinationResponse, destType) => { @@ -9,6 +10,7 @@ const responseHandler = (destinationResponse, destType) => { destinationResponse, 'during Salesforce Response Handling', destinationResponse?.rudderJobMetadata?.destInfo?.authKey, + LEGACY, ); // else successfully return status as 200, message and original destination response diff --git a/src/v0/destinations/salesforce/utils.js b/src/v0/destinations/salesforce/utils.js index c725ec3b20..96735ecc17 100644 --- a/src/v0/destinations/salesforce/utils.js +++ b/src/v0/destinations/salesforce/utils.js @@ -33,16 +33,21 @@ const salesforceResponseHandler = (destResponse, sourceMessage, authKey, authori const matchErrorCode = (errorCode) => response && Array.isArray(response) && response.some((resp) => resp?.errorCode === errorCode); if (status === 401 && authKey && matchErrorCode('INVALID_SESSION_ID')) { - if (authorizationFlow === LEGACY) { - // checking for invalid/expired token errors and evicting cache in that case - // rudderJobMetadata contains some destination info which is being used to evict the cache - ACCESS_TOKEN_CACHE.del(authKey); + if (authorizationFlow === OAUTH) { + throw new RetryableError( + `${DESTINATION} Request Failed - due to "INVALID_SESSION_ID", (Retryable) ${sourceMessage}`, + 500, + destResponse, + getAuthErrCategoryFromStCode(status), + ); } + // checking for invalid/expired token errors and evicting cache in that case + // rudderJobMetadata contains some destination info which is being used to evict the cache + ACCESS_TOKEN_CACHE.del(authKey); throw new RetryableError( `${DESTINATION} Request Failed - due to "INVALID_SESSION_ID", (Retryable) ${sourceMessage}`, 500, destResponse, - authorizationFlow === LEGACY ? '' : getAuthErrCategoryFromStCode(status), ); } else if (status === 403 && matchErrorCode('REQUEST_LIMIT_EXCEEDED')) { // If the error code is REQUEST_LIMIT_EXCEEDED, you’ve exceeded API request limits in your org. diff --git a/src/v0/destinations/salesforce_oauth/networkHandler.js b/src/v0/destinations/salesforce_oauth/networkHandler.js new file mode 100644 index 0000000000..2bcace31c9 --- /dev/null +++ b/src/v0/destinations/salesforce_oauth/networkHandler.js @@ -0,0 +1,33 @@ +const { proxyRequest, prepareProxyRequest } = require('../../../adapters/network'); +const { processAxiosResponse } = require('../../../adapters/utils/networkUtils'); +const { OAUTH } = require('../salesforce/config'); +const { salesforceResponseHandler } = require('../salesforce/utils'); + +const responseHandler = (destinationResponse, destType) => { + const message = `Request for destination: ${destType} Processed Successfully`; + + salesforceResponseHandler( + destinationResponse, + 'during Salesforce Response Handling', + destinationResponse?.rudderJobMetadata?.destInfo?.authKey, + OAUTH, + ); + + // else successfully return status as 200, message and original destination response + return { + status: 200, + message, + destinationResponse, + }; +}; + +function networkHandler() { + this.responseHandler = responseHandler; + this.proxy = proxyRequest; + this.prepareProxy = prepareProxyRequest; + this.processAxiosResponse = processAxiosResponse; +} + +module.exports = { + networkHandler, +}; diff --git a/src/v0/destinations/sfmc/transform.js b/src/v0/destinations/sfmc/transform.js index 879ca1989a..7623d751f1 100644 --- a/src/v0/destinations/sfmc/transform.js +++ b/src/v0/destinations/sfmc/transform.js @@ -3,6 +3,8 @@ const { NetworkError, ConfigurationError, InstrumentationError, + isDefinedAndNotNull, + isEmpty, } = require('@rudderstack/integrations-lib'); const myAxios = require('../../../util/myAxios'); const { EventType } = require('../../../constants'); @@ -17,7 +19,6 @@ const { flattenJson, toTitleCase, getHashFromArray, - isEmpty, simpleProcessRouterDest, } = require('../../util'); const { @@ -221,10 +222,22 @@ const responseBuilderSimple = async (message, category, destination) => { } if (category.type === 'identify' && createOrUpdateContacts) { - throw new ConfigurationError('Creating or updating contacts is disabled'); + throw new ConfigurationError( + 'Creating or updating contacts is disabled. To enable this feature set "Do Not Create or Update Contacts" to false', + ); } - if (category.type === 'track' && hashMapExternalKey[message.event.toLowerCase()]) { + if (category.type === 'track') { + if (isEmpty(message.event)) { + throw new ConfigurationError('Event name is required for track events'); + } + if (typeof message.event !== 'string') { + throw new ConfigurationError('Event name must be a string'); + } + if (!isDefinedAndNotNull(hashMapExternalKey[message.event.toLowerCase()])) { + throw new ConfigurationError('Event not mapped for this track call'); + } + return responseBuilderForInsertData( message, hashMapExternalKey[message.event.toLowerCase()], @@ -237,7 +250,7 @@ const responseBuilderSimple = async (message, category, destination) => { ); } - throw new ConfigurationError('Event not mapped for this track call'); + throw new ConfigurationError(`Event type '${category.type}' not supported`); }; const processEvent = async (message, destination) => { @@ -274,4 +287,4 @@ const processRouterDest = async (inputs, reqMetadata) => { return respList; }; -module.exports = { process, processRouterDest }; +module.exports = { process, processRouterDest, responseBuilderSimple }; diff --git a/src/v0/destinations/sfmc/transform.test.js b/src/v0/destinations/sfmc/transform.test.js new file mode 100644 index 0000000000..c49c49017c --- /dev/null +++ b/src/v0/destinations/sfmc/transform.test.js @@ -0,0 +1,125 @@ +const { ConfigurationError } = require('@rudderstack/integrations-lib'); +const axios = require('axios'); +const MockAxiosAdapter = require('axios-mock-adapter'); +const { responseBuilderSimple } = require('./transform'); +beforeAll(() => { + const mock = new MockAxiosAdapter(axios); + mock + .onPost('https://yourSubDomain.auth.marketingcloudapis.com/v2/token') + .reply(200, '{"access_token":"yourAuthToken"}'); +}); + +describe('responseBuilderSimple', () => { + const destination = { + Config: { + clientId: 'yourClientId', + clientSecret: 'yourClientSecret', + subDomain: 'yourSubDomain', + createOrUpdateContacts: false, + externalKey: 'yourExternalKey', + eventToExternalKey: [{ from: 'purchase', to: 'purchaseKey' }], + eventToPrimaryKey: [{ from: 'purchase', to: 'primaryKey' }], + eventToUUID: [{ event: 'purchase', uuid: true }], + }, + }; + it('should return an array of two payloads for identify calls when createOrUpdateContacts is false', async () => { + const message = { + type: 'identify', + userId: '12345', + }; + + const category = { + type: 'identify', + name: 'Identify', + }; + + const response = await responseBuilderSimple(message, category, destination); + + expect(response).toHaveLength(2); + expect(response[0]).toHaveProperty('endpoint'); + expect(response[0]).toHaveProperty('method'); + expect(response[0]).toHaveProperty('body.JSON'); + expect(response[0]).toHaveProperty('headers'); + expect(response[1]).toHaveProperty('endpoint'); + expect(response[1]).toHaveProperty('method'); + expect(response[1]).toHaveProperty('body.JSON'); + expect(response[1]).toHaveProperty('headers'); + }); + + // Throws an error when event name is not provided for track calls + it('should throw an error when event name is not provided for track calls', async () => { + const message = { + type: 'track', + }; + + const category = { + type: 'track', + name: 'Track', + }; + + try { + await responseBuilderSimple(message, category, destination); + } catch (e) { + expect(e).toBeInstanceOf(ConfigurationError); + expect(e.message).toBe('Event name is required for track events'); + } + }); + + // Throws an error when event is not mapped for track calls + it('should throw an error when event is not mapped for track calls', async () => { + const message = { + type: 'track', + event: 'unmappedEvent', + }; + + const category = { + type: 'track', + name: 'Track', + }; + try { + await responseBuilderSimple(message, category, destination); + } catch (e) { + expect(e).toBeInstanceOf(ConfigurationError); + expect(e.message).toBe('Event not mapped for this track call'); + } + }); + + // Throws an error when event type is not supported + it('should throw an error when event type is not supported', async () => { + const message = { + type: 'unsupported', + }; + + const category = { + type: 'unsupported', + name: 'Unsupported', + }; + + try { + await responseBuilderSimple(message, category, destination); + } catch (e) { + expect(e).toBeInstanceOf(ConfigurationError); + expect(e.message).toBe("Event type 'unsupported' not supported"); + } + }); + + // Returns a payload for track calls when event is mapped and event name is a string + it('should return a payload for track calls when event is mapped and event name is a string', async () => { + const message = { + type: 'track', + event: 'purchase', + userId: '12345', + }; + + const category = { + type: 'track', + name: 'Track', + }; + + const response = await responseBuilderSimple(message, category, destination); + expect(response).toHaveProperty('endpoint'); + expect(response).toHaveProperty('method'); + expect(response).toHaveProperty('body.JSON'); + expect(response).toHaveProperty('headers'); + }); +}); diff --git a/src/v0/destinations/slack/util.js b/src/v0/destinations/slack/util.js index 658ffe4d37..f5d407018b 100644 --- a/src/v0/destinations/slack/util.js +++ b/src/v0/destinations/slack/util.js @@ -80,12 +80,12 @@ const buildDefaultTraitTemplate = (traitsList, traits, template) => { let generatedStringFromTemplate = template; // build template with whitelisted traits traitsList.forEach((trait) => { - generatedStringFromTemplate += `${trait}: {{${trait}}} `; + generatedStringFromTemplate += `${trait}: {{"${trait}"}} `; }); // else with all traits if (traitsList.length === 0) { Object.keys(traits).forEach((traitKey) => { - generatedStringFromTemplate += `${traitKey}: {{${traitKey}}} `; + generatedStringFromTemplate += `${traitKey}: {{"${traitKey}"}} `; }); } return generatedStringFromTemplate; diff --git a/src/v0/destinations/sprig/deleteUsers.js b/src/v0/destinations/sprig/deleteUsers.js new file mode 100644 index 0000000000..a886bbbafc --- /dev/null +++ b/src/v0/destinations/sprig/deleteUsers.js @@ -0,0 +1,79 @@ +const { NetworkError, ConfigurationError } = require('@rudderstack/integrations-lib'); +const { httpPOST } = require('../../../adapters/network'); +const { + processAxiosResponse, + getDynamicErrorType, +} = require('../../../adapters/utils/networkUtils'); +const { isHttpStatusSuccess } = require('../../util'); +const { executeCommonValidations } = require('../../util/regulation-api'); +const tags = require('../../util/tags'); +const { getUserIdBatches } = require('../../util/deleteUserUtils'); +const { JSON_MIME_TYPE } = require('../../util/constant'); + +/** + * This function will help to delete the users one by one from the userAttributes array. + * @param {*} userAttributes Array of objects with userId, email and phone + * @param {*} config Destination.Config provided in dashboard + * @returns + */ +const userDeletionHandler = async (userAttributes, config) => { + const { apiKey } = config; + + if (!apiKey) { + throw new ConfigurationError('Api Key is required for user deletion'); + } + + const endpoint = 'https://api.sprig.com/v2/purge/visitors'; + const headers = { + Accept: JSON_MIME_TYPE, + 'Content-Type': JSON_MIME_TYPE, + Authorization: `API-Key ${apiKey}`, + }; + /** + * userIdBatches = [[u1,u2,u3,...batchSize],[u1,u2,u3,...batchSize]...] + * Ref doc : https://docs.sprig.com/reference/post-v2-purge-visitors-1 + */ + const userIdBatches = getUserIdBatches(userAttributes, 100); + // Note: we will only get 400 status code when no user deletion is present for given userIds so we will not throw error in that case + // eslint-disable-next-line no-restricted-syntax + for (const curBatch of userIdBatches) { + // eslint-disable-next-line no-await-in-loop + const deletionResponse = await httpPOST( + endpoint, + { + userIds: curBatch, + }, + { + headers, + }, + { + destType: 'sprig', + feature: 'deleteUsers', + endpointPath: 'api.sprig.com/v2/purge/visitors', + }, + ); + const handledDelResponse = processAxiosResponse(deletionResponse); + if (!isHttpStatusSuccess(handledDelResponse.status) && handledDelResponse.status !== 400) { + throw new NetworkError( + 'User deletion request failed', + handledDelResponse.status, + { + [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status), + }, + handledDelResponse, + ); + } + } + + return { + statusCode: 200, + status: 'successful', + }; +}; +const processDeleteUsers = async (event) => { + const { userAttributes, config } = event; + executeCommonValidations(userAttributes); + const resp = await userDeletionHandler(userAttributes, config); + return resp; +}; +module.exports = { processDeleteUsers }; diff --git a/src/v0/destinations/the_trade_desk/networkHandler.js b/src/v0/destinations/the_trade_desk/networkHandler.js new file mode 100644 index 0000000000..ca5ac68be8 --- /dev/null +++ b/src/v0/destinations/the_trade_desk/networkHandler.js @@ -0,0 +1,86 @@ +const { NetworkError, AbortedError, PlatformError } = require('@rudderstack/integrations-lib'); +const { httpSend, prepareProxyRequest } = require('../../../adapters/network'); +const { + processAxiosResponse, + getDynamicErrorType, +} = require('../../../adapters/utils/networkUtils'); +const { getSignatureHeader } = require('../../../cdk/v2/destinations/the_trade_desk/utils'); +const { isHttpStatusSuccess } = require('../../util/index'); +const tags = require('../../util/tags'); +const { JSON_MIME_TYPE } = require('../../util/constant'); + +const proxyRequest = async (request) => { + const { endpoint, data, method, params, headers, config } = prepareProxyRequest(request); + + if (!config?.advertiserSecretKey) { + throw new PlatformError('Advertiser secret key is missing in destination config. Aborting'); + } + + if (!process.env.THE_TRADE_DESK_DATA_PROVIDER_SECRET_KEY) { + throw new PlatformError('Data provider secret key is missing. Aborting'); + } + + const ProxyHeaders = { + ...headers, + TtdSignature: getSignatureHeader(data, config.advertiserSecretKey), + 'TtdSignature-dp': getSignatureHeader( + data, + process.env.THE_TRADE_DESK_DATA_PROVIDER_SECRET_KEY, + ), + 'Content-Type': JSON_MIME_TYPE, + }; + + const requestOptions = { + url: endpoint, + data, + params, + headers: ProxyHeaders, + method, + }; + const response = await httpSend(requestOptions, { feature: 'proxy', destType: 'the_trade_desk' }); + return response; +}; + +const responseHandler = (destinationResponse) => { + const message = 'Request Processed Successfully'; + const { response, status } = destinationResponse; + + // if the response from destination is not a success case build an explicit error + if (!isHttpStatusSuccess(status)) { + throw new NetworkError( + `Request failed with status: ${status} due to ${response}`, + status, + { + [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(status), + }, + destinationResponse, + ); + } + + // Trade desk returns 200 with an error in case of "Failed to parse TDID, DAID, UID2, IDL, EUID, or failed to decrypt UID2Token or EUIDToken" + // https://partner.thetradedesk.com/v3/portal/data/doc/post-data-advertiser-external + // {"FailedLines":[{"ErrorCode":"MissingUserId","Message":"Invalid DAID, item #1"}]} + if ('FailedLines' in response && response.FailedLines.length > 0) { + throw new AbortedError( + `Request failed with status: ${status} due to ${JSON.stringify(response)}`, + 400, + destinationResponse, + ); + } + + // else successfully return status, message and original destination response + // Trade desk returns 200 with empty object '{}' in response if all the events are processed successfully + return { + status, + message, + destinationResponse, + }; +}; + +function networkHandler() { + this.proxy = proxyRequest; + this.processAxiosResponse = processAxiosResponse; + this.prepareProxy = prepareProxyRequest; + this.responseHandler = responseHandler; +} +module.exports = { networkHandler }; diff --git a/src/v0/destinations/tiktok_ads/config.js b/src/v0/destinations/tiktok_ads/config.js index 641b2e0865..61009d4c31 100644 --- a/src/v0/destinations/tiktok_ads/config.js +++ b/src/v0/destinations/tiktok_ads/config.js @@ -9,6 +9,10 @@ const ConfigCategory = { type: 'track', name: 'TikTokTrack', }, + TRACK_V2: { + type: 'track', + name: 'TikTokTrackV2', + }, }; const PARTNER_NAME = 'RudderStack'; @@ -32,12 +36,18 @@ const eventNameMapping = { const mappingConfig = getMappingConfig(ConfigCategory, __dirname); +// tiktok docs for max batch size for events 2.0: https://business-api.tiktok.com/portal/docs?id=1771100779668482 +const maxBatchSizeV2 = 1000; +const trackEndpointV2 = 'https://business-api.tiktok.com/open_api/v1.3/event/track/'; module.exports = { TRACK_ENDPOINT, BATCH_ENDPOINT, MAX_BATCH_SIZE, PARTNER_NAME, trackMapping: mappingConfig[ConfigCategory.TRACK.name], + trackMappingV2: mappingConfig[ConfigCategory.TRACK_V2.name], eventNameMapping, DESTINATION: 'TIKTOK_ADS', + trackEndpointV2, + maxBatchSizeV2, }; diff --git a/src/v0/destinations/tiktok_ads/data/TikTokTrack.json b/src/v0/destinations/tiktok_ads/data/TikTokTrack.json index cc5f4886e0..62688b7952 100644 --- a/src/v0/destinations/tiktok_ads/data/TikTokTrack.json +++ b/src/v0/destinations/tiktok_ads/data/TikTokTrack.json @@ -42,6 +42,22 @@ "type": "toString" } }, + { + "destKey": "properties.shop_id", + "sourceKeys": ["properties.shop_id", "properties.shopId"], + "required": false, + "metadata": { + "type": "toString" + } + }, + { + "destKey": "properties.order_id", + "sourceKeys": ["properties.order_id", "properties.orderId"], + "required": false, + "metadata": { + "type": "toString" + } + }, { "destKey": "properties.content_type", "sourceKeys": ["properties.contentType", "properties.content_type"], diff --git a/src/v0/destinations/tiktok_ads/data/TikTokTrackV2.json b/src/v0/destinations/tiktok_ads/data/TikTokTrackV2.json new file mode 100644 index 0000000000..530d6e392a --- /dev/null +++ b/src/v0/destinations/tiktok_ads/data/TikTokTrackV2.json @@ -0,0 +1,133 @@ +[ + { + "destKey": "event_id", + "sourceKeys": ["properties.eventId", "properties.event_id", "messageId"], + "required": false + }, + { + "destKey": "event_time", + "sourceKeys": "timestamp", + "sourceFromGenericMap": true, + "required": true, + "metadata": { + "type": "secondTimestamp" + } + }, + { + "destKey": "limited_data_use", + "sourceKeys": "properties.limited_data_use", + "required": false + }, + { + "destKey": "properties.contents", + "sourceKeys": "properties.contents", + "required": false + }, + { + "destKey": "properties.content_type", + "sourceKeys": ["properties.contentType", "properties.content_type"], + "metadata": { + "defaultValue": "product" + } + }, + { + "destKey": "properties.shop_id", + "sourceKeys": ["properties.shop_id", "properties.shopId"], + "required": false, + "metadata": { + "type": "toString" + } + }, + { + "destKey": "properties.order_id", + "sourceKeys": ["properties.order_id", "properties.orderId"], + "required": false, + "metadata": { + "type": "toString" + } + }, + { + "destKey": "properties.currency", + "sourceKeys": "properties.currency", + "required": false + }, + { + "destKey": "properties.value", + "sourceKeys": "properties.value", + "required": false + }, + { + "destKey": "properties.description", + "sourceKeys": "properties.description", + "required": false + }, + { + "destKey": "properties.query", + "sourceKeys": "properties.query", + "required": false + }, + { + "destKey": "page.url", + "sourceKeys": ["properties.context.page.url", "properties.url", "context.page.url"], + "required": false + }, + { + "destKey": "page.referrer", + "sourceKeys": [ + "properties.context.page.referrer", + "properties.referrer", + "context.page.referrer" + ], + "required": false + }, + { + "destKey": "user.locale", + "sourceKeys": ["properties.context.user.locale", "context.locale"], + "required": false + }, + { + "destKey": "user.ttclid", + "sourceKeys": "properties.ttclid", + "required": false + }, + { + "destKey": "user.ttp", + "sourceKeys": ["properties.context.user.ttp", "properties.ttp"], + "required": false + }, + { + "destKey": "user.email", + "sourceKeys": [ + "properties.context.user.email", + "context.user.email", + "traits.email", + "context.traits.email", + "properties.email" + ], + "metadata": { + "type": ["trim", "toLower"] + }, + "required": false + }, + { + "destKey": "user.phone", + "sourceKeys": [ + "properties.context.user.phone", + "traits.phone", + "context.traits.phone", + "properties.phone" + ], + "sourceFromGenericMap": false, + "required": false + }, + { + "destKey": "user.ip", + "sourceKeys": ["properties.context.user.ip", "context.ip", "request_ip"], + "required": false + }, + { + "destKey": "user.user_agent", + "sourceKeys": ["properties.context.user.userAgent", "context.userAgent"], + "required": false + } +] diff --git a/src/v0/destinations/tiktok_ads/transform.js b/src/v0/destinations/tiktok_ads/transform.js index f0ed04a120..bdf3a0defe 100644 --- a/src/v0/destinations/tiktok_ads/transform.js +++ b/src/v0/destinations/tiktok_ads/transform.js @@ -21,6 +21,7 @@ const { handleRtTfSingleEventError, batchMultiplexedEvents, } = require('../../util'); +const { process: processV2, processRouterDest: processRouterDestV2 } = require('./transformV2'); const { getContents } = require('./util'); const { trackMapping, @@ -128,7 +129,7 @@ const getTrackResponse = (message, Config, event) => { }; const trackResponseBuilder = async (message, { Config }) => { - const { eventsToStandard } = Config; + const { eventsToStandard, sendCustomEvents } = Config; let event = message.event?.toLowerCase().trim(); if (!event) { @@ -137,7 +138,7 @@ const trackResponseBuilder = async (message, { Config }) => { const standardEventsMap = getHashFromArrayWithDuplicate(eventsToStandard); - if (eventNameMapping[event] === undefined && !standardEventsMap[event]) { + if (!sendCustomEvents && eventNameMapping[event] === undefined && !standardEventsMap[event]) { throw new InstrumentationError( `Event name (${event}) is not valid, must be mapped to one of standard events`, ); @@ -152,17 +153,22 @@ const trackResponseBuilder = async (message, { Config }) => { }); } }); - } else { - event = eventNameMapping[event]; - responseList.push(getTrackResponse(message, Config, event)); + return responseList; } + // Doc https://ads.tiktok.com/help/article/standard-events-parameters?lang=en + // For custom event we do not want to lower case the event or trim it we just want to send those as it is + event = eventNameMapping[event] || message.event; + // if there exists no event mapping we will build payload with custom event recieved + responseList.push(getTrackResponse(message, Config, event)); return responseList; }; const process = async (event) => { const { message, destination } = event; - + if (destination.Config?.version === 'v2') { + return processV2(event); + } if (!destination.Config.accessToken) { throw new ConfigurationError('Access Token not found. Aborting '); } @@ -237,6 +243,11 @@ function getEventChunks(event, trackResponseList, eventsChunk) { } const processRouterDest = async (inputs, reqMetadata) => { + const { destination } = inputs[0]; + const { Config } = destination; + if (Config?.version === 'v2') { + return processRouterDestV2(inputs, reqMetadata); + } const errorRespEvents = checkInvalidRtTfEvents(inputs); if (errorRespEvents.length > 0) { return errorRespEvents; diff --git a/src/v0/destinations/tiktok_ads/transformV2.js b/src/v0/destinations/tiktok_ads/transformV2.js new file mode 100644 index 0000000000..91078dfe65 --- /dev/null +++ b/src/v0/destinations/tiktok_ads/transformV2.js @@ -0,0 +1,738 @@ +/* eslint-disable camelcase */ +/* eslint-disable @typescript-eslint/naming-convention */ +const set = require('set-value'); +const { ConfigurationError, InstrumentationError } = require('@rudderstack/integrations-lib'); +const { EventType } = require('../../../constants'); +const { + constructPayload, + defaultRequestConfig, + defaultPostRequestConfig, + removeUndefinedAndNullValues, + defaultBatchRequestConfig, + getSuccessRespEvents, + isDefinedAndNotNullAndNotEmpty, + getDestinationExternalID, + getHashFromArrayWithDuplicate, + checkInvalidRtTfEvents, + handleRtTfSingleEventError, +} = require('../../util'); +const { getContents, hashUserField } = require('./util'); +const config = require('./config'); + +const { trackMappingV2, trackEndpointV2, eventNameMapping, PARTNER_NAME } = config; +const { JSON_MIME_TYPE } = require('../../util/constant'); + +/** + * Generated track payload for an event using TikTokTrackV2.json config mapping, + * hashing user properties and + * defining contents from products + * @param {*} message + * @param {*} Config + * @param {*} event + * @returns track payload + */ +const getTrackResponsePayload = (message, destConfig, event) => { + const payload = constructPayload(message, trackMappingV2); + + // if contents is not an array converting it into array + if (payload.properties?.contents && !Array.isArray(payload.properties.contents)) { + payload.properties.contents = [payload.properties.contents]; + } + + // if contents is not present but we have properties.products present which has fields with superset of contents fields + if (payload.properties && !payload.properties.contents && message.properties.products) { + // retreiving data from products only when contents is not present + payload.properties.contents = getContents(message, false); + } + + // getting externalId and hashing it and storing it in + const externalId = getDestinationExternalID(message, 'tiktokExternalId'); + if (isDefinedAndNotNullAndNotEmpty(externalId)) { + set(payload, 'user.external_id', externalId); + } + if (destConfig.hashUserProperties && isDefinedAndNotNullAndNotEmpty(payload.user)) { + payload.user = hashUserField(payload.user); + } + payload.event = event; + // add partner name and return payload + return removeUndefinedAndNullValues(payload); +}; + +const trackResponseBuilder = async (message, { Config }) => { + const { eventsToStandard, sendCustomEvents, accessToken, pixelCode } = Config; + + let event = message.event?.toLowerCase().trim(); + if (!event) { + throw new InstrumentationError('Event name is required'); + } + + const standardEventsMap = getHashFromArrayWithDuplicate(eventsToStandard); + + if (!sendCustomEvents && eventNameMapping[event] === undefined && !standardEventsMap[event]) { + throw new InstrumentationError( + `Event name (${event}) is not valid, must be mapped to one of standard events`, + ); + } + const response = defaultRequestConfig(); + response.headers = { + 'Access-Token': accessToken, + 'Content-Type': JSON_MIME_TYPE, + }; + // tiktok doc for request: https://business-api.tiktok.com/portal/docs?id=1771100865818625 + response.method = defaultPostRequestConfig.requestMethod; + response.endpoint = trackEndpointV2; + const responseList = []; + if (standardEventsMap[event]) { + Object.keys(standardEventsMap).forEach((key) => { + if (key === event) { + standardEventsMap[event].forEach((eventName) => { + responseList.push(getTrackResponsePayload(message, Config, eventName)); + }); + } + }); + } else { + /* + For custom event we do not want to lower case the event or trim it we just want to send those as it is + Doc https://ads.tiktok.com/help/article/standard-events-parameters?lang=en + */ + event = eventNameMapping[event] || message.event; + // if there exists no event mapping we will build payload with custom event recieved + responseList.push(getTrackResponsePayload(message, Config, event)); + } + // set event source and event_source_id + response.body.JSON = { + event_source: 'web', + event_source_id: pixelCode, + partner_name: PARTNER_NAME, + test_event_code: message.properties?.testEventCode, + }; + response.body.JSON.data = responseList; + return response; +}; + +const process = async (event) => { + const { message, destination } = event; + + if (!destination.Config.accessToken) { + throw new ConfigurationError('Access Token not found. Aborting'); + } + + if (!destination.Config.pixelCode) { + throw new ConfigurationError('Pixel Code not found. Aborting'); + } + + if (!message.type) { + throw new InstrumentationError('Event type is required'); + } + + const messageType = message.type.toLowerCase(); + + let response; + if (messageType === EventType.TRACK) { + response = await trackResponseBuilder(message, destination); + } else { + throw new InstrumentationError(`Event type ${messageType} is not supported`); + } + return response; +}; + +/** + * it builds batch response for an event using defaultBatchRequestConfig() utility + * @param {*} eventsChunk + * @returns batchedRequest + * + * Example: + * inputEvent: + *{ + event: { + event_source_id: "dummyPixelCode", + event_source: "web", + partner_name: "RudderStack", + data: [ + { + event_id: "1616318632825_357", + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: "socks", + content_id: "1077218", + }, + { + price: 30, + quantity: 1, + content_type: "dress", + content_id: "1197218", + }, + ], + content_type: "product", + currency: "USD", + value: 46, + }, + page: { + url: "http://demo.mywebsite.com/purchase", + referrer: "http://demo.mywebsite.com", + }, + user: { + locale: "en-US", + email: "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", + phone: "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", + ip: "13.57.97.131", + user_agent: "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion", + external_id: "id5", + }, + event: "CompletePayment", + partner_name: "RudderStack", + }, + { + event_id: "1616318632825_357", + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: "socks", + content_id: "1077218", + }, + { + price: 30, + quantity: 1, + content_type: "dress", + content_id: "1197218", + }, + ], + content_type: "product", + currency: "USD", + value: 46, + }, + page: { + url: "http://demo.mywebsite.com/purchase", + }, + user: { + locale: "en-US", + email: "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", + phone: "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", + ip: "13.57.97.131", + user_agent: "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion", + external_id: "id1", + }, + event: "CompletePayment", + partner_name: "RudderStack", + } + ], + }, + metadata: [ + { + jobId: 5, + }, + { + jobId: 1, + } + ], + destination: { + Config: { + accessToken: "dummyAccessToken", + pixelCode: "dummyPixelCode", + hashUserProperties: false, + version: "v2", + }, + }, +} + * returns: + * + { + version: "1", + type: "REST", + method: "POST", + endpoint: "https://business-api.tiktok.com/open_api/v1.3/event/track/", + headers: { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json", + }, + params: { + }, + body: { + JSON: { + event_source_id: "asdfg", + event_source: "web", + partner_name: "RudderStack", + data: [ + { + event_id: "1616318632825_357", + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: "socks", + content_id: "1077218", + }, + { + price: 30, + quantity: 1, + content_type: "dress", + content_id: "1197218", + }, + ], + content_type: "product", + currency: "USD", + value: 46, + }, + page: { + url: "http://demo.mywebsite.com/purchase", + referrer: "http://demo.mywebsite.com", + }, + user: { + locale: "en-US", + email: "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", + phone: "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", + ip: "13.57.97.131", + user_agent: "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion", + external_id: "id5", + }, + event: "CompletePayment", + }, + { + event_id: "1616318632825_357", + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: "socks", + content_id: "1077218", + }, + { + price: 30, + quantity: 1, + content_type: "dress", + content_id: "1197218", + }, + ], + content_type: "product", + currency: "USD", + value: 46, + }, + page: { + url: "http://demo.mywebsite.com/purchase", + }, + user: { + locale: "en-US", + email: "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", + phone: "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", + ip: "13.57.97.131", + user_agent: "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion", + external_id: "id1", + }, + event: "CompletePayment", + } + ], + }, + JSON_ARRAY: { + }, + XML: { + }, + FORM: { + }, + }, + files: { + }, +} + */ +const buildBatchResponseForEvent = (inputEvent) => { + const { destination, event } = inputEvent; + const { accessToken } = destination.Config; + const { batchedRequest } = defaultBatchRequestConfig(); + batchedRequest.body.JSON = event; + batchedRequest.endpoint = trackEndpointV2; + batchedRequest.headers = { + 'Access-Token': accessToken, + 'Content-Type': 'application/json', + }; + return batchedRequest; +}; + +const getEventChunks = (event, trackResponseList, eventsChunk) => { + // only for already transformed payload + // eslint-disable-next-line no-param-reassign + event.message = Array.isArray(event.message) ? event.message : [event.message]; + + // not performing batching for test events as it is not supported + if (event.message[0].body.JSON.test_event_code) { + const { metadata, destination, message } = event; + trackResponseList.push(getSuccessRespEvents(message, [metadata], destination)); + } else { + eventsChunk.push({ ...event }); + } +}; + +/** + * This clubs eventsChunk request body and metadat based upon maxBatchSize + * @param {*} eventsChunk + * @param {*} maxBatchSize + * @returns array of objects as + * { + * event, // Batched Event + * metadata, // metadata of all the requests combined to form above event + * destination, // destination object + * } + * + * Example: + * + * eventsChunk:[ + { + message: [ + { + version: "1", + type: "REST", + method: "POST", + endpoint: "https://business-api.tiktok.com/open_api/v1.3/event/track/", + headers: { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json", + }, + params: { + }, + body: { + JSON: { + event_source: "web", + event_source_id: "pixel_code", + data: [ + { + event_id: "1616318632825_357", + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: "socks", + content_id: "1077218", + }, + { + price: 30, + quantity: 1, + content_type: "dress", + content_id: "1197218", + }, + ], + content_type: "product", + currency: "USD", + value: 46, + }, + page: { + url: "http://demo.mywebsite.com/purchase", + referrer: "http://demo.mywebsite.com", + }, + user: { + locale: "en-US", + email: "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", + phone: "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", + ip: "13.57.97.131", + user_agent: "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion", + external_id: "id5", + }, + event: "CompletePayment", + partner_name: "RudderStack", + }, + ], + }, + JSON_ARRAY: { + }, + XML: { + }, + FORM: { + }, + }, + files: { + }, + }, + ], + metadata: { + jobId: 5, + }, + destination: { + Config: { + accessToken: "dummyAccessToken", + pixelCode: "pixel_code", + hashUserProperties: false, + version: "v2", + }, + }, + }, + { + message: [ + { + version: "1", + type: "REST", + method: "POST", + endpoint: "https://business-api.tiktok.com/open_api/v1.3/event/track/", + headers: { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json", + }, + params: { + }, + body: { + JSON: { + event_source: "web", + event_source_id: "pixel_code", + data: [ + { + event_id: "1616318632825_357", + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: "socks", + content_id: "1077218", + }, + { + price: 30, + quantity: 1, + content_type: "dress", + content_id: "1197218", + }, + ], + content_type: "product", + currency: "USD", + value: 46, + }, + page: { + url: "http://demo.mywebsite.com/purchase", + }, + user: { + locale: "en-US", + email: "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", + phone: "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", + ip: "13.57.97.131", + user_agent: "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion", + external_id: "id1", + }, + event: "CompletePayment", + partner_name: "RudderStack", + }, + ], + }, + JSON_ARRAY: { + }, + XML: { + }, + FORM: { + }, + }, + files: { + }, + }, + ], + metadata: { + jobId: 1, + }, + destination: { + Config: { + accessToken: "dummyAccessToken", + pixelCode: "pixel_code", + hashUserProperties: false, + version: "v2", + }, + }, + } +] + * maxBatchSize = 1000 + +Returns +[ + { + event: { + event_source_id: "dummyPixelCode", + event_source: "web", + partner_name: "RudderStack", + data: [ + { + event_id: "1616318632825_357", + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: "socks", + content_id: "1077218", + }, + { + price: 30, + quantity: 1, + content_type: "dress", + content_id: "1197218", + }, + ], + content_type: "product", + currency: "USD", + value: 46, + }, + page: { + url: "http://demo.mywebsite.com/purchase", + referrer: "http://demo.mywebsite.com", + }, + user: { + locale: "en-US", + email: "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", + phone: "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", + ip: "13.57.97.131", + user_agent: "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion", + external_id: "id5", + }, + event: "CompletePayment", + partner_name: "RudderStack", + }, + { + event_id: "1616318632825_357", + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: "socks", + content_id: "1077218", + }, + { + price: 30, + quantity: 1, + content_type: "dress", + content_id: "1197218", + }, + ], + content_type: "product", + currency: "USD", + value: 46, + }, + page: { + url: "http://demo.mywebsite.com/purchase", + }, + user: { + locale: "en-US", + email: "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", + phone: "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", + ip: "13.57.97.131", + user_agent: "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion", + external_id: "id1", + }, + event: "CompletePayment", + partner_name: "RudderStack", + } + ], + }, + metadata: [ + { + jobId: 5, + }, + { + jobId: 1, + } + ], + destination: { + Config: { + accessToken: "dummyAccessToken", + pixelCode: "dummyPixelCode", + hashUserProperties: false, + version: "v2", + }, + }, + } +] + */ +const batchEvents = (eventsChunk) => { + const events = []; + let data = []; + let metadata = []; + const { destination } = eventsChunk[0]; + const { pixelCode } = destination.Config; + eventsChunk.forEach((event) => { + const eventData = event.message[0]?.body.JSON.data; + // eslint-disable-next-line unicorn/consistent-destructuring + if (Array.isArray(eventData) && eventData?.length > config.maxBatchSizeV2 - data.length) { + // Partner name must be added above "data": [..]; + events.push({ + event: { + event_source_id: pixelCode, + event_source: 'web', + partner_name: PARTNER_NAME, + data: [...data], + }, + metadata: [...metadata], + destination, + }); + data = []; + metadata = []; + } + data.push(...eventData); + metadata.push(event.metadata); + }); + // Partner name must be added above "data": [..]; + events.push({ + event: { + event_source_id: pixelCode, + event_source: 'web', + partner_name: PARTNER_NAME, + data: [...data], + }, + metadata: [...metadata], + destination, + }); + return events; +}; +const processRouterDest = async (inputs, reqMetadata) => { + const errorRespEvents = checkInvalidRtTfEvents(inputs); + if (errorRespEvents.length > 0) { + return errorRespEvents; + } + const trackResponseList = []; // list containing single track event in batched format + const eventsChunk = []; // temporary variable to divide payload into chunks + const errorRespList = []; + await Promise.all( + inputs.map(async (event) => { + try { + if (event.message.statusCode) { + // already transformed event + getEventChunks(event, trackResponseList, eventsChunk); + } else { + // if not transformed + getEventChunks( + { + message: await process(event), + metadata: event.metadata, + destination: event.destination, + }, + trackResponseList, + eventsChunk, + ); + } + } catch (error) { + const errRespEvent = handleRtTfSingleEventError(event, error, reqMetadata); + errorRespList.push(errRespEvent); + } + }), + ); + + const batchedResponseList = []; + if (eventsChunk.length > 0) { + const batchedEvents = batchEvents(eventsChunk); + batchedEvents.forEach((batch) => { + const batchedRequest = buildBatchResponseForEvent(batch); + batchedResponseList.push( + getSuccessRespEvents(batchedRequest, batch.metadata, batch.destination, true), + ); + }); + } + return [...batchedResponseList.concat(trackResponseList), ...errorRespList]; +}; + +module.exports = { process, processRouterDest }; diff --git a/src/v0/destinations/tiktok_ads/util.js b/src/v0/destinations/tiktok_ads/util.js index 4050a9fe34..3d86ac69b7 100644 --- a/src/v0/destinations/tiktok_ads/util.js +++ b/src/v0/destinations/tiktok_ads/util.js @@ -1,11 +1,12 @@ -const { removeUndefinedAndNullValues } = require('../../util'); +const { removeUndefinedAndNullValues, hashToSha256 } = require('../../util'); /** * Prepare contents array from products array * @param {*} message + * @param {*} getContentType if true contents.$.content_type is mapped otherwise not * @returns */ -const getContents = (message) => { +const getContents = (message, getContentType = true) => { const contents = []; const { properties } = message; // eslint-disable-next-line @typescript-eslint/naming-convention @@ -13,8 +14,9 @@ const getContents = (message) => { if (products && Array.isArray(products) && products.length > 0) { products.forEach((product) => { const singleProduct = { - content_type: - product.contentType || contentType || product.content_type || content_type || 'product', + content_type: getContentType + ? product.contentType || contentType || product.contentType || content_type || 'product' + : undefined, content_id: String(product.product_id), content_category: product.category, content_name: product.name, @@ -27,5 +29,34 @@ const getContents = (message) => { } return contents; }; - -module.exports = { getContents }; +const hashString = (input) => hashToSha256(input.toString().trim()); +/* + * Hashing user related detail i.e external_id, email, phone_number + */ +const hashUserField = (user) => { + const updatedUser = { ...user }; + // hashing external_id + const { email, phone, external_id: externalId } = user; + if (externalId) { + // if there are multiple externalId's in form of array that tiktok supports then hashing every + if (Array.isArray(externalId)) { + updatedUser.external_id = externalId.map((extId) => hashString(extId).toString()); + } else { + updatedUser.external_id = hashString(externalId).toString(); + } + } + // hashing email + if (email && email.length > 0) { + updatedUser.email = hashString(email).toString(); + } + // hashing phone + if (phone && phone.length > 0) { + if (Array.isArray(phone)) { + updatedUser.phone = phone.map((num) => hashString(num).toString()); + } else { + updatedUser.phone = hashString(phone).toString(); + } + } + return updatedUser; +}; +module.exports = { getContents, hashUserField }; diff --git a/src/v0/destinations/tiktok_ads/util.test.js b/src/v0/destinations/tiktok_ads/util.test.js index 5a5cc2c505..1649b94eeb 100644 --- a/src/v0/destinations/tiktok_ads/util.test.js +++ b/src/v0/destinations/tiktok_ads/util.test.js @@ -1,4 +1,4 @@ -const { getContents } = require('./util'); +const { getContents, hashUserField } = require('./util'); describe('getContents utility test', () => { it('product id sent as number', () => { @@ -95,3 +95,80 @@ describe('getContents utility test', () => { expect(expectedOutput).toEqual(getContents(message)); }); }); + +describe('hashUserField utility test', () => { + it('should return the updated user object with hashed fields', () => { + const user = { + external_id: 123, + email: 'test@example.com', + phone: '+1234567890', + }; + + const hashedUser = hashUserField(user); + + expect(hashedUser).toEqual({ + external_id: 'a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3', + email: '973dfe463ec85785f5f95af5ba3906eedb2d931c24e69824a89ea65dba4e813b', + phone: '422ce82c6fc1724ac878042f7d055653ab5e983d186e616826a72d4384b68af8', + }); + }); + it('should hash external_id, email and phone fields when they are defined and not null or empty', () => { + const user = { + external_id: '123', + email: 'test@example.com', + phone: '+1234567890', + }; + + const hashedUser = hashUserField(user); + + expect(hashedUser.external_id).toBeDefined(); + expect(hashedUser.email).toBeDefined(); + expect(hashedUser.phone).toBeDefined(); + }); + + it('should hash external_id field even if it contains multiple values in form of array', () => { + const user = { + external_id: ['123', '456', '789'], + phone: ['+1234130697', '+e211134234'], + }; + + const hashedUser = hashUserField(user); + + expect(Array.isArray(hashedUser.external_id)).toBe(true); + expect(hashedUser.external_id.length).toBe(user.external_id.length); + hashedUser.external_id.forEach((hashedId, index) => { + expect(hashedId).toBeDefined(); + expect(hashedId).not.toBe(user.external_id[index]); + }); + hashedUser.phone.forEach((hashedId, index) => { + expect(hashedId).toBeDefined(); + expect(hashedId).not.toBe(user.phone[index]); + }); + }); + + it('should not hash external_id, email or phone fields when they are undefined, null or empty', () => { + const user = { + external_id: undefined, + email: null, + phone: '', + }; + + const hashedUser = hashUserField(user); + + expect(hashedUser.external_id).toBeUndefined(); + expect(hashedUser.email).toBeNull(); + expect(hashedUser.phone).toBe(''); + }); + + it('should not modify the original user object', () => { + const user = { + external_id: '123', + email: 'test@example.com', + phone: '1234567890', + }; + + const hashedUser = hashUserField(user); + + expect(hashedUser).not.toBe(user); + }); +}); diff --git a/src/v0/destinations/user/utils.js b/src/v0/destinations/user/utils.js index 41ad173583..52fba2167e 100644 --- a/src/v0/destinations/user/utils.js +++ b/src/v0/destinations/user/utils.js @@ -237,6 +237,7 @@ const createCompany = async (message, destination) => { const response = await httpPOST(endpoint, payload, requestOptions, { destType: 'user', feature: 'transformation', + endpointPath: `/companies/`, }); const data = processAxiosResponse(response); return data.response; @@ -277,6 +278,7 @@ const updateCompany = async (message, destination, company) => { const response = await httpPUT(endpoint, payload, requestOptions, { destType: 'user', feature: 'transformation', + endpointPath: `/companies/`, }); const data = processAxiosResponse(response); return data.response; @@ -303,6 +305,7 @@ const getUserByUserKey = async (apiKey, userKey, appSubdomain) => { const userResponse = await httpGET(endpoint, requestOptions, { destType: 'user', feature: 'transformation', + endpointPath: `/users/search`, }); const processedUserResponse = processAxiosResponse(userResponse); if (processedUserResponse.status === 200) { @@ -336,6 +339,7 @@ const getUserByEmail = async (apiKey, email, appSubdomain) => { const userResponse = await httpGET(endpoint, requestOptions, { destType: 'user', feature: 'transformation', + endpointPath: `/users/search/?email`, }); const processedUserResponse = processAxiosResponse(userResponse); @@ -374,6 +378,7 @@ const getUserByPhoneNumber = async (apiKey, phoneNumber, appSubdomain) => { const userResponse = await httpGET(endpoint, requestOptions, { destType: 'user', feature: 'transformation', + endpointPath: `/users/search/?phone_number`, }); const processedUserResponse = processAxiosResponse(userResponse); @@ -418,6 +423,7 @@ const getUserByCustomId = async (message, destination) => { const userResponse = await httpGET(endpoint, requestOptions, { destType: 'user', feature: 'transformation', + endpointPath: `/users-by-id/`, }); const processedUserResponse = processAxiosResponse(userResponse); @@ -453,6 +459,7 @@ const getCompanyByCustomId = async (message, destination) => { const response = await httpGET(endpoint, requestOptions, { destType: 'user', feature: 'transformation', + endpointPath: `/companies-by-id/`, }); const processedUserResponse = processAxiosResponse(response); if (processedUserResponse.status === 200) { diff --git a/src/v0/destinations/wootric/util.js b/src/v0/destinations/wootric/util.js index fce8a66586..eb61a472cf 100644 --- a/src/v0/destinations/wootric/util.js +++ b/src/v0/destinations/wootric/util.js @@ -46,6 +46,7 @@ const getAccessToken = async (destination) => { const wootricAuthResponse = await httpPOST(request.url, request.data, request.header, { destType: 'wootric', feature: 'transformation', + endpointPath: `/oauth/token`, }); const processedAuthResponse = processAxiosResponse(wootricAuthResponse); // If the request fails, throwing error. @@ -98,6 +99,7 @@ const retrieveUserDetails = async (endUserId, externalId, accessToken) => { const userResponse = await httpGET(endpoint, requestOptions, { destType: 'wootric', feature: 'transformation', + endpointPath: `/v1/end_users/`, }); const processedUserResponse = processAxiosResponse(userResponse); diff --git a/src/v0/sources/mailjet/transform.js b/src/v0/sources/mailjet/transform.js index fcc27611bb..91f90b6ed0 100644 --- a/src/v0/sources/mailjet/transform.js +++ b/src/v0/sources/mailjet/transform.js @@ -2,21 +2,18 @@ const path = require('path'); const fs = require('fs'); const md5 = require('md5'); const Message = require('../message'); +const { CommonUtils } = require('../../../util/common'); // ref : https://dev.mailjet.com/email/guides/webhooks/ // import mapping json using JSON.parse to preserve object key order const mapping = JSON.parse(fs.readFileSync(path.resolve(__dirname, './mapping.json'), 'utf-8')); -function process(event) { +const processEvent = (event) => { const message = new Message(`MailJet`); - // event type is always track const eventType = 'track'; - message.setEventType(eventType); - message.setEventName(event.event); - message.setPropertiesV2(event, mapping); if (event.time) { @@ -40,12 +37,18 @@ function process(event) { } message.context.externalId = externalId; - if (message.userId === null || message.userId === undefined) { + if (!message.userId && event.email) { // Treating userId as unique identifier // If userId is not present, then generating it from email using md5 hash function message.userId = md5(event.email); } return message; -} +}; + +// This fucntion just converts the incoming payload to array of already not and sends it to processEvent +const process = (events) => { + const eventsArray = CommonUtils.toArray(events); + return eventsArray.map(processEvent); +}; module.exports = { process }; diff --git a/src/v0/sources/shopify/transform.js b/src/v0/sources/shopify/transform.js index fd763eeb46..013580d7a3 100644 --- a/src/v0/sources/shopify/transform.js +++ b/src/v0/sources/shopify/transform.js @@ -175,7 +175,7 @@ const processEvent = async (inputEvent, metricMetadata) => { if (message.type !== EventType.IDENTIFY) { const { anonymousId, sessionId } = await getAnonymousIdAndSessionId( message, - metricMetadata, + { shopifyTopic, ...metricMetadata }, redisData, ); if (isDefinedAndNotNull(anonymousId)) { diff --git a/src/v0/sources/shopify/util.js b/src/v0/sources/shopify/util.js index 61501bdab6..6f31ade4a7 100644 --- a/src/v0/sources/shopify/util.js +++ b/src/v0/sources/shopify/util.js @@ -164,6 +164,10 @@ const getAnonymousIdAndSessionId = async (message, metricMetadata, redisData = n } // falling back to cartToken mapping or its hash in case no rudderAnonymousId or rudderSessionId is found if (isDefinedAndNotNull(anonymousId) && isDefinedAndNotNull(sessionId)) { + stats.increment('shopify_anon_id_resolve', { + method: 'note_attributes', + ...metricMetadata, + }); return { anonymousId, sessionId }; } const cartToken = getCartToken(message); @@ -189,6 +193,13 @@ const getAnonymousIdAndSessionId = async (message, metricMetadata, redisData = n Hash the id and use it as anonymousId (limiting 256 -> 36 chars) and sessionId is not sent as its not required field */ anonymousId = v5(cartToken, v5.URL); + } else { + // This metric let us know how many events based on event name used redis for anonId resolution + // and for how many + stats.increment('shopify_anon_id_resolve', { + method: 'database', + ...metricMetadata, + }); } return { anonymousId, sessionId }; }; diff --git a/src/v0/util/errorTypes/filteredEventsError.js b/src/v0/util/errorTypes/filteredEventsError.js index 35a384f4e3..990ca76670 100644 --- a/src/v0/util/errorTypes/filteredEventsError.js +++ b/src/v0/util/errorTypes/filteredEventsError.js @@ -1,13 +1,9 @@ -const tags = require('../tags'); -const { BaseError } = require('./base'); +const { BaseError } = require('@rudderstack/integrations-lib'); const { HTTP_STATUS_CODES } = require('../constant'); class FilteredEventsError extends BaseError { constructor(message, statusCode = HTTP_STATUS_CODES.FILTER_EVENTS) { - const finalStatTags = { - [tags.TAG_NAMES.ERROR_CATEGORY]: tags.ERROR_CATEGORIES.TRANSFORMATION, - }; - super(message, statusCode, finalStatTags); + super(message, statusCode); } } diff --git a/src/v0/util/errorTypes/index.js b/src/v0/util/errorTypes/index.js index 80268c3e77..f3cef657ca 100644 --- a/src/v0/util/errorTypes/index.js +++ b/src/v0/util/errorTypes/index.js @@ -1,5 +1,7 @@ const FilteredEventsError = require('./filteredEventsError'); +const TransformerProxyError = require('./transformerProxyError'); module.exports = { FilteredEventsError, + TransformerProxyError, }; diff --git a/src/v0/util/errorTypes/transformerProxyError.js b/src/v0/util/errorTypes/transformerProxyError.js new file mode 100644 index 0000000000..2fefb6fb92 --- /dev/null +++ b/src/v0/util/errorTypes/transformerProxyError.js @@ -0,0 +1,28 @@ +const { BaseError } = require('@rudderstack/integrations-lib'); +const tags = require('../tags'); + +const errorTypes = Object.values(tags.ERROR_TYPES); +const metaTypes = Object.values(tags.METADATA); +class TransformerProxyError extends BaseError { + constructor(message, statusCode, statTags, destResponse, authErrorCategory, response) { + const finalStatTags = { + [tags.TAG_NAMES.ERROR_CATEGORY]: tags.ERROR_CATEGORIES.NETWORK, + [tags.TAG_NAMES.ERROR_TYPE]: tags.ERROR_TYPES.ABORTED, + }; + + // Allow specifying only error type and meta tags + if (statTags && typeof statTags === 'object' && !Array.isArray(statTags)) { + if (errorTypes.includes(statTags[tags.TAG_NAMES.ERROR_TYPE])) { + finalStatTags[tags.TAG_NAMES.ERROR_TYPE] = statTags[tags.TAG_NAMES.ERROR_TYPE]; + } + + if (metaTypes.includes(statTags[tags.TAG_NAMES.META])) { + finalStatTags[tags.TAG_NAMES.META] = statTags[tags.TAG_NAMES.META]; + } + } + super(message, statusCode, finalStatTags, destResponse, authErrorCategory); + this.response = response; + } +} + +module.exports = TransformerProxyError; diff --git a/src/v0/util/facebookUtils/networkHandler.js b/src/v0/util/facebookUtils/networkHandler.js index 9589d17255..e0d69fa5c8 100644 --- a/src/v0/util/facebookUtils/networkHandler.js +++ b/src/v0/util/facebookUtils/networkHandler.js @@ -195,6 +195,9 @@ const errorDetailsMap = { .setMessage('There have been too many calls to this ad-account.') .build(), }, + 200: { + default: new ErrorDetailsExtractorBuilder().setStatus(403).setMessageField('message').build(), + }, }; const getErrorDetailsFromErrorMap = (error) => { diff --git a/src/v0/util/googleUtils/index.js b/src/v0/util/googleUtils/index.js new file mode 100644 index 0000000000..c8d872e90e --- /dev/null +++ b/src/v0/util/googleUtils/index.js @@ -0,0 +1,30 @@ +const GOOGLE_ALLOWED_CONSENT_STATUS = ['UNSPECIFIED', 'UNKNOWN', 'GRANTED', 'DENIED']; + +/** + * Populates the consent object based on the provided properties. + * + * @param {object} properties - message.properties containing properties related to consent. + * @returns {object} - An object containing consent information. + * ref : https://developers.google.com/google-ads/api/rest/reference/rest/v15/Consent + */ + +const populateConsentForGoogleDestinations = (properties) => { + const consent = {}; + + if ( + properties?.userDataConsent && + GOOGLE_ALLOWED_CONSENT_STATUS.includes(properties.userDataConsent) + ) { + consent.adUserData = properties.userDataConsent; + } + + if ( + properties?.personalizationConsent && + GOOGLE_ALLOWED_CONSENT_STATUS.includes(properties.personalizationConsent) + ) { + consent.adPersonalization = properties.personalizationConsent; + } + return consent; +}; + +module.exports = { populateConsentForGoogleDestinations }; diff --git a/src/v0/util/googleUtils/index.test.js b/src/v0/util/googleUtils/index.test.js new file mode 100644 index 0000000000..27eff2a793 --- /dev/null +++ b/src/v0/util/googleUtils/index.test.js @@ -0,0 +1,50 @@ +const { populateConsentForGoogleDestinations } = require('./index'); + +describe('unit test for populateConsentForGoogleDestinations', () => { + // Returns an empty object when no properties are provided. + it('should return an empty object when no properties are provided', () => { + const result = populateConsentForGoogleDestinations({}); + expect(result).toEqual({}); + }); + + // Sets adUserData property of consent object when userDataConsent property is provided and its value is one of the allowed consent statuses. + it('should set adUserData property of consent object when userDataConsent property is provided and its value is one of the allowed consent statuses', () => { + const properties = { userDataConsent: 'GRANTED' }; + const result = populateConsentForGoogleDestinations(properties); + expect(result).toEqual({ adUserData: 'GRANTED' }); + }); + + // Sets adPersonalization property of consent object when personalizationConsent property is provided and its value is one of the allowed consent statuses. + it('should set adPersonalization property of consent object when personalizationConsent property is provided and its value is one of the allowed consent statuses', () => { + const properties = { personalizationConsent: 'DENIED' }; + const result = populateConsentForGoogleDestinations(properties); + expect(result).toEqual({ adPersonalization: 'DENIED' }); + }); + + // Returns an empty object when properties parameter is not provided. + it('should return an empty object when properties parameter is not provided', () => { + const result = populateConsentForGoogleDestinations(); + expect(result).toEqual({}); + }); + + // Returns an empty object when properties parameter is null. + it('should return an empty object when properties parameter is null', () => { + const result = populateConsentForGoogleDestinations(null); + expect(result).toEqual({}); + }); + + // Returns an empty object when properties parameter is an empty object. + it('should return an empty object when properties parameter is an empty object', () => { + const result = populateConsentForGoogleDestinations({}); + expect(result).toEqual({}); + }); + + // Returns an empty object when properties parameter is an empty object. + it('should return an empty object when properties parameter contains adUserData and adPersonalization with non-allowed values', () => { + const result = populateConsentForGoogleDestinations({ + adUserData: 'RANDOM', + personalizationConsent: 'RANDOM', + }); + expect(result).toEqual({}); + }); +}); diff --git a/src/v0/util/index.js b/src/v0/util/index.js index 0296895662..5433529b5e 100644 --- a/src/v0/util/index.js +++ b/src/v0/util/index.js @@ -83,7 +83,7 @@ const isPrimitive = (arg) => { const isNewStatusCodesAccepted = (reqMetadata = {}) => { if (reqMetadata && typeof reqMetadata === 'object' && !Array.isArray(reqMetadata)) { const { features } = reqMetadata; - return !!(features && features[FEATURE_FILTER_CODE]); + return !!features?.[FEATURE_FILTER_CODE]; } return false; }; @@ -2083,6 +2083,31 @@ const IsGzipSupported = (reqMetadata = {}) => { return false; }; +/** + * Returns an array containing the values of the specified key from each object in the input array. + * If the input array is falsy (null, undefined, empty array), an empty array is returned. + * + * @param {Array} arr - The input array from which values will be extracted. + * @param {string} key - The key of the property whose values will be extracted from each object in the input array. + * @returns {Array} - A new array containing the values of the specified key from each object in the input array. + * + * @example + * const configArray = [ + * { name: 'John', age: 25 }, + * { name: 'Jane', age: 30 }, + * { name: 'Bob', age: 35 } + * ]; + * + * const result = parseConfigArray(configArray, 'name'); + * Output: ['John', 'Jane', 'Bob'] + */ +const parseConfigArray = (arr, key) => { + if (!arr) { + return []; + } + return arr.map((item) => item[key]); +}; + // ======================================================================== // EXPORTS // ======================================================================== @@ -2140,6 +2165,7 @@ module.exports = { getValueFromPropertiesOrTraits, getValuesAsArrayFromConfig, handleSourceKeysOperation, + hashToSha256, isAppleFamily, isBlank, isCdkDestination, @@ -2192,4 +2218,5 @@ module.exports = { isValidInteger, isNewStatusCodesAccepted, IsGzipSupported, + parseConfigArray, }; diff --git a/src/v0/util/index.test.js b/src/v0/util/index.test.js index e39c583aab..a46b55fdd4 100644 --- a/src/v0/util/index.test.js +++ b/src/v0/util/index.test.js @@ -1,5 +1,7 @@ +const { TAG_NAMES } = require('@rudderstack/integrations-lib'); const utilities = require('.'); const { getFuncTestData } = require('../../../test/testHelper'); +const { FilteredEventsError } = require('./errorTypes'); const { hasCircularReference, flattenJson } = require('./index'); // Names of the utility functions to test @@ -58,7 +60,6 @@ describe('Utility Functions Tests', () => { test.each(funcTestData)('$description', async ({ description, input, output }) => { try { let result; - console.log(Object.values(input)); result = utilities[funcName](...Object.values(input)); expect(result).toEqual(output); } catch (e) { @@ -116,3 +117,11 @@ describe('flattenJson', () => { ); }); }); + +describe('tests for generateErrorObject', () => { + test('test-0', () => { + const myErr = new FilteredEventsError('error-1'); + const outputErrObj = utilities.generateErrorObject(myErr); + expect(outputErrObj.statTags).toEqual({}); + }); +}); diff --git a/src/v1/destinations/campaign_manager/networkHandler.js b/src/v1/destinations/campaign_manager/networkHandler.js new file mode 100644 index 0000000000..431cbd6966 --- /dev/null +++ b/src/v1/destinations/campaign_manager/networkHandler.js @@ -0,0 +1,96 @@ +/* eslint-disable no-param-reassign */ +/* eslint-disable no-restricted-syntax */ +const { TransformerProxyError } = require('../../../v0/util/errorTypes'); +const { prepareProxyRequest, proxyRequest } = require('../../../adapters/network'); +const { isHttpStatusSuccess, getAuthErrCategoryFromStCode } = require('../../../v0/util/index'); + +const { + processAxiosResponse, + getDynamicErrorType, +} = require('../../../adapters/utils/networkUtils'); +const tags = require('../../../v0/util/tags'); + +function isEventAbortableAndExtractErrMsg(element, proxyOutputObj) { + let isAbortable = false; + let errorMsg = ''; + // success event + if (!element.errors) { + return isAbortable; + } + for (const err of element.errors) { + errorMsg += `${err.message}, `; + // if code is any of these, event is not retryable + if ( + err.code === 'PERMISSION_DENIED' || + err.code === 'INVALID_ARGUMENT' || + err.code === 'NOT_FOUND' + ) { + isAbortable = true; + } + } + if (errorMsg) { + proxyOutputObj.error = errorMsg; + } + return isAbortable; +} + +const responseHandler = (destinationResponse) => { + const message = `[CAMPAIGN_MANAGER Response V1 Handler] - Request Processed Successfully`; + const responseWithIndividualEvents = []; + const { response, status, rudderJobMetadata } = destinationResponse; + + if (isHttpStatusSuccess(status)) { + // check for Partial Event failures and Successes + const destPartialStatus = response.status; + + for (const [idx, element] of destPartialStatus.entries()) { + const proxyOutputObj = { + statusCode: 200, + metadata: rudderJobMetadata[idx], + error: 'success', + }; + // update status of partial event if abortable + if (isEventAbortableAndExtractErrMsg(element, proxyOutputObj)) { + proxyOutputObj.statusCode = 400; + } + responseWithIndividualEvents.push(proxyOutputObj); + } + + return { + status, + message, + destinationResponse, + response: responseWithIndividualEvents, + }; + } + + // in case of failure status, populate response to maintain len(metadata)=len(response) + const errorMessage = response.error?.message || 'unknown error format'; + for (const metadata of rudderJobMetadata) { + responseWithIndividualEvents.push({ + statusCode: 500, + metadata, + error: errorMessage, + }); + } + + throw new TransformerProxyError( + `Campaign Manager: Error transformer proxy v1 during CAMPAIGN_MANAGER response transformation`, + 500, + { + [tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(status), + }, + destinationResponse, + getAuthErrCategoryFromStCode(status), + responseWithIndividualEvents, + ); +}; + +function networkHandler() { + this.prepareProxy = prepareProxyRequest; + this.proxy = proxyRequest; + this.processAxiosResponse = processAxiosResponse; + this.responseHandler = responseHandler; +} + +module.exports = { networkHandler }; diff --git a/src/warehouse/config/helpers.js b/src/warehouse/config/helpers.js index ecc7d382b9..ef00d7ee73 100644 --- a/src/warehouse/config/helpers.js +++ b/src/warehouse/config/helpers.js @@ -1,12 +1,18 @@ const _ = require('lodash'); const get = require('get-value'); +const logger = require('../../logger'); const isNull = (x) => { return x === null || x === undefined; }; const isBlank = (value) => { - return _.isEmpty(_.toString(value)); + try { + return _.isEmpty(_.toString(value)); + } catch (e) { + logger.error(`Error in isBlank: ${e.message}`); + return false; + } }; const getFirstValidValue = (message, props) => { @@ -27,6 +33,7 @@ function isDataLakeProvider(provider) { module.exports = { isNull, + isBlank, getFirstValidValue, isDataLakeProvider, }; diff --git a/src/warehouse/index.js b/src/warehouse/index.js index d88904b4a8..3305a52762 100644 --- a/src/warehouse/index.js +++ b/src/warehouse/index.js @@ -5,7 +5,6 @@ const { v4: uuidv4 } = require('uuid'); const { isObject, - isBlank, isValidJsonPathKey, isValidLegacyJsonPathKey, keysFromJsonPaths, @@ -24,7 +23,7 @@ const whPageColumnMappingRules = require('./config/WHPageConfig.js'); const whScreenColumnMappingRules = require('./config/WHScreenConfig.js'); const whGroupColumnMappingRules = require('./config/WHGroupConfig.js'); const whAliasColumnMappingRules = require('./config/WHAliasConfig.js'); -const { isDataLakeProvider } = require('./config/helpers'); +const {isDataLakeProvider, isBlank} = require('./config/helpers'); const { InstrumentationError } = require('@rudderstack/integrations-lib'); const whExtractEventTableColumnMappingRules = require('./config/WHExtractEventTableConfig.js'); diff --git a/src/warehouse/util.js b/src/warehouse/util.js index 79981249e7..11d72bfbfd 100644 --- a/src/warehouse/util.js +++ b/src/warehouse/util.js @@ -4,6 +4,7 @@ const get = require('get-value'); const v0 = require('./v0/util'); const v1 = require('./v1/util'); const { PlatformError, InstrumentationError } = require('@rudderstack/integrations-lib'); +const {isBlank} = require('./config/helpers'); const minTimeInMs = Date.parse('0001-01-01T00:00:00Z'); const maxTimeInMs = Date.parse('9999-12-31T23:59:59.999Z'); @@ -22,10 +23,6 @@ const isValidLegacyJsonPathKey = (eventType, key, level, jsonKeys = {}) => { return eventType === 'track' && jsonKeys[key] === level; }; -const isBlank = (value) => { - return _.isEmpty(_.toString(value)); -}; - /* This function takes in an array of json paths and returns an object with keys as the json path and value as the position of the key in the json path Example: @@ -97,6 +94,9 @@ const timestampRegex = new RegExp( ); function validTimestamp(input) { + if (typeof input !== 'string') { + return false; + } if (timestampRegex.test(input)) { // check if date value lies in between min time and max time. if not then it's not a valid timestamp const d = new Date(input); @@ -147,7 +147,6 @@ const getRecordIDForExtract = (message) => { module.exports = { isObject, - isBlank, isValidJsonPathKey, isValidLegacyJsonPathKey, keysFromJsonPaths, diff --git a/test/__mocks__/axios.js b/test/__mocks__/axios.js index 6a3139c4e9..44abc8728d 100644 --- a/test/__mocks__/axios.js +++ b/test/__mocks__/axios.js @@ -3,55 +3,23 @@ /// ///////////////////////////////////////////////////////////////////////////// const axios = jest.genMockFromModule("axios"); const acPostRequestHandler = require("./active_campaign.mock"); -const { - klaviyoPostRequestHandler, - klaviyoGetRequestHandler -} = require("./klaviyo.mock"); -const kustomerGetRequestHandler = require("./kustomer.mock"); const trengoGetRequestHandler = require("./trengo.mock"); -const gainsightRequestHandler = require("./gainsight.mock"); -const mailchimpGetRequestHandler = require("./mailchimp.mock"); const yahooDspPostRequestHandler = require("./yahoo_dsp.mock"); -const { gainsightPXGetRequestHandler } = require("./gainsight_px.mock"); -const { hsGetRequestHandler, hsPostRequestHandler } = require("./hs.mock"); -const { delightedGetRequestHandler } = require("./delighted.mock"); -const { dripPostRequestHandler } = require("./drip.mock"); -const profitwellGetRequestHandler = require("./profitwell.mock"); const cannyPostRequestHandler = require("./canny.mock"); -const custifyPostRequestHandler = require("./custify.mock"); -const { - wootricGetRequestHandler, - wootricPostRequestHandler -} = require("./wootric.mock"); const { userGetRequestHandler, userPutRequestHandler } = require("./user.mock"); const { mixpanelPostRequestHandler } = require("./mixpanel.mock"); -const { clickUpGetRequestHandler } = require("./clickup.mock"); -const { - freshmarketerPostRequestHandler, - freshmarketerGetRequestHandler -} = require("./freshmarketer.mock"); -const { mondayPostRequestHandler } = require("./monday.mock"); -const { - freshsalesGetRequestHandler, - freshsalesPostRequestHandler -} = require("./freshsales.mock"); const { sendgridGetRequestHandler } = require("./sendgrid.mock"); -const { sendinblueGetRequestHandler } = require("./sendinblue.mock"); const { courierGetRequestHandler } = require("./courier.mock"); const { brazePostRequestHandler } = require("./braze.mock"); const urlDirectoryMap = { - "api.hubapi.com": "hs", "zendesk.com": "zendesk", "salesforce.com": "salesforce", "mktorest.com": "marketo", "active.campaigns.rudder.com": "active_campaigns", - "api.aptrinsic.com": "gainsight_px", - "api.profitwell.com": "profitwell", "ruddertest2.mautic.net": "mautic", "api.sendgrid.com": "sendgrid", - "api.sendinblue.com": "sendinblue", "api.criteo.com": "criteo_audience", "api.courier.com": "courier", }; @@ -59,14 +27,6 @@ const urlDirectoryMap = { const fs = require("fs"); const path = require("path"); -const getParamEncodedUrl = (url, options) => { - const { params } = options; - const paramString = Object.keys(params) - .map(key => `${key}=${params[key]}`) - .join("&"); - return `${url}?${paramString}`; -}; - function getData(url) { let directory = ""; Object.keys(urlDirectoryMap).forEach(key => { @@ -86,75 +46,19 @@ function getData(url) { function get(url, options) { const mockData = getData(url); - if (url.includes("https://api.kustomerapp.com") || url.includes("https://api.prod2.kustomerapp.com")) { - return new Promise((resolve, reject) => { - resolve(kustomerGetRequestHandler(url)); - }); - } if (url.includes("https://app.trengo.com")) { return new Promise((resolve, reject) => { resolve(trengoGetRequestHandler(url)); }); } - if (url.includes("api.mailchimp.com")) { - return new Promise((resolve, reject) => { - resolve(mailchimpGetRequestHandler(url)); - }); - } - if (url.includes("https://api.aptrinsic.com")) { - return gainsightPXGetRequestHandler(url, mockData); - } - if (url.includes("https://a.klaviyo.com/api/v2/people/search")) { - return klaviyoGetRequestHandler(getParamEncodedUrl(url, options)); - } - if (url.includes("https://api.hubapi.com")) { - return hsGetRequestHandler(url, mockData); - } - if (url.includes("https://api.delighted.com/v1/people.json")) { - return delightedGetRequestHandler(options); - } - if (url.includes("https://api.profitwell.com")) { - return profitwellGetRequestHandler(url, mockData); - } - if ( - url.includes( - "https://api.getdrip.com/v2/1809802/subscribers/identified_user@gmail.com" - ) - ) { - return Promise.resolve({ status: 200 }); - } - if ( - url.includes( - "https://api.getdrip.com/v2/1809802/subscribers/unidentified_user@gmail.com" - ) - ) { - return Promise.reject({ status: 404 }); - } - if (url.includes("https://api.wootric.com")) { - return new Promise((resolve, reject) => { - resolve(wootricGetRequestHandler(url)); - }); - } if (url.includes("https://commander.user.com")) { return new Promise((resolve, reject) => { resolve(userGetRequestHandler(url)); }); } - if (url.includes("https://api.clickup.com")) { - return Promise.resolve(clickUpGetRequestHandler(url)); - } - if (url.includes("https://domain-rudder.myfreshworks.com/crm/sales/api")) { - return Promise.resolve(freshmarketerGetRequestHandler(url)); - } - if (url.includes("https://domain-rudder.myfreshworks.com/crm/sales/api")) { - return Promise.resolve(freshsalesGetRequestHandler(url)); - } if (url.includes("https://api.sendgrid.com/v3/marketing/field_definitions")) { return Promise.resolve(sendgridGetRequestHandler(url)); } - if (url.includes("https://api.sendinblue.com/v3/contacts/")) { - return Promise.resolve(sendinblueGetRequestHandler(url, mockData)); - } if (url.includes("https://api.courier.com")) { return Promise.resolve(courierGetRequestHandler(url, mockData)); } @@ -183,16 +87,6 @@ function post(url, payload) { resolve(brazePostRequestHandler(url, payload)); }); } - if (url.includes("https://a.klaviyo.com")) { - return new Promise((resolve, reject) => { - resolve(klaviyoPostRequestHandler(url, payload)); - }); - } - if (url.includes("https://demo-domain.gainsightcloud.com")) { - return new Promise(resolve => { - resolve(gainsightRequestHandler(url, payload)); - }); - } if (url.includes("https://api.aptrinsic.com")) { return new Promise(resolve => { resolve({ status: 201 }); @@ -203,22 +97,11 @@ function post(url, payload) { resolve(yahooDspPostRequestHandler(url, payload)); }); } - if (url.includes("https://api.getdrip.com/v2/1809802/subscribers")) { - return dripPostRequestHandler(url, payload); - } if (url.includes("https://canny.io/api/v1/users/retrieve")) { return new Promise((resolve, reject) => { resolve(cannyPostRequestHandler(url)); }); } - if (url.includes("https://api.hubapi.com")) { - return hsPostRequestHandler(payload, mockData); - } - if (url.includes("https://api.wootric.com")) { - return new Promise((resolve, reject) => { - resolve(wootricPostRequestHandler(url, payload)); - }); - } if ( url.includes("https://api.mixpanel.com/engage/") || url.includes("https://api-eu.mixpanel.com/engage/") @@ -227,27 +110,11 @@ function post(url, payload) { resolve(mixpanelPostRequestHandler(url, payload)); }); } - if (url.includes("https://domain-rudder.myfreshworks.com/crm/sales/api")) { - return new Promise((resolve, reject) => { - resolve(freshmarketerPostRequestHandler(url)); - }); - } - if (url.includes("https://domain-rudder.myfreshworks.com/crm/sales/api")) { - return new Promise((resolve, reject) => { - resolve(freshsalesPostRequestHandler(url)); - }); - } - if ( - url.includes("https://api.monday.com") && - payload.query.includes("query") - ) { + if(url.includes("braze.com")) { return new Promise((resolve, reject) => { - resolve(mondayPostRequestHandler(payload)); + resolve(brazePostRequestHandler(url, payload)); }); } - if (url.includes("https://api.custify.com")) { - return Promise.resolve(custifyPostRequestHandler(url)); - } return new Promise((resolve, reject) => { if (mockData) { resolve({ data: mockData, status: 200 }); @@ -259,13 +126,6 @@ function post(url, payload) { function put(url, payload, options) { const mockData = getData(url); - if (url.includes("https://demo-domain.gainsightcloud.com")) { - return new Promise(resolve => { - resolve( - gainsightRequestHandler(getParamEncodedUrl(url, options), payload) - ); - }); - } if (url.includes("https://commander.user.com")) { return new Promise((resolve, reject) => { resolve(userPutRequestHandler(url)); diff --git a/test/__mocks__/braze.mock.js b/test/__mocks__/braze.mock.js index 7f63caf184..65f237d448 100644 --- a/test/__mocks__/braze.mock.js +++ b/test/__mocks__/braze.mock.js @@ -26,4 +26,4 @@ const brazePostRequestHandler = (url, payload) => { } }; -module.exports = { brazePostRequestHandler }; +module.exports = { brazePostRequestHandler }; \ No newline at end of file diff --git a/test/__mocks__/clickup.mock.js b/test/__mocks__/clickup.mock.js deleted file mode 100644 index beb73505f6..0000000000 --- a/test/__mocks__/clickup.mock.js +++ /dev/null @@ -1,36 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const urlDirectoryMap = { - "api.clickup.com": "clickup" -}; - -const getData = url => { - let directory = ""; - Object.keys(urlDirectoryMap).forEach(key => { - if (url.includes(key)) { - directory = urlDirectoryMap[key]; - } - }); - if (directory) { - const dataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${directory}/response.json`) - ); - const data = JSON.parse(dataFile); - return data[url]; - } - return {}; -}; - -const clickUpGetRequestHandler = url => { - const mockData = getData(url); - if (mockData) { - return { data: mockData, status: 200 }; - } - - return Promise.resolve({ error: "Request failed", status: 404 }); -}; - -module.exports = { - clickUpGetRequestHandler -}; diff --git a/test/__mocks__/custify.mock.js b/test/__mocks__/custify.mock.js deleted file mode 100644 index 4d94207d57..0000000000 --- a/test/__mocks__/custify.mock.js +++ /dev/null @@ -1,36 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const urlDirectoryMap = { - "api.custify.com": "custify" -}; - -const getData = url => { - let directory = ""; - Object.keys(urlDirectoryMap).forEach(key => { - if (url.includes(key)) { - directory = urlDirectoryMap[key]; - } - }); - if (directory) { - const dataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${directory}/response.json`) - ); - const data = JSON.parse(dataFile); - return data[url]; - } - return {}; -}; - -const custifyPostRequestHandler = url => { - const mockData = getData(url); - if (mockData) { - // resolve with status 200 - return { data: mockData, status: 201 }; - } - return new Promise((resolve, reject) => { - resolve({ error: "Request failed", status: 500 }); - }); -}; - -module.exports = custifyPostRequestHandler; diff --git a/test/__mocks__/data/clickup/response.json b/test/__mocks__/data/clickup/response.json deleted file mode 100644 index 7fbba92ce4..0000000000 --- a/test/__mocks__/data/clickup/response.json +++ /dev/null @@ -1,229 +0,0 @@ -{ - "https://api.clickup.com/api/v2/list/correctListId123/field": { - "fields": [ - { - "id": "19d3ac4e-2b1e-4569-b33e-ff86c7d94d6e", - "name": "Labels", - "type": "labels", - "type_config": { - "options": [ - { - "id": "32c81c1c-cf53-4829-92f5-0f0270d27a45", - "label": "Option 1", - "color": {} - }, - { - "id": "7e24f329-9dd9-4e68-b426-2c70af6f9347", - "label": "Option 2", - "color": {} - } - ] - }, - "date_created": "1661964865880", - "hide_from_guests": false, - "required": false - }, - { - "id": "22eaffee-ffec-4c3b-bdae-56e69d55eecd", - "name": "Payment Status", - "type": "drop_down", - "type_config": { - "default": 0, - "placeholder": {}, - "new_drop_down": true, - "options": [ - { - "id": "e109e36b-a052-4a31-af16-25da7324990f", - "name": "Sent Request", - "color": "#FF7FAB", - "orderindex": 0 - }, - { - "id": "3a3b4512-2896-44f7-8075-2ff37777fe24", - "name": "Quote sent", - "color": "#EA80FC", - "orderindex": 1 - }, - { - "id": "7afcb6fb-cec8-41d8-bf0c-039a9db28460", - "name": "Pending", - "color": "#ff7800", - "orderindex": 2 - }, - { - "id": "890ecf28-bdd4-4f53-92cc-bc4edb696fcd", - "name": "Payment Recieved", - "color": "#2ecd6f", - "orderindex": 3 - }, - { - "id": "e89f7dd7-fd24-4b32-ac4d-f174d8ca914f", - "name": "n/a", - "color": "#b5bcc2", - "orderindex": 4 - } - ] - }, - "date_created": "1660124553414", - "hide_from_guests": false, - "required": {} - }, - { - "id": "4b7a29be-e261-4340-8f3f-e6de838473e5", - "name": "Plan", - "type": "drop_down", - "type_config": { - "default": 0, - "placeholder": {}, - "new_drop_down": true, - "options": [ - { - "id": "4b9366a7-2592-4b7a-909a-ed4af705e27c", - "name": "Unlimited", - "color": "#02BCD4", - "orderindex": 0 - }, - { - "id": "c5032049-8c05-44e9-a000-3a071d457b8f", - "name": "Business", - "color": "#1bbc9c", - "orderindex": 1 - }, - { - "id": "9fb08801-1130-4650-8e2e-28578344ff3c", - "name": "Enterprise", - "color": "#2ecd6f", - "orderindex": 2 - } - ] - }, - "date_created": "1660124553414", - "hide_from_guests": false, - "required": {} - }, - { - "id": "4bfebc00-9d4a-40d1-aef8-5a87b610186c", - "name": "Contact Title", - "type": "text", - "type_config": {}, - "date_created": "1660124553414", - "hide_from_guests": false, - "required": {} - }, - { - "id": "666f74bf-6d87-41f3-8735-ccf0efe066dd", - "name": "Date", - "type": "date", - "type_config": {}, - "date_created": "1662379321069", - "hide_from_guests": false, - "required": false - }, - { - "id": "a5f5044a-cbad-4caf-bcbb-4cd32bd8db7c", - "name": "Industry", - "type": "drop_down", - "type_config": { - "default": 0, - "placeholder": {}, - "options": [ - { - "id": "75173398-257f-42b6-8bae-4cf767fa99ab", - "name": "Engineering", - "color": "#04A9F4", - "orderindex": 0 - }, - { - "id": "c7f9b6f5-cd98-4609-af10-68a8710cc1bf", - "name": "Retail", - "color": "#ff7800", - "orderindex": 1 - }, - { - "id": "dbe84940-b4e8-4a29-8491-e1aa5f2be4e2", - "name": "Hospitality", - "color": "#2ecd6f", - "orderindex": 2 - } - ] - }, - "date_created": "1660124553414", - "hide_from_guests": false, - "required": {} - }, - { - "id": "b01b32fd-94d3-43e6-9f31-2c855ff169cd", - "name": "Url", - "type": "url", - "type_config": {}, - "date_created": "1661970432587", - "hide_from_guests": false, - "required": false - }, - { - "id": "c9b83d91-b979-4b34-b4bd-88bf9cf2b9a6", - "name": "Phone Number", - "type": "phone", - "type_config": {}, - "date_created": "1661970795061", - "hide_from_guests": false, - "required": false - }, - { - "id": "d0201829-ddcd-4b97-b71f-0f9e672488f2", - "name": "Account Size", - "type": "number", - "type_config": {}, - "date_created": "1660124553414", - "hide_from_guests": false, - "required": {} - }, - { - "id": "ea6c1e48-2abf-4328-b228-79c213e147c8", - "name": "Location", - "type": "location", - "type_config": {}, - "date_created": "1662229589329", - "hide_from_guests": false, - "required": false - }, - { - "id": "ebe825fb-92de-41ce-a29c-25018da039b4", - "name": "Email", - "type": "email", - "type_config": {}, - "date_created": "1660124553414", - "hide_from_guests": false, - "required": {} - }, - { - "id": "f431cda3-a575-4a05-ba8d-583d9b6cb2df", - "name": "Rating", - "type": "emoji", - "type_config": { - "count": 5, - "code_point": "2b50" - }, - "date_created": "1661963909454", - "hide_from_guests": false, - "required": false - }, - { - "id": "ffbe4f03-cbc3-4077-8fea-9e5d08b4dceb", - "name": "Money In INR", - "type": "currency", - "type_config": { - "default": {}, - "precision": 2, - "currency_type": "INR" - }, - "date_created": "1661428276019", - "hide_from_guests": false, - "required": false - } - ] - }, - "https://api.clickup.com/api/v2/list/correctListId456/field": { - "fields": [] - } -} diff --git a/test/__mocks__/data/custify/response.json b/test/__mocks__/data/custify/response.json deleted file mode 100644 index 86d85026d1..0000000000 --- a/test/__mocks__/data/custify/response.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "https://api.custify.com/company": { - "company_id": "6", - "name": "Pizzeria Presto", - "signed_up_at": "2019-05-30T12:00:00.000Z", - "size": 15, - "website": "www.pizzeriapresto.com", - "industry": "Restaurant", - "plan": "Platinum", - "monthly_revenue": 1234567, - "churned": false, - "owners_csm": "john.doe@mail.com", - "owners_account": "john.doe@mail.com", - "parent_companies": [ - { - "id": "5ec50c9829d3c17c7cf455f2" - }, - { - "id": "5ec50c9829d3c17c7cf457f2" - } - ], - "custom_attributes": { - "restaurants": 5, - "custom": "template" - } - } -} diff --git a/test/__mocks__/data/freshmarketer/response.json b/test/__mocks__/data/freshmarketer/response.json deleted file mode 100644 index 3b0d0af192..0000000000 --- a/test/__mocks__/data/freshmarketer/response.json +++ /dev/null @@ -1,430 +0,0 @@ -{ - "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert": { - "sales_account": { - "id": 70003771396, - "name": "postman2.0", - "address": "Red Colony", - "city": "Pune", - "state": "Goa", - "zipcode": null, - "country": null, - "number_of_employees": 11, - "annual_revenue": 1000, - "website": null, - "owner_id": null, - "phone": "919191919191", - "open_deals_amount": null, - "open_deals_count": null, - "won_deals_amount": null, - "won_deals_count": null, - "last_contacted": null, - "last_contacted_mode": null, - "facebook": null, - "twitter": null, - "linkedin": null, - "links": { - "conversations": "/crm/sales/sales_accounts/70003771396/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", - "document_associations": "/crm/sales/sales_accounts/70003771396/document_associations", - "notes": "/crm/sales/sales_accounts/70003771396/notes?include=creater", - "tasks": "/crm/sales/sales_accounts/70003771396/tasks?include=creater,owner,updater,targetable,users,task_type", - "appointments": "/crm/sales/sales_accounts/70003771396/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note" - }, - "custom_field": {}, - "created_at": "2022-08-17T04:15:00-04:00", - "updated_at": "2022-08-24T06:03:31-04:00", - "avatar": null, - "parent_sales_account_id": null, - "recent_note": null, - "last_contacted_via_sales_activity": null, - "last_contacted_sales_activity_mode": null, - "completed_sales_sequences": null, - "active_sales_sequences": null, - "last_assigned_at": null, - "tags": [], - "is_deleted": false, - "team_user_ids": null, - "has_connections": false, - "record_type_id": "71010794477" - } - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert?include=sales_accounts": { - "contact": { - "id": 70042006456, - "first_name": "Rk", - "last_name": "Mishra", - "display_name": "Rk Mishra", - "avatar": null, - "job_title": null, - "city": null, - "state": null, - "zipcode": null, - "country": null, - "email": "testuser@google.com", - "emails": [ - { - "id": 70037311213, - "value": "testuser@google.com", - "is_primary": true, - "label": null, - "_destroy": false - } - ], - "time_zone": "IST", - "work_number": "9988776655", - "mobile_number": "19265559504", - "address": null, - "last_seen": null, - "lead_score": 26, - "last_contacted": null, - "open_deals_amount": null, - "won_deals_amount": null, - "links": { - "conversations": "/crm/sales/contacts/70042006456/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", - "timeline_feeds": "/crm/sales/contacts/70042006456/timeline_feeds", - "document_associations": "/crm/sales/contacts/70042006456/document_associations", - "notes": "/crm/sales/contacts/70042006456/notes?include=creater", - "tasks": "/crm/sales/contacts/70042006456/tasks?include=creater,owner,updater,targetable,users,task_type", - "appointments": "/crm/sales/contacts/70042006456/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note", - "reminders": "/crm/sales/contacts/70042006456/reminders?include=creater,owner,updater,targetable", - "duplicates": "/crm/sales/contacts/70042006456/duplicates", - "connections": "/crm/sales/contacts/70042006456/connections" - }, - "last_contacted_sales_activity_mode": null, - "custom_field": {}, - "created_at": "2022-08-09T03:22:12-04:00", - "updated_at": "2022-08-30T00:33:27-04:00", - "keyword": "drilling", - "medium": "facebook", - "last_contacted_mode": null, - "recent_note": null, - "won_deals_count": null, - "last_contacted_via_sales_activity": null, - "completed_sales_sequences": null, - "active_sales_sequences": null, - "web_form_ids": null, - "open_deals_count": null, - "last_assigned_at": "2022-08-29T05:51:24-04:00", - "tags": [], - "facebook": null, - "twitter": null, - "linkedin": null, - "is_deleted": false, - "team_user_ids": null, - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "work_email": null, - "subscription_status": 1, - "subscription_types": "2;3;4;5;1", - "customer_fit": 2, - "record_type_id": "71010794476", - "whatsapp_subscription_status": 2, - "sms_subscription_status": 2, - "last_seen_chat": null, - "first_seen_chat": null, - "locale": null, - "total_sessions": null, - "phone_numbers": [], - "sales_accounts": [ - { - "partial": true, - "id": 70003771198, - "name": "div-quer", - "avatar": null, - "website": null, - "last_contacted": null, - "record_type_id": "71010794477", - "is_primary": true - }, - { - "partial": true, - "id": 70003825177, - "name": "BisleriGroup", - "avatar": null, - "website": null, - "last_contacted": null, - "record_type_id": "71010794477", - "is_primary": false - } - ] - } - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/selector/sales_activity_types": { - "sales_activity_types": [ - { - "partial": true, - "id": 70000666879, - "name": "own-calender", - "internal_name": "cappointment", - "show_in_conversation": true, - "position": 1, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000663932, - "name": "fb-support", - "internal_name": "facebook", - "show_in_conversation": true, - "position": 2, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000663746, - "name": "twitter sales", - "internal_name": "twitter", - "show_in_conversation": true, - "position": 3, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000646396, - "name": "linked sales", - "internal_name": "linkedin", - "show_in_conversation": true, - "position": 4, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000642330, - "name": "facebook sales", - "internal_name": "facebook", - "show_in_conversation": true, - "position": 5, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612897, - "name": "Chat", - "internal_name": "chat", - "show_in_conversation": true, - "position": 6, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612898, - "name": "Phone", - "internal_name": "phone", - "show_in_conversation": true, - "position": 7, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612899, - "name": "Meeting", - "internal_name": "appointment", - "show_in_conversation": true, - "position": 8, - "is_default": true, - "is_checkedin": true - }, - { - "partial": true, - "id": 70000612900, - "name": "Task", - "internal_name": "task", - "show_in_conversation": true, - "position": 9, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612901, - "name": "Email", - "internal_name": "email", - "show_in_conversation": true, - "position": 10, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612902, - "name": "SMS Outgoing", - "internal_name": "sms_outgoing", - "show_in_conversation": true, - "position": 11, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612903, - "name": "Reminder", - "internal_name": "reminder", - "show_in_conversation": false, - "position": 12, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612904, - "name": "SMS Incoming", - "internal_name": "sms_incoming", - "show_in_conversation": true, - "position": 13, - "is_default": true, - "is_checkedin": false - } - ] - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert": { - "contact": { - "id": 70054866612, - "first_name": null, - "last_name": null, - "display_name": "jamessampleton120@gmail.com", - "avatar": null, - "job_title": null, - "city": null, - "state": null, - "zipcode": null, - "country": null, - "email": "jamessampleton120@gmail.com", - "emails": [ - { - "id": 70047409219, - "value": "jamessampleton120@gmail.com", - "is_primary": true, - "label": null, - "_destroy": false - } - ], - "time_zone": null, - "work_number": null, - "mobile_number": null, - "address": null, - "last_seen": null, - "lead_score": 0, - "last_contacted": null, - "open_deals_amount": null, - "won_deals_amount": null, - "links": { - "conversations": "/crm/sales/contacts/70054866612/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", - "timeline_feeds": "/crm/sales/contacts/70054866612/timeline_feeds", - "document_associations": "/crm/sales/contacts/70054866612/document_associations", - "notes": "/crm/sales/contacts/70054866612/notes?include=creater", - "tasks": "/crm/sales/contacts/70054866612/tasks?include=creater,owner,updater,targetable,users,task_type", - "appointments": "/crm/sales/contacts/70054866612/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note", - "reminders": "/crm/sales/contacts/70054866612/reminders?include=creater,owner,updater,targetable", - "duplicates": "/crm/sales/contacts/70054866612/duplicates", - "connections": "/crm/sales/contacts/70054866612/connections" - }, - "last_contacted_sales_activity_mode": null, - "custom_field": {}, - "created_at": "2022-10-11T08:42:15-04:00", - "updated_at": "2022-10-11T08:42:15-04:00", - "keyword": null, - "medium": null, - "last_contacted_mode": null, - "recent_note": null, - "won_deals_count": null, - "last_contacted_via_sales_activity": null, - "completed_sales_sequences": null, - "active_sales_sequences": null, - "web_form_ids": null, - "open_deals_count": null, - "last_assigned_at": null, - "tags": [], - "facebook": null, - "twitter": null, - "linkedin": null, - "is_deleted": false, - "team_user_ids": null, - "external_id": null, - "work_email": null, - "subscription_status": 1, - "subscription_types": "2;3;4;5;1", - "customer_fit": 0, - "record_type_id": "71012139284", - "whatsapp_subscription_status": 2, - "sms_subscription_status": 2, - "last_seen_chat": null, - "first_seen_chat": null, - "locale": null, - "total_sessions": null, - "phone_numbers": [] - } - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/lists": { - "lists": [ - { - "id": 70000053624, - "name": "Sample list" - }, - { - "id": 70000056575, - "name": "list1-test" - }, - { - "id": 70000058627, - "name": "Jio 5G Group" - }, - { - "id": 70000058628, - "name": "Airtel 5G Group" - }, - { - "id": 70000059716, - "name": "Voda 5G" - } - ], - "meta": { - "total_pages": 1, - "total": 5 - } - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/selector/lifecycle_stages": { - "lifecycle_stages": [ - { - "id": 71012139274, - "name": "Sales Qualified Lead start", - "position": 1, - "disabled": false, - "default": true, - "type": "Sales Qualified Lead", - "contact_status_ids": [70000697858, 70000697859, 70000697860] - }, - { - "id": 71012139273, - "name": "Lead", - "position": 2, - "disabled": false, - "default": true, - "type": "Lead", - "contact_status_ids": [70000697854, 70000697855, 70000697856, 70000697857] - }, - { - "id": 71012806409, - "name": "final Customer", - "position": 3, - "disabled": false, - "default": false, - "type": "Custom", - "contact_status_ids": [70000736543, 70000736544] - }, - { - "id": 71012139275, - "name": "Customer", - "position": 4, - "disabled": false, - "default": true, - "type": "Customer", - "contact_status_ids": [70000697861, 70000697862] - } - ] - } -} diff --git a/test/__mocks__/data/freshsales/response.json b/test/__mocks__/data/freshsales/response.json deleted file mode 100644 index 3b0d0af192..0000000000 --- a/test/__mocks__/data/freshsales/response.json +++ /dev/null @@ -1,430 +0,0 @@ -{ - "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert": { - "sales_account": { - "id": 70003771396, - "name": "postman2.0", - "address": "Red Colony", - "city": "Pune", - "state": "Goa", - "zipcode": null, - "country": null, - "number_of_employees": 11, - "annual_revenue": 1000, - "website": null, - "owner_id": null, - "phone": "919191919191", - "open_deals_amount": null, - "open_deals_count": null, - "won_deals_amount": null, - "won_deals_count": null, - "last_contacted": null, - "last_contacted_mode": null, - "facebook": null, - "twitter": null, - "linkedin": null, - "links": { - "conversations": "/crm/sales/sales_accounts/70003771396/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", - "document_associations": "/crm/sales/sales_accounts/70003771396/document_associations", - "notes": "/crm/sales/sales_accounts/70003771396/notes?include=creater", - "tasks": "/crm/sales/sales_accounts/70003771396/tasks?include=creater,owner,updater,targetable,users,task_type", - "appointments": "/crm/sales/sales_accounts/70003771396/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note" - }, - "custom_field": {}, - "created_at": "2022-08-17T04:15:00-04:00", - "updated_at": "2022-08-24T06:03:31-04:00", - "avatar": null, - "parent_sales_account_id": null, - "recent_note": null, - "last_contacted_via_sales_activity": null, - "last_contacted_sales_activity_mode": null, - "completed_sales_sequences": null, - "active_sales_sequences": null, - "last_assigned_at": null, - "tags": [], - "is_deleted": false, - "team_user_ids": null, - "has_connections": false, - "record_type_id": "71010794477" - } - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert?include=sales_accounts": { - "contact": { - "id": 70042006456, - "first_name": "Rk", - "last_name": "Mishra", - "display_name": "Rk Mishra", - "avatar": null, - "job_title": null, - "city": null, - "state": null, - "zipcode": null, - "country": null, - "email": "testuser@google.com", - "emails": [ - { - "id": 70037311213, - "value": "testuser@google.com", - "is_primary": true, - "label": null, - "_destroy": false - } - ], - "time_zone": "IST", - "work_number": "9988776655", - "mobile_number": "19265559504", - "address": null, - "last_seen": null, - "lead_score": 26, - "last_contacted": null, - "open_deals_amount": null, - "won_deals_amount": null, - "links": { - "conversations": "/crm/sales/contacts/70042006456/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", - "timeline_feeds": "/crm/sales/contacts/70042006456/timeline_feeds", - "document_associations": "/crm/sales/contacts/70042006456/document_associations", - "notes": "/crm/sales/contacts/70042006456/notes?include=creater", - "tasks": "/crm/sales/contacts/70042006456/tasks?include=creater,owner,updater,targetable,users,task_type", - "appointments": "/crm/sales/contacts/70042006456/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note", - "reminders": "/crm/sales/contacts/70042006456/reminders?include=creater,owner,updater,targetable", - "duplicates": "/crm/sales/contacts/70042006456/duplicates", - "connections": "/crm/sales/contacts/70042006456/connections" - }, - "last_contacted_sales_activity_mode": null, - "custom_field": {}, - "created_at": "2022-08-09T03:22:12-04:00", - "updated_at": "2022-08-30T00:33:27-04:00", - "keyword": "drilling", - "medium": "facebook", - "last_contacted_mode": null, - "recent_note": null, - "won_deals_count": null, - "last_contacted_via_sales_activity": null, - "completed_sales_sequences": null, - "active_sales_sequences": null, - "web_form_ids": null, - "open_deals_count": null, - "last_assigned_at": "2022-08-29T05:51:24-04:00", - "tags": [], - "facebook": null, - "twitter": null, - "linkedin": null, - "is_deleted": false, - "team_user_ids": null, - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "work_email": null, - "subscription_status": 1, - "subscription_types": "2;3;4;5;1", - "customer_fit": 2, - "record_type_id": "71010794476", - "whatsapp_subscription_status": 2, - "sms_subscription_status": 2, - "last_seen_chat": null, - "first_seen_chat": null, - "locale": null, - "total_sessions": null, - "phone_numbers": [], - "sales_accounts": [ - { - "partial": true, - "id": 70003771198, - "name": "div-quer", - "avatar": null, - "website": null, - "last_contacted": null, - "record_type_id": "71010794477", - "is_primary": true - }, - { - "partial": true, - "id": 70003825177, - "name": "BisleriGroup", - "avatar": null, - "website": null, - "last_contacted": null, - "record_type_id": "71010794477", - "is_primary": false - } - ] - } - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/selector/sales_activity_types": { - "sales_activity_types": [ - { - "partial": true, - "id": 70000666879, - "name": "own-calender", - "internal_name": "cappointment", - "show_in_conversation": true, - "position": 1, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000663932, - "name": "fb-support", - "internal_name": "facebook", - "show_in_conversation": true, - "position": 2, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000663746, - "name": "twitter sales", - "internal_name": "twitter", - "show_in_conversation": true, - "position": 3, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000646396, - "name": "linked sales", - "internal_name": "linkedin", - "show_in_conversation": true, - "position": 4, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000642330, - "name": "facebook sales", - "internal_name": "facebook", - "show_in_conversation": true, - "position": 5, - "is_default": false, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612897, - "name": "Chat", - "internal_name": "chat", - "show_in_conversation": true, - "position": 6, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612898, - "name": "Phone", - "internal_name": "phone", - "show_in_conversation": true, - "position": 7, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612899, - "name": "Meeting", - "internal_name": "appointment", - "show_in_conversation": true, - "position": 8, - "is_default": true, - "is_checkedin": true - }, - { - "partial": true, - "id": 70000612900, - "name": "Task", - "internal_name": "task", - "show_in_conversation": true, - "position": 9, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612901, - "name": "Email", - "internal_name": "email", - "show_in_conversation": true, - "position": 10, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612902, - "name": "SMS Outgoing", - "internal_name": "sms_outgoing", - "show_in_conversation": true, - "position": 11, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612903, - "name": "Reminder", - "internal_name": "reminder", - "show_in_conversation": false, - "position": 12, - "is_default": true, - "is_checkedin": false - }, - { - "partial": true, - "id": 70000612904, - "name": "SMS Incoming", - "internal_name": "sms_incoming", - "show_in_conversation": true, - "position": 13, - "is_default": true, - "is_checkedin": false - } - ] - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert": { - "contact": { - "id": 70054866612, - "first_name": null, - "last_name": null, - "display_name": "jamessampleton120@gmail.com", - "avatar": null, - "job_title": null, - "city": null, - "state": null, - "zipcode": null, - "country": null, - "email": "jamessampleton120@gmail.com", - "emails": [ - { - "id": 70047409219, - "value": "jamessampleton120@gmail.com", - "is_primary": true, - "label": null, - "_destroy": false - } - ], - "time_zone": null, - "work_number": null, - "mobile_number": null, - "address": null, - "last_seen": null, - "lead_score": 0, - "last_contacted": null, - "open_deals_amount": null, - "won_deals_amount": null, - "links": { - "conversations": "/crm/sales/contacts/70054866612/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", - "timeline_feeds": "/crm/sales/contacts/70054866612/timeline_feeds", - "document_associations": "/crm/sales/contacts/70054866612/document_associations", - "notes": "/crm/sales/contacts/70054866612/notes?include=creater", - "tasks": "/crm/sales/contacts/70054866612/tasks?include=creater,owner,updater,targetable,users,task_type", - "appointments": "/crm/sales/contacts/70054866612/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note", - "reminders": "/crm/sales/contacts/70054866612/reminders?include=creater,owner,updater,targetable", - "duplicates": "/crm/sales/contacts/70054866612/duplicates", - "connections": "/crm/sales/contacts/70054866612/connections" - }, - "last_contacted_sales_activity_mode": null, - "custom_field": {}, - "created_at": "2022-10-11T08:42:15-04:00", - "updated_at": "2022-10-11T08:42:15-04:00", - "keyword": null, - "medium": null, - "last_contacted_mode": null, - "recent_note": null, - "won_deals_count": null, - "last_contacted_via_sales_activity": null, - "completed_sales_sequences": null, - "active_sales_sequences": null, - "web_form_ids": null, - "open_deals_count": null, - "last_assigned_at": null, - "tags": [], - "facebook": null, - "twitter": null, - "linkedin": null, - "is_deleted": false, - "team_user_ids": null, - "external_id": null, - "work_email": null, - "subscription_status": 1, - "subscription_types": "2;3;4;5;1", - "customer_fit": 0, - "record_type_id": "71012139284", - "whatsapp_subscription_status": 2, - "sms_subscription_status": 2, - "last_seen_chat": null, - "first_seen_chat": null, - "locale": null, - "total_sessions": null, - "phone_numbers": [] - } - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/lists": { - "lists": [ - { - "id": 70000053624, - "name": "Sample list" - }, - { - "id": 70000056575, - "name": "list1-test" - }, - { - "id": 70000058627, - "name": "Jio 5G Group" - }, - { - "id": 70000058628, - "name": "Airtel 5G Group" - }, - { - "id": 70000059716, - "name": "Voda 5G" - } - ], - "meta": { - "total_pages": 1, - "total": 5 - } - }, - "https://domain-rudder.myfreshworks.com/crm/sales/api/selector/lifecycle_stages": { - "lifecycle_stages": [ - { - "id": 71012139274, - "name": "Sales Qualified Lead start", - "position": 1, - "disabled": false, - "default": true, - "type": "Sales Qualified Lead", - "contact_status_ids": [70000697858, 70000697859, 70000697860] - }, - { - "id": 71012139273, - "name": "Lead", - "position": 2, - "disabled": false, - "default": true, - "type": "Lead", - "contact_status_ids": [70000697854, 70000697855, 70000697856, 70000697857] - }, - { - "id": 71012806409, - "name": "final Customer", - "position": 3, - "disabled": false, - "default": false, - "type": "Custom", - "contact_status_ids": [70000736543, 70000736544] - }, - { - "id": 71012139275, - "name": "Customer", - "position": 4, - "disabled": false, - "default": true, - "type": "Customer", - "contact_status_ids": [70000697861, 70000697862] - } - ] - } -} diff --git a/test/__mocks__/data/google_adwords_remarketing_lists/proxy_response.json b/test/__mocks__/data/google_adwords_remarketing_lists/proxy_response.json index 5d3ac9496b..2cf1d3276b 100644 --- a/test/__mocks__/data/google_adwords_remarketing_lists/proxy_response.json +++ b/test/__mocks__/data/google_adwords_remarketing_lists/proxy_response.json @@ -1,24 +1,24 @@ { - "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs:create": { + "https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs:create": { "status": 200, "data": { "resourceName": "customers/9249589672/offlineUserDataJobs/18025019461" } }, - "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs/18025019461:addOperations": { + "https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs/18025019461:addOperations": { "status": 200, "data": {} }, - "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs/18025019461:run": { + "https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs/18025019461:run": { "status": 200 }, - "https://googleads.googleapis.com/v14/customers/7693729834/offlineUserDataJobs:create": { + "https://googleads.googleapis.com/v15/customers/7693729834/offlineUserDataJobs:create": { "status": 200, "data": { "resourceName": "customers/9249589672/offlineUserDataJobs/18025019462" } }, - "https://googleads.googleapis.com/v14/customers/7693729834/offlineUserDataJobs/18025019462:addOperations": { + "https://googleads.googleapis.com/v15/customers/7693729834/offlineUserDataJobs/18025019462:addOperations": { "response": { "data": { "error": { @@ -61,7 +61,7 @@ "status": 400 } }, - "https://googleads.googleapis.com/v14/customers/1234567890/googleAds:searchStream": { + "https://googleads.googleapis.com/v15/customers/1234567890/googleAds:searchStream": { "response": { "data": [ { @@ -75,11 +75,11 @@ "status": 401 } }, - "https://googleads.googleapis.com/v14/customers/1234567899/googleAds:searchStream": { + "https://googleads.googleapis.com/v15/customers/1234567899/googleAds:searchStream": { "response": "", "code": "ECONNREFUSED" }, - "https://googleads.googleapis.com/v14/customers/1234567891/googleAds:searchStream": { + "https://googleads.googleapis.com/v15/customers/1234567891/googleAds:searchStream": { "data": [ { "results": [ @@ -96,7 +96,7 @@ ], "status": 200 }, - "https://googleads.googleapis.com/v14/customers/1234567891:uploadConversionAdjustments": { + "https://googleads.googleapis.com/v15/customers/1234567891:uploadConversionAdjustments": { "data": [ { "adjustmentType": "ENHANCEMENT", diff --git a/test/__mocks__/data/hs/response.json b/test/__mocks__/data/hs/response.json deleted file mode 100644 index e552275466..0000000000 --- a/test/__mocks__/data/hs/response.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "https://api.hubapi.com/properties/v1/contacts/properties?hapikey=dummy-apikey": [ - { "name": "company_size", "type": "string" }, - { "name": "date_of_birth", "type": "string" }, - { "name": "days_to_close", "type": "number" }, - { - "name": "date_submitted", - "type": "date" - }, - { - "name": "days_create", - "type": "date" - }, - { - "name": "days_closed", - "type": "date" - }, - { "name": "degree", "type": "string" }, - { "name": "field_of_study", "type": "string" }, - { "name": "first_conversion_date", "type": "datetime" }, - { "name": "first_conversion_event_name", "type": "string" }, - { "name": "first_deal_created_date", "type": "datetime" }, - { "name": "gender", "type": "string" }, - { "name": "graduation_date", "type": "string" }, - { "name": "hs_additional_emails", "type": "enumeration" }, - { "name": "hs_all_contact_vids", "type": "enumeration" }, - { - "name": "hs_analytics_first_touch_converting_campaign", - "type": "string" - }, - { "name": "hs_analytics_last_touch_converting_campaign", "type": "string" }, - { "name": "hs_avatar_filemanager_key", "type": "string" }, - { "name": "hs_calculated_form_submissions", "type": "enumeration" }, - { "name": "hs_calculated_merged_vids", "type": "enumeration" }, - { "name": "hs_calculated_mobile_number", "type": "string" }, - { "name": "hs_calculated_phone_number", "type": "string" }, - { "name": "hs_calculated_phone_number_area_code", "type": "string" }, - { "name": "hs_calculated_phone_number_country_code", "type": "string" }, - { "name": "hs_calculated_phone_number_region_code", "type": "string" }, - { "name": "hs_content_membership_email_confirmed", "type": "bool" }, - { "name": "hs_content_membership_notes", "type": "string" }, - { "name": "hs_content_membership_registered_at", "type": "datetime" }, - { - "name": "hs_content_membership_registration_domain_sent_to", - "type": "string" - }, - { - "name": "hs_content_membership_registration_email_sent_at", - "type": "datetime" - }, - { "name": "hs_content_membership_status", "type": "enumeration" }, - { "name": "hs_conversations_visitor_email", "type": "string" }, - { "name": "hs_created_by_conversations", "type": "bool" }, - { "name": "hs_created_by_user_id", "type": "string" }, - { "name": "hs_createdate", "type": "datetime" }, - { "name": "hs_document_last_revisited", "type": "datetime" }, - { "name": "hs_email_domain", "type": "string" }, - { "name": "hs_email_quarantined", "type": "bool" }, - { "name": "hs_email_quarantined_reason", "type": "enumeration" }, - { "name": "hs_email_recipient_fatigue_recovery_time", "type": "datetime" }, - { "name": "hs_email_sends_since_last_engagement", "type": "number" }, - { "name": "hs_emailconfirmationstatus", "type": "enumeration" }, - { "name": "hs_facebook_ad_clicked", "type": "bool" }, - { "name": "hs_feedback_last_nps_follow_up", "type": "string" }, - { "name": "hs_feedback_last_nps_rating", "type": "enumeration" }, - { "name": "hs_feedback_last_survey_date", "type": "datetime" }, - { "name": "hs_feedback_show_nps_web_survey", "type": "bool" }, - { "name": "hs_google_click_id", "type": "string" }, - { "name": "hs_ip_timezone", "type": "string" }, - { "name": "hs_is_contact", "type": "bool" }, - { "name": "hs_last_sales_activity_date", "type": "datetime" }, - { "name": "hs_lastmodifieddate", "type": "datetime" }, - { "name": "hs_lead_status", "type": "enumeration" }, - { "name": "hs_legal_basis", "type": "enumeration" }, - { "name": "hs_merged_object_ids", "type": "enumeration" }, - { "name": "hs_object_id", "type": "number" }, - { "name": "hs_predictivecontactscore_v2", "type": "number" }, - { "name": "hs_predictivescoringtier", "type": "enumeration" }, - { "name": "hs_sales_email_last_clicked", "type": "datetime" }, - { "name": "hs_sales_email_last_opened", "type": "datetime" }, - { - "name": "hs_searchable_calculated_international_mobile_number", - "type": "phone_number" - }, - { - "name": "hs_searchable_calculated_international_phone_number", - "type": "phone_number" - }, - { - "name": "hs_searchable_calculated_mobile_number", - "type": "phone_number" - }, - { "name": "hs_searchable_calculated_phone_number", "type": "phone_number" }, - { "name": "hs_sequences_is_enrolled", "type": "bool" }, - { "name": "hs_updated_by_user_id", "type": "string" }, - { "name": "hubspot_owner_assigneddate", "type": "datetime" }, - { "name": "ip_city", "type": "string" }, - { "name": "ip_country", "type": "string" }, - { "name": "ip_country_code", "type": "string" }, - { "name": "ip_latlon", "type": "string" }, - { "name": "ip_state", "type": "string" }, - { "name": "ip_state_code", "type": "string" }, - { "name": "ip_zipcode", "type": "string" }, - { "name": "job_function", "type": "string" }, - { "name": "lastmodifieddate", "type": "datetime" }, - { "name": "marital_status", "type": "string" }, - { "name": "military_status", "type": "string" }, - { "name": "num_associated_deals", "type": "number" }, - { "name": "num_conversion_events", "type": "number" }, - { "name": "num_unique_conversion_events", "type": "number" }, - { "name": "recent_conversion_date", "type": "datetime" }, - { "name": "recent_conversion_event_name", "type": "string" }, - { "name": "recent_deal_amount", "type": "number" }, - { "name": "recent_deal_close_date", "type": "datetime" }, - { "name": "relationship_status", "type": "string" }, - { "name": "school", "type": "string" }, - { "name": "seniority", "type": "string" }, - { "name": "start_date", "type": "string" }, - { "name": "test_date", "type": "date" }, - { "name": "test_key", "type": "string" }, - { "name": "test_prop", "type": "string" }, - { "name": "test_property", "type": "string" }, - { "name": "total_revenue", "type": "number" }, - { "name": "work_email", "type": "string" }, - { "name": "firstname", "type": "string" }, - { "name": "hs_analytics_first_url", "type": "string" }, - { "name": "hs_email_delivered", "type": "number" }, - { "name": "hs_email_optout_7283808", "type": "enumeration" }, - { "name": "twitterhandle", "type": "string" }, - { "name": "currentlyinworkflow", "type": "enumeration" }, - { "name": "hs_analytics_last_url", "type": "string" }, - { "name": "hs_email_open", "type": "number" }, - { "name": "fax", "type": "string" }, - { "name": "hs_analytics_first_timestamp", "type": "datetime" }, - { "name": "hs_email_last_email_name", "type": "string" }, - { "name": "hs_email_last_send_date", "type": "datetime" }, - { "name": "address", "type": "string" }, - { "name": "engagements_last_meeting_booked", "type": "datetime" }, - { "name": "engagements_last_meeting_booked_campaign", "type": "string" }, - { "name": "engagements_last_meeting_booked_medium", "type": "string" }, - { "name": "engagements_last_meeting_booked_source", "type": "string" }, - { "name": "hs_analytics_first_visit_timestamp", "type": "datetime" }, - { "name": "hs_email_last_open_date", "type": "datetime" }, - { "name": "hs_sales_email_last_replied", "type": "datetime" }, - { "name": "hubspot_owner_id", "type": "enumeration" }, - { "name": "notes_last_contacted", "type": "datetime" }, - { "name": "notes_last_updated", "type": "datetime" }, - { "name": "notes_next_activity_date", "type": "datetime" }, - { "name": "num_contacted_notes", "type": "number" }, - { "name": "num_notes", "type": "number" }, - { "name": "surveymonkeyeventlastupdated", "type": "number" }, - { "name": "webinareventlastupdated", "type": "number" }, - { "name": "city", "type": "string" }, - { "name": "hs_analytics_last_timestamp", "type": "datetime" }, - { "name": "hs_email_last_click_date", "type": "datetime" }, - { "name": "hubspot_team_id", "type": "enumeration" }, - { "name": "hs_all_owner_ids", "type": "enumeration" }, - { "name": "hs_analytics_last_visit_timestamp", "type": "datetime" }, - { "name": "hs_email_first_send_date", "type": "datetime" }, - { "name": "state", "type": "string" }, - { "name": "hs_all_team_ids", "type": "enumeration" }, - { "name": "hs_analytics_source", "type": "enumeration" }, - { "name": "hs_email_first_open_date", "type": "datetime" }, - { "name": "zip", "type": "string" }, - { "name": "country", "type": "string" }, - { "name": "hs_all_accessible_team_ids", "type": "enumeration" }, - { "name": "hs_analytics_source_data_1", "type": "string" }, - { "name": "hs_email_first_click_date", "type": "datetime" }, - { "name": "hs_analytics_source_data_2", "type": "string" }, - { "name": "hs_email_is_ineligible", "type": "bool" }, - { "name": "hs_language", "type": "enumeration" }, - { "name": "hs_analytics_first_referrer", "type": "string" }, - { "name": "jobtitle", "type": "string" }, - { "name": "hs_analytics_last_referrer", "type": "string" }, - { "name": "message", "type": "string" }, - { "name": "closedate", "type": "datetime" }, - { "name": "hs_analytics_average_page_views", "type": "number" }, - { "name": "hs_analytics_revenue", "type": "number" }, - { "name": "hs_lifecyclestage_lead_date", "type": "datetime" }, - { - "name": "hs_lifecyclestage_marketingqualifiedlead_date", - "type": "datetime" - }, - { "name": "hs_lifecyclestage_opportunity_date", "type": "datetime" }, - { "name": "lifecyclestage", "type": "enumeration" }, - { "name": "hs_lifecyclestage_salesqualifiedlead_date", "type": "datetime" }, - { "name": "createdate", "type": "datetime" }, - { "name": "hs_lifecyclestage_evangelist_date", "type": "datetime" }, - { "name": "hs_lifecyclestage_customer_date", "type": "datetime" }, - { "name": "hubspotscore", "type": "number" }, - { "name": "company", "type": "string" }, - { "name": "hs_lifecyclestage_subscriber_date", "type": "datetime" }, - { "name": "hs_lifecyclestage_other_date", "type": "datetime" }, - { "name": "website", "type": "string" }, - { "name": "numemployees", "type": "enumeration" }, - { "name": "annualrevenue", "type": "string" }, - { "name": "industry", "type": "string" }, - { "name": "associatedcompanyid", "type": "number" }, - { "name": "associatedcompanylastupdated", "type": "number" }, - { "name": "hs_predictivecontactscorebucket", "type": "enumeration" }, - { "name": "hs_predictivecontactscore", "type": "number" } - ], - "https://api.hubapi.com/properties/v1/contacts/properties": [ - { "name": "company_size", "type": "string" }, - { "name": "date_of_birth", "type": "string" }, - { "name": "days_to_close", "type": "number" }, - { - "name": "date_submitted", - "type": "date" - }, - { - "name": "date_created", - "type": "date" - }, - { - "name": "date_closed", - "type": "date" - }, - { "name": "degree", "type": "string" }, - { "name": "field_of_study", "type": "string" }, - { "name": "first_conversion_date", "type": "datetime" }, - { "name": "first_conversion_event_name", "type": "string" }, - { "name": "first_deal_created_date", "type": "datetime" }, - { "name": "gender", "type": "string" }, - { "name": "graduation_date", "type": "string" }, - { "name": "hs_additional_emails", "type": "enumeration" }, - { "name": "hs_all_contact_vids", "type": "enumeration" }, - { - "name": "hs_analytics_first_touch_converting_campaign", - "type": "string" - }, - { "name": "hs_analytics_last_touch_converting_campaign", "type": "string" }, - { "name": "hs_avatar_filemanager_key", "type": "string" }, - { "name": "hs_calculated_form_submissions", "type": "enumeration" }, - { "name": "hs_calculated_merged_vids", "type": "enumeration" }, - { "name": "hs_calculated_mobile_number", "type": "string" }, - { "name": "hs_calculated_phone_number", "type": "string" }, - { "name": "hs_calculated_phone_number_area_code", "type": "string" }, - { "name": "hs_calculated_phone_number_country_code", "type": "string" }, - { "name": "hs_calculated_phone_number_region_code", "type": "string" }, - { "name": "hs_content_membership_email_confirmed", "type": "bool" }, - { "name": "hs_content_membership_notes", "type": "string" }, - { "name": "hs_content_membership_registered_at", "type": "datetime" }, - { - "name": "hs_content_membership_registration_domain_sent_to", - "type": "string" - }, - { - "name": "hs_content_membership_registration_email_sent_at", - "type": "datetime" - }, - { "name": "hs_content_membership_status", "type": "enumeration" }, - { "name": "hs_conversations_visitor_email", "type": "string" }, - { "name": "hs_created_by_conversations", "type": "bool" }, - { "name": "hs_created_by_user_id", "type": "string" }, - { "name": "hs_createdate", "type": "datetime" }, - { "name": "hs_document_last_revisited", "type": "datetime" }, - { "name": "hs_email_domain", "type": "string" }, - { "name": "hs_email_quarantined", "type": "bool" }, - { "name": "hs_email_quarantined_reason", "type": "enumeration" }, - { "name": "hs_email_recipient_fatigue_recovery_time", "type": "datetime" }, - { "name": "hs_email_sends_since_last_engagement", "type": "number" }, - { "name": "hs_emailconfirmationstatus", "type": "enumeration" }, - { "name": "hs_facebook_ad_clicked", "type": "bool" }, - { "name": "hs_feedback_last_nps_follow_up", "type": "string" }, - { "name": "hs_feedback_last_nps_rating", "type": "enumeration" }, - { "name": "hs_feedback_last_survey_date", "type": "datetime" }, - { "name": "hs_feedback_show_nps_web_survey", "type": "bool" }, - { "name": "hs_google_click_id", "type": "string" }, - { "name": "hs_ip_timezone", "type": "string" }, - { "name": "hs_is_contact", "type": "bool" }, - { "name": "hs_last_sales_activity_date", "type": "datetime" }, - { "name": "hs_lastmodifieddate", "type": "datetime" }, - { "name": "hs_lead_status", "type": "enumeration" }, - { "name": "hs_legal_basis", "type": "enumeration" }, - { "name": "hs_merged_object_ids", "type": "enumeration" }, - { "name": "hs_object_id", "type": "number" }, - { "name": "hs_predictivecontactscore_v2", "type": "number" }, - { "name": "hs_predictivescoringtier", "type": "enumeration" }, - { "name": "hs_sales_email_last_clicked", "type": "datetime" }, - { "name": "hs_sales_email_last_opened", "type": "datetime" }, - { - "name": "hs_searchable_calculated_international_mobile_number", - "type": "phone_number" - }, - { - "name": "hs_searchable_calculated_international_phone_number", - "type": "phone_number" - }, - { - "name": "hs_searchable_calculated_mobile_number", - "type": "phone_number" - }, - { "name": "hs_searchable_calculated_phone_number", "type": "phone_number" }, - { "name": "hs_sequences_is_enrolled", "type": "bool" }, - { "name": "hs_updated_by_user_id", "type": "string" }, - { "name": "hubspot_owner_assigneddate", "type": "datetime" }, - { "name": "ip_city", "type": "string" }, - { "name": "ip_country", "type": "string" }, - { "name": "ip_country_code", "type": "string" }, - { "name": "ip_latlon", "type": "string" }, - { "name": "ip_state", "type": "string" }, - { "name": "ip_state_code", "type": "string" }, - { "name": "ip_zipcode", "type": "string" }, - { "name": "job_function", "type": "string" }, - { "name": "lastmodifieddate", "type": "datetime" }, - { "name": "marital_status", "type": "string" }, - { "name": "military_status", "type": "string" }, - { "name": "num_associated_deals", "type": "number" }, - { "name": "num_conversion_events", "type": "number" }, - { "name": "num_unique_conversion_events", "type": "number" }, - { "name": "recent_conversion_date", "type": "datetime" }, - { "name": "recent_conversion_event_name", "type": "string" }, - { "name": "recent_deal_amount", "type": "number" }, - { "name": "recent_deal_close_date", "type": "datetime" }, - { "name": "relationship_status", "type": "string" }, - { "name": "school", "type": "string" }, - { "name": "seniority", "type": "string" }, - { "name": "start_date", "type": "string" }, - { "name": "test_date", "type": "date" }, - { "name": "test_key", "type": "string" }, - { "name": "test_prop", "type": "string" }, - { "name": "test_property", "type": "string" }, - { "name": "total_revenue", "type": "number" }, - { "name": "work_email", "type": "string" }, - { "name": "firstname", "type": "string" }, - { "name": "hs_analytics_first_url", "type": "string" }, - { "name": "hs_email_delivered", "type": "number" }, - { "name": "hs_email_optout_7283808", "type": "enumeration" }, - { "name": "twitterhandle", "type": "string" }, - { "name": "currentlyinworkflow", "type": "enumeration" }, - { "name": "hs_analytics_last_url", "type": "string" }, - { "name": "hs_email_open", "type": "number" }, - { "name": "fax", "type": "string" }, - { "name": "hs_analytics_first_timestamp", "type": "datetime" }, - { "name": "hs_email_last_email_name", "type": "string" }, - { "name": "hs_email_last_send_date", "type": "datetime" }, - { "name": "address", "type": "string" }, - { "name": "engagements_last_meeting_booked", "type": "datetime" }, - { "name": "engagements_last_meeting_booked_campaign", "type": "string" }, - { "name": "engagements_last_meeting_booked_medium", "type": "string" }, - { "name": "engagements_last_meeting_booked_source", "type": "string" }, - { "name": "hs_analytics_first_visit_timestamp", "type": "datetime" }, - { "name": "hs_email_last_open_date", "type": "datetime" }, - { "name": "hs_sales_email_last_replied", "type": "datetime" }, - { "name": "hubspot_owner_id", "type": "enumeration" }, - { "name": "notes_last_contacted", "type": "datetime" }, - { "name": "notes_last_updated", "type": "datetime" }, - { "name": "notes_next_activity_date", "type": "datetime" }, - { "name": "num_contacted_notes", "type": "number" }, - { "name": "num_notes", "type": "number" }, - { "name": "surveymonkeyeventlastupdated", "type": "number" }, - { "name": "webinareventlastupdated", "type": "number" }, - { "name": "city", "type": "string" }, - { "name": "hs_analytics_last_timestamp", "type": "datetime" }, - { "name": "hs_email_last_click_date", "type": "datetime" }, - { "name": "hubspot_team_id", "type": "enumeration" }, - { "name": "hs_all_owner_ids", "type": "enumeration" }, - { "name": "hs_analytics_last_visit_timestamp", "type": "datetime" }, - { "name": "hs_email_first_send_date", "type": "datetime" }, - { "name": "state", "type": "string" }, - { "name": "hs_all_team_ids", "type": "enumeration" }, - { "name": "hs_analytics_source", "type": "enumeration" }, - { "name": "hs_email_first_open_date", "type": "datetime" }, - { "name": "zip", "type": "string" }, - { "name": "country", "type": "string" }, - { "name": "hs_all_accessible_team_ids", "type": "enumeration" }, - { "name": "hs_analytics_source_data_1", "type": "string" }, - { "name": "hs_email_first_click_date", "type": "datetime" }, - { "name": "hs_analytics_source_data_2", "type": "string" }, - { "name": "hs_email_is_ineligible", "type": "bool" }, - { "name": "hs_language", "type": "enumeration" }, - { "name": "hs_analytics_first_referrer", "type": "string" }, - { "name": "jobtitle", "type": "string" }, - { "name": "hs_analytics_last_referrer", "type": "string" }, - { "name": "message", "type": "string" }, - { "name": "closedate", "type": "datetime" }, - { "name": "hs_analytics_average_page_views", "type": "number" }, - { "name": "hs_analytics_revenue", "type": "number" }, - { "name": "hs_lifecyclestage_lead_date", "type": "datetime" }, - { - "name": "hs_lifecyclestage_marketingqualifiedlead_date", - "type": "datetime" - }, - { "name": "hs_lifecyclestage_opportunity_date", "type": "datetime" }, - { "name": "lifecyclestage", "type": "enumeration" }, - { "name": "hs_lifecyclestage_salesqualifiedlead_date", "type": "datetime" }, - { "name": "createdate", "type": "datetime" }, - { "name": "hs_lifecyclestage_evangelist_date", "type": "datetime" }, - { "name": "hs_lifecyclestage_customer_date", "type": "datetime" }, - { "name": "hubspotscore", "type": "number" }, - { "name": "company", "type": "string" }, - { "name": "hs_lifecyclestage_subscriber_date", "type": "datetime" }, - { "name": "hs_lifecyclestage_other_date", "type": "datetime" }, - { "name": "website", "type": "string" }, - { "name": "numemployees", "type": "enumeration" }, - { "name": "annualrevenue", "type": "string" }, - { "name": "industry", "type": "string" }, - { "name": "associatedcompanyid", "type": "number" }, - { "name": "associatedcompanylastupdated", "type": "number" }, - { "name": "hs_predictivecontactscorebucket", "type": "enumeration" }, - { "name": "hs_predictivecontactscore", "type": "number" } - ], - "https://api.hubapi.com/crm/v3/objects/contacts/search": { - "total": 1, - "results": [ - { - "id": "103604", - "properties": { - "createdate": "2022-07-15T15:25:08.975Z", - "email": "testhubspot@email.com", - "hs_object_id": "103604", - "lastmodifieddate": "2022-07-15T15:26:49.590Z" - }, - "createdAt": "2022-07-15T15:25:08.975Z", - "updatedAt": "2022-07-15T15:26:49.590Z", - "archived": false - } - ] - }, - "https://api.hubapi.com/crm/v3/objects/lead/search": { - "total": 1, - "results": [ - { - "id": "103605", - "properties": { - "createdate": "2022-08-15T15:25:08.975Z", - "email": "testhubspot2@email.com", - "hs_object_id": "103605", - "lastmodifieddate": "2022-08-15T15:26:49.590Z" - }, - "createdAt": "2022-08-15T15:25:08.975Z", - "updatedAt": "2022-08-15T15:26:49.590Z", - "archived": false - } - ] - }, - "https://api.hubapi.com/crm/v3/objects/lead/search?hapikey=dummy-apikey": { - "total": 1, - "results": [ - { - "id": "103605", - "properties": { - "createdate": "2022-08-15T15:25:08.975Z", - "email": "testhubspot2@email.com", - "hs_object_id": "103605", - "lastmodifieddate": "2022-08-15T15:26:49.590Z" - }, - "createdAt": "2022-08-15T15:25:08.975Z", - "updatedAt": "2022-08-15T15:26:49.590Z", - "archived": false - } - ] - } -} diff --git a/test/__mocks__/data/intercom/proxy_response.json b/test/__mocks__/data/intercom/proxy_response.json deleted file mode 100644 index 3c5a3d9638..0000000000 --- a/test/__mocks__/data/intercom/proxy_response.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "https://api.intercom.io/users/test1": { - "data": { - "type": "error.list", - "request_id": "000on04msi4jpk7d3u60", - "errors": [ - { - "code": "Request Timeout", - "message": "The server would not wait any longer for the client" - } - ] - }, - "status": 408 - } -} diff --git a/test/__mocks__/data/monday/response.json b/test/__mocks__/data/monday/response.json deleted file mode 100644 index a6445f18ac..0000000000 --- a/test/__mocks__/data/monday/response.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "339283933": { - "data": { - "boards": [ - { - "name": "Planning", - "columns": [ - { - "id": "name", - "title": "Name", - "type": "name", - "description": null, - "settings_str": "{}" - }, - { - "id": "subitems", - "title": "Subitems", - "type": "subtasks", - "description": null, - "settings_str": "{\"allowMultipleItems\":true,\"itemTypeName\":\"column.subtasks.title\",\"displayType\":\"BOARD_INLINE\",\"boardIds\":[3160974974]}" - }, - { - "id": "person", - "title": "Person", - "type": "multiple-person", - "description": null, - "settings_str": "{}" - }, - { - "id": "status", - "title": "Status", - "type": "color", - "description": null, - "settings_str": "{\"labels\":{\"0\":\"Working on it\",\"1\":\"Done\",\"2\":\"Stuck\"},\"labels_positions_v2\":{\"0\":0,\"1\":2,\"2\":1,\"5\":3},\"labels_colors\":{\"0\":{\"color\":\"#fdab3d\",\"border\":\"#E99729\",\"var_name\":\"orange\"},\"1\":{\"color\":\"#00c875\",\"border\":\"#00B461\",\"var_name\":\"green-shadow\"},\"2\":{\"color\":\"#e2445c\",\"border\":\"#CE3048\",\"var_name\":\"red-shadow\"}}}" - }, - { - "id": "date4", - "title": "Date", - "type": "date", - "description": null, - "settings_str": "{}" - }, - { - "id": "checkbox", - "title": "Checkbox", - "type": "boolean", - "description": null, - "settings_str": "{}" - }, - { - "id": "connect_boards", - "title": "Connect boards", - "type": "board-relation", - "description": null, - "settings_str": "{\"allowCreateReflectionColumn\":false}" - }, - { - "id": "status_1", - "title": "Other", - "type": "color", - "description": null, - "settings_str": "{\"labels\":{\"0\":\"Working on it\",\"1\":\"Done\",\"2\":\"Stuck\"},\"labels_colors\":{\"0\":{\"color\":\"#fdab3d\",\"border\":\"#E99729\",\"var_name\":\"orange\"},\"1\":{\"color\":\"#00c875\",\"border\":\"#00B461\",\"var_name\":\"green-shadow\"},\"2\":{\"color\":\"#e2445c\",\"border\":\"#CE3048\",\"var_name\":\"red-shadow\"}}}" - }, - { - "id": "date_1", - "title": "Date 1", - "type": "date", - "description": null, - "settings_str": "{\"hide_footer\":false}" - }, - { - "id": "status_12", - "title": "new status", - "type": "color", - "description": null, - "settings_str": "{\"labels\":{\"0\":\"Working on it\",\"1\":\"Done\",\"2\":\"Stuck\"},\"labels_colors\":{\"0\":{\"color\":\"#fdab3d\",\"border\":\"#E99729\",\"var_name\":\"orange\"},\"1\":{\"color\":\"#00c875\",\"border\":\"#00B461\",\"var_name\":\"green-shadow\"},\"2\":{\"color\":\"#e2445c\",\"border\":\"#CE3048\",\"var_name\":\"red-shadow\"}}}" - }, - { - "id": "numbers", - "title": "Numbers", - "type": "numeric", - "description": null, - "settings_str": "{}" - }, - { - "id": "text", - "title": "Name", - "type": "text", - "description": null, - "settings_str": "{}" - }, - { - "id": "country", - "title": "Country", - "type": "country", - "description": null, - "settings_str": "{}" - }, - { - "id": "dropdown", - "title": "Dropdown", - "type": "dropdown", - "description": null, - "settings_str": "{\"hide_footer\":false,\"labels\":[{\"id\":1,\"name\":\"dropdown\"},{\"id\":2,\"name\":\"dropup\"}]}" - }, - { - "id": "email", - "title": "Email", - "type": "email", - "description": null, - "settings_str": "{}" - }, - { - "id": "location", - "title": "Location", - "type": "location", - "description": null, - "settings_str": "{}" - }, - { - "id": "phone", - "title": "Phone", - "type": "phone", - "description": null, - "settings_str": "{}" - }, - { - "id": "rating", - "title": "Rating", - "type": "rating", - "description": null, - "settings_str": "{}" - }, - { - "id": "timeline", - "title": "Timeline", - "type": "timerange", - "description": null, - "settings_str": "{\"hide_footer\":false}" - }, - { - "id": "dependent_on", - "title": "Dependent On", - "type": "dependency", - "description": "Choose the item your task will be dependent on. If the “dependent on” item’s date is changing, the other dates will adjust automatically", - "settings_str": "{\"boardIds\":[3142482015],\"dependencyNewInfra\":true,\"allowMultipleItems\":true}" - }, - { - "id": "long_text", - "title": "Long Text", - "type": "long-text", - "description": null, - "settings_str": "{}" - }, - { - "id": "link", - "title": "Link", - "type": "link", - "description": null, - "settings_str": "{}" - }, - { - "id": "tags", - "title": "Tags", - "type": "tag", - "description": null, - "settings_str": "{\"hide_footer\":false}" - }, - { - "id": "label", - "title": "Label", - "type": "color", - "description": "", - "settings_str": "{\"done_colors\":[1],\"labels\":{\"3\":\"Label 2\",\"105\":\"Label 1\",\"156\":\"Label 3\"},\"labels_positions_v2\":{\"3\":1,\"5\":3,\"105\":0,\"156\":2},\"labels_colors\":{\"3\":{\"color\":\"#0086c0\",\"border\":\"#3DB0DF\",\"var_name\":\"blue-links\"},\"105\":{\"color\":\"#9AADBD\",\"border\":\"#9AADBD\",\"var_name\":\"winter\"},\"156\":{\"color\":\"#9D99B9\",\"border\":\"#9D99B9\",\"var_name\":\"purple_gray\"}}}" - }, - { - "id": "world_clock", - "title": "World Clock", - "type": "timezone", - "description": null, - "settings_str": "{}" - }, - { - "id": "week", - "title": "Week", - "type": "week", - "description": null, - "settings_str": "{}" - } - ], - "groups": [ - { - "id": "topics", - "title": "This month" - }, - { - "id": "group_title", - "title": "Next month" - } - ] - } - ] - }, - "account_id": 13215538 - }, - "339283934": { - "data": { - "boards": [] - }, - "account_id": 16260452 - } -} diff --git a/test/__mocks__/data/profitwell/response.json b/test/__mocks__/data/profitwell/response.json deleted file mode 100644 index 21c4f240bc..0000000000 --- a/test/__mocks__/data/profitwell/response.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "https://api.profitwell.com/v2/users/pwu_Oea7HXV3bnTP/": [ - { - "user_id": "pwu_Oea7HXV3bnTP", - "subscription_id": "pws_FecTCEyo17rV", - "user_alias": "spiderman_1a", - "subscription_alias": "spiderman_sub_1a", - "email": "spiderman@profitwell.com", - "plan_id": "web_plan", - "plan_interval": "month", - "plan_currency": "usd", - "status": "active", - "value": 5000, - "effective_date": 1514764800, - "meta": {} - } - ], - "https://api.profitwell.com/v2/users/spiderman_1a/": [ - { - "user_id": "pwu_Oea7HXV3bnTP", - "subscription_id": "pws_FecTCEyo17rV", - "user_alias": "spiderman_1a", - "subscription_alias": "spiderman_sub_1a", - "email": "spiderman@profitwell.com", - "plan_id": "web_plan", - "plan_interval": "month", - "plan_currency": "usd", - "status": "active", - "value": 5000, - "effective_date": 1514764800, - "meta": {} - } - ] -} diff --git a/test/__mocks__/data/salesforce/proxy_response.json b/test/__mocks__/data/salesforce/proxy_response.json deleted file mode 100644 index a92edc58c2..0000000000 --- a/test/__mocks__/data/salesforce/proxy_response.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/101": { - "message": "Connection Aborted", - "name": "Error", - "code": "ECONNABORTED" - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/102": { - "message": "DNS not found", - "name": "Error", - "code": "EAI_AGAIN" - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/1": { - "response": { - "data": { - "statusText": "No Content" - }, - "status": 204 - } - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/3": { - "response": { - "data": [ - { - "message": "Session expired or invalid", - "errorCode": "INVALID_SESSION_ID" - } - ], - "status": 401 - } - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/2": { - "response": { - "data": [ - { - "message": "INVALID_HEADER_TYPE", - "errorCode": "INVALID_AUTH_HEADER" - } - ], - "status": 401 - } - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/4": { - "response": { - "data": [ - { - "message": "Request limit exceeded", - "errorCode": "REQUEST_LIMIT_EXCEEDED" - } - ], - "status": 403 - } - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/5": { - "response": { - "data": [ - { - "message": "Server Unavailable", - "errorCode": "SERVER_UNAVAILABLE" - } - ], - "status": 503 - } - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/6": { - "response": { - "data": { - "error": "invalid_grant", - "error_description": "authentication failure" - }, - "status": 400 - } - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/sobjects/Lead/7": { - "response": { - "data": { - "message": "Server Unavailable", - "errorCode": "SERVER_UNAVAILABLE" - }, - "status": 503 - } - }, - "https://rudderstack.my.salesforce.com/services/data/v50.0/parameterizedSearch/?q=123&sobject=object_name&in=External_ID__c&object_name.fields=id,External_ID__c": { - "response": { - "searchRecords": [ - { - "attributes": { - "type": "object_name", - "url": "/services/data/v50.0/sobjects/object_name/a0J75100002w97gEAA" - }, - "Id": "a0J75100002w97gEAA", - "External_ID__c": "external_id" - }, - { - "attributes": { - "type": "object_name", - "url": "/services/data/v50.0/sobjects/object_name/a0J75200002w9ZsEAI" - }, - "Id": "a0J75200002w9ZsEAI", - "External_ID__c": "external_id TEST" - } - ] - }, - "status": 200 - } -} diff --git a/test/__mocks__/data/salesforce/response.json b/test/__mocks__/data/salesforce/response.json deleted file mode 100644 index de18da7656..0000000000 --- a/test/__mocks__/data/salesforce/response.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "https://login.salesforce.com/services/oauth2/token?username=testsalesforce1453@gmail.com&password=dummyPassword1dummyInitialAccessToken&client_id=undefined&client_secret=undefined&grant_type=password": { - "access_token": "00D2v000002lXbX!ARcAQJBSGNA1Rq.MbUdtmlREscrN_nO3ckBz6kc4jRQGxqAzNkhT1XZIF0yPqyCQSnezWO3osMw1ewpjToO7q41E9.LvedWY", - "instance_url": "https://ap15.salesforce.com", - "id": "https://login.salesforce.com/id/00D2v000002lXbXEAU/0052v00000ga9WqAAI", - "token_type": "Bearer", - "issued_at": "1582343657644", - "signature": "XRgUHXVBSWhLHZVoVFZby/idWXdAPA5lMW/ZdLMzB8o=" - }, - "https://ap15.salesforce.com/services/data/v50.0/parameterizedSearch/?q=peter.gibbons%40initech.com&sobject=Lead&Lead.fields=id": { - "searchRecords": [] - }, - "https://ap15.salesforce.com/services/data/v50.0/parameterizedSearch/?q=peter.gibbons1%40initech.com&sobject=Lead&Lead.fields=id": { - "searchRecords": [ - { - "attributes": { - "type": "Lead", - "url": "/services/data/v50.0/sobjects/Lead/leadId" - }, - "Id": "leadId" - } - ] - }, - "https://test.salesforce.com/services/oauth2/token?username=test.c97-qvpd@force.com.test&password=dummyPassword27fiy1FKcO9sohsxq1v6J88sg&client_id=undefined&client_secret=undefined&grant_type=password": { - "access_token": "00D2v000002lXbX!ARcAQJBSGNA1Rq.MbUdtmlREscrN_nO3ckBz6kc4jRQGxqAzNkhT1XZIF0yPqyCQSnezWO3osMw1ewpjToO7q41E9.LvedWY", - "instance_url": "https://ap15.salesforce.com", - "id": "https://login.salesforce.com/id/00D2v000002lXbXEAU/0052v00000ga9WqAAI", - "token_type": "Bearer", - "issued_at": "1582343657644", - "signature": "XRgUHXVBSWhLHZVoVFZby/idWXdAPA5lMW/ZdLMzB8o=", - "abc": "123" - }, - "https://ap15.salesforce.com/services/data/v50.0/parameterizedSearch/?q=peter.gibbons%40initech.com&sobject=Lead&Lead.fields=id,IsConverted,ConvertedContactId,IsDeleted": { - "searchRecords": [] - }, - "https://ap15.salesforce.com/services/data/v50.0/parameterizedSearch/?q=ddv_ua%2B%7B%7B1234*245%7D%7D%40bugFix.com&sobject=Lead&Lead.fields=id,IsConverted,ConvertedContactId,IsDeleted": { - "searchRecords": [ - { - "attributes": { - "type": "Lead", - "url": "/services/data/v50.0/sobjects/Lead/leadId" - }, - "Id": "leadId" - } - ] - } -} diff --git a/test/__mocks__/data/wootric/response.json b/test/__mocks__/data/wootric/response.json deleted file mode 100644 index 48cdd44a83..0000000000 --- a/test/__mocks__/data/wootric/response.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "https://api.wootric.com/v1/end_users/dummyId1?lookup_by_external_id=true": { - "id": 486438462, - "created_at": "2022-08-10 11:39:50 -0700", - "updated_at": "2022-08-10 11:39:50 -0700", - "email": "dummyuser1@gmail.com", - "last_surveyed": "2022-01-20 05:39:21 -0800", - "external_created_at": 1611149961, - "last_seen_at": null, - "properties": { - "city": "Mumbai", - "name": "Dummy User 1", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack" - }, - "phone_number": "+19123456789", - "external_id": "dummyId1", - "last_response": null, - "settings": { - "email_nps": true, - "mobile_nps": true, - "web_nps": true, - "force_mobile_survey": null, - "force_web_survey": null, - "surveys_disabled_by_end_user": null - } - }, - "https://api.wootric.com/v1/end_users/exclueFunTestId?lookup_by_external_id=true": { - "id": 486336190, - "created_at": "2022-08-10 07:30:50 -0700", - "updated_at": "2022-08-10 10:12:46 -0700", - "email": "excludeUser@gmail.com", - "last_surveyed": "2022-01-20 05:39:21 -0800", - "external_created_at": 1579755367, - "last_seen_at": null, - "properties": { - "city": "Mumbai", - "name": "exclude test user", - "email": "excludeUser@gmail.com", - "title": "AD", - "gender": "Male", - "company": "Rockstar" - }, - "phone_number": "+18324671283", - "external_id": "exclueFunTestId", - "last_response": null, - "settings": { - "email_nps": true, - "mobile_nps": true, - "web_nps": true, - "force_mobile_survey": null, - "force_web_survey": null, - "surveys_disabled_by_end_user": null - } - }, - "https://api.wootric.com/v1/end_users/my-external-id-1234?lookup_by_external_id=true": { - "type": "error_list", - "errors": [ - { - "status": "record_not_found", - "message": "The record could not be found", - "field": null - } - ] - }, - "https://api.wootric.com/v1/end_users/490635419": { - "id": 490635419, - "created_at": "2022-08-20 00:55:26 -0700", - "updated_at": "2022-08-22 11:17:05 -0700", - "email": "firstuser@gmail.com", - "last_surveyed": "2022-08-01 00:11:44 -0700", - "external_created_at": 1661002761, - "last_seen_at": null, - "properties": { - "Department": "Marketing", - "product_plan": "Web", - "revenue amount": "5000" - }, - "phone_number": "+8859133456781", - "external_id": "firstUserId123", - "last_response": { - "id": 101013218, - "score": 9, - "text": "Good !!!", - "survey": { - "channel": "web" - } - }, - "settings": { - "email_nps": true, - "mobile_nps": true, - "web_nps": true, - "force_mobile_survey": null, - "force_web_survey": null, - "surveys_disabled_by_end_user": null - } - }, - "https://api.wootric.com/oauth/token?account_token=NPS-dummyToken": { - "access_token": "2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c", - "token_type": "Bearer", - "expires_in": 7200, - "refresh_token": "f4033a61742e84405a5ef8b2e09b82395dc041f0259fd5fb715fc196a1b9cd52", - "scope": "delete_account admin respond export read survey invalidate_response", - "created_at": 1660292389 - } -} diff --git a/test/__mocks__/delighted.mock.js b/test/__mocks__/delighted.mock.js deleted file mode 100644 index a1a70c2983..0000000000 --- a/test/__mocks__/delighted.mock.js +++ /dev/null @@ -1,12 +0,0 @@ -const delightedGetRequestHandler = options => { - const { params } = options; - if (params.email === "identified_user@email.com") { - return Promise.resolve({ data: ["user data"], status: 200 }); - } - if (params.email === "unidentified_user@email.com") { - return Promise.resolve({ data: [], status: 200 }); - } - return Promise.resolve({ data: [], status: 200 }); -}; - -module.exports = { delightedGetRequestHandler }; diff --git a/test/__mocks__/drip.mock.js b/test/__mocks__/drip.mock.js deleted file mode 100644 index fd25b4b1d5..0000000000 --- a/test/__mocks__/drip.mock.js +++ /dev/null @@ -1,8 +0,0 @@ -const dripPostRequestHandler = (url, payload) => { - if (url === "https://api.getdrip.com/v2/1809802/subscriber") - return Promise.resolve({ data: payload, status: 200 }); - - return Promise.resolve({ data: payload, status: 200 }); -}; - -module.exports = { dripPostRequestHandler }; diff --git a/test/__mocks__/freshmarketer.mock.js b/test/__mocks__/freshmarketer.mock.js deleted file mode 100644 index 607ce7130d..0000000000 --- a/test/__mocks__/freshmarketer.mock.js +++ /dev/null @@ -1,52 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const urlDirectoryMap = { - "myfreshworks.com/crm/sales/api": "freshmarketer" -}; - -const getData = url => { - let directory = "freshmarketer"; - Object.keys(urlDirectoryMap).forEach(key => { - if (url.includes(key)) { - directory = urlDirectoryMap[key]; - } - }); - if (directory) { - const dataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${directory}/response.json`) - ); - const data = JSON.parse(dataFile); - return data[url]; - } - return {}; -}; - -const freshmarketerPostRequestHandler = (url, payload) => { - const mockData = getData(url); - if (mockData) { - return { - data: mockData, - status: 200 - }; - } - return new Promise((resolve, reject) => { - resolve({ error: "Request failed", status: 404 }); - }); -}; - -const freshmarketerGetRequestHandler = url => { - const mockData = getData(url); - if (mockData) { - //resolve with status 200 - return Promise.resolve({ data: mockData, status: 200 }); - } - return new Promise((resolve, reject) => { - resolve({ error: "Request failed", status: 404 }); - }); -}; - -module.exports = { - freshmarketerPostRequestHandler, - freshmarketerGetRequestHandler -}; diff --git a/test/__mocks__/freshsales.mock.js b/test/__mocks__/freshsales.mock.js deleted file mode 100644 index edbf2de43f..0000000000 --- a/test/__mocks__/freshsales.mock.js +++ /dev/null @@ -1,52 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const urlDirectoryMap = { - "myfreshworks.com/crm/sales/api": "freshsales" -}; - -const getData = url => { - let directory = "freshsales"; - Object.keys(urlDirectoryMap).forEach(key => { - if (url.includes(key)) { - directory = urlDirectoryMap[key]; - } - }); - if (directory) { - const dataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${directory}/response.json`) - ); - const data = JSON.parse(dataFile); - return data[url]; - } - return {}; -}; - -const freshsalesPostRequestHandler = (url, payload) => { - const mockData = getData(url); - if (mockData) { - return { - data: mockData, - status: 200 - }; - } - return new Promise((resolve, reject) => { - resolve({ error: "Request failed", status: 404 }); - }); -}; - -const freshsalesGetRequestHandler = url => { - const mockData = getData(url); - if (mockData) { - //resolve with status 200 - return Promise.resolve({ data: mockData, status: 200 }); - } - return new Promise((resolve, reject) => { - resolve({ error: "Request failed", status: 404 }); - }); -}; - -module.exports = { - freshsalesPostRequestHandler, - freshsalesGetRequestHandler -}; diff --git a/test/__mocks__/gainsight.mock.js b/test/__mocks__/gainsight.mock.js deleted file mode 100644 index 38ff21ebfd..0000000000 --- a/test/__mocks__/gainsight.mock.js +++ /dev/null @@ -1,33 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const responseJson = fs.readFileSync( - path.resolve(__dirname, "./data/gainsight/response.json") -); -const responseData = JSON.parse(responseJson); - -// mock companies that exist in db -const companyNamesList = ["Seinfeld Corps", "Mr.Robot", "The Office"]; - -/** - * Single function to return mock data - * for all axios calls. - */ -const gainsightRequestHandler = (url, payload) => { - if (Object.keys(responseData).includes(url)) { - // for company lookup - if (payload.select && payload.where) { - const name = payload.where.conditions[0].value[0]; - if (companyNamesList.includes(name)) { - const resp = responseData[url]; - resp.data.records = [{ Name: name }]; - return { data: resp, status: 200 }; - } - return { data: responseData[url], status: 200 }; - } - return { data: responseData[url], status: 200 }; - } - return { error: "request failed: url not found in mock" }; -}; - -module.exports = gainsightRequestHandler; diff --git a/test/__mocks__/gainsight_px.mock.js b/test/__mocks__/gainsight_px.mock.js deleted file mode 100644 index bcd3a171fe..0000000000 --- a/test/__mocks__/gainsight_px.mock.js +++ /dev/null @@ -1,23 +0,0 @@ -const gainsightPXGetRequestHandler = (url, mockData) => { - if (url.includes("absent-id")) { - const errResponse = { - response: { - data: { - externalapierror: { - status: "NOT_FOUND", - message: "User was not found for parameters {id=absent-id}", - debugMessage: null, - subErrors: null - } - }, - status: 404 - } - }; - return Promise.reject(errResponse); - } - return Promise.resolve({ data: mockData, status: 200 }); -}; - -module.exports = { - gainsightPXGetRequestHandler -}; diff --git a/test/__mocks__/hs.mock.js b/test/__mocks__/hs.mock.js deleted file mode 100644 index ae88ed776b..0000000000 --- a/test/__mocks__/hs.mock.js +++ /dev/null @@ -1,123 +0,0 @@ -const hsGetRequestHandler = (url, mockData) => { - if (url.includes("invalid-api-key")) { - return Promise.reject({ - response: { - data: { - status: "error", - message: - "The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/", - correlationId: "4d39ff11-e121-4514-bcd8-132a9dd1ff50", - category: "INVALID_AUTHENTICATION", - links: { - "api key": "https://app.hubspot.com/l/api-key/" - } - }, - status: 401 - } - }); - } - if (url.includes("rate-limit-id")) { - return Promise.reject({ - response: { - data: { - status: "error", - message: "Request Rate Limit reached", - correlationId: "4d39ff11-e121-4514-bcd8-132a9dd1ff50", - category: "RATE-LIMIT_REACHED", - links: { - "api key": "https://app.hubspot.com/l/api-key/" - } - }, - status: 429 - } - }); - } - if (mockData) { - //resolve with status 200 - return Promise.resolve({ data: mockData, status: 200 }); - } else { - return Promise.reject({ - response: { - data: { - status: "error", - message: "404 not found", - correlationId: "4d39ff11-e121-4514-bcd8-132a9dd1ff50", - category: "DATA_NOT_DOUND", - links: { - "api key": "https://app.hubspot.com/l/api-key/" - } - }, - status: 404 - } - }); - } -}; - -const hsPostRequestHandler = (payload, mockData) => { - if (payload.filterGroups[0].filters[0].value === "noname@email.com") { - // no contact found for noname@gmail.com (email) - return Promise.resolve({ - data: { - total: 0, - results: [] - }, - status: 200 - }); - } else if (payload.filterGroups[0].filters[0].value === "Jhon") { - // multiple contact found for Jhon (firstname) - return Promise.resolve({ - data: { - total: 2, - results: [ - { - id: "103601", - properties: { - createdate: "2022-07-14T15:25:08.975Z", - email: "testhubspot8@email.com", - firstname: "Alex", - hs_object_id: "103601", - lastmodifieddate: "2022-07-14T15:26:49.590Z" - }, - createdAt: "2022-07-14T15:25:08.975Z", - updatedAt: "2022-07-14T15:26:49.590Z", - archived: false - }, - { - id: "103602", - properties: { - createdate: "2022-07-14T15:27:08.975Z", - email: "testhubspot9@email.com", - firstname: "Jhon", - hs_object_id: "103602", - lastmodifieddate: "2022-07-14T15:28:49.590Z" - }, - createdAt: "2022-07-14T15:27:08.975Z", - updatedAt: "2022-07-14T15:28:49.590Z", - archived: false - } - ] - }, - status: 200 - }); - } else if (mockData) { - //resolve with status 200 - return Promise.resolve({ data: mockData, status: 200 }); - } - - return Promise.reject({ - response: { - data: { - status: "error", - message: "404 not found", - correlationId: "4d39ff11-e121-4514-bcd8-132a9dd1ff50", - category: "DATA_NOT_DOUND", - links: { - "api key": "https://app.hubspot.com/l/api-key/" - } - }, - status: 404 - } - }); -}; - -module.exports = { hsGetRequestHandler, hsPostRequestHandler }; diff --git a/test/__mocks__/klaviyo.mock.js b/test/__mocks__/klaviyo.mock.js deleted file mode 100644 index 020387d1f2..0000000000 --- a/test/__mocks__/klaviyo.mock.js +++ /dev/null @@ -1,39 +0,0 @@ -const klaviyoPostRequestHandler = (url, payload) => { - switch (url) { - case 'https://a.klaviyo.com/api/v2/list/XUepkK/subscribe': - //resolve with status 200 - return { data: payload, status: 200 }; - case 'https://a.klaviyo.com/api/v2/list/XUepkK/members': - //resolve with status 200 - return { data: payload, status: 200 }; - case 'https://a.klaviyo.com/api/profiles': - if (payload.data.attributes.email === "test3@rudderstack.com") { - return { - status: 409, - data: { - } - }; - } - return { - status: 201, - data: { - data: { - id: '01GW3PHVY0MTCDGS0A1612HARX', - attributes: {} - }, - } - }; - default: - return new Promise((resolve, reject) => { - if (payload) { - resolve({ data: payload }); - } else { - resolve({ error: 'Request failed' }); - } - }); - } -}; - -module.exports = { - klaviyoPostRequestHandler, -}; diff --git a/test/__mocks__/kustomer.mock.js b/test/__mocks__/kustomer.mock.js deleted file mode 100644 index 0a1187595d..0000000000 --- a/test/__mocks__/kustomer.mock.js +++ /dev/null @@ -1,142 +0,0 @@ -const storedPayload = { - data: { - type: "customer", - id: "58210c3db0f09110006b7953", - attributes: { - name: "AnnoD", - displayName: "AnnoD", - displayColor: "yellow", - displayIcon: "flower", - externalId: "annodD", - externalIds: [ - { - externalId: "annodD", - verified: true, - id: null - } - ], - sharedExternalIds: [], - signedUpAt: null, - avatarUrl: null, - username: null, - emails: [ - { - email: "annod@kustomer.com", - verified: true, - type: "home", - id: null - } - ], - sharedEmails: [ - { - email: "annod@kustomer.com", - verified: false, - type: "home", - id: null - } - ], - phones: [], - sharedPhones: [], - socials: [], - sharedSocials: [], - urls: [], - locations: [], - activeUsers: [], - watchers: [], - recentLocation: { - updatedAt: "2016-11-07T23:22:01.746Z" - }, - locale: null, - timeZone: null, - birthdayAt: null, - gender: null, - presence: "offline", - createdAt: "2016-11-07T23:20:29.080Z", - updatedAt: "2016-11-09T04:47:07.036Z", - modifiedAt: "2016-11-09T04:47:07.036Z", - lastSeenAt: "2016-11-07T23:23:51.582Z", - lastActivityAt: "2016-11-09T04:47:07.036Z", - lastCustomerActivityAt: "2016-11-07T23:23:51.582Z", - lastMessageIn: { - sentAt: "2016-11-07T23:22:02.281Z", - sentiment: null - }, - lastConversation: { - id: "58210c99b0f09110006b7969", - sentiment: { - confidence: 0.649023, - polarity: 1 - }, - tags: [] - }, - conversationCounts: { - all: 3, - snoozed: 0, - open: 2, - done: 1 - }, - preview: { - previewAt: "2016-11-07T23:23:26.039Z", - type: "message_out", - text: "dfsd fsdsfdsfdsf", - subject: "Hi, do you guys have an XXL hoodie" - }, - tags: [], - sentiment: { - polarity: 1, - confidence: 0.649023 - }, - progressiveStatus: "open", - verified: true, - rev: 37 - }, - relationships: { - org: { - links: { - self: "/v1/orgs/57f29863a1dbf61100e6aa92" - }, - data: { - type: "org", - id: "57f29863a1dbf61100e6aa92" - } - }, - messages: { - links: { - self: "/v1/customers/58210c3db0f09110006b7953/messages" - } - }, - modifiedBy: { - links: { - self: "/v1/users/58190b991f2932100010d683" - }, - data: { - type: "user", - id: "58190b991f2932100010d683" - } - } - }, - links: { - self: "/v1/customers/58210c3db0f09110006b7953" - } - } -}; - -const kustomerGetRequestHandler = url => { - switch (url) { - case "https://api.kustomerapp.com/v1/customers/externalId=annodD": - //resolve with status 200 - return { data: storedPayload, status: 200 }; - case "https://api.kustomerapp.com/v1/customers/externalId=58210c3db0f09110006b7953": - //resolve with status 200 - return { data: storedPayload, status: 200 }; - case "https://api.prod2.kustomerapp.com/v1/customers/externalId=58210c3db0f09110006b7953": - //resolve with status 200 - return { data: storedPayload, status: 200 }; - default: - return new Promise((resolve, reject) => { - resolve({ error: "Request failed", status: 404 }); - }); - } -}; - -module.exports = kustomerGetRequestHandler; diff --git a/test/__mocks__/mailchimp.mock.js b/test/__mocks__/mailchimp.mock.js deleted file mode 100644 index e52814c822..0000000000 --- a/test/__mocks__/mailchimp.mock.js +++ /dev/null @@ -1,49 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const urlDirectoryMap = { - "api.mailchimp.com": "mailchimp" -}; - -const getData = url => { - let directory = ""; - Object.keys(urlDirectoryMap).forEach(key => { - if (url.includes(key)) { - directory = urlDirectoryMap[key]; - } - }); - if (directory) { - const dataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${directory}/response.json`) - ); - const data = JSON.parse(dataFile); - return data[url]; - } - return {}; -}; - -const mailchimpGetRequestHandler = url => { - const mockData = getData(url); - if (mockData) { - if ( - url === - "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab" - ) { - return { data: mockData, status: 200 }; - } else if (url === "https://usXX.api.mailchimp.com/3.0/lists/aud111") { - return { data: mockData, status: 200 }; - } else if (url === "https://usXX.api.mailchimp.com/3.0/lists/aud112") { - return { data: mockData, status: 200 }; - } else { - return new Promise((resolve, reject) => { - reject({ error: "Request failed", status: mockData.status }); - }); - } - } else { - return new Promise((resolve, reject) => { - reject({ error: "Request failed", status: 404 }); - }); - } -}; - -module.exports = mailchimpGetRequestHandler; diff --git a/test/__mocks__/monday.mock.js b/test/__mocks__/monday.mock.js deleted file mode 100644 index 0a9eb627be..0000000000 --- a/test/__mocks__/monday.mock.js +++ /dev/null @@ -1,32 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const getData = payload => { - const dataFile = fs.readFileSync( - path.resolve(__dirname, `./data/monday/response.json`) - ); - const data = JSON.parse(dataFile); - const boardId = payload.query.substring(21,30); - return data[boardId]; -}; - -const mondayPostRequestHandler = payload => { - const mockData = getData(payload); - if (mockData) { - return { data: mockData, status: 200 }; - } - return new Promise((resolve, reject) => { - reject({ - response: { - data: { - error: "Not found", - status: 404 - } - } - }); - }); -}; - -module.exports = { - mondayPostRequestHandler -}; diff --git a/test/__mocks__/profitwell.mock.js b/test/__mocks__/profitwell.mock.js deleted file mode 100644 index 5dce8fbe75..0000000000 --- a/test/__mocks__/profitwell.mock.js +++ /dev/null @@ -1,16 +0,0 @@ -const profitwellGetRequestHandler = (url, payload) => { - if (url === "https://api.profitwell.com/v2/users/pwu_Oea7HXV3bnTP/") - return Promise.resolve({ data: payload, status: 200 }); - else if (url === "https://api.profitwell.com/v2/users/spiderman_1a/") { - return Promise.resolve({ data: payload, status: 200 }); - } - return Promise.reject({ - response: { - message: "Request failed with status code 404", - status: 404, - statusText: "Not Found" - } - }); -}; - -module.exports = profitwellGetRequestHandler; diff --git a/test/__mocks__/sendinblue.mock.js b/test/__mocks__/sendinblue.mock.js deleted file mode 100644 index 53b3e84677..0000000000 --- a/test/__mocks__/sendinblue.mock.js +++ /dev/null @@ -1,23 +0,0 @@ -const sendinblueGetRequestHandler = (url, mockData) => { - if ( - url === - "https://api.sendinblue.com/v3/contacts/gordon_pittman%40example.com" || - url === "https://api.sendinblue.com/v3/contacts/42" - ) { - return { data: mockData, status: 200 }; - } - - return Promise.reject({ - response: { - data: { - code: "document_not_found", - message: "Contact does not exist" - }, - status: 404 - } - }); -}; - -module.exports = { - sendinblueGetRequestHandler -}; diff --git a/test/__mocks__/wootric.mock.js b/test/__mocks__/wootric.mock.js deleted file mode 100644 index 0a1519f1d2..0000000000 --- a/test/__mocks__/wootric.mock.js +++ /dev/null @@ -1,55 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const urlDirectoryMap = { - "api.wootric.com": "wootric" -}; - -const getData = url => { - let directory = ""; - Object.keys(urlDirectoryMap).forEach(key => { - if (url.includes(key)) { - directory = urlDirectoryMap[key]; - } - }); - if (directory) { - const dataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${directory}/response.json`) - ); - const data = JSON.parse(dataFile); - return data[url]; - } - return {}; -}; - -const wootricGetRequestHandler = url => { - const mockData = getData(url); - if (mockData) { - return { data: mockData, status: 200 }; - } - return new Promise((resolve, reject) => { - resolve({ error: "Request failed", status: 404 }); - }); -}; - -const wootricPostRequestHandler = (url, payload) => { - const mockData = getData(url); - if (mockData) { - return { data: mockData, status: 200 }; - } - return new Promise((resolve, reject) => { - reject({ - response: { - data: { - error: "Not found", - status: 404 - } - } - }); - }); -}; - -module.exports = { - wootricGetRequestHandler, - wootricPostRequestHandler -}; diff --git a/test/__tests__/adobe_analytics.test.js b/test/__tests__/adobe_analytics.test.js deleted file mode 100644 index 287ac37981..0000000000 --- a/test/__tests__/adobe_analytics.test.js +++ /dev/null @@ -1,30 +0,0 @@ -const integration = "adobe_analytics"; -const name = "Adobe Analytics"; - -const fs = require("fs"); -const path = require("path"); - -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); - - -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); - } - }); - }); - }); -}); - diff --git a/test/__tests__/amplitude.test.js b/test/__tests__/amplitude.test.js deleted file mode 100644 index 2b7c46f0b5..0000000000 --- a/test/__tests__/amplitude.test.js +++ /dev/null @@ -1,124 +0,0 @@ -const integration = "am"; -const name = "Amplitude"; - -const fs = require("fs"); -const path = require("path"); -const mockedEnv = require("mocked-env"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); -// const { compareJSON } = require("./util"); - -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); - -const batchInputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_batch_input.json`) -); -const batchOutputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_batch_output.json`) -); -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); - -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -inputData.forEach((input, index) => { - test(`${name} Tests ${input.message.type}: payload - ${index}`, () => { - try { - const output = transformer.process(input); - if (output.length > 1) { - expect(output).toEqual(expectedData[index]); - } else { - expect(output).toEqual([expectedData[index]]); - } - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - } - }); -}); - -const batchInputData = JSON.parse(batchInputDataFile); -const batchExpectedData = JSON.parse(batchOutputDataFile); - -batchInputData.forEach((input, index) => { - if (index < batchInputData.length - 2) { - test(`test batching ${index}`, () => { - const output = transformer.batch(input); - expect(Array.isArray(output)).toEqual(true); - expect(output.length).toEqual(batchExpectedData[index].length); - output.forEach((input, indexInner) => { - expect(output[indexInner]).toEqual( - batchExpectedData[index][indexInner] - ); - }); - }); - } -}); - -let restore = mockedEnv({ - BATCH_NOT_MET_CRITERIA_USER: "true" -}); - -test(`test batching ${batchInputData.length - 2}`, () => { - // reset module and load in new transformer with added env - jest.resetModules(); - expect(process.env.BATCH_NOT_MET_CRITERIA_USER).toEqual("true"); - const transformerNew = require(`../../src/${version}/destinations/${integration}/transform`); - const output = transformerNew.batch( - batchInputData[batchInputData.length - 2] - ); - expect(Array.isArray(output)).toEqual(true); - expect(output.length).toEqual( - batchExpectedData[batchExpectedData.length - 2].length - ); - output.forEach((input, indexInner) => { - expect(output[indexInner]).toEqual( - batchExpectedData[batchExpectedData.length - 2][indexInner] - ); - }); -}); - -restore = mockedEnv({ - BATCH_NOT_MET_CRITERIA_USER: "true" -}); - -test(`test batching ${batchInputData.length - 1}`, () => { - // reset module and load in new transformer with added env - jest.resetModules(); - expect(process.env.BATCH_NOT_MET_CRITERIA_USER).toEqual("true"); - const transformerNew = require(`../../src/${version}/destinations/${integration}/transform`); - const output = transformerNew.batch( - batchInputData[batchInputData.length - 1] - ); - expect(Array.isArray(output)).toEqual(true); - expect(output.length).toEqual( - batchExpectedData[batchExpectedData.length - 1].length - ); - output.forEach((input, indexInner) => { - expect(output[indexInner]).toEqual( - batchExpectedData[batchExpectedData.length - 1][indexInner] - ); - }); -}); - -describe(`${name} Tests`, () => { - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/appsFlyer.test.js b/test/__tests__/appsFlyer.test.js deleted file mode 100644 index 3a15f6232b..0000000000 --- a/test/__tests__/appsFlyer.test.js +++ /dev/null @@ -1,7 +0,0 @@ -const { - getDestFromTestFile, - executeTransformationTest -} = require("./utilities/test-utils"); - -executeTransformationTest("af", "processor"); -executeTransformationTest("af", "router"); diff --git a/test/__tests__/bingads_audience-cdk.test.ts b/test/__tests__/bingads_audience-cdk.test.ts deleted file mode 100644 index 577ac952d1..0000000000 --- a/test/__tests__/bingads_audience-cdk.test.ts +++ /dev/null @@ -1,60 +0,0 @@ -import fs from 'fs'; -import path from 'path'; -import { - processCdkV2Workflow, - executeStep, - getCachedWorkflowEngine, - getEmptyExecutionBindings, -} from '../../src/cdk/v2/handler'; -import tags from '../../src/v0/util/tags'; -import { data as stepsTestData } from './data/bingads_audience_steps'; - -const integration = 'bingads_audience'; -const destName = 'BingAds Audience'; - -// Processor Test files -const processorTestDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}.json`), - { - encoding: 'utf8', - }, -); -const processorTestData = JSON.parse(processorTestDataFile); - -describe(`${destName} Tests`, () => { - describe('Processor Tests', () => { - processorTestData.forEach((dataPoint, index) => { - it(`${destName} processor payload: ${index}`, async () => { - try { - const output = await processCdkV2Workflow( - integration, - dataPoint.input, - tags.FEATURES.PROCESSOR, - ); - expect(output).toEqual(dataPoint.output); - } catch (error: any) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); - - describe('Step Tests', () => { - stepsTestData.forEach((dataPoint, index) => { - it(`${destName} steps payload: ${index}`, async () => { - const workflowEngine = await getCachedWorkflowEngine(integration, tags.FEATURES.PROCESSOR); - try { - const output = await executeStep( - workflowEngine, - dataPoint.stepName, - dataPoint.input, - dataPoint.bindings, - ); - expect(output.output).toEqual(dataPoint.output); - } catch (error: any) { - expect(error.message).toEqual(dataPoint.error); - } - }); - }); - }); -}); diff --git a/test/__tests__/braze.test.js b/test/__tests__/braze.test.js deleted file mode 100644 index c1d317c6ba..0000000000 --- a/test/__tests__/braze.test.js +++ /dev/null @@ -1,76 +0,0 @@ -const cloneDeep = require('lodash/cloneDeep'); -const integration = "braze"; -const name = "Braze"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const { FEATURE_FILTER_CODE } = require('../../src/v0/util/constant'); -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}`, async () => { - let output1, output2, output3, expected; - try { - // default reqMetadata - output1 = await transformer.process(cloneDeep(input)); - // null reqMetadata - output2 = await transformer.process(cloneDeep(input), { userStore: new Map() }, null); - // undefined reqMetadata - output3 = await transformer.process(cloneDeep(input), { userStore: new Map() }, undefined); - expected = expectedData[index]; - } catch (error) { - output1 = error.message; - output2 = error.message; - output3 = error.message; - expected = expectedData[index].message; - } - expect(output1).toEqual(expected); - expect(output2).toEqual(expected); - expect(output3).toEqual(expected); - }); -}); - -// Router Test Data -const routerTestDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router.json`) -); -const routerTestData = JSON.parse(routerTestDataFile); -const { simpleRouterTestData, dedupEnabledRouterTestData } = routerTestData; - -describe(`${name} Tests`, () => { - describe("Simple Router Tests", () => { - simpleRouterTestData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, async () => { - const output = await transformer.processRouterDest(dataPoint.input); - expect(output).toEqual(dataPoint.output); - }); - }); - }); - describe("Dedupenabled Router Tests", () => { - dedupEnabledRouterTestData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, async () => { - // default reqMetadata - const oldTransformerOutput = await transformer.processRouterDest(cloneDeep(dataPoint.input)); - // valid reqMetadata - const newTransformerOutput = await transformer.processRouterDest(cloneDeep(dataPoint.input), { features: { [FEATURE_FILTER_CODE]: true } }); - // invalid reqMetadata - const invalidRequestMetadataOutput = await transformer.processRouterDest(cloneDeep(dataPoint.input), [{ features: { [FEATURE_FILTER_CODE]: true } }]); - - expect(oldTransformerOutput).toEqual(dataPoint.oldTransformerOutput); - expect(newTransformerOutput).toEqual(dataPoint.newTransformerOutput); - expect(invalidRequestMetadataOutput).toEqual(dataPoint.oldTransformerOutput); - }); - }); - }); -}); diff --git a/test/__tests__/clevertap.test.js b/test/__tests__/clevertap.test.js deleted file mode 100644 index 1a07c2f6bc..0000000000 --- a/test/__tests__/clevertap.test.js +++ /dev/null @@ -1,49 +0,0 @@ -const integration = "clevertap"; -const name = "Clever Tap"; - -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, {namespace: 'unknown', cluster: 'unknown'}); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/clickup.test.js b/test/__tests__/clickup.test.js deleted file mode 100644 index 8890d6050b..0000000000 --- a/test/__tests__/clickup.test.js +++ /dev/null @@ -1,47 +0,0 @@ -const integration = "clickup"; -const name = "ClickUp"; - -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 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(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", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/custify.test.js b/test/__tests__/custify.test.js deleted file mode 100644 index a4c55a5504..0000000000 --- a/test/__tests__/custify.test.js +++ /dev/null @@ -1,47 +0,0 @@ -const integration = "custify"; -const name = "Custify"; - -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 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(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", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/data/adobe_analytics.json b/test/__tests__/data/adobe_analytics.json deleted file mode 100644 index 6361f92640..0000000000 --- a/test/__tests__/data/adobe_analytics.json +++ /dev/null @@ -1,4764 +0,0 @@ -[ - { - "description": "[ECom]: Product Viewed", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1", - "name": "Best Seller" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": { - "tt01": "t01", - "tt02": "t02" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "product viewed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "product_id": "123", - "sku": "F15", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "currency": "USD", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png", - "currencyMerch": 25, - "addressMerch": "Delhi", - "currencyProdMerch": "USD", - "addressProdMerch": "SF", - "city5": "Kolkata", - "phone4": "9935400932", - "bikelist": "r15,faze90R", - "carlist": "ciaz,hummer,thar", - "customprop1": "custompropval1", - "customprop2": "custompropval2", - "overridePageView": true - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "https://flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignwebUSD127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellert01t02roottval001Kolkata9935400932RudderLabs JavaScript SDKr15,faze90Rciaz,hummer,tharhttps://www.estore.com/best-seller/1Best Sellercustompropval1custompropval22020-01-09T10:01:53.558Zmktcloudid001prodViewGames;Game;11;148.39footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[ECom]: Product Added", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": {}, - "event": "product added", - "integrations": { - "All": true - }, - "properties": { - "product_id": "123", - "sku": "F15", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png", - "overridePageView": false - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerRudderLabs JavaScript SDKoproduct addedhttps://www.estore.com/best-seller/12020-01-09T10:01:53.558Zmktcloudid001scAddGames;Game;11;148.39footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[ECom]: Product Removed", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": {}, - "event": "product removed", - "integrations": { - "All": true - }, - "properties": { - "product_id": "123", - "sku": "F15", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png", - "overridePageView": true - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerRudderLabs JavaScript SDKhttps://www.estore.com/best-seller/1https://www.estore.com/best-seller/12020-01-09T10:01:53.558Zmktcloudid001scRemoveGames;Game;11;148.39footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[ECom]: Cart Viewed", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "cart viewed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "cart_id": "12345", - - "products": [ - { - "product_id": "123", - "sku": "G-14", - "name": "Cards", - "price": 14.99, - "position": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "G-32", - "name": "UNO", - "price": 3.99, - "position": 2, - "category": "Games" - } - ] - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001RudderLabs JavaScript SDKocart viewedhttps://www.estore.com/best-seller/12020-01-09T10:01:53.558Zmktcloudid001scViewGames;Cards;1;14.99,Games;UNO;1;3.99footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[ECom]: Checkout started", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "checkout started", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "affiliation": "Apple Store", - "value": 20, - "revenue": 15.0, - "shipping": 4, - "tax": 1, - "discount": 1.5, - "coupon": "ImagePro", - "currency": "USD", - "purchaseId": "p101", - "products": [ - { - "product_id": "123", - "sku": "G-32", - "name": "Monopoly", - "price": 14, - "quantity": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "F-32", - "name": "UNO", - "price": 3.45, - "quantity": 2, - "category": "Games" - } - ] - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignwebUSD127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001RudderLabs JavaScript SDKocheckout startedhttps://www.estore.com/best-seller/12020-01-09T10:01:53.558Zmktcloudid001p101scCheckoutGames;Monopoly;1;14.00,Games;UNO;2;6.90footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[ECom]: Order Completed", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "order completed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "checkout_id": "12345", - "order_id": "1234", - "affiliation": "Apple Store", - "total": 20, - "revenue": 15.0, - "shipping": 4, - "tax": 1, - "discount": 1.5, - "coupon": "ImagePro", - "currency": "USD", - "products": [ - { - "product_id": "123", - "sku": "G-32", - "name": "Monopoly", - "price": 14, - "quantity": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "F-32", - "name": "UNO", - "price": 3.45, - "quantity": 2, - "category": "Games" - } - ] - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignwebUSD127.0.0.1en-US12341234Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001RudderLabs JavaScript SDKoorder completedhttps://www.estore.com/best-seller/12020-01-09T10:01:53.558Zmktcloudid001purchaseGames;Monopoly;1;14.00,Games;UNO;2;6.90footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Cart Opened", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "cart opened", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "cart_id": "12345", - "products": [ - { - "product_id": "123", - "sku": "G-14", - "name": "Cards", - "price": 14.99, - "position": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "G-32", - "name": "UNO", - "price": 3.99, - "position": 2, - "category": "Games" - } - ] - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001RudderLabs JavaScript SDKocart openedhttps://www.estore.com/best-seller/12020-01-09T10:01:53.558Zmktcloudid001scOpenGames;Cards;1;14.99,Games;UNO;1;3.99footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Custom] Watched Video", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "Watched Video", - "integrations": { - "All": true - }, - "properties": { - "plan": "growth", - "video": "TEDxGROWTH" - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - }, - { - "from": "video", - "to": "2" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "Watched Video", - "to": "event1" - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - }, - { - "from": "plan", - "to": "2", - "delimiter": "," - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001RudderLabs JavaScript SDKTEDxGROWTHoWatched Videohttps://www.estore.com/best-seller/1growth2020-01-09T10:01:53.558Zmktcloudid001event1footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Common Page Call", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "integrations": { - "All": true - }, - "properties": { - "browser": "chrome", - "searchTerm": "swim shorts", - "section": "swimwear", - "city5": "Kolkata", - "phone4": "9935400932", - "bikelist": "r15,faze90R", - "carlist": "ciaz,hummer,thar", - "customprop1": "custompropval1", - "customprop2": "custompropval2" - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "name": "Page View", - "type": "page", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "Page View", - "to": "event2" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001Kolkata9935400932RudderLabs JavaScript SDKopage viewhttps://www.estore.com/best-seller/1r15,faze90Rciaz,hummer,tharcustompropval1custompropval22020-01-09T10:01:53.558Zmktcloudid001event2footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Currency test event", - "input": { - "message": { - "type": "track", - "event": "Currency test event", - "userId": "ruddersampleX3", - "request_ip": "14.5.67.21", - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.rudderstack.demo.android", - "version": "1.0" - }, - "device": { - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "advertisingId": "8ecd7512-2864-440c-93f3-a3cabe62525b", - "attStatus": true, - "id": "fc8d449516de0dfb", - "adTrackingEnabled": true, - "token": "bk3RNwTe3H0CI2k_ HHwgIpoDKCIZvvD MExUdFQ3P1" - }, - "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" - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Mumbai", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "properties": { - "products": [ - { - "product_id": "123", - "sku": "F15", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "currency": "USD", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png", - "prodLevelCurrency": "EUR" - } - ], - "currencyProdMerch": 5, - "currencyMerch": 21, - "city5": "Kolkata", - "phone4": "9935400932", - "bikelist": "r15,faze90R", - "carlist": "ciaz,hummer,thar", - "customprop1": "custompropval1", - "customprop2": "custompropval2", - "mark6": "label number 6", - "overridePageView": true - }, - "timestamp": "2021-09-01T15:46:51.000Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - }, - { - "from": "video", - "to": "2" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "watched video", - "to": "event1" - }, - { - "from": "Page View", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - }, - { - "from": "plan", - "to": "2", - "delimiter": "," - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "1794108014.5.67.21en-USAsia/MumbaiDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)Kolkata9935400932com.rudderstack.android.sdk.corer15,faze90Rciaz,hummer,tharundefinedcustompropval1custompropval22021-09-01T15:46:51.000Zmktcloudid001event6,event6=21,event2,event6Games;Game;11;148.39;event6=5|event6=EUR;eVar4=9935400932|eVar5=Kolkata|eVar6=label number 6footlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Override feature test", - "input": { - "message": { - "anonymousId": "73c53c25-42h1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "event": "Product Viewed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "overridePageView": true, - "tsUrl": "footlocker.sc.omtrdc.net", - "overrideProductString": ";product1;;;event1=1", - "overrideEventString": "scAdd", - "overrideEvars": { - "evar1": "yash", - "evar2": "val2" - }, - "overrideLists": { - "list1": "r15,faze90R" - }, - "overrideCustomProperties": { - "prop1": "overrideVal1" - }, - "product_id": "123", - "sku": "F15", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "currency": "USD", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png", - "currencyMerch": "INR", - "addressMerch": "Delhi", - "currencyProdMerch": "USD", - "addressProdMerch": "SF", - "city5": "Kolkata", - "phone4": "9935400932", - "bikelist": "r15,faze91R", - "carlist": "ciaz,hummer,thar", - "customprop1": "custompropval1", - "customprop2": "custompropval2", - "hier1": "h1", - "hier2": "h2" - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - }, - { - "from": "video", - "to": "2" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "watched video", - "to": "event1" - }, - { - "from": "Page View", - "to": "event2" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "hierMapping": [ - { - "from": "hier1", - "to": "1" - }, - { - "from": "hier2", - "to": "2" - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - }, - { - "from": "plan", - "to": "2", - "delimiter": "," - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "XML": { - "payload": "17941080sales campaignwebUSDen-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestselleryashval2h1h2r15,faze90Rhttps://www.estore.com/best-seller/1https://www.estore.com/best-seller/1overrideVal12020-01-09T10:01:53.558Zmktcloudid001scAdd;product1;;;event1=1footlockerrudderstackpoc" - }, - "FORM": {}, - "JSON": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - }, - { - "description": "Override hiers test", - "input": { - "message": { - "anonymousId": "73c53c25-42h1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "event": "Product Viewed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "tsUrl": "footlocker.sc.omtrdc.net", - "overrideProductString": ";product1;;;event1=1", - "overrideEventString": "scAdd", - "overrideEvars": { - "evar1": "yash", - "evar2": "val2" - }, - "overrideLists": { - "list1": "r15,faze90R" - }, - "overrideCustomProperties": { - "prop1": "overrideVal1" - }, - "overrideHiers": { - "hier1": "oh1", - "hier2": "oh2", - "hier3": "newh3" - }, - "product_id": "123", - "sku": "F15", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "currency": "USD", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png", - "currencyMerch": "INR", - "addressMerch": "Delhi", - "currencyProdMerch": "USD", - "addressProdMerch": "SF", - "city5": "Kolkata", - "phone4": "9935400932", - "bikelist": "r15,faze91R", - "carlist": "ciaz,hummer,thar", - "customprop1": "custompropval1", - "customprop2": "custompropval2", - "hier1": "h1", - "hier2": "h2", - "pageName": "hierarchy test" - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - }, - { - "from": "video", - "to": "2" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "watched video", - "to": "event1" - }, - { - "from": "Page View", - "to": "event2" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "hierMapping": [ - { - "from": "hier1", - "to": "1" - }, - { - "from": "hier2", - "to": "2" - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - }, - { - "from": "plan", - "to": "2", - "delimiter": "," - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "XML": { - "payload": "17941080sales campaignwebUSDen-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestselleryashval2oProduct Viewedhttps://www.estore.com/best-seller/1oh1oh2newh3r15,faze90RoverrideVal12020-01-09T10:01:53.558Zmktcloudid001scAdd;product1;;;event1=1footlockerrudderstackpoc" - }, - "FORM": {}, - "JSON": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - }, - { - "description": "product level eVaR", - "input": { - "message": { - "anonymousId": "73c53c25-42h1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "event": "Product Viewed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "tsUrl": "footlocker.sc.omtrdc.net", - "overrideProductString": ";product1;;;event1=1", - "overrideEventString": "scAdd", - "overrideEvars": { - "evar1": "yash", - "evar2": "val2" - }, - "overrideLists": { - "list1": "r15,faze90R" - }, - "overrideCustomProperties": { - "prop1": "overrideVal1" - }, - "overrideHiers": { - "hier1": "oh1", - "hier2": "oh2", - "hier3": "newh3" - }, - "product_id": "123", - "sku": "F15", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "currency": "USD", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png", - "currencyMerch": "INR", - "addressMerch": "Delhi", - "currencyProdMerch": "USD", - "addressProdMerch": "SF", - "city5": "Kolkata", - "phone4": "9935400932", - "bikelist": "r15,faze91R", - "carlist": "ciaz,hummer,thar", - "customprop1": "custompropval1", - "customprop2": "custompropval2", - "hier1": "h1", - "hier2": "h2", - "pageName": "hierarchy test", - "mark6": "label mark" - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - }, - { - "from": "video", - "to": "2" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "watched video", - "to": "event1" - }, - { - "from": "Page View", - "to": "event2" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "hierMapping": [ - { - "from": "hier1", - "to": "1" - }, - { - "from": "hier2", - "to": "2" - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - }, - { - "from": "plan", - "to": "2", - "delimiter": "," - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "XML": { - "payload": "17941080sales campaignwebUSDen-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestselleryashval2oProduct Viewedhttps://www.estore.com/best-seller/1oh1oh2newh3r15,faze90RoverrideVal12020-01-09T10:01:53.558Zmktcloudid001scAdd;product1;;;event1=1footlockerrudderstackpoc" - }, - "FORM": {}, - "JSON": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - }, - { - "description": "[ERROR]: Invalid message type: Identify", - "input": { - "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 - } - }, - "user_properties": { - "prop1": "val1", - "prop2": "val2" - }, - "type": "identify", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "userId": "user001", - "anonymousId": "anony001", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - }, - "statusCode": 400, - "error": "Message type is not supported", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "ADOBE_ANALYTICS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - }, - { - "description": "[ERROR]: Message Type is not present.", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "currency test event", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "cart_id": "12345", - "mark6": "label number 6", - "products": [ - { - "product_id": "123", - "sku": "G-14", - "name": "Cards", - "price": 14.99, - "position": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "G-32", - "name": "UNO", - "price": 3.99, - "position": 2, - "category": "Games" - } - ] - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - }, - "statusCode": 400, - "error": "Message Type is not present. Aborting message.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "ADOBE_ANALYTICS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - }, - { - "description": "[ERROR]: The event is not a supported ECOM event or a mapped custom event.", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "random unmapped event", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "cart_id": "12345", - "mark6": "label number 6", - "products": [ - { - "product_id": "123", - "sku": "G-14", - "name": "Cards", - "price": 14.99, - "position": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "G-32", - "name": "UNO", - "price": 3.99, - "position": 2, - "category": "Games" - } - ] - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - }, - "statusCode": 400, - "error": "The event is not a supported ECOM event or a mapped custom event. Aborting.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration", - "destType": "ADOBE_ANALYTICS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - }, - { - "description": "Test overrideEventName property", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "ip": "127.0.0.1", - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "traits": {}, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "traits": { - "roott01": "roottval001" - }, - "event": "random unmapped event", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "overrideEventName": "override event", - "cart_id": "12345", - "mark6": "label number 6", - "products": [ - { - "product_id": "123", - "sku": "G-14", - "name": "Cards", - "price": 14.99, - "position": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "G-32", - "name": "UNO", - "price": 3.99, - "position": 2, - "category": "Games" - } - ] - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "trackingServerUrl": "flk.gc.gmtidc.net", - "trackingServerSecureUrl": "flk.gc.gmtidc.net", - "reportSuiteIds": "footlockerrudderstackpoc", - "sslHeartbeat": true, - "heartbeatTrackingServerUrl": "", - "useUtf8Charset": true, - "useSecureServerSide": true, - "proxyNormalUrl": "", - "proxyHeartbeatUrl": "", - "marketingCloudOrgId": "mktcloudid001", - "dropVisitorId": false, - "timestampOption": "enabled", - "timestampOptionalReporting": true, - "noFallbackVisitorId": false, - "preferVisitorId": false, - "trackPageName": true, - "contextDataPrefix": "", - "useLegacyLinkName": true, - "pageNameFallbackTostring": true, - "sendFalseValues": true, - "productIdentifier": "name", - "eventFilteringOption": "disable", - "eventsToTypes": [ - { - "from": "init heartbeat", - "to": "initHeartbeat" - } - ], - "rudderEventsToAdobeEvents": [ - { - "from": "product viewed", - "to": "event1" - }, - { - "from": "currency test event", - "to": "event6" - } - ], - "contextDataMapping": [ - { - "from": "tt01", - "to": "tt01" - }, - { - "from": "tt02", - "to": "tt02" - }, - { - "from": "roott01", - "to": "roott01" - } - ], - "eVarMapping": [ - { - "from": "city5", - "to": "5" - }, - { - "from": "phone4", - "to": "4" - }, - { - "to": "6", - "from": "context.library.name" - } - ], - "listMapping": [ - { - "from": "bikelist", - "to": "1", - "delimiter": "," - }, - { - "from": "carlist", - "to": "2", - "delimiter": "," - } - ], - "customPropsMapping": [ - { - "from": "customprop1", - "to": "1", - "delimiter": "," - }, - { - "from": "customprop2", - "to": "2", - "delimiter": "," - } - ], - "eventMerchEventToAdobeEvent": [ - { - "from": "product not viewed", - "to": "event1" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "eventMerchProperties": [ - { - "eventMerchProperties": "currencyMerch" - }, - { - "eventMerchProperties": "addressMerch" - } - ], - "productMerchEventToAdobeEvent": [ - { - "from": "product list viewed", - "to": "event2" - }, - { - "from": "Currency test event", - "to": "event6" - } - ], - "productMerchProperties": [ - { - "productMerchProperties": "currencyProdMerch" - }, - { - "productMerchProperties": "addressProdMerch" - }, - { - "productMerchProperties": "products.prodLevelCurrency" - } - ], - "productMerchEvarsMap": [ - { - "from": "phone4", - "to": "4" - }, - { - "from": "city5", - "to": "5" - }, - { - "from": "products.mark6", - "to": "6" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://flk.gc.gmtidc.net/b/ss//6", - "headers": { "Content-type": "application/xml" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": { - "payload": "17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001RudderLabs JavaScript SDKorandom unmapped eventhttps://www.estore.com/best-seller/12020-01-09T10:01:53.558Zmktcloudid001override eventfootlockerrudderstackpoc" - }, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/af_input.json b/test/__tests__/data/af_input.json deleted file mode 100644 index d5e2d6f16a..0000000000 --- a/test/__tests__/data/af_input.json +++ /dev/null @@ -1,1089 +0,0 @@ -[ - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "screen": { - "density": 2 - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "appId" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "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": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout started", - "properties": { - "currency": "CAD", - "products": [ - { - "product_id": "pr1", - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "product_id": "pr2", - "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": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "id": "some_other2345_sample_external_id", - "type": "appsflyerExternalId" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "ios", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "appleAppId": "123456789" - }, - "Enabled": true - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "source": "test", - "app": { - "namespace": "com.rudderlabs.javascript" - }, - "os": { - "name": "android" - }, - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "ZAR", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "abcde", - "androidAppId": "com.rudderlabs.javascript", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "source": "test", - "app": { - "namespace": "com.rudderlabs.javascript" - }, - "os": { - "name": "android" - }, - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "ZAR", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "abcde", - "androidAppId": "com.rudderlabs.javascript", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "source": "test", - "app": { - "namespace": "com.rudderlabs.javascript" - }, - "os": { - "name": "android" - }, - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "abcde", - "androidAppId": "com.rudderlabs.javascript", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "normal track event", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "source": "test", - "app": { - "namespace": "com.rudderlabs.javascript" - }, - "os": { - "name": "android" - }, - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "ZAR", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "abcde", - "androidAppId": "com.rudderlabs.javascript", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "normal track event", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "source": "test", - "app": { - "namespace": "com.rudderlabs.javascript" - }, - "os": { - "name": "android" - }, - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "abcde", - "androidAppId": "com.rudderlabs.javascript", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript", - "sharingFilter": ["hello"] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript", - "sharingFilter": "all" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/af_output.json b/test/__tests__/data/af_output.json deleted file mode 100644 index 51132a5c83..0000000000 --- a/test/__tests__/data/af_output.json +++ /dev/null @@ -1,357 +0,0 @@ -[ - { - "statusCode": 400, - "error": "message type not supported" - }, - { - "version": "1", - "type": "REST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "method": "POST", - "params": {}, - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"path\":\"\",\"referrer\":\"\",\"search\":\"\",\"title\":\"\",\"url\":\"\"}", - "eventName": "page", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "params": {}, - "body": { - "JSON": { - "eventValue": "{\"properties\":{\"user_actual_role\":\"system_admin, system_user\",\"user_actual_id\":12345}}", - "eventName": "test track event HS", - "customer_user_id": "12345", - "ip": "0.0.0.0", - "os": "", - "appsflyer_id": "afUid", - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "error": "Appsflyer id is not set. Rejecting the event" - }, - { - "error": "Appsflyer id is not set. Rejecting the event" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "params": {}, - "body": { - "JSON": { - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"path\":\"\",\"referrer\":\"\",\"search\":\"\",\"title\":\"\",\"url\":\"\"}", - "eventName": "page", - "appsflyer_id": "some_other2345_sample_external_id", - "os": "", - "ip": "0.0.0.0", - "app_version_name": "1.0.0" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "method": "POST", - "params": {}, - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"path\":\"\",\"referrer\":\"\",\"search\":\"\",\"title\":\"\",\"url\":\"\"}", - "eventName": "page", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "endpoint": "https://api2.appsflyer.com/inappevent/id123456789", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "method": "POST", - "params": {}, - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"path\":\"\",\"referrer\":\"\",\"search\":\"\",\"title\":\"\",\"url\":\"\"}", - "eventName": "page", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "abcde" - }, - "params": {}, - "body": { - "JSON": { - "bundleIdentifier": "com.rudderlabs.javascript", - "eventValue": "{\"properties\":{\"tax\":2,\"total\":27.5,\"coupon\":\"hasbros\",\"revenue\":48,\"price\":25,\"quantity\":2,\"currency\":\"ZAR\",\"discount\":2.5,\"order_id\":\"50314b8e9bcf000000000000\",\"products\":[{\"sku\":\"45790-32\",\"url\":\"https://www.example.com/product/path\",\"name\":\"Monopoly: 3rd Edition\",\"price\":19,\"category\":\"Games\",\"quantity\":1,\"image_url\":\"https:///www.example.com/product/path.jpg\",\"product_id\":\"507f1f77bcf86cd799439011\"},{\"sku\":\"46493-32\",\"name\":\"Uno Card Game\",\"price\":3,\"category\":\"Games\",\"quantity\":2,\"product_id\":\"505bd76785ebb509fc183733\"}],\"shipping\":3,\"subtotal\":22.5,\"affiliation\":\"Google Store\",\"checkout_id\":\"fksdjfsdjfisjf9sdfjsd9f\"},\"af_revenue\":48,\"af_price\":[19,3],\"af_quantity\":[1,2],\"af_order_id\":\"50314b8e9bcf000000000000\",\"af_content_id\":[\"507f1f77bcf86cd799439011\",\"505bd76785ebb509fc183733\"]}", - "eventName": "Order Completed", - "eventCurrency": "ZAR", - "eventTime": "2020-08-14T05:30:30.118Z", - "appsflyer_id": "afUid" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "abcde" - }, - "params": {}, - "body": { - "JSON": { - "bundleIdentifier": "com.rudderlabs.javascript", - "eventValue": "{\"properties\":{\"tax\":2,\"total\":27.5,\"coupon\":\"hasbros\",\"revenue\":48,\"price\":25,\"quantity\":2,\"currency\":\"ZAR\",\"discount\":2.5,\"order_id\":\"50314b8e9bcf000000000000\",\"shipping\":3,\"subtotal\":22.5,\"affiliation\":\"Google Store\",\"checkout_id\":\"fksdjfsdjfisjf9sdfjsd9f\"},\"af_revenue\":48,\"af_price\":25,\"af_quantity\":2,\"af_order_id\":\"50314b8e9bcf000000000000\"}", - "eventName": "Order Completed", - "eventCurrency": "ZAR", - "eventTime": "2020-08-14T05:30:30.118Z", - "appsflyer_id": "afUid" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "abcde" - }, - "params": {}, - "body": { - "JSON": { - "bundleIdentifier": "com.rudderlabs.javascript", - "eventValue": "", - "eventName": "Order Completed", - "eventTime": "2020-08-14T05:30:30.118Z", - "appsflyer_id": "afUid" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "abcde" - }, - "params": {}, - "body": { - "JSON": { - "eventValue": "{\"properties\":{\"tax\":2,\"total\":27.5,\"coupon\":\"hasbros\",\"revenue\":48,\"price\":25,\"quantity\":2,\"currency\":\"ZAR\",\"discount\":2.5,\"order_id\":\"50314b8e9bcf000000000000\",\"products\":[{\"sku\":\"45790-32\",\"url\":\"https://www.example.com/product/path\",\"name\":\"Monopoly: 3rd Edition\",\"price\":19,\"category\":\"Games\",\"quantity\":1,\"image_url\":\"https:///www.example.com/product/path.jpg\",\"product_id\":\"507f1f77bcf86cd799439011\"},{\"sku\":\"46493-32\",\"name\":\"Uno Card Game\",\"price\":3,\"category\":\"Games\",\"quantity\":2,\"product_id\":\"505bd76785ebb509fc183733\"}],\"shipping\":3,\"subtotal\":22.5,\"affiliation\":\"Google Store\",\"checkout_id\":\"fksdjfsdjfisjf9sdfjsd9f\"},\"af_revenue\":48,\"af_quantity\":2,\"af_price\":25}", - "eventName": "normal track event", - "eventTime": "2020-08-14T05:30:30.118Z", - "eventCurrency": "ZAR", - "appsflyer_id": "afUid", - "bundleIdentifier": "com.rudderlabs.javascript" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "abcde" - }, - "params": {}, - "body": { - "JSON": { - "bundleIdentifier": "com.rudderlabs.javascript", - "eventValue": "", - "eventName": "normal track event", - "eventTime": "2020-08-14T05:30:30.118Z", - "appsflyer_id": "afUid" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "params": {}, - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "", - "eventName": "page", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "method": "POST", - "params": {}, - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"path\":\"\",\"referrer\":\"\",\"search\":\"\",\"title\":\"\",\"url\":\"\"}", - "eventName": "page", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0", - "sharing_filter": ["hello"] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "method": "POST", - "params": {}, - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"path\":\"\",\"referrer\":\"\",\"search\":\"\",\"title\":\"\",\"url\":\"\"}", - "eventName": "page", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0", - "sharing_filter": "all" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "os name is required along with the respective appId eg. (os->android & Android App Id is required) or (os->ios & Apple App Id is required)" - } -] diff --git a/test/__tests__/data/af_router_input.json b/test/__tests__/data/af_router_input.json deleted file mode 100644 index 42e63e8aa2..0000000000 --- a/test/__tests__/data/af_router_input.json +++ /dev/null @@ -1,200 +0,0 @@ -[ - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "appsflyerExternalId", - "id": "afUid" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "integrations": { - "AF": { - "af_uid": "afUid" - } - } - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "sharingFilter": "hey", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/af_router_output.json b/test/__tests__/data/af_router_output.json deleted file mode 100644 index 5719ee743f..0000000000 --- a/test/__tests__/data/af_router_output.json +++ /dev/null @@ -1,133 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "method": "POST", - "params": {}, - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"path\":\"\",\"referrer\":\"\",\"search\":\"\",\"title\":\"\",\"url\":\"\"}", - "eventName": "page", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "params": {}, - "method": "POST", - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"properties\":{\"user_actual_role\":\"system_admin, system_user\",\"user_actual_id\":12345}}", - "eventName": "test track event HS", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "endpoint": "https://api2.appsflyer.com/inappevent/com.rudderlabs.javascript", - "headers": { - "Content-Type": "application/json", - "authentication": "ef1d42390426e3f7c90ac78272e74344" - }, - "method": "POST", - "params": {}, - "body": { - "JSON": { - "app_version_name": "1.0.0", - "bundleIdentifier": "com.rudderlabs.javascript", - "customer_user_id": "12345", - "eventValue": "{\"path\":\"\",\"referrer\":\"\",\"search\":\"\",\"title\":\"\",\"url\":\"\"}", - "eventName": "page", - "appsflyer_id": "afUid", - "os": "", - "ip": "0.0.0.0", - "sharing_filter": "hey" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "sharingFilter": "hey", - "androidAppId": "com.rudderlabs.javascript" - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/am_batch_input.json b/test/__tests__/data/am_batch_input.json deleted file mode 100644 index 5b0440babf..0000000000 --- a/test/__tests__/data/am_batch_input.json +++ /dev/null @@ -1,1919 +0,0 @@ -[ - [ - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.eu.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 1 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "EU" - } - } - } - ], - [ - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "user_id": "123", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.eu.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 1 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "EU" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132712347, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 2 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132719505, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 3 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 4 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 5 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"Comapny-ABC\",\"group_properties\":{\"KEY_2\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"KEY_3\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"name_trait\":\"Company\",\"value_trait\":\"Comapny-ABC\"}}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/groupidentify" - }, - "metadata": { - "job_id": 6 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "mapping": ["{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\"}"] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/usermap" - }, - "metadata": { - "job_id": 7 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - } - ], - [ - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "user_id": "123", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - }, - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 1 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1603132712347, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 2 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1603132719505, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 3 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - }, - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 4 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - }, - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 5 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"Comapny-ABC\",\"group_properties\":{\"KEY_2\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"KEY_3\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"name_trait\":\"Company\",\"value_trait\":\"Comapny-ABC\"}}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/groupidentify" - }, - "metadata": { - "job_id": 6 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "mapping": ["{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\"}"] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/usermap" - }, - "metadata": { - "job_id": 7 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - } - ], - [ - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "dd4c4493-a3ff-49c9-9071-6cb72e37cd55", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - "api_key": "afasf", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "anon_id", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 12, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:29.633+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - "destination": { - "ID": "1iuPwfigf4Fk5F5OBF2T3EVTGlY", - "Name": "braze dev", - "DestinationDefinition": { - "ID": "1XQoHKJnI6Uf67wN20RlvAQSUB9", - "Name": "BRAZE", - "DisplayName": "Braze", - "Config": { - "destConfig": { - "android": ["useNativeSDK"], - "defaultConfig": ["appKey", "dataCenter", "restApiKey"], - "ios": ["useNativeSDK"], - "web": ["useNativeSDK"] - }, - "excludeKeys": [], - "includeKeys": ["appKey", "dataCenter"], - "secretKeys": ["restApiKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative" - ] - } - }, - "Config": { - "appKey": "asdf", - "dataCenter": "asdfasdf", - "residencyServer": "standard" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": false - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "69283c05-bbe9-4aba-bb98-3f065d39cf54", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - "api_key": "afasf", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "anon_id", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 13, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:29.914+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - "destination": { - "ID": "1iuPwfigf4Fk5F5OBF2T3EVTGlY", - "Name": "braze dev", - "DestinationDefinition": { - "ID": "1XQoHKJnI6Uf67wN20RlvAQSUB9", - "Name": "BRAZE", - "DisplayName": "Braze", - "Config": { - "destConfig": { - "android": ["useNativeSDK"], - "defaultConfig": ["appKey", "dataCenter", "restApiKey"], - "ios": ["useNativeSDK"], - "web": ["useNativeSDK"] - }, - "excludeKeys": [], - "includeKeys": ["appKey", "dataCenter"], - "secretKeys": ["restApiKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative" - ] - } - }, - "Config": { - "appKey": "asdf", - "dataCenter": "asdfasdf", - "residencyServer": "standard" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": false - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "39f7a1fa-ff79-4fd1-a329-d637f018de7e", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - "api_key": "afasf", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "anon_id", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 14, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:30.166+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - "destination": { - "ID": "1iuPwfigf4Fk5F5OBF2T3EVTGlY", - "Name": "braze dev", - "DestinationDefinition": { - "ID": "1XQoHKJnI6Uf67wN20RlvAQSUB9", - "Name": "BRAZE", - "DisplayName": "Braze", - "Config": { - "destConfig": { - "android": ["useNativeSDK"], - "defaultConfig": ["appKey", "dataCenter", "restApiKey"], - "ios": ["useNativeSDK"], - "web": ["useNativeSDK"] - }, - "excludeKeys": [], - "includeKeys": ["appKey", "dataCenter"], - "secretKeys": ["restApiKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative" - ] - } - }, - "Config": { - "appKey": "asdf", - "dataCenter": "asdfasdf", - "residencyServer": "standard" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": false - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "4314aa01-46a3-4f45-b67d-debe4bc01717", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - "api_key": "afasf", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "anon_id", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 15, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:30.424+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - "destination": { - "ID": "1iuPwfigf4Fk5F5OBF2T3EVTGlY", - "Name": "braze dev", - "DestinationDefinition": { - "ID": "1XQoHKJnI6Uf67wN20RlvAQSUB9", - "Name": "BRAZE", - "DisplayName": "Braze", - "Config": { - "destConfig": { - "android": ["useNativeSDK"], - "defaultConfig": ["appKey", "dataCenter", "restApiKey"], - "ios": ["useNativeSDK"], - "web": ["useNativeSDK"] - }, - "excludeKeys": [], - "includeKeys": ["appKey", "dataCenter"], - "secretKeys": ["restApiKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative" - ] - } - }, - "Config": { - "appKey": "asdf", - "dataCenter": "asdfasdf", - "residencyServer": "standard" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": false - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "4d958d40-2762-44aa-bf83-d47f881bc615", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - "api_key": "afasf", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "anon_id", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 16, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:30.668+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - "destination": { - "ID": "1iuPwfigf4Fk5F5OBF2T3EVTGlY", - "Name": "braze dev", - "DestinationDefinition": { - "ID": "1XQoHKJnI6Uf67wN20RlvAQSUB9", - "Name": "BRAZE", - "DisplayName": "Braze", - "Config": { - "destConfig": { - "android": ["useNativeSDK"], - "defaultConfig": ["appKey", "dataCenter", "restApiKey"], - "ios": ["useNativeSDK"], - "web": ["useNativeSDK"] - }, - "excludeKeys": [], - "includeKeys": ["appKey", "dataCenter"], - "secretKeys": ["restApiKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative" - ] - } - }, - "Config": { - "appKey": "asdf", - "dataCenter": "asdfasdf", - "residencyServer": "standard" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": false - } - } - ], - [ - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "user_id": "123", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 1 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132712347, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 2 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132719505, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 3 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 4 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 5 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"Comapny-ABC\",\"group_properties\":{\"KEY_2\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"KEY_3\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"name_trait\":\"Company\",\"value_trait\":\"Comapny-ABC\"}}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/groupidentify" - }, - "metadata": { - "job_id": 6 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "mapping": ["{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\"}"] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/usermap" - }, - "metadata": { - "job_id": 7 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - } - ], - [ - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "user_id": "123", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 1 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132712347, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 2 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132719505, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 3 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 4 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": { - "job_id": 5 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"Comapny-ABC\",\"group_properties\":{\"KEY_2\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"KEY_3\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"name_trait\":\"Company\",\"value_trait\":\"Comapny-ABC\"}}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/groupidentify" - }, - "metadata": { - "job_id": 6 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "message": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "mapping": ["{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\"}"] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/usermap" - }, - "metadata": { - "job_id": 7 - }, - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - } - ] -] diff --git a/test/__tests__/data/am_batch_output.json b/test/__tests__/data/am_batch_output.json deleted file mode 100644 index 32735b000f..0000000000 --- a/test/__tests__/data/am_batch_output.json +++ /dev/null @@ -1,1229 +0,0 @@ -[ - [ - { - "batched": false, - "error": "Both userId and deviceId cannot be undefined", - "metadata": { - "job_id": 1 - }, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400 - } - ], - [ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "user_id": "123", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.eu.amplitude.com/2/httpapi" - }, - "metadata": [ - { - "job_id": 1 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "EU" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"Comapny-ABC\",\"group_properties\":{\"KEY_2\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"KEY_3\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"name_trait\":\"Company\",\"value_trait\":\"Comapny-ABC\"}}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/groupidentify" - }, - "metadata": [ - { - "job_id": 6 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "mapping": [ - "{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\"}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/usermap" - }, - "metadata": [ - { - "job_id": 7 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132712347, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - { - "ip": "[::1]", - "time": 1603132719505, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - }, - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/batch" - }, - "metadata": [ - { - "job_id": 2 - }, - { - "job_id": 3 - }, - { - "job_id": 4 - }, - { - "job_id": 5 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - } - ], - [ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "user_id": "123", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - }, - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": [ - { - "job_id": 1 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"Comapny-ABC\",\"group_properties\":{\"KEY_2\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"KEY_3\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"name_trait\":\"Company\",\"value_trait\":\"Comapny-ABC\"}}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/groupidentify" - }, - "metadata": [ - { - "job_id": 6 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "mapping": [ - "{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\"}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/usermap" - }, - "metadata": [ - { - "job_id": 7 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132712347, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - { - "ip": "[::1]", - "time": 1603132719505, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - }, - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/batch" - }, - "metadata": [ - { - "job_id": 2 - }, - { - "job_id": 3 - }, - { - "job_id": 4 - }, - { - "job_id": 5 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - } - ], - [ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "dd4c4493-a3ff-49c9-9071-6cb72e37cd55", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "69283c05-bbe9-4aba-bb98-3f065d39cf54", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "39f7a1fa-ff79-4fd1-a329-d637f018de7e", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "4314aa01-46a3-4f45-b67d-debe4bc01717", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - }, - { - "ip": "[::1]", - "time": 1565586510909, - "carrier": "Android", - "app_name": "RudderAndroidClient", - "language": "en-US", - "device_id": "anon_id", - "library": "rudderstack", - "insert_id": "4d958d40-2762-44aa-bf83-d47f881bc615", - "event_type": "Demo Track", - "session_id": -1, - "app_version": "1.0", - "device_model": "Android SDK built for x86", - "event_properties": { - "label": "Demo Label", - "value": 5, - "category": "Demo Category" - }, - "device_manufacturer": "Google" - } - ], - "api_key": "afasf" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "anon_id", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/batch" - }, - "metadata": [ - { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 12, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:29.633+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 13, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:29.914+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 14, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:30.166+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 15, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:30.424+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - }, - { - "userId": "90ca6da0-292e-4e79-9880-f8009e0ae4a3", - "jobId": 16, - "sourceId": "1fMCVYZboDlYlauh4GFsEo2JU77", - "destinationId": "1gXSYmSd7vkfFfJ4vtMCL0i43Lb", - "attemptNum": 0, - "receivedAt": "2020-10-20T23:47:30.668+05:30", - "createdAt": "2020-10-20T18:17:32.465Z" - } - ], - "destination": { - "ID": "1iuPwfigf4Fk5F5OBF2T3EVTGlY", - "Name": "braze dev", - "DestinationDefinition": { - "ID": "1XQoHKJnI6Uf67wN20RlvAQSUB9", - "Name": "BRAZE", - "DisplayName": "Braze", - "Config": { - "destConfig": { - "android": [ - "useNativeSDK" - ], - "defaultConfig": [ - "appKey", - "dataCenter", - "restApiKey" - ], - "ios": [ - "useNativeSDK" - ], - "web": [ - "useNativeSDK" - ] - }, - "excludeKeys": [], - "includeKeys": [ - "appKey", - "dataCenter" - ], - "secretKeys": [ - "restApiKey" - ], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative" - ] - } - }, - "Config": { - "appKey": "asdf", - "dataCenter": "asdfasdf", - "residencyServer": "standard" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": false - } - } - ], - [ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"Comapny-ABC\",\"group_properties\":{\"KEY_2\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"KEY_3\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"name_trait\":\"Company\",\"value_trait\":\"Comapny-ABC\"}}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/groupidentify" - }, - "metadata": [ - { - "job_id": 6 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "mapping": [ - "{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\"}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/usermap" - }, - "metadata": [ - { - "job_id": 7 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - }, - { - "ip": "[::1]", - "time": 1603132712347, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - { - "ip": "[::1]", - "time": 1603132719505, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - }, - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/batch" - }, - "metadata": [ - { - "job_id": 1 - }, - { - "job_id": 2 - }, - { - "job_id": 3 - }, - { - "job_id": 4 - }, - { - "job_id": 5 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - } - ], - [ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "0.0.0.0", - "time": 1603132665557, - "os_name": "", - "user_id": "123", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "name": "some campaign", - "plan": "Open source", - "term": "keyword", - "test": "other value", - "email": "test@rudderstack.com", - "logins": 5, - "medium": "medium", - "source": "google", - "content": "some content", - "category": "SampleIdentify", - "createdAt": 1599264000 - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "options": { - "min_id_length": 1 - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/2/httpapi" - }, - "metadata": [ - { - "job_id": 1 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"Comapny-ABC\",\"group_properties\":{\"KEY_2\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"KEY_3\":{\"CHILD_KEY_102\":\"value_103\",\"CHILD_KEY_92\":\"value_95\"},\"name_trait\":\"Company\",\"value_trait\":\"Comapny-ABC\"}}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/groupidentify" - }, - "metadata": [ - { - "job_id": 6 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85", - "mapping": [ - "{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\"}" - ] - }, - "JSON": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": {}, - "version": "1", - "endpoint": "https://api2.amplitude.com/usermap" - }, - "metadata": [ - { - "job_id": 7 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "ip": "[::1]", - "time": 1603132712347, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - { - "ip": "[::1]", - "time": 1603132719505, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "Simple track call", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "event_properties": { - "key": "val" - } - }, - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - }, - { - "ip": "[::1]", - "time": 1603132726413, - "groups": { - "Company": "Comapny-ABC" - }, - "os_name": "", - "user_id": "sampleusrRudder3", - "app_name": "RudderLabs JavaScript SDK", - "language": "en-US", - "device_id": "my-anonymous-id-new", - "library": "rudderstack", - "event_type": "$identify", - "os_version": "", - "session_id": -1, - "app_version": "1.1.5", - "user_properties": { - "Company": "Comapny-ABC" - } - } - ], - "api_key": "4c7ed7573eb73517ee4c26ed4bde9a85" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "my-anonymous-id-new", - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api2.amplitude.com/batch" - }, - "metadata": [ - { - "job_id": 2 - }, - { - "job_id": 3 - }, - { - "job_id": 4 - }, - { - "job_id": 5 - } - ], - "destination": { - "ID": "a", - "url": "a", - "Config": { - "residencyServer": "standard" - } - } - } - ] -] \ No newline at end of file diff --git a/test/__tests__/data/am_input.json b/test/__tests__/data/am_input.json deleted file mode 100644 index 126d235787..0000000000 --- a/test/__tests__/data/am_input.json +++ /dev/null @@ -1,4946 +0,0 @@ -[ - { - "message": { - "type": "track", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "revenue_type": "Purchased", - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "UNSUPPORTED-TYPE", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": {}, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": {}, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "groupTypeTrait": "email", - "apiKey": "abcde", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": {}, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": {}, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "revenue_type": "Purchased", - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "id": "lynnanderson@smith.net", - "identifierType": "device_id", - "type": "AM-users" - } - ], - "mappedToDestination": "true", - "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": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "", - "os_version": "test os" - }, - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "city": "kolkata", - "address": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "os_version": "test os", - "ip": "0.0.0.0", - "age": 26 - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "traitsToIncrement": [ - { - "traits": "" - } - ] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "id": "lynnanderson@smith.net", - "identifierType": "device_id", - "type": "AM-users" - } - ], - "mappedToDestination": "true", - "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": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "", - "os_version": "test os" - }, - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "city": "kolkata", - "address": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "os_version": "test os", - "ip": "0.0.0.0", - "age": 26 - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age" - } - } - }, - { - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age" - } - } - }, - { - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "request_ip": "1.1.1.1", - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "request_ip": "1.1.1.1", - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "integrations": { - "All": false, - "Amplitude": { - "groups": { - "Company": "ABC" - } - } - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "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": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "address": { - "city": "Sealdah", - "country": "India", - "postalCode": 700014, - "state": "WB", - "street": "" - } - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "ip": "0.0.0.0", - "age": 26 - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "identify", - "userId": "ubcdfghi0001", - "anonymousId": "123456", - "session_id": "1598597129", - "context": { - "traits": { - "device_id": "adddd0001", - "device_os": "ios", - "device_make": "apple iphone", - "app_version": "v1.0", - "timestamp": "2020-08-28 09:00:00" - }, - "library": { - "name": "http" - } - } - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "identify", - "userId": "ubcdfghi0001", - "anonymousId": "123456", - "session_id": "user:1598597129", - "context": { - "traits": { - "device_id": "adddd0001", - "device_os": "ios", - "device_make": "apple iphone", - "app_version": "v1.0", - "timestamp": "2020-08-28 09:00:00" - }, - "library": { - "name": "http" - } - } - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "identify", - "userId": "ubcdfghi0001", - "anonymousId": "123456", - "session_id": 1598597129, - "context": { - "traits": { - "device_id": "adddd0001", - "device_os": "ios", - "device_make": "apple iphone", - "app_version": "v1.0", - "timestamp": "2020-08-28 09:00:00" - }, - "library": { - "name": "http" - } - } - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "identify", - "userId": "ubcdfghi0001", - "anonymousId": "123456", - "context": { - "traits": { - "device_id": "adddd0001", - "device_os": "ios", - "device_make": "apple iphone", - "app_version": "v1.0", - "timestamp": "2020-08-28 09:00:00" - }, - "library": { - "name": "http" - } - } - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "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, - "Amplitude": { - "groups": { - "group_type": "Company", - "group_value": "ABC" - } - } - }, - "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": "ABC" - }, - "sentAt": "2020-10-20T07:54:58.983Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "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": "ABC" - }, - "sentAt": "2020-10-20T07:54:58.983Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "name_trait", - "groupValueTrait": "value_trait" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "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": [ - "ABC" - ] - }, - "sentAt": "2020-10-20T07:54:58.983Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "name_trait", - "groupValueTrait": "value_trait" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "alias", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "integrations": { - "All": true - }, - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "alias", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "integrations": { - "All": false, - "Amplitude": { - "unmap": "sampleusrRudder3" - } - }, - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "9" - }, - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "Android", - "cellular": true, - "bluetooth": false - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "9" - }, - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": false - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "Android", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "9" - }, - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "Android", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "iphone_xr_64", - "type": "iOS", - "model": "iPhone XR", - "manufacturer": "Apple", - "adTrackingEnabled": false - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "AT&T", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "iphone_xr_64", - "type": "iOS", - "model": "iPhone XR", - "manufacturer": "Apple", - "adTrackingEnabled": true, - "advertisingId": "1606e649-c97e-4d5f-a2ef-b81dbc66741a" - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "AT&T", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "screen", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "event": "Screen View", - "properties": { - "prop1": "5" - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": true - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": true - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": true - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": true - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - } - }, - "messageId": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2020-11-20T06:18:22.342Z", - "userId": "User_111", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.8", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Durgapur", - "name": "Manashi", - "phone": "990099009900", - "friends": 3, - "age": 12, - "subjects": 5, - "experience": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.8" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" - }, - "rudderId": "7e00bf3d-5357-4448-886d-f8fc8abf932d", - "messageId": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "anonymousId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-11-20T06:18:22.342Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "traitsToIncrement": [ - { - "traits": "age" - }, - { - "traits": "friends" - } - ] - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2020-11-20T06:18:22.342Z", - "userId": "User_111", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.8", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/RudderAmplitude.html", - "path": "/RudderAmplitude.html", - "title": "Amplitude Testing By Rudder", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Durgapur", - "name": "Manashi", - "phone": "990099009900", - "friends": 3, - "age": 12, - "subjects": 5, - "experience": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.8" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" - }, - "rudderId": "7e00bf3d-5357-4448-886d-f8fc8abf932d", - "messageId": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "anonymousId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-11-20T06:18:22.342Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "traitsToSetOnce": [ - { - "traits": "subjects" - }, - { - "traits": "" - } - ] - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2020-11-20T06:18:22.342Z", - "userId": "User_111", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.8", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/RudderAmplitude.html", - "path": "/RudderAmplitude.html", - "title": "Amplitude Testing By Rudder", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Durgapur", - "name": "Manashi", - "phone": "990099009900", - "friends": 3, - "age": 12, - "subjects": 5, - "experience": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.8" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" - }, - "rudderId": "7e00bf3d-5357-4448-886d-f8fc8abf932d", - "messageId": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "anonymousId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-11-20T06:18:22.342Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "traitsToAppend": [ - { - "traits": "name" - }, - { - "traits": "" - } - ] - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2020-11-20T06:18:22.342Z", - "userId": "User_111", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.8", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/RudderAmplitude.html", - "path": "/RudderAmplitude.html", - "title": "Amplitude Testing By Rudder", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Durgapur", - "name": "Manashi", - "phone": "990099009900", - "friends": 3, - "age": 12, - "subjects": 5, - "experience": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.8" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" - }, - "rudderId": "7e00bf3d-5357-4448-886d-f8fc8abf932d", - "messageId": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "anonymousId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-11-20T06:18:22.342Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "traitsToPrepend": [ - { - "traits": "experience" - }, - { - "traits": "" - } - ] - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2020-11-20T06:18:22.342Z", - "userId": "User_111", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.8", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/RudderAmplitude.html", - "path": "/RudderAmplitude.html", - "title": "Amplitude Testing By Rudder", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Durgapur", - "name": "Manashi", - "phone": "990099009900", - "friends": 3, - "age": 12, - "subjects": 5, - "experience": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.8" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" - }, - "rudderId": "7e00bf3d-5357-4448-886d-f8fc8abf932d", - "messageId": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "anonymousId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-11-20T06:18:22.342Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "traitsToIncrement": [ - { - "traits": "age" - }, - { - "traits": "friends" - } - ], - "traitsToSetOnce": [ - { - "traits": "subjects" - }, - { - "traits": "" - } - ], - "traitsToAppend": [ - { - "traits": "name" - }, - { - "traits": "" - } - ], - "traitsToPrepend": [ - { - "traits": "experience" - }, - { - "traits": "" - } - ] - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "userId": "userID123", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "location": { - "country": "United States", - "city": "San Francisco", - "region": "California", - "latitude": "37.7672319", - "longitude": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "messageId": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "trackProductsOnce": false, - "trackRevenuePerProduct": true - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "userId": "userID123", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "location": { - "latitude": "37.7672319", - "longitude": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "messageId": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "App_Opened", - "sentAt": "2021-11-17T19:13:52.106Z", - "userId": "ab419c3a-47ce-11ec-82ac-16a1bb813a59", - "channel": "mobile", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "location": { - "country": "United States", - "city": "San Francisco", - "latitude": "37.7672319", - "longitude": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "messageId": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "externalID": "1637170658229-3961832492194264209" - }, - "integrations": { - "All": true - }, - "originalTimestamp": "2021-11-17T19:13:51.143Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2020-11-20T06:18:22.342Z", - "userId": "User_111", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.8", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.8" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" - }, - "rudderId": "7e00bf3d-5357-4448-886d-f8fc8abf932d", - "messageId": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "anonymousId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-11-20T06:18:22.342Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "traitsToIncrement": [ - { - "traits": "age" - }, - { - "traits": "friends" - } - ] - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-08-14T05:30:30.118Z", - "userId": "userID123", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "location": { - "latitude": "37.7672319", - "longitude": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "messageId": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 0, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "integrations": { - "S3": false, - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "abcde", - "trackProductsOnce": true, - "trackRevenuePerProduct": true - } - } - }, - { - "message": { - "type": "screen", - "event": "Home", - "sentAt": "2021-12-09T14:55:17.074Z", - "userId": "9e187bff-2867-11ec-82ac-02cdd434d6bf", - "channel": "mobile", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "location": { - "country": "United States", - "city": "San Francisco", - "region": "California", - "latitude": "37.7672319", - "longitude": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "rudderId": "004670a6-4559-4f2b-aa2a-f35cf81a9423", - "messageId": "1639061715808-a934f1c2-7b55-4e78-bd4d-df209c30c8a1", - "timestamp": "2021-12-09T14:55:15.914Z", - "properties": { - "name": "Home", - "externalID": "1637763064335-7225034711957140329" - }, - "receivedAt": "2021-12-09T14:55:17.180Z", - "request_ip": "186.54.216.75", - "anonymousId": "066a37dc92b16284", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-12-09T14:55:15.808Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "screen", - "event": "Home", - "sentAt": "2021-12-09T14:55:17.074Z", - "userId": "abcdef123456cf", - "channel": "mobile", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c79-6c3f-4b60-be84-97805a32aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "rudderId": "004670a6-4559-4f2b-aa1a-f12cf81a9423", - "messageId": "1639061715808-a934f1c2-7b55-5e78-bd4d-df209c31d8a2", - "timestamp": "2021-12-09T14:55:15.914Z", - "properties": { - "name": "Home", - "externalID": "1637763064336-7225034711957140329" - }, - "receivedAt": "2021-12-09T14:55:17.180Z", - "request_ip": "186.54.216.75", - "anonymousId": "066a37dc92b16284", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-12-09T14:55:15.808Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "0572f78fa49c648e", - "type": "watchos", - "manufacturer": "Apple", - "adTrackingEnabled": true, - "advertisingId": "1606e649-c97e-4d5f-a2ef-b81dbc66741a" - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "AT&T", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "0572f78fa49c648e", - "type": "ipados", - "manufacturer": "Apple", - "adTrackingEnabled": true, - "advertisingId": "1606e649-c97e-4d5f-a2ef-b81dbc66741a" - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "AT&T", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "0572f78fa49c648e", - "type": "tvos", - "manufacturer": "Apple", - "adTrackingEnabled": true, - "advertisingId": "1606e649-c97e-4d5f-a2ef-b81dbc66741a" - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "AT&T", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "device": { - "brand": "testBrand", - "manufacturer": "testManufacturer" - }, - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "mapDeviceBrand": true, - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age" - } - } - }, - { - "message": { - "type": "track", - "event": "Sample track event BEFORE IDENTIFY1**", - "sentAt": "2020-09-17T15:07:13.171Z", - "userId": "0572f78fa49c648e", - "channel": "mobile", - "context": { - "device": { - "brand": "testBrand", - "manufacturer": "testManufacturer" - }, - "os": { - "name": "Android", - "version": "9" - }, - "app": { - "name": "AMTestProject", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "locale": "en-US", - "screen": { - "width": 1080, - "height": 2088, - "density": 440 - }, - "traits": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.4" - }, - "network": { - "wifi": true, - "carrier": "Android", - "cellular": true, - "bluetooth": false - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "messageId": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "anonymousId": "0572f78fa49c648e", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-17T15:07:03.515Z" - }, - "destination": { - "Config": { - "mapDeviceBrand": true, - "apiKey": "abcde" - } - } - }, - { - "message": { - "type": "screen", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "event": "Screen View", - "channel": "web", - "properties": { - "prop1": "5" - }, - "context": { - "ip": "14.5.67.21", - "device": { - "brand": "testBrand", - "manufacturer": "testManufacturer" - }, - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "mapDeviceBrand": true - } - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "id": "lynnanderson@smith.net", - "identifierType": "device_id", - "type": "AM-users" - } - ], - "mappedToDestination": "true", - "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": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "", - "os_version": "test os" - }, - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "city": "kolkata", - "address": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "os_version": "test os", - "ip": "0.0.0.0", - "age": 26 - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "residencyServer": "EU" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "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": "ABC" - }, - "sentAt": "2020-10-20T07:54:58.983Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "name_trait", - "groupValueTrait": "value_trait", - "residencyServer": "EU" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "alias", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "integrations": { - "All": true - }, - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "residencyServer": "EU" - } - } - }, - { - "message": { - "type": "track", - "event": "App_Opened", - "sentAt": "2021-11-17T19:13:52.106Z", - "userId": "ab419c3a-47ce-11ec-82ac-16a1bb813a59", - "channel": "mobile", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "location": { - "country": "United States", - "city": "San Francisco", - "latitude": "37.7672319", - "longitude": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "messageId": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "externalID": "1637170658229-3961832492194264209" - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": 3 - } - }, - "originalTimestamp": "2021-11-17T19:13:51.143Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "App_Opened", - "sentAt": "2021-11-17T19:13:52.106Z", - "userId": "ab419c3a-47ce-11ec-82ac-16a1bb813a59", - "channel": "mobile", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "location": { - "country": "United States", - "city": "San Francisco", - "latitude": "37.7672319", - "longitude": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "messageId": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "externalID": "1637170658229-3961832492194264209" - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": 0 - } - }, - "originalTimestamp": "2021-11-17T19:13:51.143Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "type": "track", - "event": "App_Opened", - "sentAt": "2021-11-17T19:13:52.106Z", - "userId": "ab419c3a-47ce-11ec-82ac-16a1bb813a59", - "channel": "mobile", - "context": { - "source": "test", - "traits": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "locale": "en-US", - "network": { - "carrier": "T-Mobile" - }, - "location": { - "country": "United States", - "city": "San Francisco", - "latitude": "37.7672319", - "longitude": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA" - }, - "library": { - "name": "rudder-sdk-ruby-sync", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "11" - }, - "app": { - "version": "2.6.0 v3" - }, - "device": { - "type": "Android", - "model": "SM-A025M", - "manufacturer": "samsung" - } - }, - "messageId": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "timestamp": "2020-08-14T05:30:30.118Z", - "properties": { - "externalID": "1637170658229-3961832492194264209" - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": "0" - } - }, - "originalTimestamp": "2021-11-17T19:13:51.143Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "trackProductsOnce": true, - "trackRevenuePerProduct": false - } - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "id": "lynnanderson@smith.net", - "identifierType": "device_id", - "type": "AM-users" - } - ], - "mappedToDestination": "true", - "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": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "", - "os_version": "test os" - }, - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "city": "kolkata", - "address": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "os_version": "test os", - "ip": "0.0.0.0", - "age": 26 - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true, - "Amplitude": { - "event_id": 6 - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "id": "lynnanderson@smith.net", - "identifierType": "device_id", - "type": "AM-users" - } - ], - "mappedToDestination": "true", - "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": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "", - "os_version": "test os" - }, - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "city": "kolkata", - "address": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "os_version": "test os", - "ip": "0.0.0.0", - "age": 26 - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true, - "Amplitude": { - "event_id": 6 - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "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, - "Amplitude": { - "event_id": 3 - } - }, - "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": "ABC" - }, - "sentAt": "2020-10-20T07:54:58.983Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "name_trait", - "groupValueTrait": "value_trait" - } - } - }, - { - "message": { - "type": "screen", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "event": "Screen View", - "properties": { - "prop1": "5", - "event_id": 7 - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": 7 - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "request_ip": "1.1.1.1", - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": 2 - } - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "alias", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "integrations": { - "All": true, - "Amplitude": { - "event_id": 67 - } - }, - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "anonymousId": "5d205961641ee6c5", - "channel": "mobile", - "context": { - "app": { - "build": "6", - "name": "Sample Kotlin", - "namespace": "com.example.testapp1mg", - "version": "1.2" - }, - "device": { - "id": "5d205961641ee6c5", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "Android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.7.0" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "7.1.1" - }, - "screen": { - "density": 440, - "height": 2148, - "width": 1080 - }, - "sessionId": "1662393792", - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d205961641ee6c5", - "id": "User Android", - "userId": "User Android" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 7.1.1; Android SDK built for x86 Build/NYC)" - }, - "event": "Screen event", - "integrations": { - "All": true - }, - "messageId": "1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f", - "properties": { - "name": "Screen event" - }, - "originalTimestamp": "2022-09-05T16:04:43.250Z", - "type": "screen", - "userId": "User Android" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "anonymousId": "5d205961641ee6c5", - "channel": "mobile", - "context": { - "app": { - "build": "6", - "name": "Sample Kotlin", - "namespace": "com.example.testapp1mg", - "version": "1.2" - }, - "device": { - "id": "5d205961641ee6c5", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "Android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.7.0" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "7.1.1" - }, - "screen": { - "density": 440, - "height": 2148, - "width": 1080 - }, - "sessionId": "1662393792", - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d205961641ee6c5", - "id": "User Android", - "userId": "User Android" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 7.1.1; Android SDK built for x86 Build/NYC)" - }, - "integrations": { - "All": true - }, - "messageId": "1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f", - "properties": { - }, - "originalTimestamp": "2022-09-05T16:04:43.250Z", - "type": "screen", - "userId": "User Android" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "id": "lynnanderson@smith.net", - "identifierType": "device_id", - "type": "AM-users" - } - ], - "mappedToDestination": "true", - "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": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "", - "os_version": "test os" - }, - "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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "sessionId": "1662393792" - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "city": "kolkata", - "address": { - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "os_version": "test os", - "ip": "0.0.0.0", - "age": 26 - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "message": { - "anonymousId": "5d205961641ee6c5", - "channel": "mobile", - "context": { - "app": { - "build": "6", - "name": "Sample Kotlin", - "namespace": "com.example.testapp1mg", - "version": "1.2" - }, - "device": { - "id": "5d205961641ee6c5", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "Android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.7.0" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "7.1.1" - }, - "screen": { - "density": 440, - "height": 2148, - "width": 1080 - }, - "sessionId": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d205961641ee6c5", - "id": "User Android", - "userId": "User Android" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 7.1.1; Android SDK built for x86 Build/NYC)" - }, - "event": "Screen event", - "integrations": { - "All": true - }, - "messageId": "1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f", - "properties": { - "name": "Screen event" - }, - "originalTimestamp": "2022-09-05T16:04:43.250Z", - "type": "screen", - "userId": "User Android" - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - }, - { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "group", - "messageId": "e5034df0-a404-47b4-a463-76df99934fea", - "originalTimestamp": "2020-10-20T07:54:58.983Z", - "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": "ABC" - }, - "sentAt": "2020-10-20T07:54:58.983Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "name_trait", - "groupValueTrait": "value_trait" - } - } - }, - { - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "request_ip": "1.1.1.1", - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": 2 - } - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "useUserDefinedPageEventName": true, - "userProvidedPageEventString": "My custom Page Name is {{ name }} . Custom Name." - } - } - }, - { - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "request_ip": "1.1.1.1", - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": 2 - } - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "useUserDefinedPageEventName": true, - "userProvidedPageEventString": "{{name}}" - } - } - }, - { - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "request_ip": "1.1.1.1", - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": 2 - } - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "useUserDefinedPageEventName": true, - "userProvidedPageEventString": "" - } - } - }, - { - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "Home Page", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "request_ip": "1.1.1.1", - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "integrations": { - "All": true, - "Amplitude": { - "event_id": 2 - } - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "useUserDefinedPageEventName": false, - "userProvidedPageEventString": "Viewed {{context.page.title}} event." - } - } - }, - { - "message": { - "type": "screen", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "event": "Screen View", - "properties": { - "prop1": "5" - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "useUserDefinedScreenEventName": true, - "userProvidedScreenEventString": "My {{ event }} event." - } - } - }, - { - "message": { - "type": "screen", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "event": "Screen View", - "properties": { - "prop1": "5" - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "useUserDefinedScreenEventName": false, - "userProvidedScreenEventString": "My {{ event }} event." - } - } - }, - { - "message": { - "type": "screen", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "event": "Screen same as event", - "properties": { - "prop1": "5" - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "useUserDefinedScreenEventName": true, - "userProvidedScreenEventString": "{{ event }}" - } - } - }, - { - "message": { - "type": "screen", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "name": "Screen", - "properties": { - "prop1": "5" - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "apiKey": "abcde", - "useUserDefinedScreenEventName": true, - "userProvidedScreenEventString": "" - } - } - } -] \ No newline at end of file diff --git a/test/__tests__/data/am_output.json b/test/__tests__/data/am_output.json deleted file mode 100644 index 5a9c674113..0000000000 --- a/test/__tests__/data/am_output.json +++ /dev/null @@ -1,4471 +0,0 @@ -[ - { - "error": "Event not present. Please send event field" - }, - { - "error": "message type not supported" - }, - { - "error": "No API Key is Found. Please Configure API key from dashbaord" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "revenue_type": "Purchased", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "revenueType": "Purchased", - "price": 48, - "quantity": 1, - "revenue": 48, - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg", - "name": "Monopoly: 3rd Edition", - "price": 19, - "product_id": "507f1f77bcf86cd799439011", - "quantity": 1, - "sku": "45790-32", - "url": "https://www.example.com/product/path" - }, - { - "category": "Games", - "name": "Uno Card Game", - "price": 3, - "product_id": "505bd76785ebb509fc183733", - "quantity": 2, - "sku": "46493-32" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "revenueType": "Purchased", - "price": 48, - "quantity": 1, - "revenue": 48, - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "test os", - "device_model": "Mac", - "platform": "Web", - "device_id": "lynnanderson@smith.net", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "session_id": -1, - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "ip": "0.0.0.0", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "device_id": "lynnanderson@smith.net" - }, - "event_type": "$identify", - "time": 1571043797562, - "user_id": "123456", - "country": "India", - "city": "kolkata", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "test os", - "device_model": "Mac", - "platform": "Web", - "device_id": "lynnanderson@smith.net", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "session_id": -1, - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "ip": "0.0.0.0", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "device_id": "lynnanderson@smith.net" - }, - "event_type": "$identify", - "time": 1571043797562, - "user_id": "123456", - "country": "India", - "city": "kolkata", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "city": "kolkata", - "country": "India", - "platform": "Web", - "device_model": "Mac", - "library": "rudderstack", - "device_id": "123456", - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "session_id": -1, - "event_type": "$identify", - "user_properties": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "time": 1571043797562, - "user_id": "123456", - "ip": "0.0.0.0" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "platform": "Web", - "library": "rudderstack", - "device_model": "Mac", - "device_id": "00000000000000000000000000", - "insert_id": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "Viewed ApplicationLoaded Page", - "event_properties": { - "category": "destination", - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "name": "ApplicationLoaded", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "session_id": -1, - "ip": "1.1.1.1", - "time": 1571051718299, - "user_id": "12345", - "user_properties": { - "anonymousId": "12345", - "email": "test@rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - } - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "platform": "Web", - "library": "rudderstack", - "device_model": "Mac", - "device_id": "00000000000000000000000000", - "insert_id": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "Viewed ApplicationLoaded Page", - "event_properties": { - "category": "destination", - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "name": "ApplicationLoaded", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "session_id": -1, - "ip": "1.1.1.1", - "groups": { - "Company": "ABC" - }, - "time": 1571051718299, - "user_id": "12345", - "user_properties": { - "anonymousId": "12345", - "email": "test@rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - } - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "platform": "Web", - "library": "rudderstack", - "device_model": "Mac", - "device_id": "00000000000000000000000000", - "insert_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "test track event", - "session_id": -1, - "event_properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "time": 1571051718300, - "user_id": "12345", - "user_properties": { - "anonymousId": "12345", - "email": "test@rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "ip": "0.0.0.0" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "city": "kolkata", - "country": "India", - "platform": "Web", - "library": "rudderstack", - "device_model": "Mac", - "device_id": "123456", - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "session_id": -1, - "event_type": "$identify", - "user_properties": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "time": 1571043797562, - "user_id": "123456", - "ip": "0.0.0.0" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "123456", - "library": "rudderstack", - "user_properties": { - "device_id": "adddd0001", - "device_os": "ios", - "device_make": "apple iphone", - "app_version": "v1.0", - "timestamp": "2020-08-28 09:00:00" - }, - "event_type": "$identify", - "session_id": 1598597129, - "time": 0, - "user_id": "ubcdfghi0001" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "123456", - "session_id": 1598597129, - "event_type": "$identify", - "library": "rudderstack", - "user_properties": { - "device_id": "adddd0001", - "device_os": "ios", - "device_make": "apple iphone", - "app_version": "v1.0", - "timestamp": "2020-08-28 09:00:00" - }, - "time": 0, - "user_id": "ubcdfghi0001" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "123456", - "session_id": 1598597129, - "event_type": "$identify", - "library": "rudderstack", - "user_properties": { - "device_id": "adddd0001", - "device_os": "ios", - "device_make": "apple iphone", - "app_version": "v1.0", - "timestamp": "2020-08-28 09:00:00" - }, - "time": 0, - "user_id": "ubcdfghi0001" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "123456", - "session_id": -1, - "event_type": "$identify", - "library": "rudderstack", - "user_properties": { - "device_id": "adddd0001", - "device_os": "ios", - "device_make": "apple iphone", - "app_version": "v1.0", - "timestamp": "2020-08-28 09:00:00" - }, - "time": 0, - "user_id": "ubcdfghi0001" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "85.0.4183.121", - "platform": "Web", - "library": "rudderstack", - "device_model": "Mac", - "device_id": "my-anonymous-id-new", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.5", - "language": "en-US", - "event_type": "$identify", - "groups": { - "Company": "ABC" - }, - "user_properties": { - "Company": "ABC", - "utm_content": "some content", - "utm_medium": "medium", - "utm_name": "some campaign", - "utm_source": "google", - "utm_term": "keyword", - "utm_test": "other value", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "time": 1603180498983, - "user_id": "sampleusrRudder3", - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "my-anonymous-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/groupidentify", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "abcde", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"ABC\"}" - ] - } - }, - "files": {}, - "userId": "my-anonymous-id-new" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "85.0.4183.121", - "platform": "Web", - "library": "rudderstack", - "device_model": "Mac", - "device_id": "my-anonymous-id-new", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.5", - "language": "en-US", - "event_type": "$identify", - "user_properties": { - "Company": "ABC", - "utm_content": "some content", - "utm_medium": "medium", - "utm_name": "some campaign", - "utm_source": "google", - "utm_term": "keyword", - "utm_test": "other value", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "groups": { - "Company": "ABC" - }, - "time": 1603180498983, - "user_id": "sampleusrRudder3", - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "my-anonymous-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/groupidentify", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "abcde", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"ABC\",\"group_properties\":{\"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\":\"ABC\"}}" - ] - } - }, - "files": {}, - "userId": "my-anonymous-id-new" - } - ], - { - "error": "Group call parameters are not valid" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/usermap", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "abcde", - "mapping": [ - "{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\",\"user_properties\":{\"initial_referrer\":\"https://docs.rudderstack.com\",\"initial_referring_domain\":\"docs.rudderstack.com\",\"utm_source\":\"google\",\"utm_medium\":\"medium\",\"utm_term\":\"keyword\",\"utm_content\":\"some content\",\"utm_name\":\"some campaign\",\"utm_test\":\"other value\"}}" - ] - } - }, - "files": {}, - "userId": "my-anonymous-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/usermap", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "abcde", - "mapping": [ - "{\"user_id\":\"sampleusrRudder3\",\"user_properties\":{\"initial_referrer\":\"https://docs.rudderstack.com\",\"initial_referring_domain\":\"docs.rudderstack.com\",\"utm_source\":\"google\",\"utm_medium\":\"medium\",\"utm_term\":\"keyword\",\"utm_content\":\"some content\",\"utm_name\":\"some campaign\",\"utm_test\":\"other value\"},\"unmap\":true}" - ] - } - }, - "files": {}, - "userId": "my-anonymous-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "9", - "library": "rudderstack", - "device_id": "0572f78fa49c648e", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "carrier": "Android", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "event_type": "Sample track event BEFORE IDENTIFY1**", - "time": 1600355223515, - "user_id": "0572f78fa49c648e", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "9", - "device_model": "AOSP on IA Emulator", - "device_manufacturer": "Google", - "platform": "Android", - "device_id": "0572f78fa49c648e", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "library": "rudderstack", - "carrier": "Android", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "event_type": "Sample track event BEFORE IDENTIFY1**", - "device_brand": "Google", - "time": 1600355223515, - "user_id": "0572f78fa49c648e", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "9", - "device_model": "AOSP on IA Emulator", - "library": "rudderstack", - "device_manufacturer": "Google", - "platform": "Android", - "device_id": "0572f78fa49c648e", - "adid": "44c97318-9040-4361-8bc7-4eb30f665ca8", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "carrier": "Android", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "event_type": "Sample track event BEFORE IDENTIFY1**", - "device_brand": "Google", - "time": 1600355223515, - "user_id": "0572f78fa49c648e", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "iOS", - "os_version": "14.4.1", - "device_model": "iPhone XR", - "device_manufacturer": "Apple", - "platform": "iOS", - "library": "rudderstack", - "idfv": "0572f78fa49c648e", - "device_id": "0572f78fa49c648e", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "carrier": "AT&T", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "event_type": "Sample track event BEFORE IDENTIFY1**", - "device_brand": "Apple", - "time": 1600355223515, - "user_id": "0572f78fa49c648e", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "iOS", - "os_version": "14.4.1", - "device_model": "iPhone XR", - "device_manufacturer": "Apple", - "platform": "iOS", - "library": "rudderstack", - "device_id": "0572f78fa49c648e", - "idfa": "1606e649-c97e-4d5f-a2ef-b81dbc66741a", - "idfv": "0572f78fa49c648e", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "carrier": "AT&T", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "event_type": "Sample track event BEFORE IDENTIFY1**", - "device_brand": "Apple", - "time": 1600355223515, - "user_id": "0572f78fa49c648e", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "anon-id-new", - "library": "rudderstack", - "event_properties": { - "prop1": "5", - "name": "Screen View" - }, - "event_type": "Viewed Screen View Screen", - "time": 1580602989544, - "user_id": "identified user id", - "user_properties": {}, - "session_id": -1, - "ip": "14.5.67.21" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "price": 25, - "quantity": 2, - "revenue": 48, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "library": "rudderstack", - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "event_type": "Product Purchased", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-1", - "event_properties": { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "library": "rudderstack", - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "event_type": "Product Purchased", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-2", - "event_properties": { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - }, - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - } - ], - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "revenueType": "Purchased", - "price": 25, - "quantity": 2, - "revenue": 48, - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Product Purchased", - "productId": "507f1f77bcf86cd799439011", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-1", - "event_properties": { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg" - }, - "price": 19, - "quantity": 1, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Product Purchased", - "productId": "505bd76785ebb509fc183733", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-2", - "event_properties": { - "sku": "46493-32", - "name": "Uno Card Game", - "category": "Games" - }, - "price": 3, - "quantity": 2, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Product Purchased", - "productId": "507f1f77bcf86cd799439011", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-1", - "event_properties": { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg" - }, - "price": 19, - "quantity": 1, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Product Purchased", - "productId": "505bd76785ebb509fc183733", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-2", - "event_properties": { - "sku": "46493-32", - "name": "Uno Card Game", - "category": "Games" - }, - "price": 3, - "quantity": 2, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - } - ], - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "price": 25, - "quantity": 2, - "revenue": 48, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "price": 25, - "quantity": 2, - "revenue": 48, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "price": 25, - "quantity": 2, - "revenue": 48, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "50be5c78-6c3f-4b60-be84-97805a316fb1", - "library": "rudderstack", - "event_type": "Order Completed", - "insert_id": "7208bbb6-2c4e-45bb-bf5b-ad426f3593e9", - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "price": 25, - "quantity": 2, - "revenue": 48, - "revenueType": "Purchased", - "time": 1597383030118, - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a316fb1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "86.0.4240.198", - "library": "rudderstack", - "device_model": "Mac", - "platform": "Web", - "device_id": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.8", - "language": "en-GB", - "insert_id": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "event_type": "$identify", - "user_properties": { - "name": "Manashi", - "phone": "990099009900", - "subjects": 5, - "experience": 2, - "$add": { - "age": 12, - "friends": 3 - }, - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "time": 1605853102342, - "user_id": "User_111", - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "86.0.4240.198", - "device_model": "Mac", - "library": "rudderstack", - "platform": "Web", - "device_id": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.8", - "language": "en-GB", - "insert_id": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "event_type": "$identify", - "user_properties": { - "name": "Manashi", - "phone": "990099009900", - "friends": 3, - "age": 12, - "experience": 2, - "$setOnce": { - "subjects": 5 - } - }, - "time": 1605853102342, - "user_id": "User_111", - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "86.0.4240.198", - "device_model": "Mac", - "library": "rudderstack", - "platform": "Web", - "device_id": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.8", - "language": "en-GB", - "insert_id": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "event_type": "$identify", - "user_properties": { - "phone": "990099009900", - "friends": 3, - "age": 12, - "subjects": 5, - "experience": 2, - "$append": { - "name": "Manashi" - } - }, - "time": 1605853102342, - "user_id": "User_111", - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "86.0.4240.198", - "device_model": "Mac", - "library": "rudderstack", - "platform": "Web", - "device_id": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.8", - "language": "en-GB", - "insert_id": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "event_type": "$identify", - "user_properties": { - "name": "Manashi", - "phone": "990099009900", - "friends": 3, - "age": 12, - "subjects": 5, - "$prepend": { - "experience": 2 - } - }, - "time": 1605853102342, - "user_id": "User_111", - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "86.0.4240.198", - "device_model": "Mac", - "library": "rudderstack", - "platform": "Web", - "device_id": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.8", - "language": "en-GB", - "insert_id": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "event_type": "$identify", - "user_properties": { - "phone": "990099009900", - "$add": { - "age": 12, - "friends": 3 - }, - "$setOnce": { - "subjects": 5 - }, - "$append": { - "name": "Manashi" - }, - "$prepend": { - "experience": 2 - } - }, - "time": 1605853102342, - "user_id": "User_111", - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "device_id": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 48, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "country": "United States", - "city": "San Francisco", - "event_type": "Order Completed", - "user_id": "userID123", - "time": 1597383030118, - "session_id": -1, - "region": "California", - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a31aaa1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "device_id": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "event_type": "Product Purchased", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2-1", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg" - }, - "country": "United States", - "city": "San Francisco", - "user_id": "userID123", - "productId": "507f1f77bcf86cd799439011", - "revenueType": "Purchased", - "price": 19, - "quantity": 1, - "time": 1597383030118, - "session_id": -1, - "region": "California", - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a31aaa1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "device_id": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "event_type": "Product Purchased", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2-2", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "sku": "46493-32", - "name": "Uno Card Game", - "category": "Games" - }, - "country": "United States", - "city": "San Francisco", - "user_id": "userID123", - "productId": "505bd76785ebb509fc183733", - "revenueType": "Purchased", - "price": 3, - "quantity": 2, - "time": 1597383030118, - "session_id": -1, - "region": "California", - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a31aaa1" - } - ], - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "device_id": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "country": "India", - "city": "kolkata", - "event_type": "Order Completed", - "user_id": "userID123", - "revenueType": "Purchased", - "price": 25.0, - "quantity": 2, - "revenue": 48, - "time": 1597383030118, - "session_id": -1, - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a31aaa1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "externalID": "1637170658229-3961832492194264209" - }, - "country": "United States", - "city": "San Francisco", - "event_type": "App_Opened", - "user_id": "ab419c3a-47ce-11ec-82ac-16a1bb813a59", - "device_brand": "samsung", - "time": 1597383030118, - "session_id": -1, - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.8", - "device_id": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946", - "device_model": "Mac", - "event_type": "$identify", - "os_name": "Chrome", - "os_version": "86.0.4240.198", - "platform": "Web", - "insert_id": "6f08cc45-95c3-40c1-90f2-2f44a92947ef", - "language": "en-GB", - "library": "rudderstack", - "time": 1605853102342, - "user_id": "User_111", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "2f8b0ba7-d76e-4b91-9577-d1b6ebd68946" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "device_id": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "tax": 2, - "total": 27.5, - "coupon": "hasbros", - "revenue": 0, - "price": 25, - "quantity": 2, - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "shipping": 3, - "subtotal": 22.5, - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f" - }, - "country": "India", - "city": "kolkata", - "event_type": "Order Completed", - "user_id": "userID123", - "time": 1597383030118, - "session_id": -1, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a31aaa1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "device_id": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "event_type": "Product Purchased", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2-1", - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg" - }, - "country": "India", - "city": "kolkata", - "user_id": "userID123", - "productId": "507f1f77bcf86cd799439011", - "revenueType": "Purchased", - "price": 19, - "quantity": 1, - "time": 1597383030118, - "session_id": -1, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a31aaa1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "device_id": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "event_type": "Product Purchased", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2-2", - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "sku": "46493-32", - "name": "Uno Card Game", - "category": "Games" - }, - "country": "India", - "city": "kolkata", - "user_id": "userID123", - "productId": "505bd76785ebb509fc183733", - "revenueType": "Purchased", - "price": 3, - "quantity": 2, - "time": 1597383030118, - "session_id": -1, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "50be5c78-6c3f-4b60-be84-97805a31aaa1" - } - ], - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "device_id": "066a37dc92b16284", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "platform": "Android", - "language": "en-US", - "event_properties": { - "name": "Home", - "externalID": "1637763064335-7225034711957140329" - }, - "insert_id": "1639061715808-a934f1c2-7b55-4e78-bd4d-df209c30c8a1", - "ip": "186.54.216.75", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "country": "United States", - "city": "San Francisco", - "event_type": "Viewed Home Screen", - "user_id": "9e187bff-2867-11ec-82ac-02cdd434d6bf", - "device_brand": "samsung", - "time": 1639061715914, - "session_id": -1, - "region": "California", - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "066a37dc92b16284" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "device_id": "066a37dc92b16284", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "platform": "Android", - "language": "en-US", - "event_properties": { - "name": "Home", - "externalID": "1637763064336-7225034711957140329" - }, - "insert_id": "1639061715808-a934f1c2-7b55-5e78-bd4d-df209c31d8a2", - "ip": "186.54.216.75", - "user_properties": { - "anonymousId": "50be5c79-6c3f-4b60-be84-97805a32aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_type": "Viewed Home Screen", - "user_id": "abcdef123456cf", - "device_brand": "samsung", - "time": 1639061715914, - "session_id": -1, - "city": "kolkata", - "country": "India", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "066a37dc92b16284" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_manufacturer": "Apple", - "platform": "watchos", - "device_id": "0572f78fa49c648e", - "carrier": "AT&T", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "event_type": "Sample track event BEFORE IDENTIFY1**", - "user_id": "0572f78fa49c648e", - "device_brand": "Apple", - "idfa": "1606e649-c97e-4d5f-a2ef-b81dbc66741a", - "idfv": "0572f78fa49c648e", - "time": 1600355223515, - "session_id": -1, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_manufacturer": "Apple", - "platform": "ipados", - "device_id": "0572f78fa49c648e", - "carrier": "AT&T", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "event_type": "Sample track event BEFORE IDENTIFY1**", - "user_id": "0572f78fa49c648e", - "device_brand": "Apple", - "idfa": "1606e649-c97e-4d5f-a2ef-b81dbc66741a", - "idfv": "0572f78fa49c648e", - "time": 1600355223515, - "session_id": -1, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_manufacturer": "Apple", - "platform": "tvos", - "device_id": "0572f78fa49c648e", - "carrier": "AT&T", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e" - }, - "event_type": "Sample track event BEFORE IDENTIFY1**", - "user_id": "0572f78fa49c648e", - "device_brand": "Apple", - "idfa": "1606e649-c97e-4d5f-a2ef-b81dbc66741a", - "idfv": "0572f78fa49c648e", - "time": 1600355223515, - "session_id": -1, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "city": "kolkata", - "country": "India", - "platform": "Web", - "device_model": "Mac", - "library": "rudderstack", - "device_id": "123456", - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "session_id": -1, - "event_type": "$identify", - "device_brand": "testBrand", - "device_manufacturer": "testManufacturer", - "user_properties": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "time": 1571043797562, - "user_id": "123456", - "ip": "0.0.0.0" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "9", - "library": "rudderstack", - "device_id": "0572f78fa49c648e", - "insert_id": "1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466", - "carrier": "Android", - "app_name": "AMTestProject", - "app_version": "1.0", - "language": "en-US", - "event_type": "Sample track event BEFORE IDENTIFY1**", - "device_brand": "testBrand", - "device_manufacturer": "testManufacturer", - "time": 1600355223515, - "user_id": "0572f78fa49c648e", - "user_properties": { - "id": "0572f78fa49c648e", - "userId": "0572f78fa49c648e", - "address": {}, - "company": {}, - "anonymousId": "0572f78fa49c648e", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "0572f78fa49c648e" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "anon-id-new", - "device_brand": "testBrand", - "device_manufacturer": "testManufacturer", - "library": "rudderstack", - "event_properties": { - "prop1": "5", - "name": "Screen View" - }, - "event_type": "Viewed Screen View Screen", - "time": 1580602989544, - "user_id": "identified user id", - "user_properties": {}, - "session_id": -1, - "ip": "14.5.67.21" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.eu.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "test os", - "device_model": "Mac", - "platform": "Web", - "device_id": "lynnanderson@smith.net", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "session_id": -1, - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "ip": "0.0.0.0", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "device_id": "lynnanderson@smith.net" - }, - "event_type": "$identify", - "time": 1571043797562, - "user_id": "123456", - "country": "India", - "city": "kolkata", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.eu.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "85.0.4183.121", - "platform": "Web", - "library": "rudderstack", - "device_model": "Mac", - "device_id": "my-anonymous-id-new", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.5", - "language": "en-US", - "event_type": "$identify", - "user_properties": { - "Company": "ABC", - "utm_content": "some content", - "utm_medium": "medium", - "utm_name": "some campaign", - "utm_source": "google", - "utm_term": "keyword", - "utm_test": "other value", - "initial_referring_domain": "docs.rudderstack.com", - "initial_referrer": "https://docs.rudderstack.com" - }, - "groups": { - "Company": "ABC" - }, - "time": 1603180498983, - "user_id": "sampleusrRudder3", - "session_id": -1 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "my-anonymous-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.eu.amplitude.com/groupidentify", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "abcde", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"ABC\",\"group_properties\":{\"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\":\"ABC\"}}" - ] - } - }, - "files": {}, - "userId": "my-anonymous-id-new" - } - ], - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.eu.amplitude.com/usermap", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "api_key": "abcde", - "mapping": [ - "{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\",\"user_properties\":{\"initial_referrer\":\"https://docs.rudderstack.com\",\"initial_referring_domain\":\"docs.rudderstack.com\",\"utm_source\":\"google\",\"utm_medium\":\"medium\",\"utm_term\":\"keyword\",\"utm_content\":\"some content\",\"utm_name\":\"some campaign\",\"utm_test\":\"other value\"}}" - ] - } - }, - "files": {}, - "userId": "my-anonymous-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "event_id": 3, - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "externalID": "1637170658229-3961832492194264209" - }, - "event_type": "App_Opened", - "user_id": "ab419c3a-47ce-11ec-82ac-16a1bb813a59", - "device_brand": "samsung", - "time": 1597383030118, - "session_id": -1, - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "country": "United States", - "city": "San Francisco", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "event_id": 0, - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "externalID": "1637170658229-3961832492194264209" - }, - "event_type": "App_Opened", - "user_id": "ab419c3a-47ce-11ec-82ac-16a1bb813a59", - "device_brand": "samsung", - "time": 1597383030118, - "session_id": -1, - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "country": "United States", - "city": "San Francisco", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "11", - "device_model": "SM-A025M", - "device_manufacturer": "samsung", - "platform": "Android", - "carrier": "T-Mobile", - "app_version": "2.6.0 v3", - "language": "en-US", - "insert_id": "7208abb6-2c4e-45bb-bf5b-aa426f3593a2", - "user_properties": { - "anonymousId": "50be5c78-6c3f-4b60-be84-97805a31aaa1", - "address": { - "postalCode": 712136, - "state": "WB", - "street": "" - } - }, - "event_properties": { - "externalID": "1637170658229-3961832492194264209" - }, - "event_type": "App_Opened", - "user_id": "ab419c3a-47ce-11ec-82ac-16a1bb813a59", - "device_brand": "samsung", - "time": 1597383030118, - "session_id": -1, - "location_lat": "37.7672319", - "location_lng": "-122.4021353", - "dma": "San Francisco-Oakland-San Jose, CA", - "country": "United States", - "city": "San Francisco", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "test os", - "device_model": "Mac", - "platform": "Web", - "event_id": 6, - "device_id": "lynnanderson@smith.net", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "ip": "0.0.0.0", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "device_id": "lynnanderson@smith.net" - }, - "event_type": "$identify", - "time": 1571043797562, - "user_id": "123456", - "session_id": -1, - "country": "India", - "city": "kolkata", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "test os", - "device_model": "Mac", - "platform": "Web", - "event_id": 6, - "device_id": "lynnanderson@smith.net", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "ip": "0.0.0.0", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "device_id": "lynnanderson@smith.net" - }, - "event_type": "$identify", - "time": 1571043797562, - "user_id": "123456", - "session_id": -1, - "country": "India", - "city": "kolkata", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "85.0.4183.121", - "device_model": "Mac", - "platform": "Web", - "event_id": 3, - "device_id": "my-anonymous-id-new", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.1.5", - "language": "en-US", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "utm_source": "google", - "utm_medium": "medium", - "utm_term": "keyword", - "utm_content": "some content", - "utm_name": "some campaign", - "utm_test": "other value", - "Company": "ABC" - }, - "event_type": "$identify", - "groups": { - "Company": "ABC" - }, - "time": 1603180498983, - "user_id": "sampleusrRudder3", - "session_id": -1, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "my-anonymous-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/groupidentify", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "api_key": "abcde", - "identification": [ - "{\"group_type\":\"Company\",\"group_value\":\"ABC\",\"group_properties\":{\"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\":\"ABC\"}}" - ] - } - }, - "files": {}, - "userId": "my-anonymous-id-new" - } - ], - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "event_id": 7, - "device_id": "anon-id-new", - "event_properties": { - "prop1": "5", - "name": "Screen View", - "event_id": 7 - }, - "user_properties": {}, - "event_type": "Viewed Screen View Screen", - "user_id": "identified user id", - "time": 1580602989544, - "session_id": -1, - "ip": "14.5.67.21", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "device_model": "Mac", - "platform": "Web", - "device_id": "00000000000000000000000000", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "Viewed ApplicationLoaded Page", - "event_properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "name": "ApplicationLoaded" - }, - "session_id": -1, - "insert_id": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "ip": "1.1.1.1", - "event_id": 2, - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "user_id": "12345", - "time": 1571051718299, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/usermap", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "api_key": "abcde", - "mapping": [ - "{\"global_user_id\":\"newUserIdAlias\",\"user_id\":\"sampleusrRudder3\",\"event_id\":67,\"user_properties\":{\"initial_referrer\":\"https://docs.rudderstack.com\",\"initial_referring_domain\":\"docs.rudderstack.com\",\"utm_source\":\"google\",\"utm_medium\":\"medium\",\"utm_term\":\"keyword\",\"utm_content\":\"some content\",\"utm_name\":\"some campaign\",\"utm_test\":\"other value\"}}" - ] - } - }, - "files": {}, - "userId": "my-anonymous-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "7.1.1", - "device_model": "Android SDK built for x86", - "device_manufacturer": "Google", - "device_id": "5d205961641ee6c5", - "carrier": "Android", - "app_name": "Sample Kotlin", - "app_version": "1.2", - "platform": "Android", - "language": "en-US", - "event_properties": { - "name": "Screen event" - }, - "insert_id": "1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f", - "user_properties": { - "anonymousId": "5d205961641ee6c5", - "id": "User Android", - "userId": "User Android" - }, - "event_type": "Viewed Screen event Screen", - "user_id": "User Android", - "device_brand": "Google", - "time": 1662393883250, - "session_id": 1662393792, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5d205961641ee6c5" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "7.1.1", - "device_model": "Android SDK built for x86", - "device_manufacturer": "Google", - "device_id": "5d205961641ee6c5", - "carrier": "Android", - "app_name": "Sample Kotlin", - "app_version": "1.2", - "platform": "Android", - "language": "en-US", - "event_properties": {}, - "insert_id": "1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f", - "user_properties": { - "anonymousId": "5d205961641ee6c5", - "id": "User Android", - "userId": "User Android" - }, - "event_type": "Viewed Screen", - "user_id": "User Android", - "device_brand": "Google", - "time": 1662393883250, - "session_id": 1662393792, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5d205961641ee6c5" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "test os", - "device_model": "Mac", - "platform": "Web", - "device_id": "lynnanderson@smith.net", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "ip": "0.0.0.0", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26, - "device_id": "lynnanderson@smith.net" - }, - "event_type": "$identify", - "time": 1571043797562, - "user_id": "123456", - "session_id": 1662393792, - "country": "India", - "city": "kolkata", - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Android", - "os_version": "7.1.1", - "device_model": "Android SDK built for x86", - "device_manufacturer": "Google", - "device_id": "5d205961641ee6c5", - "carrier": "Android", - "app_name": "Sample Kotlin", - "app_version": "1.2", - "platform": "Android", - "language": "en-US", - "event_properties": { - "name": "Screen event" - }, - "insert_id": "1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f", - "user_properties": { - "anonymousId": "5d205961641ee6c5", - "id": "User Android", - "userId": "User Android" - }, - "event_type": "Viewed Screen event Screen", - "user_id": "User Android", - "device_brand": "Google", - "time": 1662393883250, - "session_id": -1, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5d205961641ee6c5" - }, - { - "error": "Either of user ID or device ID fields must be specified" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "device_model": "Mac", - "platform": "Web", - "device_id": "00000000000000000000000000", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "My custom Page Name is ApplicationLoaded . Custom Name.", - "event_properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "name": "ApplicationLoaded" - }, - "session_id": -1, - "insert_id": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "ip": "1.1.1.1", - "event_id": 2, - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "user_id": "12345", - "time": 1571051718299, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "device_model": "Mac", - "platform": "Web", - "device_id": "00000000000000000000000000", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "ApplicationLoaded", - "event_properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "name": "ApplicationLoaded" - }, - "session_id": -1, - "insert_id": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "ip": "1.1.1.1", - "event_id": 2, - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "user_id": "12345", - "time": 1571051718299, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "device_model": "Mac", - "platform": "Web", - "device_id": "00000000000000000000000000", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "ApplicationLoaded", - "event_properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "name": "ApplicationLoaded" - }, - "session_id": -1, - "insert_id": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "ip": "1.1.1.1", - "event_id": 2, - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "user_id": "12345", - "time": 1571051718299, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "device_model": "Mac", - "platform": "Web", - "device_id": "00000000000000000000000000", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "Viewed Page", - "event_properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "session_id": -1, - "insert_id": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "ip": "1.1.1.1", - "event_id": 2, - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "user_id": "12345", - "time": 1571051718299, - "library": "rudderstack" - } - ], - "options": { - "min_id_length": 1 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "anon-id-new", - "library": "rudderstack", - "event_properties": { - "prop1": "5", - "name": "Screen View" - }, - "event_type": "My Screen View event.", - "time": 1580602989544, - "user_id": "identified user id", - "user_properties": {}, - "session_id": -1, - "ip": "14.5.67.21" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "anon-id-new", - "library": "rudderstack", - "event_properties": { - "prop1": "5", - "name": "Screen View" - }, - "event_type": "Viewed Screen View Screen", - "time": 1580602989544, - "user_id": "identified user id", - "user_properties": {}, - "session_id": -1, - "ip": "14.5.67.21" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "anon-id-new", - "library": "rudderstack", - "event_properties": { - "prop1": "5", - "name": "Screen same as event" - }, - "event_type": "Screen same as event", - "time": 1580602989544, - "user_id": "identified user id", - "user_properties": {}, - "session_id": -1, - "ip": "14.5.67.21" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "device_id": "anon-id-new", - "library": "rudderstack", - "event_properties": { - "prop1": "5", - "name": "Screen" - }, - "event_type": "Screen", - "time": 1580602989544, - "user_id": "identified user id", - "user_properties": {}, - "session_id": -1, - "ip": "14.5.67.21" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - } -] \ No newline at end of file diff --git a/test/__tests__/data/am_router_input.json b/test/__tests__/data/am_router_input.json deleted file mode 100644 index 83314ae7de..0000000000 --- a/test/__tests__/data/am_router_input.json +++ /dev/null @@ -1,142 +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 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age" - } - } - }, - { - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "request_ip": "1.1.1.1", - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - } -] diff --git a/test/__tests__/data/am_router_output.json b/test/__tests__/data/am_router_output.json deleted file mode 100644 index bfccb478b3..0000000000 --- a/test/__tests__/data/am_router_output.json +++ /dev/null @@ -1,150 +0,0 @@ -[ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "device_model": "Mac", - "library": "rudderstack", - "platform": "Web", - "device_id": "123456", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "session_id": -1, - "insert_id": "84e26acc-56a5-4835-8233-591137fca468", - "city": "kolkata", - "country": "India", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "anonymousId": "123456", - "email": "test@rudderstack.com", - "postalCode": 712136, - "state": "WB", - "street": "", - "ip": "0.0.0.0", - "age": 26 - }, - "event_type": "$identify", - "time": 1571043797562, - "user_id": "123456", - "ip": "0.0.0.0" - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456" - } - ], - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "abcde", - "groupTypeTrait": "email", - "groupValueTrait": "age" - } - } - }, - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.amplitude.com/2/httpapi", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "api_key": "abcde", - "events": [ - { - "os_name": "Chrome", - "os_version": "77.0.3865.90", - "device_model": "Mac", - "library": "rudderstack", - "platform": "Web", - "device_id": "00000000000000000000000000", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "language": "en-US", - "event_type": "Viewed ApplicationLoaded Page", - "event_properties": { - "path": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "name": "ApplicationLoaded" - }, - "session_id": -1, - "insert_id": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "ip": "1.1.1.1", - "user_properties": { - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com", - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "user_id": "12345", - "time": 1571051718299 - } - ], - "options": { - "min_id_length": 1 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - } - ], - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "abcde" - } - } - } -] diff --git a/test/__tests__/data/bingads_audience.json b/test/__tests__/data/bingads_audience.json deleted file mode 100644 index b6db1fa608..0000000000 --- a/test/__tests__/data/bingads_audience.json +++ /dev/null @@ -1,503 +0,0 @@ -[ - { - "description": "unhashed email available with hashEmail as true in config", - "input": { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "alex@email.com" - }, - { - "email": "amy@abc.com" - }, - { - "email": "van@abc.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": true - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "list": [ - { - "email": "alex@email.com", - "hashedEmail": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b" - }, - { - "email": "amy@abc.com", - "hashedEmail": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579" - }, - { - "email": "van@abc.com", - "hashedEmail": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c" - } - ], - "action": "Add" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "hashed email available with hashEmail as false in config", - "input": { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b" - }, - { - "email": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579" - }, - { - "email": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "list": [ - { - "email": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "hashedEmail": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b" - }, - { - "email": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "hashedEmail": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579" - }, - { - "email": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", - "hashedEmail": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c" - } - ], - "action": "Add" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Unsupported action type", - "input": { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "addition": [ - { - "email": "alex@email.com" - }, - { - "email": "amy@abc.com" - }, - { - "email": "van@abc.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": true - } - } - }, - "output": { - "error": "unsupported action type. Aborting message." - } - }, - { - "description": "Unsupported event type", - "input": { - "message": { - "userId": "user 1", - "type": "track", - "properties": { - "listData": { - "add": [ - { - "email": "alex@email.com" - }, - { - "email": "amy@abc.com" - }, - { - "email": "van@abc.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": true - } - } - }, - "output": { - "error": "Event type track is not supported. Aborting message." - } - }, - { - "description": "event type not present", - "input": { - "message": { - "userId": "user 1", - "type": "", - "properties": { - "listData": { - "add": [ - { - "email": "alex@email.com" - }, - { - "email": "amy@abc.com" - }, - { - "email": "van@abc.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": true - } - } - }, - "output": { - "error": "message Type is not present. Aborting message." - } - }, - { - "description": "Message properties is not present", - "input": { - "message": { - "userId": "user 1", - "type": "audiencelist", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": true - } - } - }, - "output": { - "error": "Message properties is not present. Aborting message." - } - }, - { - "description": "listData is not present in properties", - "input": { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": {}, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": true - } - } - }, - "output": { - "error": "listData is not present inside properties. Aborting message." - } - }, - { - "description": "Both add and remove are present in listData", - "input": { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "remove": [ - { - "email": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b" - }, - { - "email": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579" - }, - { - "email": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c" - } - ], - "update": [ - { - "email": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b" - }, - { - "email": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579" - }, - { - "email": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": false - } - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "list": [ - { - "email": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "hashedEmail": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b" - }, - { - "email": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "hashedEmail": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579" - }, - { - "email": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", - "hashedEmail": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c" - } - ], - "action": "Remove" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "list": [ - { - "email": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "hashedEmail": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b" - }, - { - "email": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "hashedEmail": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579" - }, - { - "email": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", - "hashedEmail": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c" - } - ], - "action": "Replace" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Only single user data is present", - "input": { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "alex@email.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "sourceType": "", - "destinationType": "", - "namespace": "" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": true - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "list": [ - { - "hashedEmail": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "email": "alex@email.com" - } - ], - "action": "Add" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/bingads_audience_steps.ts b/test/__tests__/data/bingads_audience_steps.ts deleted file mode 100644 index a6f665956a..0000000000 --- a/test/__tests__/data/bingads_audience_steps.ts +++ /dev/null @@ -1,155 +0,0 @@ -export const data = [ - { - description: 'unhashed email available with hashEmail as true in config', - stepName: 'prepareIdentifiersList', - input: { - message: { - userId: 'user 1', - type: 'audiencelist', - properties: { - listData: { - add: [ - { - email: 'alex@email.com', - }, - { - email: 'amy@abc.com', - }, - { - email: 'van@abc.com', - }, - ], - }, - }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, - timestamp: '2020-02-02T00:23:09.544Z', - }, - destination: { - Config: { - customerAccountId: '89236978', - customerId: '78678678', - audienceId: '564567', - hashEmail: true, - }, - }, - }, - output: [ - { - list: [ - { - hashedEmail: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', - email: 'alex@email.com', - }, - { - hashedEmail: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', - email: 'amy@abc.com', - }, - { - hashedEmail: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', - email: 'van@abc.com', - }, - ], - action: 'Add', - }, - ], - }, - { - description: 'hashed email available with hashEmail as false in config', - stepName: 'prepareIdentifiersList', - bindings: undefined, - input: { - message: { - userId: 'user 1', - type: 'audiencelist', - properties: { - listData: { - update: [ - { - email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', - }, - { - email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', - }, - ], - remove: [ - { - email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', - }, - ], - }, - }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, - timestamp: '2020-02-02T00:23:09.544Z', - }, - destination: { - Config: { - customerAccountId: '89236978', - customerId: '78678678', - audienceId: '564567', - hashEmail: false, - }, - }, - }, - output: [ - { - list: [ - { - hashedEmail: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', - email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', - }, - { - hashedEmail: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', - email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', - }, - ], - action: 'Replace', - }, - { - list: [ - { - hashedEmail: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', - email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', - }, - ], - action: 'Remove', - }, - ], - }, - { - description: 'validateInput should fail when properties are missing', - stepName: 'validateInput', - bindings: undefined, - input: { - message: { - userId: 'user 1', - type: 'audiencelist', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, - timestamp: '2020-02-02T00:23:09.544Z', - }, - destination: { - Config: { - customerAccountId: '89236978', - customerId: '78678678', - audienceId: '564567', - hashEmail: false, - }, - }, - }, - error: 'Message properties is not present. Aborting message.', - }, -]; diff --git a/test/__tests__/data/braze_input.json b/test/__tests__/data/braze_input.json deleted file mode 100644 index e799cf2e82..0000000000 --- a/test/__tests__/data/braze_input.json +++ /dev/null @@ -1,1818 +0,0 @@ -[ - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey", - "closed_at": null, - "orderTotal": 0 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "2536eda4-d638-4c93-8014-8ffe3f083214", - "originalTimestamp": "2020-01-24T06:29:02.362Z", - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53709", - "sentAt": "2020-01-24T06:29:02.363Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "identify", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "2536eda4-d638-4c93-8014-8ffe3f083214", - "originalTimestamp": "2020-01-24T06:29:02.362Z", - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53709", - "sentAt": "2020-01-24T06:29:02.363Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "identify", - "userId": "mickeyMouse" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "event": "braze revenue test", - "integrations": { - "All": true - }, - "messageId": "a6a0ad5a-bd26-4f19-8f75-38484e580fc7", - "originalTimestamp": "2020-01-24T06:29:02.364Z", - "properties": { - "currency": "USD", - "revenue": 50 - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53710", - "sentAt": "2020-01-24T06:29:02.364Z", - "timestamp": "2020-01-24T11:59:02.403+05:30", - "type": "track", - "userId": "mickeyMouse" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "mickey@disney.com", - "closed_at": null - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "event": "braze revenue test", - "integrations": { - "All": true - }, - "messageId": "a6a0ad5a-bd26-4f19-8f75-38484e580fc7", - "originalTimestamp": "2020-01-24T06:29:02.364Z", - "properties": { - "currency": "USD", - "revenue": 50 - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53710", - "sentAt": "2020-01-24T06:29:02.364Z", - "timestamp": "2020-01-24T11:59:02.403+05:30", - "type": "track", - "userId": "mickeyMouse" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "eu-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "dd266c67-9199-4a52-ba32-f46ddde67312", - "originalTimestamp": "2020-01-24T06:29:02.358Z", - "properties": { - "path": "/tests/html/index2.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index2.html" - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53708", - "sentAt": "2020-01-24T06:29:02.359Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "page", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "2536eda4-d638-4c93-8014-8ffe3f083214", - "originalTimestamp": "2020-01-24T06:29:02.362Z", - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53709", - "sentAt": "2020-01-24T06:29:02.363Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "identify", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "enableNestedArrayOperations": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstName": "Mickey", - "gender": "woman" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "event": "braze revenue test", - "integrations": { - "All": true - }, - "messageId": "a6a0ad5a-bd26-4f19-8f75-38484e580fc7", - "originalTimestamp": "2020-01-24T06:29:02.364Z", - "properties": { - "currency": "USD", - "revenue": 50 - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53710", - "sentAt": "2020-01-24T06:29:02.364Z", - "timestamp": "2020-01-24T11:59:02.403+05:30", - "type": "track", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "event": "KM Order Completed", - "integrations": { - "All": true - }, - "messageId": "aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a", - "originalTimestamp": "2020-01-24T06:29:02.367Z", - "properties": { - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f", - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg", - "name": "Monopoly: 3rd Edition", - "price": 19, - "product_id": "507f1f77bcf86cd799439011", - "quantity": 1, - "sku": "45790-32", - "url": "https://www.example.com/product/path" - }, - { - "category": "Games", - "name": "Uno Card Game", - "price": 3, - "product_id": "505bd76785ebb509fc183733", - "quantity": 2, - "sku": "46493-32" - } - ], - "revenue": 25, - "shipping": 3, - "subtotal": 22.5, - "tax": 2, - "total": 27.5 - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53712", - "sentAt": "2020-01-24T06:29:02.368Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "track", - "userId": "" - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-09-14T12:09:37.491Z", - "userId": "Randomuser2222", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "file:///Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html", - "path": "/Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html", - "title": "Fullstory Test", - "search": "", - "referrer": "" - }, - "locale": "en-GB", - "screen": { - "density": 2 - }, - "traits": { - "email": "manashi@gmaiol.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" - }, - "messageId": "24ecc509-ce3e-473c-8483-ba1ea2c195cb", - "properties": { - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "key1": { - "key11": "value1", - "key22": "value2" - }, - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "currency78": "USD", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price23": 3, - "category": "Games", - "quantity": 2, - "currency78": "USD", - "product_id": "505bd76785ebb509fc183733" - } - ] - }, - "anonymousId": "c6ff1462-b692-43d6-8f6a-659efedc99ea", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-14T12:09:37.491Z" - }, - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - } - }, - { - "message": { - "type": "group", - "event": "Order Completed", - "sentAt": "2020-09-14T12:09:37.491Z", - "userId": "Randomuser2222", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "file:///Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html", - "path": "/Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html", - "title": "Fullstory Test", - "search": "", - "referrer": "" - }, - "locale": "en-GB", - "screen": { - "density": 2 - }, - "traits": { - "email": "manashi@gmaiol.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" - }, - "messageId": "24ecc509-ce3e-473c-8483-ba1ea2c195cb", - "traits": { - "groupId": "1234" - }, - "anonymousId": "c6ff1462-b692-43d6-8f6a-659efedc99ea", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-14T12:09:37.491Z" - }, - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "external_id", - "id": "mickey@disney.com" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "home_city": "Disney", - "country": "USA", - "first_name": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "2536eda4-d638-4c93-8014-8ffe3f083214", - "originalTimestamp": "2020-01-24T06:29:02.362Z", - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53709", - "sentAt": "2020-01-24T06:29:02.363Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "identify", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a", - "originalTimestamp": "2020-01-24T06:29:02.367Z", - "properties": { - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f", - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg", - "name": "Monopoly: 3rd Edition", - "price": 0, - "product_id": "507f1f77bcf86cd799439011", - "quantity": 1, - "sku": "45790-32", - "url": "https://www.example.com/product/path" - }, - { - "category": "Games", - "name": "Uno Card Game", - "price": 0, - "product_id": "505bd76785ebb509fc183733", - "quantity": 2, - "sku": "46493-32" - } - ], - "revenue": 25, - "shipping": 3, - "subtotal": 22.5, - "tax": 2, - "total": 27.5 - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53712", - "sentAt": "2020-01-24T06:29:02.368Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "track", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a", - "originalTimestamp": "2020-01-24T06:29:02.367Z", - "properties": { - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f", - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg", - "name": "Monopoly: 3rd Edition", - "price": 0, - "product_id": "507f1f77bcf86cd799439011", - "quantity": 1, - "sku": "45790-32", - "url": "https://www.example.com/product/path" - }, - { - "category": "Games", - "name": "Uno Card Game", - "price": 10, - "product_id": "505bd76785ebb509fc183733", - "quantity": 2, - "sku": "46493-32" - } - ], - "revenue": 25, - "shipping": 3, - "subtotal": 22.5, - "tax": 2, - "total": 27.5 - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53712", - "sentAt": "2020-01-24T06:29:02.368Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "track", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "enableNestedArrayOperations": true - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "cars2": { - "update": [ - { - "age": 30, - "id": 2, - "identifier": "id", - "name": "abcd" - }, - { - "age": 27, - "id": 1, - "identifier": "id", - "name": "abcd" - } - ] - }, - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstName": "Mickey", - "gender": "woman", - "pets": { - "add": [ - { - "age": 27, - "id": 1, - "name": "abc" - } - ], - "remove": [ - { - "id": 3, - "identifier": "id" - }, - { - "id": 4, - "identifier": "id" - } - ], - "update": [ - { - "age": 27, - "id": 2, - "identifier": "id", - "name": "abc" - } - ] - } - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "event": "braze revenue test", - "integrations": { - "All": true - }, - "messageId": "89140820-c187-4e62-9599-3c633771ee58", - "originalTimestamp": "2023-03-14T02:06:26.501+05:30", - "properties": { - "currency": "USD", - "mergeObjectsUpdateOperation": false, - "revenue": 50 - }, - "receivedAt": "2023-03-14T02:06:22.433+05:30", - "request_ip": "[::1]", - "rudderId": "2686e376-7e08-42f7-8edc-ff67eb238a91", - "sentAt": "2023-03-14T02:06:26.501+05:30", - "timestamp": "2023-03-14T02:06:22.432+05:30", - "type": "track", - "userId": "finalUserTestCA" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "enableNestedArrayOperations": true - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "cars": { - "add": [ - { - "age": 27, - "id": 1, - "name": "abc" - } - ], - "update": [ - { - "age": 30, - "id": 2, - "identifier": "id", - "name": "abcd" - }, - { - "age": 27, - "id": 1, - "identifier": "id", - "name": "abcd" - } - ] - }, - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstName": "Mickey", - "gender": "woman", - "pets": [ - { - "breed": "beagle", - "id": 1, - "name": "Gus", - "type": "dog" - }, - { - "breed": "calico", - "id": 2, - "name": "Gerald", - "type": "cat" - } - ] - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "event": "braze revenue test", - "integrations": { - "All": true - }, - "messageId": "d1e049af-913c-46ee-8f5c-5b26966e896f", - "originalTimestamp": "2023-03-14T02:13:10.758+05:30", - "properties": { - "currency": "USD", - "mergeObjectsUpdateOperation": false, - "revenue": 50 - }, - "receivedAt": "2023-03-14T02:13:10.519+05:30", - "request_ip": "[::1]", - "rudderId": "2686e376-7e08-42f7-8edc-ff67eb238a91", - "sentAt": "2023-03-14T02:13:10.758+05:30", - "timestamp": "2023-03-14T02:13:10.518+05:30", - "type": "track", - "userId": "finalUserTestCA" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "channel": "web", - "context": { - "traits": { - "address": { - "city": "Mathura", - "country": "India" - }, - "email": "a@gmail.com", - "phone": "9988123321", - "firstName": "anuj", - "lastName": "kumar", - "gender": "male", - "birthday": "01/01/1971", - "avatar": "https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg", - "bio": "Tech and tension go together", - "language": "en-IN", - "job": "Director", - "company": "Plinth India" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "request_ip": "[::1]:53709", - "type": "identify", - "userId": "ank101" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "channel": "web", - "context": { - "traits": { - "address": { - "city": "Mathura", - "country": "India" - }, - "email": "a@gmail.com", - "phone": "9988123321", - "firstName": "anuj", - "lastName": "kumar", - "gender": null, - "birthday": "01/01/1971", - "avatar": "https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg", - "bio": "Tech and tension go together", - "language": "en-IN", - "job": "Director", - "company": null - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "request_ip": "[::1]:53709", - "type": "identify", - "userId": "ank101" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "US-03" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "request_ip": "[::1]:53709", - "type": "alias", - "previousId": "userId", - "userId": "userMergeTest2" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "US-03" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "request_ip": "[::1]:53709", - "type": "alias", - "userId": "userMergeTest2" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "US-03" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "request_ip": "[::1]:53709", - "type": "alias", - "previousId": "userMergeTest2" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "sourceType": "metadata.sourceType", - "destinationType": "metadata.destinationType", - "k8_namespace": "metadata.namespace" - }, - "message": { - "channel": "web", - "context": { - "traits": { - "email": "A@HOTMAIL.COM", - "phone": "9988123321", - "firstName": "anil", - "lastName": "kumar", - "gender": null, - "birthday": "01/01/1971", - "avatar": "https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg", - "bio": "Tech and tension go together", - "language": "en-IN", - "job": "Director", - "company": null - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "request_ip": "[::1]:53709", - "type": "identify", - "userId": "ank101" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "sourceType": "metadata.sourceType", - "destinationType": "metadata.destinationType", - "k8_namespace": "metadata.namespace" - }, - "message": { - "anonymousId": "e6ab2c5e-1cda-34a9-g962-r2f62df18abc", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a", - "originalTimestamp": "2020-01-24T06:29:02.367Z", - "properties": { - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f", - "coupon": "hasbros", - "currency": "USD", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg", - "name": "Monopoly: 3rd Edition", - "price": 0, - "product_id": "507f1f77bcf86cd799439011", - "quantity": 1, - "sku": "45790-32", - "url": "https://www.example.com/product/path" - } - ], - "revenue": 25, - "shipping": 3, - "subtotal": 22.5, - "tax": 2, - "total": 27.5 - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53712", - "sentAt": "2020-01-24T06:29:02.368Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "track", - "userId": "" - } - }, - { - "message": { - "type": "group", - "event": "Order Completed", - "sentAt": "2020-09-14T12:09:37.491Z", - "userId": "Randomuser2222", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "file:///Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html", - "path": "/Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html", - "title": "Fullstory Test", - "search": "", - "referrer": "" - }, - "locale": "en-GB", - "screen": { - "density": 2 - }, - "traits": { - "email": "manashi@gmaiol.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" - }, - "messageId": "24ecc509-ce3e-473c-8483-ba1ea2c195cb", - "groupId": "1234", - "traits": { - "phone": "5055077683", - "subscriptionState": "subscribed" - }, - "anonymousId": "c6ff1462-b692-43d6-8f6a-659efedc99ea", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-14T12:09:37.491Z" - }, - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "enableSubscriptionGroupInGroupCall": true - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - } - }, - { - "message": { - "type": "group", - "event": "Order Completed", - "sentAt": "2020-09-14T12:09:37.491Z", - "userId": "Randomuser2222", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "file:///Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html", - "path": "/Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html", - "title": "Fullstory Test", - "search": "", - "referrer": "" - }, - "locale": "en-GB", - "screen": { - "density": 2 - }, - "traits": { - "email": "manashi@gmaiol.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" - }, - "messageId": "24ecc509-ce3e-473c-8483-ba1ea2c195cb", - "groupId": "1234", - "traits": { - "email": "abc@test.com", - "subscriptionState": "unsubscribed" - }, - "anonymousId": "c6ff1462-b692-43d6-8f6a-659efedc99ea", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-14T12:09:37.491Z" - }, - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "enableSubscriptionGroupInGroupCall": true - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "sourceType": "", - "destinationType": "", - "namespace": "" - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "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.117 Safari/537.36" - }, - "event": "braze revenue test", - "integrations": { - "All": true, - "braze": { - "appId": "123" - } - }, - "messageId": "a6a0ad5a-bd26-4f19-8f75-38484e580fc7", - "originalTimestamp": "2020-01-24T06:29:02.364Z", - "properties": { - "currency": "USD", - "revenue": 50 - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53710", - "sentAt": "2020-01-24T06:29:02.364Z", - "timestamp": "2020-01-24T11:59:02.403+05:30", - "type": "track", - "userId": "mickeyMouse" - } - } -] diff --git a/test/__tests__/data/braze_output.json b/test/__tests__/data/braze_output.json deleted file mode 100644 index 10c42b1064..0000000000 --- a/test/__tests__/data/braze_output.json +++ /dev/null @@ -1,967 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-01.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "email": "mickey@disney.com", - "city": "Disney", - "country": "USA", - "firstname": "Mickey", - "closed_at": null, - "orderTotal": 0, - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - }, - { - "message": "No attributes found to update the user profile" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "partner": "RudderStack", - "events": [ - { - "name": "braze revenue test", - "time": "2020-01-24T11:59:02.403+05:30", - "properties": { - "revenue": 50 - }, - "external_id": "mickeyMouse" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "mickeyMouse" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "email": "mickey@disney.com", - "closed_at": null, - "external_id": "mickeyMouse" - } - ], - "partner": "RudderStack", - "events": [ - { - "name": "braze revenue test", - "time": "2020-01-24T11:59:02.403+05:30", - "properties": { - "revenue": 50 - }, - "external_id": "mickeyMouse" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "mickeyMouse" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "name": "Page Viewed", - "time": "2020-01-24T11:59:02.402+05:30", - "properties": { - "path": "/tests/html/index2.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index2.html" - }, - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ], - "partner": "RudderStack" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-01.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey", - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "first_name": "Mickey", - "gender": "F", - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ], - "events": [ - { - "name": "braze revenue test", - "time": "2020-01-24T11:59:02.403+05:30", - "properties": { - "revenue": 50 - }, - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ], - "partner": "RudderStack" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey", - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ], - "events": [ - { - "name": "KM Order Completed", - "time": "2020-01-24T11:59:02.402+05:30", - "properties": { - "affiliation": "Google Store", - "checkout_id": "fksdjfsdjfisjf9sdfjsd9f", - "coupon": "hasbros", - "discount": 2.5, - "order_id": "50314b8e9bcf000000000000", - "products": [ - { - "category": "Games", - "image_url": "https:///www.example.com/product/path.jpg", - "name": "Monopoly: 3rd Edition", - "price": 19, - "product_id": "507f1f77bcf86cd799439011", - "quantity": 1, - "sku": "45790-32", - "url": "https://www.example.com/product/path" - }, - { - "category": "Games", - "name": "Uno Card Game", - "price": 3, - "product_id": "505bd76785ebb509fc183733", - "quantity": 2, - "sku": "46493-32" - } - ], - "revenue": 25, - "shipping": 3, - "subtotal": 22.5, - "tax": 2, - "total": 27.5 - }, - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ], - "partner": "RudderStack" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - }, - { - "statusCode": 400, - "message": "Invalid Order Completed event: Message properties and product at index: 0 is missing currency" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "ab_rudder_group_1234": true, - "external_id": "Randomuser2222" - } - ], - "partner": "RudderStack" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "Randomuser2222" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-01.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "home_city": "Disney", - "country": "USA", - "external_id": "mickey@disney.com", - "first_name": "Mickey" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "mickey@disney.com" - }, - { - "body": { - "FORM": {}, - "JSON": { - "attributes": [ - { - "_update_existing_only": false, - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - } - } - ], - "partner": "RudderStack", - "purchases": [ - { - "_update_existing_only": false, - "currency": "USD", - "price": 0, - "product_id": "507f1f77bcf86cd799439011", - "quantity": 1, - "time": "2020-01-24T11:59:02.402+05:30", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - } - }, - { - "_update_existing_only": false, - "currency": "USD", - "price": 0, - "product_id": "505bd76785ebb509fc183733", - "quantity": 2, - "time": "2020-01-24T11:59:02.402+05:30", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "files": {}, - "headers": { - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "userId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "version": "1" - }, - { - "body": { - "FORM": {}, - "JSON": { - "attributes": [ - { - "_update_existing_only": false, - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - } - } - ], - "partner": "RudderStack", - "purchases": [ - { - "_update_existing_only": false, - "currency": "USD", - "price": 0, - "product_id": "507f1f77bcf86cd799439011", - "quantity": 1, - "time": "2020-01-24T11:59:02.402+05:30", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - } - }, - { - "_update_existing_only": false, - "currency": "USD", - "price": 10, - "product_id": "505bd76785ebb509fc183733", - "quantity": 2, - "time": "2020-01-24T11:59:02.402+05:30", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "files": {}, - "headers": { - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "userId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "version": "1" - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "braze revenue test", - "time": "2023-03-14T02:06:22.432+05:30", - "properties": { - "revenue": 50, - "mergeObjectsUpdateOperation": false - }, - "external_id": "finalUserTestCA" - } - ], - "partner": "RudderStack", - "attributes": [ - { - "city": "Disney", - "pets": { - "$add": [ - { - "id": 1, - "age": 27, - "name": "abc" - } - ], - "$remove": [ - { - "$identifier_key": "id", - "$identifier_value": 3 - }, - { - "$identifier_key": "id", - "$identifier_value": 4 - } - ], - "$update": [ - { - "$new_object": { - "age": 27, - "name": "abc" - }, - "$identifier_key": "id", - "$identifier_value": 2 - } - ] - }, - "cars2": { - "$update": [ - { - "$new_object": { - "age": 30, - "name": "abcd" - }, - "$identifier_key": "id", - "$identifier_value": 2 - }, - { - "$new_object": { - "age": 27, - "name": "abcd" - }, - "$identifier_key": "id", - "$identifier_value": 1 - } - ] - }, - "email": "mickey@disney.com", - "gender": "F", - "country": "USA", - "first_name": "Mickey", - "external_id": "finalUserTestCA", - "_merge_objects": false - } - ] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "finalUserTestCA", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "version": "1", - "endpoint": "https://rest.fra-01.braze.eu/users/track" - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "braze revenue test", - "time": "2023-03-14T02:13:10.518+05:30", - "properties": { - "revenue": 50, - "mergeObjectsUpdateOperation": false - }, - "external_id": "finalUserTestCA" - } - ], - "partner": "RudderStack", - "attributes": [ - { - "cars": { - "$add": [ - { - "id": 1, - "age": 27, - "name": "abc" - } - ], - "$update": [ - { - "$new_object": { - "age": 30, - "name": "abcd" - }, - "$identifier_key": "id", - "$identifier_value": 2 - }, - { - "$new_object": { - "age": 27, - "name": "abcd" - }, - "$identifier_key": "id", - "$identifier_value": 1 - } - ] - }, - "city": "Disney", - "pets": [ - { - "id": 1, - "name": "Gus", - "type": "dog", - "breed": "beagle" - }, - { - "id": 2, - "name": "Gerald", - "type": "cat", - "breed": "calico" - } - ], - "email": "mickey@disney.com", - "gender": "F", - "country": "USA", - "first_name": "Mickey", - "external_id": "finalUserTestCA", - "_merge_objects": false - } - ] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "finalUserTestCA", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "version": "1", - "endpoint": "https://rest.fra-01.braze.eu/users/track" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-01.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "country": "India", - "dob": "01/01/1971", - "email": "a@gmail.com", - "first_name": "anuj", - "gender": "M", - "home_city": "Mathura", - "image_url": "https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg", - "last_name": "kumar", - "phone": "9988123321", - "bio": "Tech and tension go together", - "language": "en-IN", - "job": "Director", - "company": "Plinth India", - "external_id": "ank101" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "ank101" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-01.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "country": "India", - "dob": "01/01/1971", - "email": "a@gmail.com", - "first_name": "anuj", - "gender": null, - "home_city": "Mathura", - "image_url": "https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg", - "last_name": "kumar", - "phone": "9988123321", - "bio": "Tech and tension go together", - "language": "en-IN", - "job": "Director", - "company": null, - "external_id": "ank101" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "ank101" - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "merge_updates": [ - { - "identifier_to_keep": { - "external_id": "userMergeTest2" - }, - "identifier_to_merge": { - "external_id": "userId" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "userMergeTest2", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "version": "1", - "endpoint": "https://rest.iad-03.braze.com/users/merge" - }, - { - "statusCode": 400, - "message": "[BRAZE]: previousId is required for alias call" - }, - { - "statusCode": 400, - "message": "[BRAZE]: userId is required for alias call" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-01.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "dob": "01/01/1971", - "email": "a@hotmail.com", - "first_name": "anil", - "gender": null, - "image_url": "https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg", - "last_name": "kumar", - "phone": "9988123321", - "bio": "Tech and tension go together", - "language": "en-IN", - "job": "Director", - "company": null, - "external_id": "ank101" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "ank101" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-01.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "attributes": [ - { - "email": "mickey@disney.com", - "city": "Disney", - "country": "USA", - "firstname": "Mickey", - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-1cda-34a9-g962-r2f62df18abc", - "alias_label": "rudder_id" - } - } - ], - "purchases": [ - { - "product_id": "507f1f77bcf86cd799439011", - "price": 0, - "currency": "USD", - "quantity": 1, - "time": "2020-01-24T11:59:02.402+05:30", - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-1cda-34a9-g962-r2f62df18abc", - "alias_label": "rudder_id" - } - } - ], - "partner": "RudderStack" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e6ab2c5e-1cda-34a9-g962-r2f62df18abc" - }, - { - "body": { - "FORM": {}, - "JSON": { - "subscription_groups": [ - { - "external_id": ["Randomuser2222"], - "phones": ["5055077683"], - "subscription_group_id": "1234", - "subscription_state": "subscribed" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://rest.fra-01.braze.eu/v2/subscription/status/set", - "files": {}, - "headers": { - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - { - "body": { - "FORM": {}, - "JSON": { - "subscription_groups": [ - { - "external_id": ["Randomuser2222"], - "emails": ["abc@test.com"], - "subscription_group_id": "1234", - "subscription_state": "unsubscribed" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://rest.fra-01.braze.eu/v2/subscription/status/set", - "files": {}, - "headers": { - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "partner": "RudderStack", - "events": [ - { - "name": "braze revenue test", - "time": "2020-01-24T11:59:02.403+05:30", - "properties": { - "revenue": 50 - }, - "external_id": "mickeyMouse", - "app_id": "123" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "mickeyMouse" - } -] diff --git a/test/__tests__/data/braze_proxy_input.json b/test/__tests__/data/braze_proxy_input.json deleted file mode 100644 index a143ab42e8..0000000000 --- a/test/__tests__/data/braze_proxy_input.json +++ /dev/null @@ -1,219 +0,0 @@ -[ - { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test1", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ - { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {}, - "params": { - "destination": "braze" - } - }, - { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test2", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ - { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {}, - "params": { - "destination": "braze" - } - }, - { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test3", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ - { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {}, - "params": { - "destination": "braze" - } - }, - { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test4", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ - { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {}, - "params": { - "destination": "braze" - } - }, - { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test5", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ - { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {}, - "params": { - "destination": "braze" - } - }, - { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test6", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ - { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {}, - "params": { - "destination": "braze" - } - }, - { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test7", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ - { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {}, - "params": { - "destination": "braze" - } - } -] \ No newline at end of file diff --git a/test/__tests__/data/braze_proxy_output.json b/test/__tests__/data/braze_proxy_output.json deleted file mode 100644 index cb367d451a..0000000000 --- a/test/__tests__/data/braze_proxy_output.json +++ /dev/null @@ -1,106 +0,0 @@ -[ - { - "output": { - "status": 201, - "message": "Request for braze Processed Successfully", - "destinationResponse": { - "response": { "aliases_processed": 1, "message": "success" }, - "status": 201 - } - } - }, - { - "output": { - "status": 201, - "message": "Request for braze Processed Successfully", - "destinationResponse": { - "response": { "message": "success", "errors": ["minor error message"] }, - "status": 201 - } - } - }, - { - "output": { - "status": 201, - "message": "Request failed for braze with status: 201", - "destinationResponse": { - "response": { - "message": "fatal error message", - "errors": ["minor error message"] - }, - "status": 201 - }, - "statTags": { - "destType": "BRAZE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 201, - "message": "Request for braze Processed Successfully", - "destinationResponse": { "response": "", "status": 201 } - } - }, - { - "output": { - "status": 500, - "message": "Request failed for braze with status: 500", - "destinationResponse": { "response": "", "status": 500 }, - "statTags": { - "destType": "BRAZE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 400, - "message": "Request failed for braze with status: 400", - "destinationResponse": { - "response": "[[ENOTFOUND] :: DNS lookup failed]", - "status": 400 - }, - "statTags": { - "destType": "BRAZE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 500, - "message": "Request failed for braze with status: 500", - "destinationResponse": { "response": "", "status": 500 }, - "statTags": { - "destType": "BRAZE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } -] diff --git a/test/__tests__/data/braze_router.json b/test/__tests__/data/braze_router.json deleted file mode 100644 index 8bfd7c7d42..0000000000 --- a/test/__tests__/data/braze_router.json +++ /dev/null @@ -1,1036 +0,0 @@ -{ - "simpleRouterTestData": [ - { - "description": "simple router tests", - "input": [ - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "eu-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "jobId": 1 - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "dd266c67-9199-4a52-ba32-f46ddde67312", - "originalTimestamp": "2020-01-24T06:29:02.358Z", - "properties": { - "path": "/tests/html/index2.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index2.html" - }, - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53708", - "sentAt": "2020-01-24T06:29:02.359Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "page", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "jobId": 2 - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstname": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "2536eda4-d638-4c93-8014-8ffe3f083214", - "originalTimestamp": "2020-01-24T06:29:02.362Z", - "receivedAt": "2020-01-24T11:59:02.403+05:30", - "request_ip": "[::1]:53709", - "sentAt": "2020-01-24T06:29:02.363Z", - "timestamp": "2020-01-24T11:59:02.402+05:30", - "type": "identify", - "userId": "" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01", - "enableSubscriptionGroupInGroupCall": true - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "jobId": 3 - }, - "message": { - "anonymousId": "56yrtsdfgbgxcb-22b4-401d-aae5-1b994be9a969", - "groupId": "c90f0fd2-2a02-4f2f-bf07-7e7d2c2ed2b1", - "traits": { - "phone": "5055077683", - "subscriptionState": "subscribed" - }, - "userId": "user123", - "type": "group" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01", - "enableSubscriptionGroupInGroupCall": true - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "jobId": 4 - }, - "message": { - "anonymousId": "dfgdfgdfg-22b4-401d-aae5-1b994be9a969", - "groupId": "58d0a278-b55b-4f10-b7d2-98d1c5dd4c30", - "traits": { - "phone": "5055077683", - "subscriptionState": "subscribed" - }, - "userId": "user877", - "type": "group" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01", - "enableSubscriptionGroupInGroupCall": true - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "jobId": 5 - }, - "message": { - "type": "alias", - "previousId": "adsfsaf", - "userId": "dsafsdf" - } - }, - { - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "us-01", - "enableSubscriptionGroupInGroupCall": true - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - }, - "metadata": { - "jobId": 6 - }, - "message": { - "type": "alias", - "previousId": "adsfsaf2", - "userId": "dsafsdf2" - } - } - ], - "output": [ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "partner": "RudderStack", - "events": [ - { - "name": "Page Viewed", - "time": "2020-01-24T11:59:02.402+05:30", - "properties": { - "path": "/tests/html/index2.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index2.html" - }, - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ], - "attributes": [ - { - "email": "mickey@disney.com", - "city": "Disney", - "country": "USA", - "firstname": "Mickey", - "_update_existing_only": false, - "user_alias": { - "alias_name": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "alias_label": "rudder_id" - } - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/v2/subscription/status/set", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "subscription_groups": [ - { - "external_id": ["user123"], - "phones": ["5055077683"], - "subscription_group_id": "c90f0fd2-2a02-4f2f-bf07-7e7d2c2ed2b1", - "subscription_state": "subscribed" - }, - { - "external_id": ["user877"], - "phones": ["5055077683"], - "subscription_group_id": "58d0a278-b55b-4f10-b7d2-98d1c5dd4c30", - "subscription_state": "subscribed" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.fra-01.braze.eu/users/merge", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "merge_updates": [ - { - "identifier_to_keep": { - "external_id": "dsafsdf" - }, - "identifier_to_merge": { - "external_id": "adsfsaf" - } - }, - { - "identifier_to_keep": { - "external_id": "dsafsdf2" - }, - "identifier_to_merge": { - "external_id": "adsfsaf2" - } - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - }, - { - "jobId": 3 - }, - { - "jobId": 4 - }, - { - "jobId": 5 - }, - { - "jobId": 6 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "restApiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false, - "dataCenter": "eu-01" - }, - "DestinationDefinition": { - "DisplayName": "Braze", - "ID": "1WhbSZ6uA3H5ChVifHpfL2H6sie", - "Name": "BRAZE" - }, - "Enabled": true, - "ID": "1WhcOCGgj9asZu850HvugU2C3Aq", - "Name": "Braze", - "Transformations": [] - } - } - ] - } - ], - "dedupEnabledRouterTestData": [ - { - "description": "dedup enabled router tests", - "input": [ - { - "destination": { - "ID": "2N9UakqKF0D35wfzSeofIxPdL8X", - "Name": "Braze-Test", - "Config": { - "appKey": "0e5440c3-226b-45d0-91b5-c64da56cde16", - "blacklistedEvents": [], - "dataCenter": "US-03", - "enableNestedArrayOperations": false, - "enableSubscriptionGroupInGroupCall": false, - "eventFilteringOption": "disable", - "oneTrustCookieCategories": [], - "restApiKey": "dummyApiKey", - "supportDedup": true, - "trackAnonymousUser": true, - "whitelistedEvents": [] - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2N9Uaf2tWq2QRmatBWQm03Rz6qX" - }, - "metadata": { - "jobId": 1 - }, - "message": { - "type": "track", - "event": "Sign In Completed", - "sentAt": "2023-03-10T18:36:04.738Z", - "userId": "braze_test_user", - "channel": "web", - "context": { - "locale": "en-US", - "traits": { - "subscribe_once": true, - "pwa": true, - "email": "jackson24miranda@gmail.com", - "lastName": "Miranda", - "firstName": "Spencer", - "is_registered": true, - "last_identify": "GOOGLE_SIGN_IN", - "account_region": "ON", - "is_pickup_selected": "false", - "has_tradein_attempt": false, - "custom_obj_attr": { - "key1": "value1", - "key2": "value2", - "key4": "value4" - }, - "custom_arr": [1, 2, "str1"] - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.5" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" - }, - "rudderId": "4118560d-e4fc-4fd1-a734-9c69eae2c047", - "messageId": "1a342814-a882-4b65-9cc9-347544997268", - "timestamp": "2023-03-10T18:36:05.028Z", - "properties": { - "cause": "/redirector", - "method": "GOOGLE", - "region": "ON", - "orderId": "6179367977099", - "order_id": "6179367977099", - "webhookurl": "https://my.test.com", - "countingMethod": "standard", - "is_first_time_signin": false - }, - "receivedAt": "2023-03-18T01:41:42.257+05:30", - "request_ip": "[::1]", - "anonymousId": "77e278c9-e984-4cdd-950c-cd0b61befd03", - "originalTimestamp": "2023-03-10T18:36:04.733Z" - } - }, - { - "destination": { - "ID": "2N9UakqKF0D35wfzSeofIxPdL8X", - "Name": "Braze-Test", - "Config": { - "appKey": "0e5440c3-226b-45d0-91b5-c64da56cde16", - "blacklistedEvents": [], - "dataCenter": "US-03", - "enableNestedArrayOperations": false, - "enableSubscriptionGroupInGroupCall": false, - "eventFilteringOption": "disable", - "oneTrustCookieCategories": [], - "restApiKey": "dummyApiKey", - "supportDedup": true, - "trackAnonymousUser": true, - "whitelistedEvents": [] - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2N9Uaf2tWq2QRmatBWQm03Rz6qX" - }, - "metadata": { - "jobId": 2 - }, - "message": { - "type": "track", - "event": "Sign In Completed", - "sentAt": "2023-03-10T18:36:04.738Z", - "userId": "braze_test_user", - "channel": "web", - "context": { - "locale": "en-US", - "traits": { - "subscribe_once": true, - "pwa": true, - "email": "jackson24miranda@gmail.com", - "lastName": "Miranda 2", - "firstName": "Spencer", - "is_registered": true, - "last_identify": "GOOGLE_SIGN_IN", - "account_region": "ON", - "is_pickup_selected": "true", - "has_tradein_attempt": false, - "custom_obj_attr": { - "key1": "value1", - "key2": "value2", - "key4": "value4" - }, - "custom_arr": ["1", "2", "str1"] - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.5" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" - }, - "rudderId": "4118560d-e4fc-4fd1-a734-9c69eae2c047", - "messageId": "1a342814-a882-4b65-9cc9-347544997268", - "timestamp": "2023-03-10T18:36:05.028Z", - "properties": { - "cause": "/redirector", - "method": "GOOGLE", - "region": "ON", - "orderId": "6179367977099", - "order_id": "6179367977099", - "webhookurl": "https://my.test.com", - "countingMethod": "standard", - "is_first_time_signin": false - }, - "receivedAt": "2023-03-18T01:41:42.257+05:30", - "request_ip": "[::1]", - "anonymousId": "77e278c9-e984-4cdd-950c-cd0b61befd03", - "originalTimestamp": "2023-03-10T18:36:04.733Z" - } - }, - { - "destination": { - "ID": "2N9UakqKF0D35wfzSeofIxPdL8X", - "Name": "Braze-Test", - "Config": { - "appKey": "0e5440c3-226b-45d0-91b5-c64da56cde16", - "blacklistedEvents": [], - "dataCenter": "US-03", - "enableNestedArrayOperations": false, - "enableSubscriptionGroupInGroupCall": false, - "eventFilteringOption": "disable", - "oneTrustCookieCategories": [], - "restApiKey": "dummyApiKey", - "supportDedup": true, - "trackAnonymousUser": true, - "whitelistedEvents": [] - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2N9Uaf2tWq2QRmatBWQm03Rz6qX" - }, - "metadata": { - "jobId": 3 - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstName": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "2536eda4-d638-4c93-8014-8ffe3f083214", - "type": "identify", - "userId": "user@50" - } - }, - { - "destination": { - "ID": "2N9UakqKF0D35wfzSeofIxPdL8X", - "Name": "Braze-Test", - "Config": { - "appKey": "0e5440c3-226b-45d0-91b5-c64da56cde16", - "blacklistedEvents": [], - "dataCenter": "US-03", - "enableNestedArrayOperations": false, - "enableSubscriptionGroupInGroupCall": false, - "eventFilteringOption": "disable", - "oneTrustCookieCategories": [], - "restApiKey": "dummyApiKey", - "supportDedup": true, - "trackAnonymousUser": true, - "whitelistedEvents": [] - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2N9Uaf2tWq2QRmatBWQm03Rz6qX" - }, - "metadata": { - "jobId": 4 - }, - "message": { - "anonymousId": "e6ab2c5e-2cda-44a9-a962-e2f67df78bca", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.5" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.5" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "firstName": "Mickey" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "2536eda4-d638-4c93-8014-8ffe3f083214", - "type": "identify", - "userId": "user@50" - } - } - ], - "newTransformerOutput": [ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-03.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "partner": "RudderStack", - "attributes": [ - { - "first_name": "Spencer", - "subscribe_once": true, - "pwa": true, - "external_id": "braze_test_user", - "custom_obj_attr": { - "key1": "value1", - "key2": "value2", - "key4": "value4" - } - }, - { - "last_name": "Miranda 2", - "is_pickup_selected": "true", - "external_id": "braze_test_user", - "custom_arr": ["1", "2", "str1"] - }, - { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "external_id": "user@50", - "first_name": "Mickey" - } - ], - "events": [ - { - "name": "Sign In Completed", - "time": "2023-03-10T18:36:05.028Z", - "properties": { - "cause": "/redirector", - "method": "GOOGLE", - "region": "ON", - "orderId": "6179367977099", - "order_id": "6179367977099", - "webhookurl": "https://my.test.com", - "countingMethod": "standard", - "is_first_time_signin": false - }, - "external_id": "braze_test_user" - }, - { - "name": "Sign In Completed", - "time": "2023-03-10T18:36:05.028Z", - "properties": { - "cause": "/redirector", - "method": "GOOGLE", - "region": "ON", - "orderId": "6179367977099", - "order_id": "6179367977099", - "webhookurl": "https://my.test.com", - "countingMethod": "standard", - "is_first_time_signin": false - }, - "external_id": "braze_test_user" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - }, - { - "jobId": 3 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "2N9UakqKF0D35wfzSeofIxPdL8X", - "Name": "Braze-Test", - "Config": { - "appKey": "0e5440c3-226b-45d0-91b5-c64da56cde16", - "blacklistedEvents": [], - "dataCenter": "US-03", - "enableNestedArrayOperations": false, - "enableSubscriptionGroupInGroupCall": false, - "eventFilteringOption": "disable", - "oneTrustCookieCategories": [], - "restApiKey": "dummyApiKey", - "supportDedup": true, - "trackAnonymousUser": true, - "whitelistedEvents": [] - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2N9Uaf2tWq2QRmatBWQm03Rz6qX" - } - }, - { - "error": "[Braze Deduplication]: Duplicate user detected, the user is dropped", - "statTags": { - "errorCategory": "transformation" - }, - "statusCode": 298, - "batched": false, - "metadata": [ - { - "jobId": 4 - } - ], - "destination": { - "ID": "2N9UakqKF0D35wfzSeofIxPdL8X", - "Name": "Braze-Test", - "Config": { - "appKey": "0e5440c3-226b-45d0-91b5-c64da56cde16", - "blacklistedEvents": [], - "dataCenter": "US-03", - "enableNestedArrayOperations": false, - "enableSubscriptionGroupInGroupCall": false, - "eventFilteringOption": "disable", - "oneTrustCookieCategories": [], - "restApiKey": "dummyApiKey", - "supportDedup": true, - "trackAnonymousUser": true, - "whitelistedEvents": [] - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2N9Uaf2tWq2QRmatBWQm03Rz6qX" - } - } - ], - "oldTransformerOutput": [ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rest.iad-03.braze.com/users/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "partner": "RudderStack", - "attributes": [ - { - "first_name": "Spencer", - "subscribe_once": true, - "pwa": true, - "external_id": "braze_test_user", - "custom_obj_attr": { - "key1": "value1", - "key2": "value2", - "key4": "value4" - } - }, - { - "last_name": "Miranda 2", - "is_pickup_selected": "true", - "external_id": "braze_test_user", - "custom_arr": ["1", "2", "str1"] - }, - { - "city": "Disney", - "country": "USA", - "email": "mickey@disney.com", - "external_id": "user@50", - "first_name": "Mickey" - } - ], - "events": [ - { - "name": "Sign In Completed", - "time": "2023-03-10T18:36:05.028Z", - "properties": { - "cause": "/redirector", - "method": "GOOGLE", - "region": "ON", - "orderId": "6179367977099", - "order_id": "6179367977099", - "webhookurl": "https://my.test.com", - "countingMethod": "standard", - "is_first_time_signin": false - }, - "external_id": "braze_test_user" - }, - { - "name": "Sign In Completed", - "time": "2023-03-10T18:36:05.028Z", - "properties": { - "cause": "/redirector", - "method": "GOOGLE", - "region": "ON", - "orderId": "6179367977099", - "order_id": "6179367977099", - "webhookurl": "https://my.test.com", - "countingMethod": "standard", - "is_first_time_signin": false - }, - "external_id": "braze_test_user" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - }, - { - "jobId": 3 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "2N9UakqKF0D35wfzSeofIxPdL8X", - "Name": "Braze-Test", - "Config": { - "appKey": "0e5440c3-226b-45d0-91b5-c64da56cde16", - "blacklistedEvents": [], - "dataCenter": "US-03", - "enableNestedArrayOperations": false, - "enableSubscriptionGroupInGroupCall": false, - "eventFilteringOption": "disable", - "oneTrustCookieCategories": [], - "restApiKey": "dummyApiKey", - "supportDedup": true, - "trackAnonymousUser": true, - "whitelistedEvents": [] - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2N9Uaf2tWq2QRmatBWQm03Rz6qX" - } - }, - { - "error": "[Braze Deduplication]: Duplicate user detected, the user is dropped", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400, - "batched": false, - "metadata": [ - { - "jobId": 4 - } - ], - "destination": { - "ID": "2N9UakqKF0D35wfzSeofIxPdL8X", - "Name": "Braze-Test", - "Config": { - "appKey": "0e5440c3-226b-45d0-91b5-c64da56cde16", - "blacklistedEvents": [], - "dataCenter": "US-03", - "enableNestedArrayOperations": false, - "enableSubscriptionGroupInGroupCall": false, - "eventFilteringOption": "disable", - "oneTrustCookieCategories": [], - "restApiKey": "dummyApiKey", - "supportDedup": true, - "trackAnonymousUser": true, - "whitelistedEvents": [] - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2N9Uaf2tWq2QRmatBWQm03Rz6qX" - } - } - ] - } - ] -} diff --git a/test/__tests__/data/campaign_manager_proxy_input.json b/test/__tests__/data/campaign_manager_proxy_input.json deleted file mode 100644 index e7bf369d0c..0000000000 --- a/test/__tests__/data/campaign_manager_proxy_input.json +++ /dev/null @@ -1,96 +0,0 @@ -[ - { - "request": { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437689/conversions/batchupdate", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "kind": "dfareporting#conversionsBatchInsertRequest", - "encryptionInfo": { - "kind": "dfareporting#encryptionInfo", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT" - }, - "conversions": [ - { - "timestampMicros": "1668624722000000", - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "floodlightActivityId": "456543345245", - "mobileDeviceId": "string", - "value": 7, - "encryptedUserIdCandidates": ["dfghjbnm"], - "gclid": "string", - "matchId": "string", - "dclid": "string", - "impressionId": "string", - "limitAdTracking": true, - "childDirectedTreatment": true - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } - }, - { - "request": { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437689/conversions/batchupdate", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "kind": "dfareporting#conversionsBatchUpdateRequest", - "encryptionInfo": { - "kind": "dfareporting#encryptionInfo", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT" - }, - "conversions": [ - { - "timestampMicros": "1668624722000000", - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "floodlightActivityId": "456543345245", - "mobileDeviceId": "string", - "value": 7, - "encryptedUserIdCandidates": ["dfghjbnm"], - "gclid": "string", - "matchId": "string", - "dclid": "string", - "impressionId": "string", - "limitAdTracking": true, - "childDirectedTreatment": true - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } - } -] diff --git a/test/__tests__/data/campaign_manager_proxy_output.json b/test/__tests__/data/campaign_manager_proxy_output.json deleted file mode 100644 index c5dcc4559f..0000000000 --- a/test/__tests__/data/campaign_manager_proxy_output.json +++ /dev/null @@ -1,51 +0,0 @@ -[ - { - "output": { - "destinationResponse": { - "error": { - "code": 403, - "message": "The caller does not have permission", - "errors": [ - { - "message": "Invalid Credentials", - "domain": "global", - "reason": "authError", - "location": "Authorization", - "locationType": "header" - } - ], - "status": "PERMISSION_DENIED" - } - }, - "message": "Campaign Manager: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. during CAMPAIGN_MANAGER response transformation", - "statTags": { - "destType": "CAMPAIGN_MANAGER", - "errorAt": "proxy", - "scope": "exception", - "stage": "responseTransform" - }, - "status": 403 - } - }, - { - "output": { - "status": 200, - "message": "[CAMPAIGN_MANAGER Response Handler] - Request Processed Successfully", - "destinationResponse": { - "response": [ - { - "adjustmentType": "ENHANCEMENT", - "conversionAction": "customers/7693729833/conversionActions/874224905", - "adjustmentDateTime": "2021-01-01 12:32:45-08:00", - "gclidDateTimePair": { - "gclid": "1234", - "conversionDateTime": "2021-01-01 12:32:45-08:00" - }, - "orderId": "12345" - } - ], - "status": 200 - } - } - } -] diff --git a/test/__tests__/data/clevertap_input.json b/test/__tests__/data/clevertap_input.json deleted file mode 100644 index e0bb1241e2..0000000000 --- a/test/__tests__/data/clevertap_input.json +++ /dev/null @@ -1,1084 +0,0 @@ -[ - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "message": { - "channel": "web", - "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": { - "anonymousId": "anon_id", - "email": "jamesDoe@gmail.com", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "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": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "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": { - "anonymousId": "anon_id", - "email": "jamesDoe@gmail.com", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "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": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "message": { - "type": "page", - "anonymousId": "anon-id-new", - "name": "Rudder", - "properties": { - "title": "Home", - "path": "/" - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "message": { - "type": "screen", - "userId": "identified_user_id", - "name": "Rudder-Screen", - "properties": { - "prop1": "5" - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "message": { - "type": "track", - "userId": "user123", - "event": "Product Purchased", - "properties": { - "name": "Rubik's Cube", - "revenue": 4.99 - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "message": { - "userId": "user1234", - "event": "FailTest", - "properties": { - "name": "Random", - "revenue": 4.99 - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "message": { - "type": "Rndm", - "userId": "user1234", - "event": "FailTest", - "properties": { - "name": "Random2", - "revenue": 4.99 - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2021-03-10T11:59:57.815Z", - "userId": "riverjohn", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.13", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/test.html", - "path": "/test.html", - "title": "sample source", - "search": "", - "referrer": "http://127.0.0.1:5500/", - "referring_domain": "127.0.0.1:5500" - }, - "locale": "en-US", - "screen": { - "density": 2 - }, - "traits": { - "email": "riverjohn@gmail.com", - "phone": "+12345678900", - "avatar": "https://homepages.cae.wisc.edu/~ece533/images/airplane.png", - "testIng": true, - "lastName": "John", - "firstname": "River" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.13" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:86.0) Gecko/20100101 Firefox/86.0" - }, - "rudderId": "fd5d3d37-3ce6-471d-b416-2f351212a44f", - "messageId": "8ff6fd1b-b381-43fc-883c-92bf8eb0e725", - "properties": { - "tax": 1, - "total": 20, - "coupon": "ImagePro", - "revenue": 15, - "currency": "USD", - "discount": 1.5, - "order_id": "1234", - "ts": "2021-03-10T11:59:22.080Z", - "products": [ - { - "sku": "G-32", - "url": "https://www.website.com/product/path", - "name": "Monopoly", - "price": 14, - "category": "Games", - "quantity": 1, - "image_url": "https://www.website.com/product/path.jpg", - "product_id": "123" - }, - { - "sku": "F-32", - "name": "UNO", - "price": 3.45, - "category": "Games", - "quantity": 2, - "product_id": "345" - } - ], - "shipping": 22, - "affiliation": "Apple Store", - "checkout_id": "12345" - }, - "anonymousId": "b2e06708-dd2a-4aee-bb32-41855d2fbdab", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-03-10T11:59:22.080Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": false, - "enableObjectIdMapping": false - } - }, - "message": { - "type": "track", - "anonymousId": "random_anon_id", - "event": "FailTest_with_anon", - "properties": { - "name": "Random2", - "revenue": 4.99 - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "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": { - "anonymousId": "anon_id", - "email": "jamesDoe@gmail.com", - "name": "James Doe", - "phone": "92374162212", - "gender": "female", - "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": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "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": { - "anonymousId": "anon_id", - "email": "jamesDoe@gmail.com", - "name": "James Doe", - "phone": "92374162212", - "gender": "other", - "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": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "message": { - "type": "identify", - "event": "identify", - "sentAt": "2021-05-24T08:53:38.762Z", - "userId": "useran4", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "myfirstapp", - "build": "1", - "version": "1.0", - "namespace": "com.example.myfirstapp" - }, - "device": { - "id": "f54bb572361c4fd1", - "name": "whyred", - "type": "Android", - "model": "Redmi Note 5 Pro", - "manufacturer": "Xiaomi", - "token": "frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2118, - "density": 420 - }, - "traits": { - "id": "useran4", - "email": "tony4an@testmail.com", - "phone": "4444457700", - "userId": "useran4", - "lastname": "Stark", - "firstname": "Tony4AN", - "anonymousId": "f54bb572361c4fd1" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.12" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi Note 5 Pro Build/QQ3A.200805.001)" - }, - "rudderId": "d8dd4917-bdb2-4c17-8f62-24c79d87a937", - "messageId": "1621846417928-7fbb739f-5f96-48ca-9ebb-5bfc4076a687", - "anonymousId": "f54bb572361c4fd1", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-05-24T08:53:37.929Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "message": { - "type": "identify", - "event": "identify", - "sentAt": "2021-04-21T12:05:42.383Z", - "userId": "ankur4", - "channel": "mobile", - "context": { - "os": { - "name": "iOS", - "version": "13.0" - }, - "app": { - "name": "Rudder-CleverTap_Example", - "build": "1.0", - "version": "1.0", - "namespace": "org.cocoapods.demo.Rudder-CleverTap-Example" - }, - "device": { - "id": "cd3a4439-7df0-4475-acb9-6659c7c4dfe3", - "name": "iPhone 11 Pro Max", - "type": "iOS", - "model": "iPhone", - "manufacturer": "Apple", - "token": "frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf" - }, - "locale": "en-US", - "screen": { - "width": 896, - "height": 414, - "density": 3 - }, - "traits": { - "name": "Ankur4 Mittal", - "email": "ankur4gmail", - "phone": "8260294239", - "userId": "ankur4" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.0.11" - }, - "network": { - "wifi": true, - "carrier": "unavailable", - "cellular": false, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "unknown" - }, - "rudderId": "f5bb9c22-4987-4ef2-9b58-52788035ffb7", - "messageId": "1619006730-60fa60c0-3c77-4de7-95d4-e7dc58214947", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-04-21T12:05:30.330Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "message": { - "event": "Random", - "properties": { - "country_region": "India", - "test": "abc" - }, - "receivedAt": "2021-08-20T12:49:07.691Z", - "rudderId": "138c4214-b537-4f77-9dea-9abde70b5147", - "type": "track", - "anonymousId": "cd3a4439-7df0-4475-acb9-6659c7c4dfe3" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "message": { - "event": "Random 2", - "properties": { - "country_region": "India", - "test": "abc" - }, - "receivedAt": "2021-08-20T12:49:07.691Z", - "rudderId": "138c4214-b537-4f77-9dea-9abde70b5147", - "type": "track", - "userId": "ankur4" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "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": { - "anonymousId": "anon_id", - "email": "jamesDoe@gmail.com", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "employed": true, - "birthday": "1614775793", - "education": "Science", - "graduate": true, - "married": true, - "customerType": "Prime", - "ts": "2021-03-10T11:59:22.080Z", - "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": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "message": { - "type": "identify", - "event": "identify", - "sentAt": "2021-05-24T08:53:38.762Z", - "userId": "useran4", - "channel": "mobile", - "context": { - "os": { - "name": "watchos" - }, - "app": { - "name": "myfirstapp", - "build": "1", - "version": "1.0", - "namespace": "com.example.myfirstapp" - }, - "device": { - "id": "cd3a4439-7df0-4475-acb9-6659c7c4dfe3", - "type": "watchos", - "manufacturer": "Apple", - "token": "frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2118, - "density": 420 - }, - "traits": { - "id": "useran4", - "email": "tony4an@testmail.com", - "phone": "4444457700", - "userId": "useran4", - "lastname": "Stark", - "firstname": "Tony4AN", - "anonymousId": "f54bb572361c4fd1" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.12" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi Note 5 Pro Build/QQ3A.200805.001)" - }, - "rudderId": "d8dd4917-bdb2-4c17-8f62-24c79d87a937", - "messageId": "1621846417928-7fbb739f-5f96-48ca-9ebb-5bfc4076a687", - "anonymousId": "f54bb572361c4fd1", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-05-24T08:53:37.929Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "message": { - "type": "alias", - "userId": "newaddedid001", - "context": { - "traits": { - "ts": 1468308340 - } - }, - "rudderId": "a8556b1b-9d11-478d-9242-be124d1f0c93", - "messageId": "46c1a69c-cc24-4a49-8079-3fcbabf15eb8", - "previousId": "1122121" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "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": { - "anonymousId": "anon_id", - "email": "johnDoe@gmail.com", - "first_name": "John", - "last_name": "Doe", - "phone": "92374162212", - "gender": "M", - "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": "" - }, - "overrideFields": { - "first_name": "John", - "last_name": "Doe" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "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 - }, - "traits": { - "overrideFields": { - "first_name": "John", - "last_name": "Doe" - } - } - }, - "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": { - "anonymousId": "anon_id", - "email": "johnDoe@gmail.com", - "first_name": "John", - "last_name": "Doe", - "phone": "92374162212", - "gender": "M", - "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": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - }, - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2021-03-10T11:59:57.815Z", - "userId": "riverjohn", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.13", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/test.html", - "path": "/test.html", - "title": "sample source", - "search": "", - "referrer": "http://127.0.0.1:5500/", - "referring_domain": "127.0.0.1:5500" - }, - "locale": "en-US", - "screen": { - "density": 2 - }, - "traits": { - "email": "riverjohn@gmail.com", - "phone": "+12345678900", - "avatar": "https://homepages.cae.wisc.edu/~ece533/images/airplane.png", - "testIng": true, - "lastName": "John", - "firstname": "River" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.13" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:86.0) Gecko/20100101 Firefox/86.0" - }, - "rudderId": "fd5d3d37-3ce6-471d-b416-2f351212a44f", - "messageId": "8ff6fd1b-b381-43fc-883c-92bf8eb0e725", - "properties": { - "tax": 1, - "total": 20, - "coupon": "ImagePro", - "revenue": 15, - "currency": "USD", - "discount": 1.5, - "order_id": "1234", - "ts": "2021-03-10T11:59:22.080Z", - "products": { - "sku": "G-32", - "url": "https://www.website.com/product/path", - "name": "Monopoly", - "price": 14, - "category": "Games", - "quantity": 1, - "image_url": "https://www.website.com/product/path.jpg", - "product_id": "123" - }, - "shipping": 22, - "affiliation": "Apple Store", - "checkout_id": "12345" - }, - "anonymousId": "b2e06708-dd2a-4aee-bb32-41855d2fbdab", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-03-10T11:59:22.080Z" - } - }, - { - "destination": { - "Config": { - "passcode": "sample_passcode", - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "message": { - "event": "Random", - "properties": { - "country_region": "India", - "test": "abc" - }, - "receivedAt": "2021-08-20T12:49:07.691Z", - "rudderId": "138c4214-b537-4f77-9dea-9abde70b5147", - "type": "track" - } - } -] diff --git a/test/__tests__/data/clevertap_output.json b/test/__tests__/data/clevertap_output.json deleted file mode 100644 index 947cc2da21..0000000000 --- a/test/__tests__/data/clevertap_output.json +++ /dev/null @@ -1,739 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "jamesDoe@gmail.com", - "Name": "James Doe", - "Phone": "92374162212", - "Gender": "M", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": true, - "Customer Type": "Prime", - "graduate": true, - "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\":\"\"}" - }, - "identity": "anon_id" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "jamesDoe@gmail.com", - "Name": "James Doe", - "Phone": "92374162212", - "Gender": "M", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": true, - "Customer Type": "Prime", - "graduate": true, - "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\":\"\"}" - }, - "identity": "anon_id" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "d": [ - { - "identity": "anon-id-new", - "type": "event", - "evtName": "Web Page Viewed: Rudder", - "evtData": { - "title": "Home", - "path": "/" - } - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.clevertap.com/1/upload" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "d": [ - { - "identity": "identified_user_id", - "type": "event", - "evtName": "Screen Viewed: Rudder-Screen", - "evtData": { - "prop1": "5" - } - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.clevertap.com/1/upload" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "d": [ - { - "identity": "user123", - "type": "event", - "evtName": "Product Purchased", - "evtData": { - "name": "Rubik's Cube", - "revenue": 4.99 - } - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.clevertap.com/1/upload" - }, - { - "error": "Message Type is not present. Aborting message." - }, - { - "error": "Message type not supported" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "evtName": "Charged", - "evtData": { - "Charged ID": "12345", - "Amount": 15, - "Items": [ - { - "sku": "G-32", - "url": "https://www.website.com/product/path", - "name": "Monopoly", - "price": 14, - "category": "Games", - "quantity": 1, - "image_url": "https://www.website.com/product/path.jpg", - "product_id": "123" - }, - { - "sku": "F-32", - "name": "UNO", - "price": 3.45, - "category": "Games", - "quantity": 2, - "product_id": "345" - } - ], - "tax": 1, - "total": 20, - "coupon": "ImagePro", - "currency": "USD", - "discount": 1.5, - "order_id": "1234", - "shipping": 22, - "affiliation": "Apple Store" - }, - "ts": 1615377562, - "type": "event", - "identity": "riverjohn" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "error": "userId, not present cannot track anonymous user" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "jamesDoe@gmail.com", - "Name": "James Doe", - "Phone": "92374162212", - "Gender": "F", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": true, - "Customer Type": "Prime", - "graduate": true, - "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\":\"\"}" - }, - "identity": "anon_id" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "jamesDoe@gmail.com", - "Name": "James Doe", - "Phone": "92374162212", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": true, - "Customer Type": "Prime", - "graduate": true, - "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\":\"\"}" - }, - "identity": "anon_id" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "objectId": "f54bb572361c4fd1", - "type": "profile", - "profileData": { - "Email": "tony4an@testmail.com", - "Phone": "4444457700", - "Name": "Tony4AN Stark", - "identity": "useran4" - } - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "token", - "tokenData": { - "id": "frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf", - "type": "fcm" - }, - "objectId": "f54bb572361c4fd1" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - } - ], - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "identity": "ankur4", - "type": "profile", - "profileData": { - "Email": "ankur4gmail", - "Name": "Ankur4 Mittal", - "Phone": "8260294239" - } - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "d": [ - { - "type": "event", - "evtData": { - "country_region": "India", - "test": "abc" - }, - "evtName": "Random", - "objectId": "cd3a4439-7df0-4475-acb9-6659c7c4dfe3" - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "X-CleverTap-Passcode": "sample_passcode", - "X-CleverTap-Account-Id": "476550467" - }, - "version": "1", - "endpoint": "https://api.clevertap.com/1/upload" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "d": [ - { - "type": "event", - "evtData": { - "country_region": "India", - "test": "abc" - }, - "evtName": "Random 2", - "identity": "ankur4" - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "X-CleverTap-Passcode": "sample_passcode", - "X-CleverTap-Account-Id": "476550467" - }, - "version": "1", - "endpoint": "https://api.clevertap.com/1/upload" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "jamesDoe@gmail.com", - "Name": "James Doe", - "Phone": "92374162212", - "Gender": "M", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": true, - "Customer Type": "Prime", - "graduate": true, - "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\":\"\"}" - }, - "ts": 1615377562, - "identity": "anon_id" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "tony4an@testmail.com", - "Phone": "4444457700", - "Name": "Tony4AN Stark", - "identity": "useran4" - }, - "objectId": "f54bb572361c4fd1" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "token", - "tokenData": { - "id": "frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf", - "type": "apns" - }, - "objectId": "f54bb572361c4fd1" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "d": [ - { - "ts": 1468308340, - "type": "profile", - "identity": "1122121", - "profileData": { - "identity": "newaddedid001" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "X-CleverTap-Passcode": "sample_passcode", - "X-CleverTap-Account-Id": "476550467" - }, - "version": "1", - "endpoint": "https://api.clevertap.com/1/upload" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "johnDoe@gmail.com", - "Phone": "92374162212", - "Gender": "M", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": true, - "Customer Type": "Prime", - "Name": "John Doe", - "graduate": true, - "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\":\"\"}", - "first_name": "John", - "last_name": "Doe" - }, - "identity": "anon_id" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "sample_passcode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "johnDoe@gmail.com", - "Phone": "92374162212", - "Gender": "M", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": true, - "Customer Type": "Prime", - "Name": "John Doe", - "graduate": true, - "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\":\"\"}", - "first_name": "John", - "last_name": "Doe" - }, - "identity": "anon_id" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "error": "Products property value must be an array of objects" - }, - { - "error": "Unable to process without anonymousId or userId" - } -] diff --git a/test/__tests__/data/clevertap_proxy_input.json b/test/__tests__/data/clevertap_proxy_input.json deleted file mode 100644 index 1826547f5c..0000000000 --- a/test/__tests__/data/clevertap_proxy_input.json +++ /dev/null @@ -1,114 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clevertap.com/1/upload/test1", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1", - "Content-Type": "application/json" - }, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "profileData": { - "Email": "jamesDoe@gmail.com", - "Name": "James Doe", - "Phone": "92374162212", - "Gender": "M", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": "Y", - "Customer Type": "Prime", - "graduate": true, - "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\":\"\"}" - }, - "identity": "anon_id" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "clevertap" - } - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "d": [ - { - "identity": "anon-id-new", - "type": "event", - "evtName": "Web Page Viewed: Rudder", - "evtData": { - "title": "Home", - "path": "/" - } - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "headers": { - "X-CleverTap-Account-Id": "fakeId123", - "X-CleverTap-Passcode": "fakePasscode123", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.clevertap.com/1/upload/test2", - "params": { - "destination": "clevertap" - } - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "d": [ - { - "identity": "anon-id-new", - "type": "event", - "evtData": { - "title": "Home", - "path": "/" - } - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "headers": { - "X-CleverTap-Account-Id": "476550467", - "X-CleverTap-Passcode": "fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.clevertap.com/1/upload/test3", - "params": { - "destination": "clevertap" - } - } -] \ No newline at end of file diff --git a/test/__tests__/data/clevertap_proxy_output.json b/test/__tests__/data/clevertap_proxy_output.json deleted file mode 100644 index cbb685e39e..0000000000 --- a/test/__tests__/data/clevertap_proxy_output.json +++ /dev/null @@ -1,64 +0,0 @@ -[ - { - "output": { - "status": 200, - "message": "Request Processed Successfully", - "destinationResponse": { - "response": { - "status": "success", - "processed": 1, - "unprocessed": [] - }, - "status": 200 - } - } - }, - { - "output": { - "status": 401, - "message": "Request failed with status: 401", - "destinationResponse": { - "response": { - "status": "fail", - "error": "Invalid Credentials", - "code": 401 - }, - "status": 401 - }, - "statTags": { - "destType": "CLEVERTAP", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 400, - "message": "Request failed with status: 200", - "destinationResponse": { - "response": { - "status": "fail", - "processed": 0, - "unprocessed": [] - }, - "status": 200 - }, - "statTags": { - "destType": "CLEVERTAP", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } -] diff --git a/test/__tests__/data/clevertap_router_input.json b/test/__tests__/data/clevertap_router_input.json deleted file mode 100644 index af38871af9..0000000000 --- a/test/__tests__/data/clevertap_router_input.json +++ /dev/null @@ -1,139 +0,0 @@ -[ - { - "destination": { - "Config": { - "passcode": "dummypasscode", - "accountId": "dummyAccountId", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "metadata": { - "jobId": 1 - }, - "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": "Android", - "version": "" - }, - "screen": { - "density": 2 - }, - "device": { - "id": "f54bb572361c4fd1", - "name": "whyred", - "type": "Android", - "model": "Redmi Note 5 Pro", - "manufacturer": "Xiaomi", - "token": "frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf" - } - }, - "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": { - "ts": "2019-10-14T09:03:17.562Z", - "anonymousId": "anon_id", - "email": "dummyuser@gmail.com", - "name": "Dummy User", - "phone": "98765434210", - "gender": "M", - "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": { - "passcode": "dummypasscode", - "accountId": "dummyAccountId", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - }, - "metadata": { - "jobId": 2 - }, - "message": { - "event": "Random", - "properties": { - "country_region": "India", - "test": "abc" - }, - "receivedAt": "2021-08-20T12:49:07.691Z", - "rudderId": "138c4214-b537-4f77-9dea-9abde70b5147", - "type": "track", - "anonymousId": "cd3a4439-7df0-4475-acb9-6659c7c4dfe3" - } - }, - { - "destination": { - "Config": { - "passcode": "dummypasscode", - "accountId": "dummyAccountId", - "trackAnonymous": true - } - }, - "metadata": { - "jobId": 3 - }, - "message": { - "type": "group", - "anonymousId": "anon-id-new", - "name": "Rudder", - "properties": { - "title": "Home", - "path": "/" - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } -] diff --git a/test/__tests__/data/clevertap_router_output.json b/test/__tests__/data/clevertap_router_output.json deleted file mode 100644 index 3f726652e1..0000000000 --- a/test/__tests__/data/clevertap_router_output.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "batched": true, - "endpoint": "https://api.clevertap.com/1/upload", - "headers": { - "X-CleverTap-Account-Id": "dummyAccountId", - "X-CleverTap-Passcode": "dummypasscode", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "d": [ - { - "type": "profile", - "ts": 1571043797, - "profileData": { - "Email": "dummyuser@gmail.com", - "Name": "Dummy User", - "Phone": "98765434210", - "Gender": "M", - "Employed": true, - "DOB": "1614775793", - "Education": "Science", - "Married": true, - "Customer Type": "Prime", - "graduate": true, - "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\":\"\"}" - }, - "objectId": "anon_id" - }, - { - "type": "token", - "tokenData": { - "id": "frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf", - "type": "fcm" - }, - "objectId": "anon_id" - }, - { - "evtName": "Random", - "evtData": { - "country_region": "India", - "test": "abc" - }, - "type": "event", - "objectId": "cd3a4439-7df0-4475-acb9-6659c7c4dfe3" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "passcode": "dummypasscode", - "accountId": "dummyAccountId", - "trackAnonymous": true, - "enableObjectIdMapping": true - } - } - }, - { - "metadata": [ - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 400, - "error": "Message type not supported", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "destination": { - "Config": { - "passcode": "dummypasscode", - "accountId": "dummyAccountId", - "trackAnonymous": true - } - } - } -] diff --git a/test/__tests__/data/clickup.json b/test/__tests__/data/clickup.json deleted file mode 100644 index 5bd246004a..0000000000 --- a/test/__tests__/data/clickup.json +++ /dev/null @@ -1,513 +0,0 @@ -[ - { - "description": "Invalid priority", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { "priority": 0 }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "error": "Invalid value specified for priority. Value must be Integer and in range \"[1,4]\"" - } - }, - { - "description": "Custom field: Invalid phone number", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "phone", - "to": "Phone Number" - } - ] - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { "phone": "9999999999" }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "error": "The provided phone number is invalid" - } - }, - { - "description": "Custom field: Invalid email", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "email", - "to": "Email" - } - ] - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { "email": "test.com" }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "error": "The provided email is invalid" - } - }, - { - "description": "Custom field: Invalid url", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "url", - "to": "Url" - } - ] - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { "url": "www.test.com" }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "error": "The provided url is invalid" - } - }, - { - "description": "Custom field: Invalid location latitude", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "location", - "to": "Location" - } - ] - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { - "location": { - "lat": -100, - "lng": 124, - "formattedAddress": "Gold Coast QLD, Australia" - } - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "error": "Invalid value specified for latitude. Latitude must be in range \"[-90, 90]\"" - } - }, - { - "description": "Custom field: Invalid rating", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "rating", - "to": "Rating" - } - ] - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { "rating": "7" }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "error": "Invalid value specified for rating. Value must be in range \"[0,5]\"" - } - }, - { - "description": "Creating task with valid custom fields values", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "industry", - "to": "Industry" - }, - { - "from": "Payment Status", - "to": "Payment Status" - }, - { - "from": "labelKey", - "to": "Labels" - }, - { - "from": "locationKey", - "to": "Location" - }, - { - "from": "phone", - "to": "Phone Number" - }, - { - "from": "email", - "to": "Email" - }, - { - "from": "url", - "to": "Url" - }, - { - "from": "rating", - "to": "Rating" - }, - { - "from": "plan", - "to": "Plan" - }, - { - "from": "contactTitle", - "to": "Contact Title" - }, - { - "from": "date", - "to": "Date" - } - ] - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { - "description": "Creating task with valid custom fields values", - "tags": ["testing", "custom fields"], - "timeEstimate": 10800000, - "status": "Ready", - "priority": 1, - "dueDate": "2022-02-25T13:39:21.032Z", - "includeDueDateTime": true, - "startDate": "2022-01-20T13:39:21.032Z", - "includeStartDateTime": "true", - "notifyAll": false, - "industry": "Retail", - "Payment Status": "Pending", - "labelKey": ["option 1", "option 2", "option 3"], - "locationKey": { - "lat": -20, - "lng": 124, - "formattedAddress": "Gold Coast QLD, Australia" - }, - "phone": "+12233445567", - "email": "test123@example.com", - "url": "https://www.rudderstack.com/", - "rating": 3, - "plan": "Business", - "contactTitle": "VP of Operations", - "date": "2022-02-25T13:39:21.032Z" - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clickup.com/api/v2/list/correctListId123/task", - "headers": { - "Content-Type": "application/json", - "Authorization": "pk_123" - }, - "params": {}, - "body": { - "JSON": { - "name": "Product Viewed", - "description": "Creating task with valid custom fields values", - "tags": ["testing", "custom fields"], - "time_estimate": 10800000, - "status": "Ready", - "priority": 1, - "due_date": 1645796361032, - "due_date_time": true, - "start_date": 1642685961032, - "start_date_time": "true", - "notify_all": false, - "custom_fields": [ - { - "id": "a5f5044a-cbad-4caf-bcbb-4cd32bd8db7c", - "value": "c7f9b6f5-cd98-4609-af10-68a8710cc1bf" - }, - { - "id": "22eaffee-ffec-4c3b-bdae-56e69d55eecd", - "value": "7afcb6fb-cec8-41d8-bf0c-039a9db28460" - }, - { - "id": "19d3ac4e-2b1e-4569-b33e-ff86c7d94d6e", - "value": [ - "32c81c1c-cf53-4829-92f5-0f0270d27a45", - "7e24f329-9dd9-4e68-b426-2c70af6f9347" - ] - }, - { - "id": "ea6c1e48-2abf-4328-b228-79c213e147c8", - "value": { - "location": { - "lat": -20, - "lng": 124 - }, - "formatted_address": "Gold Coast QLD, Australia" - } - }, - { - "id": "c9b83d91-b979-4b34-b4bd-88bf9cf2b9a6", - "value": "+12233445567" - }, - { - "id": "ebe825fb-92de-41ce-a29c-25018da039b4", - "value": "test123@example.com" - }, - { - "id": "b01b32fd-94d3-43e6-9f31-2c855ff169cd", - "value": "https://www.rudderstack.com/" - }, - { - "id": "f431cda3-a575-4a05-ba8d-583d9b6cb2df", - "value": 3 - }, - { - "id": "4b7a29be-e261-4340-8f3f-e6de838473e5", - "value": "c5032049-8c05-44e9-a000-3a071d457b8f" - }, - { - "id": "4bfebc00-9d4a-40d1-aef8-5a87b610186c", - "value": "VP of Operations" - }, - { - "id": "666f74bf-6d87-41f3-8735-ccf0efe066dd", - "value": 1645796361032 - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Creating task with assignees", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { - "taskName": "Transformer Testing" - }, - "context": { - "externalId": [ - { - "type": "clickUpAssigneeId", - "id": 61205104 - }, - { - "type": "clickUpAssigneeId", - "id": 61217234 - }, - { - "type": "clickUpAssigneeId", - "id": 61228575 - } - ] - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clickup.com/api/v2/list/correctListId123/task", - "headers": { - "Content-Type": "application/json", - "Authorization": "pk_123" - }, - "params": {}, - "body": { - "JSON": { - "name": "Transformer Testing", - "assignees": [61205104, 61217234, 61228575] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Event filtering : Sending non whitelisted event when some events are whitelisted", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "whitelistedEvents": [ - { "eventName": "Anonymous Page Visit" }, - { "eventName": "Product Viewed" }, - { "eventName": "" } - ] - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Credit Card Added", - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "error": "The event was discarded as it was not allow listed in the destination configuration" - } - }, - { - "description": "Event filtering : No event is whitelisted", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "whitelistedEvents": [{ "eventName": "" }, { "eventName": "" }, { "eventName": "" }] - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "Credit Card Added", - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "error": "The event was discarded as it was not allow listed in the destination configuration" - } - }, - { - "description": "Creating task using listId from externalId array", - "input": { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "clickup-1234" - }, - "message": { - "type": "track", - "event": "anonymous page visit", - "context": { - "externalId": [{ "type": "clickUpListId", "id": "correctListId456" }] - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.clickup.com/api/v2/list/correctListId456/task", - "headers": { - "Content-Type": "application/json", - "Authorization": "pk_123" - }, - "params": {}, - "body": { - "JSON": { - "name": "anonymous page visit" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/clickup_router_input.json b/test/__tests__/data/clickup_router_input.json deleted file mode 100644 index 1393310371..0000000000 --- a/test/__tests__/data/clickup_router_input.json +++ /dev/null @@ -1,192 +0,0 @@ -[ - { - "description": "Creating task using listId from externalId array", - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "clickup-1234" - }, - "metadata": { - "jobId": 1 - }, - "message": { - "type": "track", - "event": "anonymous page visit", - "context": { - "externalId": [{ "type": "clickUpListId", "id": "correctListId456" }] - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - { - "description": "Creating task with assignees", - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "clickup-1234" - }, - "metadata": { - "jobId": 2 - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { - "taskName": "Transformer Testing" - }, - "context": { - "externalId": [ - { - "type": "clickUpAssigneeId", - "id": 61205104 - }, - { - "type": "clickUpAssigneeId", - "id": 61217234 - }, - { - "type": "clickUpAssigneeId", - "id": 61228575 - } - ] - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - { - "description": "Creating task with valid custom fields values", - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "industry", - "to": "Industry" - }, - { - "from": "Payment Status", - "to": "Payment Status" - }, - { - "from": "labelKey", - "to": "Labels" - }, - { - "from": "locationKey", - "to": "Location" - }, - { - "from": "phone", - "to": "Phone Number" - }, - { - "from": "email", - "to": "Email" - }, - { - "from": "url", - "to": "Url" - }, - { - "from": "rating", - "to": "Rating" - }, - { - "from": "plan", - "to": "Plan" - }, - { - "from": "contactTitle", - "to": "Contact Title" - }, - { - "from": "date", - "to": "Date" - } - ] - }, - "ID": "clickup-1234" - }, - "metadata": { - "jobId": 3 - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { - "description": "Creating task with valid custom fields values", - "tags": ["testing", "custom fields"], - "timeEstimate": 10800000, - "status": "Ready", - "priority": 1, - "dueDate": "2022-02-25T13:39:21.032Z", - "includeDueDateTime": true, - "startDate": "2022-01-20T13:39:21.032Z", - "includeStartDateTime": "true", - "notifyAll": false, - "industry": "Retail", - "Payment Status": "Pending", - "labelKey": ["option 1", "option 2", "option 3"], - "locationKey": { - "lat": -20, - "lng": 124, - "formattedAddress": "Gold Coast QLD, Australia" - }, - "phone": "+12233445567", - "email": "test123@example.com", - "url": "https://www.rudderstack.com/", - "rating": 3, - "plan": "Business", - "contactTitle": "VP of Operations", - "date": "2022-02-25T13:39:21.032Z" - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - { - "description": "Custom field: Invalid location latitude", - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "location", - "to": "Location" - } - ] - }, - "ID": "clickup-1234" - }, - "metadata": { - "jobId": 4 - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { - "location": { - "lat": -100, - "lng": 124, - "formattedAddress": "Gold Coast QLD, Australia" - } - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - } -] diff --git a/test/__tests__/data/clickup_router_output.json b/test/__tests__/data/clickup_router_output.json deleted file mode 100644 index 467bbec962..0000000000 --- a/test/__tests__/data/clickup_router_output.json +++ /dev/null @@ -1,249 +0,0 @@ -[ - { - "batched": false, - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "name": "anonymous page visit" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.clickup.com/api/v2/list/correctListId456/task", - "files": {}, - "headers": { - "Authorization": "pk_123", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "clickup-1234" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "assignees": [61205104, 61217234, 61228575], - "name": "Transformer Testing" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.clickup.com/api/v2/list/correctListId123/task", - "files": {}, - "headers": { - "Authorization": "pk_123", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "clickup-1234" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "custom_fields": [ - { - "id": "a5f5044a-cbad-4caf-bcbb-4cd32bd8db7c", - "value": "c7f9b6f5-cd98-4609-af10-68a8710cc1bf" - }, - { - "id": "22eaffee-ffec-4c3b-bdae-56e69d55eecd", - "value": "7afcb6fb-cec8-41d8-bf0c-039a9db28460" - }, - { - "id": "19d3ac4e-2b1e-4569-b33e-ff86c7d94d6e", - "value": [ - "32c81c1c-cf53-4829-92f5-0f0270d27a45", - "7e24f329-9dd9-4e68-b426-2c70af6f9347" - ] - }, - { - "id": "ea6c1e48-2abf-4328-b228-79c213e147c8", - "value": { - "formatted_address": "Gold Coast QLD, Australia", - "location": { - "lat": -20, - "lng": 124 - } - } - }, - { - "id": "c9b83d91-b979-4b34-b4bd-88bf9cf2b9a6", - "value": "+12233445567" - }, - { - "id": "ebe825fb-92de-41ce-a29c-25018da039b4", - "value": "test123@example.com" - }, - { - "id": "b01b32fd-94d3-43e6-9f31-2c855ff169cd", - "value": "https://www.rudderstack.com/" - }, - { - "id": "f431cda3-a575-4a05-ba8d-583d9b6cb2df", - "value": 3 - }, - { - "id": "4b7a29be-e261-4340-8f3f-e6de838473e5", - "value": "c5032049-8c05-44e9-a000-3a071d457b8f" - }, - { - "id": "4bfebc00-9d4a-40d1-aef8-5a87b610186c", - "value": "VP of Operations" - }, - { - "id": "666f74bf-6d87-41f3-8735-ccf0efe066dd", - "value": 1645796361032 - } - ], - "name": "Product Viewed", - "description": "Creating task with valid custom fields values", - "tags": ["testing", "custom fields"], - "time_estimate": 10800000, - "status": "Ready", - "priority": 1, - "due_date": 1645796361032, - "due_date_time": true, - "start_date": 1642685961032, - "start_date_time": "true", - "notify_all": false - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.clickup.com/api/v2/list/correctListId123/task", - "files": {}, - "headers": { - "Authorization": "pk_123", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "destination": { - "Config": { - "apiToken": "pk_123", - "keyToCustomFieldName": [ - { - "from": "industry", - "to": "Industry" - }, - { - "from": "Payment Status", - "to": "Payment Status" - }, - { - "from": "labelKey", - "to": "Labels" - }, - { - "from": "locationKey", - "to": "Location" - }, - { - "from": "phone", - "to": "Phone Number" - }, - { - "from": "email", - "to": "Email" - }, - { - "from": "url", - "to": "Url" - }, - { - "from": "rating", - "to": "Rating" - }, - { - "from": "plan", - "to": "Plan" - }, - { - "from": "contactTitle", - "to": "Contact Title" - }, - { - "from": "date", - "to": "Date" - } - ], - "listId": "correctListId123" - }, - "ID": "clickup-1234" - }, - "metadata": [ - { - "jobId": 3 - } - ], - "statusCode": 200 - }, - { - "destination": { - "Config": { - "apiToken": "pk_123", - "listId": "correctListId123", - "keyToCustomFieldName": [ - { - "from": "location", - "to": "Location" - } - ] - }, - "ID": "clickup-1234" - }, - "batched": false, - "error": "Invalid value specified for latitude. Latitude must be in range \"[-90, 90]\"", - "metadata": [ - { - "jobId": 4 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400 - } -] diff --git a/test/__tests__/data/criteo_audience_proxy_input.json b/test/__tests__/data/criteo_audience_proxy_input.json deleted file mode 100644 index 2aa292939b..0000000000 --- a/test/__tests__/data/criteo_audience_proxy_input.json +++ /dev/null @@ -1,220 +0,0 @@ -[ - { - "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" - }, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "remove", - "identifierType": "gum", - "identifiers": ["sample_gum3"], - "internalIdentifiers": false, - "gumCallerId": "329739" - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "criteo_audience" - } - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/3485/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "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": {}, - "params": { - "destination": "criteo_audience" - } - }, - { - "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" - }, - "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": {}, - "params": { - "destination": "criteo_audience" - } - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34896/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "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": {}, - "params": { - "destination": "criteo_audience" - } - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34897/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "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": {}, - "params": { - "destination": "criteo_audience" - } - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34898/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "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": {}, - "params": { - "destination": "criteo_audience" - } - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34899/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "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": {}, - "params": { - "destination": "criteo_audience" - } - } -] diff --git a/test/__tests__/data/criteo_audience_proxy_output.json b/test/__tests__/data/criteo_audience_proxy_output.json deleted file mode 100644 index a2d33fbb9a..0000000000 --- a/test/__tests__/data/criteo_audience_proxy_output.json +++ /dev/null @@ -1,167 +0,0 @@ -[ - { - "output": { - "status": 200, - "message": "Request Processed Successfully", - "destinationResponse": { - "response": "", - "status": 200 - } - } - }, - { - "output": { - "status": 401, - "authErrorCategory": "REFRESH_TOKEN", - "destinationResponse": { - "errors": [ - { - "traceIdentifier": "80a1a0ba3981b04da847d05700752c77", - "type": "authorization", - "code": "authorization-token-expired", - "instance": "/2022-10/audiences/123/contactlist", - "title": "The authorization token has expired" - } - ] - }, - "message": "The authorization token has expired during criteo_audience response transformation", - "statTags": { - "destType": "CRITEO_AUDIENCE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 401, - "authErrorCategory": "REFRESH_TOKEN", - "destinationResponse": { - "errors": [ - { - "traceIdentifier": "80a1a0ba3981b04da847d05700752c77", - "type": "authorization", - "code": "authorization-token-invalid", - "instance": "/2022-10/audiences/123/contactlist", - "title": "The authorization header is invalid" - } - ] - }, - "message": "The authorization header is invalid during criteo_audience response transformation", - "statTags": { - "destType": "CRITEO_AUDIENCE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "message": "AudienceId is Invalid. Please Provide Valid AudienceId", - "destinationResponse": { - "response": { - "errors": [ - { - "code": "audience-invalid", - "traceIdentifier": "80a1a0ba3981b04da847d05700752c77", - "type": "authorization" - } - ] - }, - "status": 404 - }, - "statTags": { - "destType": "CRITEO_AUDIENCE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "meta": "instrumentation", - "module": "destination" - }, - "status": 400 - } - }, - { - "output": { - "destinationResponse": { - "response": { - "errors": [ - { - "code": "audience-invalid", - "traceIdentifier": "80a1a0ba3981b04da847d05700752c77", - "type": "authorization" - } - ] - }, - "status": 503 - }, - "message": "Request Failed: during criteo_audience response transformation (Retryable)", - "statTags": { - "destType": "CRITEO_AUDIENCE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "feature": "dataDelivery", - "implementation": "native", - "errorType": "retryable", - "module": "destination" - }, - "status": 500 - } - }, - { - "output": { - "destinationResponse": { - "response": {}, - "status": 429 - }, - "message": "Request Failed: during criteo_audience response transformation - due to Request Limit exceeded, (Throttled)", - "statTags": { - "destType": "CRITEO_AUDIENCE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "throttled", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - }, - "status": 429 - } - }, - { - "output": { - "destinationResponse": { - "response": { - "message": "unknown error" - }, - "status": 410 - }, - "message": "Request Failed: during criteo_audience response transformation with status \"410\" due to \"{\"message\":\"unknown error\"}\", (Aborted) ", - "statTags": { - "destType": "CRITEO_AUDIENCE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - }, - "status": 400 - } - } -] diff --git a/test/__tests__/data/criteo_audience_router_rETL_input.json b/test/__tests__/data/criteo_audience_router_rETL_input.json deleted file mode 100644 index 1f79dd5436..0000000000 --- a/test/__tests__/data/criteo_audience_router_rETL_input.json +++ /dev/null @@ -1,124 +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": { - "externalId": [ - { - "type": "CRITEO_AUDIENCE-23848494844100489", - "identifierType": "EMAIL" - } - ], - "mappedToDestination": "true", - "sources": { - "job_run_id": "cgiiurt8um7k7n5dq480", - "task_run_id": "cgiiurt8um7k7n5dq48g", - "job_id": "2MUWghI7u85n91dd1qzGyswpZan", - "version": "895/merge" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceType": "email", - "warehouse-adAccountId": "123" - }, - "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": { - "externalId": [ - { - "type": "CRITEO_AUDIENCE-23848494844100489", - "identifierType": "EMAIL" - } - ], - "mappedToDestination": "true", - "sources": { - "job_run_id": "cgiiurt8um7k7n5dq480", - "task_run_id": "cgiiurt8um7k7n5dq48g", - "job_id": "2MUWghI7u85n91dd1qzGyswpZan", - "version": "895/merge" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } -] diff --git a/test/__tests__/data/criteo_audience_router_rETL_output.json b/test/__tests__/data/criteo_audience_router_rETL_output.json deleted file mode 100644 index 0a03beb764..0000000000 --- a/test/__tests__/data/criteo_audience_router_rETL_output.json +++ /dev/null @@ -1,106 +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/23848494844100489/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", - "warehouse-adAccountId": "123", - "audienceType": "email" - }, - "ID": "iwehr83843" - } - } -] diff --git a/test/__tests__/data/custify.json b/test/__tests__/data/custify.json deleted file mode 100644 index 7a83a6a0c3..0000000000 --- a/test/__tests__/data/custify.json +++ /dev/null @@ -1,511 +0,0 @@ -[ - { - "description": "Identify Call with all traits and adding to company", - "input": { - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": false - }, - "ID": "custify-1234" - }, - "message": { - "type": "identify", - "userId": "user_1234", - "context": { - "traits": { - "email": "user111@gmail.com", - "firstName": "New", - "lastName": "User", - "phone": 9830311522, - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "custom_prop4": { "test": "test" }, - "custom_prop5": [1, 3, 4], - "createdAt": "2022-04-27T13:56:13.012Z", - "company": { - "id": "company_123" - } - } - }, - "timestamp": "2022-04-27T13:56:13.012Z", - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.custify.com/people", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apiKey_key_test_001", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "user_1234", - "email": "user111@gmail.com", - "phone": 9830311522, - "session_count": 23, - "unsubscribed_from_emails": false, - "unsubscribed_from_calls": false, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_attributes": { - "firstName": "New", - "lastName": "User", - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "createdAt": "2022-04-27T13:56:13.012Z" - }, - "name": "New User", - "companies": [ - { - "company_id": "company_123", - "remove": false - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "user_1234" - } - }, - { - "description": "Identify Call removing the user from company", - "input": { - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": false - }, - "ID": "custify-1234" - }, - "message": { - "type": "identify", - "userId": "user_1234", - "context": { - "traits": { - "email": "user111@gmail.com", - "firstName": "New", - "lastName": "User", - "phone": 9830311522, - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "custom_prop4": { "test": "test" }, - "custom_prop5": [1, 3, 4], - "createdAt": "2022-04-27T13:56:13.012Z", - "company": { - "id": "company_123", - "remove": true - } - } - }, - "timestamp": "2022-04-27T13:56:13.012Z", - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.custify.com/people", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apiKey_key_test_001", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "user_1234", - "email": "user111@gmail.com", - "phone": 9830311522, - "session_count": 23, - "unsubscribed_from_emails": false, - "unsubscribed_from_calls": false, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_attributes": { - "firstName": "New", - "lastName": "User", - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "createdAt": "2022-04-27T13:56:13.012Z" - }, - "name": "New User", - "companies": [ - { - "company_id": "company_123", - "remove": true - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "user_1234" - } - }, - { - "description": "Identify Call without userId and email and anoymousId", - "input": { - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": false - }, - "ID": "custify-1234" - }, - "message": { - "type": "identify", - "context": { - "traits": { - "firstName": "New", - "lastName": "User", - "phone": 9830311522, - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "custom_prop4": { "test": "test" }, - "custom_prop5": [1, 3, 4], - "createdAt": "2022-04-27T13:56:13.012Z", - "company": { - "id": "company_123", - "remove": true - } - } - }, - "timestamp": "2022-04-27T13:56:13.012Z", - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04" - } - }, - "output": { - "error": "Email or userId is mandatory" - } - }, - { - "description": "Identify Call without userId and email and sendAnonymous is false", - "input": { - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": false - }, - "ID": "custify-1234" - }, - "message": { - "type": "identify", - "context": { - "traits": { - "firstName": "New", - "lastName": "User", - "phone": 9830311522, - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "custom_prop4": { "test": "test" }, - "custom_prop5": [1, 3, 4], - "createdAt": "2022-04-27T13:56:13.012Z", - "company": { - "id": "company_123", - "remove": true - } - } - }, - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "timestamp": "2022-04-27T13:56:13.012Z", - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04" - } - }, - "output": { - "error": "Email or userId is mandatory" - } - }, - { - "description": "Identify Call without userId and email and sendAnonymous is true", - "input": { - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": true - }, - "ID": "custify-1234" - }, - "message": { - "type": "identify", - "context": { - "traits": { - "firstName": "New", - "lastName": "User", - "phone": 9830311522, - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "custom_prop4": { "test": "test" }, - "custom_prop5": [1, 3, 4], - "createdAt": "2022-04-27T13:56:13.012Z", - "company": { - "id": "company_123", - "remove": true - } - } - }, - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "timestamp": "2022-04-27T13:56:13.012Z", - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.custify.com/people", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apiKey_key_test_001", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "phone": 9830311522, - "session_count": 23, - "unsubscribed_from_emails": false, - "unsubscribed_from_calls": false, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_attributes": { - "firstName": "New", - "lastName": "User", - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "createdAt": "2022-04-27T13:56:13.012Z" - }, - "user_id": "bf412108-0357-4330-b119-7305e767823c", - "name": "New User", - "companies": [ - { - "company_id": "company_123", - "remove": true - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "bf412108-0357-4330-b119-7305e767823c" - } - }, - { - "description": "Track call with all properties", - "input": { - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": false - }, - "ID": "custify-1234" - }, - "message": { - "type": "track", - "event": "Order Completed Version 2", - "sentAt": "2021-08-26T14:16:47.321Z", - "userId": "user_111", - "context": { - "library": { - "name": "analytics-node", - "version": "1.0.3" - }, - "traits": { - "email": "user111@gmail.com" - }, - "page": { - "url": "https://www.website.com/product/path" - } - }, - "rudderId": "70612f39-0607-45bb-8236-bf0995fde4fa", - "_metadata": { - "nodeVersion": "10.24.1" - }, - "messageId": "node-84952e4eb9c6debbda735c49d08a8b31-fcbfed6a-38cf-42c5-881c-f590f59311b1", - "properties": { - "product": "Cube", - "revenue": 9002, - "organization_id": "company_123" - }, - "originalTimestamp": "2021-08-26T14:16:47.317Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.custify.com/event", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apiKey_key_test_001", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "user_111", - "email": "user111@gmail.com", - "name": "Order Completed Version 2", - "created_at": "2021-08-26T14:16:47.317Z", - "company_id": "company_123", - "metadata": { - "product": "Cube", - "revenue": 9002, - "organization_id": "company_123", - "user_id": "user_111" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "user_111" - } - }, - { - "description": "Group call with all fields success scenario", - "input": { - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": false - }, - "ID": "custify-1234" - }, - "message": { - "type": "group", - "userId": "user_111", - "groupId": "company_222", - "traits": { - "name": "Absolute Company", - "industry": " Absolute", - "employees": 121, - "size": 100, - "website": "www.rudder.com", - "plan": "GOLD", - "monthly_revenue": 8000, - "churned": false, - "test_att1": "test_att_val1" - }, - "context": { - "traits": { - "firstName": "Absolute", - "lastName": "User", - "phone": 9830311522, - "session_count": 23, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "custom_prop4": { - "test": "test" - }, - "custom_prop5": [1, 3, 4], - "createdAt": "2022-04-27T13:56:13.012Z" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-01-21T00:21:34.208Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.custify.com/people", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apiKey_key_test_001", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "user_111", - "phone": 9830311522, - "signed_up_at": "2020-01-21T00:21:34.208Z", - "custom_attributes": { - "firstName": "Absolute", - "lastName": "User", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "createdAt": "2022-04-27T13:56:13.012Z" - }, - "name": "Absolute User", - "companies": [ - { - "company_id": "company_222", - "remove": false - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "user_111" - } - } -] diff --git a/test/__tests__/data/custify_router_input.json b/test/__tests__/data/custify_router_input.json deleted file mode 100644 index 23efc4bdad..0000000000 --- a/test/__tests__/data/custify_router_input.json +++ /dev/null @@ -1,99 +0,0 @@ -[ - { - "description": "Group callw with all parameters", - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": false - }, - "ID": "custify-1234" - }, - "metadata": { - "jobId": 1 - }, - "message": { - "type": "group", - "userId": "user_111", - "groupId": "company_222", - "traits": { - "name": "Absolute Company", - "industry": " Absolute", - "employees": 121, - "size": 100, - "website": "www.rudder.com", - "plan": "GOLD", - "monthly_revenue": 8000, - "churned": false, - "test_att1": "test_att_val1" - }, - "context": { - "traits": { - "firstName": "Absolute", - "lastName": "User", - "phone": 9830311522, - "session_count": 23, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "custom_prop4": { - "test": "test" - }, - "custom_prop5": [1, 3, 4], - "createdAt": "2022-04-27T13:56:13.012Z" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-01-21T00:21:34.208Z" - } - }, - { - "description": "Identify with all parameters", - "destination": { - "Config": { - "apiKeyToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "custify-1234" - }, - "metadata": { - "jobId": 2 - }, - "message": { - "type": "identify", - "userId": "user_1234", - "context": { - "traits": { - "email": "user111@gmail.com", - "firstName": "New", - "lastName": "User", - "phone": 9830311522, - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "custom_prop4": { "test": "test" }, - "custom_prop5": [1, 3, 4], - "createdAt": "2022-04-27T13:56:13.012Z", - "company": { - "id": "company_123" - } - } - }, - "timestamp": "2022-04-27T13:56:13.012Z", - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c" - } -] diff --git a/test/__tests__/data/custify_router_output.json b/test/__tests__/data/custify_router_output.json deleted file mode 100644 index 17a129a4cc..0000000000 --- a/test/__tests__/data/custify_router_output.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.custify.com/people", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apiKey_key_test_001", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "user_111", - "phone": 9830311522, - "signed_up_at": "2020-01-21T00:21:34.208Z", - "custom_attributes": { - "firstName": "Absolute", - "lastName": "User", - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "createdAt": "2022-04-27T13:56:13.012Z" - }, - "name": "Absolute User", - "companies": [ - { - "company_id": "company_222", - "remove": false - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "user_111" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "apiKey_key_test_001", - "sendAnonymousId": false - }, - "ID": "custify-1234" - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.custify.com/people", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "user_1234", - "email": "user111@gmail.com", - "phone": 9830311522, - "session_count": 23, - "unsubscribed_from_emails": false, - "unsubscribed_from_calls": false, - "signed_up_at": "2022-04-27T13:56:13.012Z", - "custom_attributes": { - "firstName": "New", - "lastName": "User", - "sessionCount": 23, - "unsubscribedFromEmails": false, - "unsubscribedFromCalls": false, - "custom_prop1": "custom_value1", - "custom_prop2": 123, - "custom_prop3": false, - "createdAt": "2022-04-27T13:56:13.012Z" - }, - "name": "New User", - "companies": [ - { - "company_id": "company_123", - "remove": false - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "user_1234" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKeyToken": "pk_123", - "listId": "correctListId123" - }, - "ID": "custify-1234" - } - } -] diff --git a/test/__tests__/data/dcm_floodlight_cdk_output.json b/test/__tests__/data/dcm_floodlight_cdk_output.json deleted file mode 100644 index 683e8bc791..0000000000 --- a/test/__tests__/data/dcm_floodlight_cdk_output.json +++ /dev/null @@ -1,398 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=22448662;cat=signu01;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=rudder-v1;u2=rudder-v2", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=signu0;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=rudder-v1;u2=akash-v2", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=2;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=Pur0;type=conv111;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=rudder2;u2=akash2;u3=friendlyName2;u4=name2", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "advertisingId is required", - "statTags": { - "stage": "cdk", - "scope": "transformation", - "meta": "instrumentation", - "destination": "dcm_floodlight" - } - }, - { - "statusCode": 400, - "error": "track:: userAgent is required", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=3;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=akash-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=3;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "track:: Conversion event not found", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=1;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=6;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=999999;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=rudder-v1;u2=akash-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;u1=rudder-v1;u2=akash-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;u1=100;u2=5987", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=1;tfua=1;npa=1;u1=rudder-v1;u2=akash-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "COPPA: valid parameters are [1|true] or [0|false]", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "GDPR: valid parameters are [1|true] or [0|false]", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "npa: valid parameters are [1|true] or [0|false]", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "dc_lat: valid parameters are [1|true] or [0|false]", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "page:: Conversion event not found", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=signu0;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=22448662;cat=signu01;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=Pur0;type=conv111;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=0;u2=akash2;u4=1234", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=signu0;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=Pur0;type=conv111;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=0;u2=akash2;u4=traits-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/dcm_floodlight_input.json b/test/__tests__/data/dcm_floodlight_input.json deleted file mode 100644 index 28c1039742..0000000000 --- a/test/__tests__/data/dcm_floodlight_input.json +++ /dev/null @@ -1,3664 +0,0 @@ -[ - { - "destination": { - "Config": { - "advertiserId": "22448662", - "activityTag": "", - "groupTag": "", - "conversionEvents": [ - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "rudder2", - "to": "2" - } - ], - "eventName": "Product viewed", - "floodlightActivityTag": "signu01", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "signu01", - "floodlightGroupTag": "conv02", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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 viewed", - "properties": { - "orderId": 111, - "quantity": 2, - "revenue": 800, - "rudder1": "rudder-v1", - "rudder2": "rudder-v2" - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "activityTag": "", - "advertiserId": "12649566", - "conversionEvents": [ - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "akash2", - "to": "2" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "check0", - "floodlightGroupTag": "conv00", - "salesTag": true - } - ], - "groupTag": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Sign up Completed", - "properties": { - "orderId": 111, - "quantity": 2, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "activityTag": "", - "advertiserId": "12649566", - "conversionEvents": [ - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "akash2", - "to": "2" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "check0", - "floodlightGroupTag": "conv00", - "salesTag": true - } - ], - "groupTag": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Order Complete", - "properties": { - "orderId": 111, - "quantity": 2, - "revenue": 800, - "rudder1": "rudder-v1", - "akash2": "akash-v2" - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "activityTag": "", - "advertiserId": "12649566", - "conversionEvents": [ - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "akash2", - "to": "2" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "check0", - "floodlightGroupTag": "conv00", - "salesTag": true - } - ], - "groupTag": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Checkout Started", - "properties": { - "orderId": 111, - "quantity": 2, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "activityTag": "", - "advertiserId": "12649566", - "conversionEvents": [ - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "akash1", - "to": "2" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "check0", - "floodlightGroupTag": "conv00", - "salesTag": true - }, - { - "customVariables": [ - { - "from": "rudder2", - "to": "1" - }, - { - "from": "akash2", - "to": "2" - }, - { - "from": "friendlyName2", - "to": "3" - }, - { - "from": "name2", - "to": "4" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ], - "groupTag": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Purchase", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "rudder2": "rudder2", - "akash2": "akash2", - "friendlyName2": "friendlyName2", - "name2": "name2" - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "activityTag": "", - "advertiserId": "12649566", - "conversionEvents": [ - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "akash1", - "to": "2" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "check0", - "floodlightGroupTag": "conv00", - "salesTag": true - }, - { - "customVariables": [ - { - "from": "rudder2", - "to": "1" - }, - { - "from": "akash2", - "to": "2" - }, - { - "from": "friendlyName2", - "to": "3" - }, - { - "from": "name2", - "to": "4" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ], - "groupTag": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "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 - }, - "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": "Sign up Completed", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ] - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "activityTag": "", - "advertiserId": "12649566", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "akash1", - "to": "2" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "check0", - "floodlightGroupTag": "conv00", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ], - "groupTag": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - } - }, - "event": "Sign up Completed", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ] - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "akash1" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Checkout Started", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "akash1": "akash-v1" - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Checkout Started", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ] - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Sample event", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ] - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Checkout Started", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - } - ] - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Checkout Started", - "properties": { - "orderId": 111, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 4, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ] - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Checkout Started", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "OrDeR complete", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "rudder1": "rudder-v1", - "akash1": "akash-v1" - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Order complete", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "rudder1": "rudder-v1", - "akash1": "akash-v1" - }, - "integrations": { - "All": true, - "DCM Floodlight": {} - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Order complete", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "rudder1": 100, - "akash1": 5987 - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "T0T0T072-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 - }, - "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": "Order complete", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "rudder1": "rudder-v1", - "akash1": "akash-v1" - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": 1, - "GDPR": 1, - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "T0T0T072-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 - }, - "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": "Order complete", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "Yes", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "T0T0T072-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 - }, - "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": "Order complete", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "Yes", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "T0T0T072-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 - }, - "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": "Order complete", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": "No" - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "Yes", - "advertisingId": "T0T0T072-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 - }, - "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": "Order complete", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": "true" - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "page", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "Yes", - "advertisingId": "T0T0T072-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 - }, - "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" - }, - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": "true" - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Viewed Sign up Completed Page", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "page", - "channel": "web", - "name": "Sign up Completed", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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" - }, - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": "true" - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "22448662", - "activityTag": "", - "groupTag": "", - "conversionEvents": [ - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "rudder2", - "to": "2" - } - ], - "eventName": "Product viewed", - "floodlightActivityTag": "signu01", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "signu01", - "floodlightGroupTag": "conv02", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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 viewed", - "properties": { - "orderId": 111, - "quantity": 2, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "activityTag": "", - "advertiserId": "12649566", - "conversionEvents": [ - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "rudder1", - "to": "1" - }, - { - "from": "akash1", - "to": "2" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "from": "", - "to": "" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "check0", - "floodlightGroupTag": "conv00", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ], - "groupTag": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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": "Purchase", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "rudder2": 0, - "akash2": "akash2", - "friendlyName2": false, - "name2": "1234" - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "advertiserId": "12649566", - "activityTag": "check0", - "groupTag": "conv00", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Viewed Page", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "eventName": "Checkout Started", - "floodlightActivityTag": "", - "floodlightGroupTag": "", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ] - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "page", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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 - }, - "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" - }, - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800 - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": "true" - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - }, - { - "destination": { - "Config": { - "activityTag": "", - "advertiserId": "12649566", - "conversionEvents": [ - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Sign up Completed", - "floodlightActivityTag": "signu0", - "floodlightGroupTag": "conv01", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder1" - }, - { - "to": "2", - "from": "akash1" - } - ], - "eventName": "Order Complete", - "floodlightActivityTag": "order0", - "floodlightGroupTag": "conv000", - "salesTag": false - }, - { - "customVariables": [ - { - "to": "", - "from": "" - } - ], - "eventName": "Checkout Started", - "floodlightActivityTag": "check0", - "floodlightGroupTag": "conv00", - "salesTag": true - }, - { - "customVariables": [ - { - "to": "1", - "from": "rudder2" - }, - { - "to": "2", - "from": "akash2" - }, - { - "to": "3", - "from": "friendlyName2" - }, - { - "to": "4", - "from": "name2" - } - ], - "eventName": "Purchase", - "floodlightActivityTag": "Pur0", - "floodlightGroupTag": "conv111", - "salesTag": false - } - ], - "groupTag": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - }, - "message": { - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "1234", - "type": "track", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "true", - "advertisingId": "T0T0T072-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, - "brand": "Google2" - }, - "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": { - "name2": "traits-v1" - }, - "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": "Purchase", - "properties": { - "orderId": 111, - "quantity": 999999, - "revenue": 800, - "products": [ - { - "sku": "45790-32", - "url": "https://www.example.com/product/path", - "name": "Monopoly: 3rd Edition", - "price": 19, - "category": "Games", - "quantity": 1, - "image_url": "https:///www.example.com/product/path.jpg", - "product_id": "507f1f77bcf86cd799439011" - }, - { - "sku": "46493-32", - "name": "Uno Card Game", - "price": 3, - "category": "Games", - "quantity": 2, - "product_id": "505bd76785ebb509fc183733" - } - ], - "rudder2": "0", - "akash2": "akash2", - "friendlyName2": false - }, - "integrations": { - "All": true, - "DCM Floodlight": { - "COPPA": "false", - "GDPR": "1", - "npa": true - } - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30" - } - } -] diff --git a/test/__tests__/data/dcm_floodlight_output.json b/test/__tests__/data/dcm_floodlight_output.json deleted file mode 100644 index baad101e7b..0000000000 --- a/test/__tests__/data/dcm_floodlight_output.json +++ /dev/null @@ -1,398 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=22448662;cat=signu01;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=rudder-v1;u2=rudder-v2", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=signu0;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=rudder-v1;u2=akash-v2", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=2;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=Pur0;type=conv111;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=rudder2;u2=akash2;u3=friendlyName2;u4=name2", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Missing required value from \"context.device.advertisingId\"", - "statTags": { - "stage": "cdk", - "scope": "transformation", - "meta": "instrumentation", - "destination": "dcm_floodlight" - } - }, - { - "statusCode": 400, - "error": "track:: userAgent is required", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=3;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=akash-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=3;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "track:: Conversion event not found", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=1;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;cost=800;dc_lat=1;qty=6;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=check0;type=conv00;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=111;qty=999999;cost=800;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=rudder-v1;u2=akash-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;u1=rudder-v1;u2=akash-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;u1=100;u2=5987", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=order0;type=conv000;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=1;tfua=1;npa=1;u1=rudder-v1;u2=akash-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "COPPA: valid parameters are [1|true] or [0|false]", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "GDPR: valid parameters are [1|true] or [0|false]", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "npa: valid parameters are [1|true] or [0|false]", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "dc_lat: valid parameters are [1|true] or [0|false]", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "page:: Conversion event not found", - "statTags": { - "destination": "dcm_floodlight", - "stage": "cdk", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=signu0;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=22448662;cat=signu01;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=Pur0;type=conv111;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=0;u2=akash2;u4=1234", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=signu0;type=conv01;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://ad.doubleclick.net/ddm/activity/src=12649566;cat=Pur0;type=conv111;dc_rdid=T0T0T072-5e28-45a1-9eda-ce22a3e36d1a;ord=ea5cfab2-3961-4d8a-8187-3d1858c90a9f;dc_lat=1;tag_for_child_directed_treatment=0;tfua=1;npa=1;u1=0;u2=akash2;u4=traits-v1", - "headers": { - "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" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/delighted_input.json b/test/__tests__/data/delighted_input.json deleted file mode 100644 index fa8b118387..0000000000 --- a/test/__tests__/data/delighted_input.json +++ /dev/null @@ -1,392 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "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", - "type": "identify", - "userId": "abc@123.com", - "traits": { - "firstName": "James", - "lastName": "Doe", - "phone": "+91237416221", - "last_sent_at": "1626698350" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "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", - "type": "alias", - "previousId": "123@abc.com", - "userId": "abc@123.com", - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "Product Reviewed" }] - } - }, - "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", - "type": "track", - "userId": "identified_user@email.com", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more." - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "Product Reviewed" }] - } - }, - "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", - "type": "track", - "userId": "unidentified_user@email.com", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more." - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "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", - "type": "track", - "userId": "identified_user@email.com", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more." - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "Product Reviewed" }] - } - }, - "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", - "type": "track", - "anonymousId": "identified_user@email.com", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more." - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "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", - "type": "alias", - "previousId": "123@abc.com", - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "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", - "externalId": [{ "id": "sms", "type": "delightedChannelType" }], - "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", - "type": "alias", - "userId": "abc@123.com", - "previousId": "123@abc.com", - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "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", - "externalId": [{ "id": "sms", "type": "delightedChannelType" }], - "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", - "type": "identify", - "userId": "abc@123.com", - "traits": { - "firstName": "James", - "lastName": "Doe", - "phone": "+91237416221", - "last_sent_at": "1626698350" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "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", - "externalId": [{ "id": "sms", "type": "delightedChannelType" }], - "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", - "type": "identify", - "userId": "+911234567890", - "traits": { - "firstName": "James", - "lastName": "Doe", - "last_sent_at": "1626698350" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - } -] diff --git a/test/__tests__/data/delighted_output.json b/test/__tests__/data/delighted_output.json deleted file mode 100644 index fc95d51bac..0000000000 --- a/test/__tests__/data/delighted_output.json +++ /dev/null @@ -1,121 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.delighted.com/v1/people.json", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "email": "abc@123.com", - "send": false, - "channel": "email", - "delay": 0, - "name": "James Doe", - "phone_number": "+91237416221", - "last_sent_at": "1626698350" - } - }, - "files": {} - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "email": "123@abc.com", - "email_update": "abc@123.com" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.delighted.com/v1/people.json" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more." - }, - "send": true, - "channel": "email", - "delay": 0, - "email": "identified_user@email.com" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.delighted.com/v1/people.json" - }, - { - "error": "user unidentified_user@email.com doesn't exist" - }, - { - "error": "Event is not configured on your Rudderstack Dashboard" - }, - { - "error": "userId is required." - }, - { - "error": "userId is required." - }, - { - "error": "User Id and Previous Id should be of same type i.e. phone/sms" - }, - { - "error": "Channel is set to sms. Enter correct phone number i.e. E.164" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.delighted.com/v1/people.json", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "send": false, - "channel": "sms", - "delay": 0, - "name": "James Doe", - "phone_number": "+911234567890", - "last_sent_at": "1626698350" - } - }, - "files": {} - } -] diff --git a/test/__tests__/data/delighted_router_input.json b/test/__tests__/data/delighted_router_input.json deleted file mode 100644 index 4c39370e9e..0000000000 --- a/test/__tests__/data/delighted_router_input.json +++ /dev/null @@ -1,83 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "metadata": { - "jobId": 1 - }, - "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", - "type": "identify", - "userId": "abc@123.com", - "traits": { - "firstName": "James", - "lastName": "Doe", - "phone": "+92374162212", - "last_sent_at": "1626698350" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - }, - "metadata": { - "jobId": 2 - }, - "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", - "type": "alias", - "previousId": "123@abc.com", - "userId": "abc@123.com", - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - } -] diff --git a/test/__tests__/data/delighted_router_output.json b/test/__tests__/data/delighted_router_output.json deleted file mode 100644 index 40b770a3bd..0000000000 --- a/test/__tests__/data/delighted_router_output.json +++ /dev/null @@ -1,83 +0,0 @@ -[ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "email": "abc@123.com", - "send": false, - "channel": "email", - "delay": 0, - "last_sent_at": "1626698350", - "name": "James Doe", - "phone_number": "+92374162212" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.delighted.com/v1/people.json" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "email": "123@abc.com", - "email_update": "abc@123.com" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.delighted.com/v1/people.json" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "channel": "email", - "delay": 0, - "eventNamesSettings": [{ "event": "" }] - } - } - } -] diff --git a/test/__tests__/data/drip_input.json b/test/__tests__/data/drip_input.json deleted file mode 100644 index 17ad0ce376..0000000000 --- a/test/__tests__/data/drip_input.json +++ /dev/null @@ -1,720 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "", - "enableUserCreation": 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 } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "type": "identify", - "traits": { - "email": "test1@gmail.com", - "firstName": "James", - "lastName": "Doe", - "phone": "237416221", - "customFields": { - "filter1": "filterval1" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "", - "enableUserCreation": 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 } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "type": "identify", - "traits": { - "email": "12324adfgs", - "firstName": "James", - "lastName": "Doe", - "phone": "237416221", - "customFields": { - "filter1": "filterval1" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "", - "enableUserCreation": 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 } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "type": "identify", - "traits": { - "email": "test1@gmail.com", - "name": "James Doe", - "phone": "237416221", - "filter1": "filterval1", - "filter2": "filterval2" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": 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 } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "type": "identify", - "traits": { - "email": "test1@gmail.com", - "name": "James Doe", - "phone": "237416221", - "filter1": "filterval1", - "filter2": "filterval2", - "tags": ["tag1", "tag2"], - "startingEmailIndex": 1 - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": 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 } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "type": "track", - "event": "testing", - "properties": { - "email": "user1@gmail.com", - "customFields": { - "field1": "val1" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": 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 } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "type": "track", - "event": "", - "properties": { - "email": "user1@gmail.com", - "custom_fields": { - "field1": "val1" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": false - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "email": "identified_user@gmail.com", - "customFields": { - "field1": "val1" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": false - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "email": "identified_user@gmail.com", - "field1": "val1" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": false - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "email": "unidentified_user@gmail.com", - "field1": "val1" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": false - } - }, - "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", - "type": "track", - "event": "checkout started", - "properties": { - "email": "identified_user@gmail.com", - "field1": "val1", - "affiliation": "my_custom_order", - "order_id": "456445746" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": false - } - }, - "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", - "type": "track", - "event": "checkout started", - "properties": { - "email": "identified_user@gmail.com", - "field1": "val1", - "affiliation": "my_custom_order", - "order_id": "456445746", - "products": [ - { - "name": "shirt", - "price": 11.16 - } - ] - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": false - } - }, - "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", - "type": "track", - "event": "checkout", - "properties": { - "email": "identified_user@gmail.com", - "field1": "val1", - "customFields": { - "field2": "val2" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "", - "enableUserCreation": true - } - }, - "message": { - "type": "identify", - "event": "identify", - "userId": "user@1", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "13" - }, - "app": { - "name": "rudderstack", - "build": "5425", - "version": "2.4.1" - }, - "device": { - "id": "8b048b94cbec4fcf", - "name": "o1q", - "type": "Android", - "model": "SM-G991U", - "manufacturer": "samsung" - }, - "locale": "en-US", - "traits": { - "id": "ruddertest@gmail.com", - "email": "ruddertest@gmail.com", - "title": "Social Impact Program Manager", - "skills": [ - { - "id": 134, - "name": "Business Development", - "tagGroupId": 2, - "parentTagId": 134, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 96, - "name": "Communications", - "tagGroupId": 2, - "parentTagId": 96, - "huddleVisible": true, - "onboardVisible": true - }, - { - "id": 489, - "name": "Construction", - "tagGroupId": 2, - "parentTagId": 489, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 671, - "name": "Data Analysis", - "tagGroupId": 2, - "parentTagId": 671, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 676, - "name": "Engineering: Mechanical", - "tagGroupId": 2, - "parentTagId": 676, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 189, - "name": "Operations", - "tagGroupId": 2, - "parentTagId": 189, - "huddleVisible": true, - "onboardVisible": true - }, - { - "id": 194, - "name": "Product Management", - "tagGroupId": 2, - "parentTagId": 194, - "huddleVisible": true, - "onboardVisible": true - }, - { - "id": 195, - "name": "Program Management", - "tagGroupId": 2, - "parentTagId": 195, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 199, - "name": "R&D", - "tagGroupId": 2, - "parentTagId": 199, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 102, - "name": "Sales", - "tagGroupId": 2, - "parentTagId": 102, - "huddleVisible": true, - "onboardVisible": true - } - ], - "userId": "ruddertest@gmail.com", - "address": "Chicago, IL, USA", - "industry": "Education", - "lastName": "test", - "lastname": "test", - "verified": false, - "firstName": "rudder", - "firstname": "rudder", - "interests": [ - { - "id": 649, - "name": "Adaptation", - "tagGroupId": 4, - "parentTagId": 745, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 663, - "name": "Carbon removal and sequestration", - "tagGroupId": 4, - "parentTagId": 761, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 664, - "name": "Clean Energy and Energy Efficiency", - "tagGroupId": 4, - "parentTagId": 259, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 654, - "name": "Climate Science and Earth Systems", - "tagGroupId": 4, - "parentTagId": 744, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 650, - "name": "Corporate Sustainability", - "tagGroupId": 4, - "parentTagId": 650, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 651, - "name": "Finance & Risk", - "tagGroupId": 4, - "parentTagId": 651, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 652, - "name": "Food and Agriculture", - "tagGroupId": 4, - "parentTagId": 652, - "huddleVisible": false, - "onboardVisible": false - }, - { - "id": 665, - "name": "Transport", - "tagGroupId": 4, - "parentTagId": 665, - "huddleVisible": false, - "onboardVisible": false - } - ], - "isDeleted": false, - "anonymousId": "8b048b94cbec4fcf", - "jobFunction": "Program manager", - "reminderType": 1, - "jobPreferences": { - "motivationStr": "I am looking for a job in climate change.,I want to learn about climate change.,I’d like to connect with other climate enthusiasts.", - "searchUrgency": "As soon as possible", - "maxCompensation": 0, - "minCompensation": 0 - }, - "visibilityType": "public", - "Linkedin-Signin": true, - "hubbleOnboarded": false, - "sharePreference": false, - "notificationType": 0, - "shortDescription": "Social Impact Program Manager", - "jobProfileComplete": false, - "noOfMonthExperience": 0, - "onboarding_completed": "Yes" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.8.1" - }, - "timezone": "America/Chicago", - "sessionId": 1681096824, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 13; SM-G991U Build/TP1A.220624.014)" - }, - "rudderId": "f701966c-5568-4500-92ba-4e9023c8fe31", - "messageId": "77b53247-177f-4ca3-a6b4-aa7558fec280", - "request_ip": "75.209.176.135", - "anonymousId": "8b048b94cbec4fcf", - "integrations": { - "All": true - } - } - } -] diff --git a/test/__tests__/data/drip_output.json b/test/__tests__/data/drip_output.json deleted file mode 100644 index dbf9cf6a75..0000000000 --- a/test/__tests__/data/drip_output.json +++ /dev/null @@ -1,319 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v2/1809802/subscribers", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "subscribers": [ - { - "email": "test1@gmail.com", - "first_name": "James", - "last_name": "Doe", - "phone": "237416221", - "ip_address": "0.0.0.0", - "custom_fields": { - "filter1": "filterval1" - } - } - ] - } - }, - "files": {} - }, - { - "error": "dripId or email is required for the call" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v2/1809802/subscribers", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "subscribers": [ - { - "email": "test1@gmail.com", - "first_name": "James", - "last_name": "Doe", - "phone": "237416221", - "ip_address": "0.0.0.0", - "custom_fields": { - "filter1": "filterval1", - "filter2": "filterval2" - } - } - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v2/1809802/campaigns/915194776/subscribers", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "subscribers": [ - { - "email": "test1@gmail.com", - "starting_email_index": 1 - } - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v2/1809802/events", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "email": "user1@gmail.com", - "properties": { - "field1": "val1" - }, - "action": "testing", - "occurred_at": "2019-10-14T09:03:17.562Z" - } - ] - } - }, - "files": {} - }, - { - "error": "Event name is required" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v2/1809802/events", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "email": "identified_user@gmail.com", - "properties": { - "field1": "val1" - }, - "action": "testing", - "occurred_at": "2019-10-14T09:03:17.562Z" - } - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v2/1809802/events", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "email": "identified_user@gmail.com", - "properties": { - "field1": "val1" - }, - "action": "testing", - "occurred_at": "2019-10-14T09:03:17.562Z" - } - ] - } - }, - "files": {} - }, - { - "error": "Error occurred while checking user : " - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v3/1809802/shopper_activity/order", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "action": "placed", - "email": "identified_user@gmail.com", - "occurred_at": "2019-10-14T09:03:17.562Z", - "order_id": "456445746", - "provider": "my_custom_order" - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v3/1809802/shopper_activity/order", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "action": "placed", - "email": "identified_user@gmail.com", - "occurred_at": "2019-10-14T09:03:17.562Z", - "order_id": "456445746", - "provider": "my_custom_order", - "items": [ - { - "name": "shirt", - "price": 11.16 - } - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v2/1809802/events", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "action": "checkout", - "email": "identified_user@gmail.com", - "occurred_at": "2019-10-14T09:03:17.562Z", - "properties": { - "field2": "val2" - } - } - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getdrip.com/v2/1809802/subscribers", - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "subscribers": [ - { - "email": "ruddertest@gmail.com", - "user_id": "user@1", - "address1": "Chicago, IL, USA", - "last_name": "test", - "first_name": "rudder", - "custom_fields": { - "title": "Social Impact Program Manager", - "industry": "Education", - "verified": false, - "isDeleted": false, - "jobFunction": "Program manager", - "reminderType": 1, - "jobPreferences": { - "motivationStr": "I am looking for a job in climate change.,I want to learn about climate change.,I’d like to connect with other climate enthusiasts.", - "searchUrgency": "As soon as possible", - "maxCompensation": 0, - "minCompensation": 0 - }, - "visibilityType": "public", - "hubbleOnboarded": false, - "sharePreference": false, - "notificationType": 0, - "shortDescription": "Social Impact Program Manager", - "jobProfileComplete": false, - "noOfMonthExperience": 0, - "onboarding_completed": "Yes" - } - } - ] - } - }, - "files": {} - } -] diff --git a/test/__tests__/data/drip_router_input.json b/test/__tests__/data/drip_router_input.json deleted file mode 100644 index 1cabfe9498..0000000000 --- a/test/__tests__/data/drip_router_input.json +++ /dev/null @@ -1,90 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "", - "enableUserCreation": true - } - }, - "metadata": { - "jobId": 1 - }, - "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", - "type": "identify", - "traits": { - "email": "test1@gmail.com", - "firstName": "James", - "lastName": "Doe", - "phone": "237416221", - "customFields": { - "filter1": "filterval1" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": true - } - }, - "metadata": { - "jobId": 2 - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "email": "user1@gmail.com", - "customFields": { - "field1": "val1" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - } -] diff --git a/test/__tests__/data/drip_router_output.json b/test/__tests__/data/drip_router_output.json deleted file mode 100644 index d1efdf48f7..0000000000 --- a/test/__tests__/data/drip_router_output.json +++ /dev/null @@ -1,96 +0,0 @@ -[ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "subscribers": [ - { - "email": "test1@gmail.com", - "first_name": "James", - "last_name": "Doe", - "phone": "237416221", - "ip_address": "0.0.0.0", - "custom_fields": { - "filter1": "filterval1" - } - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.getdrip.com/v2/1809802/subscribers" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "", - "enableUserCreation": true - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "email": "user1@gmail.com", - "properties": { - "field1": "val1" - }, - "action": "testing", - "occurred_at": "2019-10-14T09:03:17.562Z" - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Authorization": "Basic ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.getdrip.com/v2/1809802/events" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "accountId": "1809802", - "campaignId": "915194776", - "enableUserCreation": true - } - } - } -] diff --git a/test/__tests__/data/dynamic_yield.json b/test/__tests__/data/dynamic_yield.json deleted file mode 100644 index b7d066feca..0000000000 --- a/test/__tests__/data/dynamic_yield.json +++ /dev/null @@ -1,714 +0,0 @@ -[ - { - "description": "Identify call without hashed email", - "input": { - "message": { - "anonymousId": "507f191e810c19729de860ea", - "context": { - "ip": "54.100.200.255", - "sessionId": "16733896350494", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36" - }, - "integrations": { "All": true }, - "receivedAt": "2015-02-23T22:28:55.387Z", - "sentAt": "2015-02-23T22:28:55.111Z", - "timestamp": "2015-02-23T22:28:55.111Z", - "traits": { - "email": "peter@example.com" - }, - "type": "identify", - "userId": "user0", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "hashEmail": true - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dy-api.com/v2/collect/user/event", - "headers": { - "Content-Type": "application/json", - "DY-API-Key": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "user": { "id": "user0" }, - "session": { "custom": "16733896350494" }, - "context": { "device": { "ip": "54.100.200.255" } }, - "events": [ - { - "name": "Identify User", - "properties": { - "dyType": "identify-v1", - "hashedEmail": "f111db891a36b76df28abc74867e6c7248f796e045117f0cff27b6e2be25d2df" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call with hashed email", - "input": { - "message": { - "anonymousId": "507f191e810c19729de860ea", - "context": { - "ip": "54.100.200.255", - "sessionId": "16733896350494", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36" - }, - "integrations": { "All": true }, - "receivedAt": "2015-02-23T22:28:55.387Z", - "sentAt": "2015-02-23T22:28:55.111Z", - "timestamp": "2015-02-23T22:28:55.111Z", - "traits": { - "email": "f111db891a36b76df28abc74867e6c7248f796e045117f0cff27b6e2be25d2df" - }, - "type": "identify", - "userId": "user0", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dy-api.com/v2/collect/user/event", - "headers": { - "Content-Type": "application/json", - "DY-API-Key": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "user": { "id": "user0" }, - "session": { "custom": "16733896350494" }, - "context": { "device": { "ip": "54.100.200.255" } }, - "events": [ - { - "name": "Identify User", - "properties": { - "dyType": "identify-v1", - "hashedEmail": "f111db891a36b76df28abc74867e6c7248f796e045117f0cff27b6e2be25d2df" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with Product Added event", - "input": { - "message": { - "context": { - "traits": { "email": "testone@gmail.com" }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ip": "54.100.200.255" - }, - "type": "track", - "session_id": "16733896350494", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "Product Added", - "userId": "testuserId1", - "properties": { - "product_id": "123", - "sku": "item-34454ga", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 39.95, - "quantity": 1, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dy-api.com/v2/collect/user/event", - "headers": { - "Content-Type": "application/json", - "DY-API-Key": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "user": { "id": "testuserId1" }, - "session": { "custom": "16733896350494" }, - "context": { "device": { "ip": "54.100.200.255" } }, - "events": [ - { - "name": "Add to Cart", - "properties": { - "dyType": "add-to-cart-v1", - "value": 39.95, - "productId": "item-34454ga", - "quantity": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call without email", - "input": { - "message": { - "anonymousId": "507f191e810c19729de860ea", - "context": { - "ip": "54.100.200.255", - "sessionId": "16733896350494", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36" - }, - "integrations": { "All": true }, - "receivedAt": "2015-02-23T22:28:55.387Z", - "sentAt": "2015-02-23T22:28:55.111Z", - "timestamp": "2015-02-23T22:28:55.111Z", - "traits": {}, - "type": "identify", - "userId": "user0", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dy-api.com/v2/collect/user/event", - "headers": { - "Content-Type": "application/json", - "DY-API-Key": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "user": { "id": "user0" }, - "session": { "custom": "16733896350494" }, - "context": { "device": { "ip": "54.100.200.255" } }, - "events": [ - { - "name": "Identify User", - "properties": { - "dyType": "identify-v1", - "cuid": "user0", - "cuidType": "userId" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with Product Removed event", - "input": { - "message": { - "context": { - "traits": { "email": "testone@gmail.com" }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ip": "54.100.200.255" - }, - "type": "track", - "session_id": "16733896350494", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "Product Removed", - "userId": "testuserId1", - "properties": { - "product_id": "123", - "sku": "item-34454ga", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 39.95, - "quantity": 1, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dy-api.com/v2/collect/user/event", - "headers": { - "Content-Type": "application/json", - "DY-API-Key": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "user": { "id": "testuserId1" }, - "session": { "custom": "16733896350494" }, - "context": { "device": { "ip": "54.100.200.255" } }, - "events": [ - { - "name": "Remove from Cart", - "properties": { - "dyType": "remove-from-cart-v1", - "value": 39.95, - "productId": "item-34454ga", - "quantity": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with Product Added to Wishlist event", - "input": { - "message": { - "context": { - "traits": { "email": "testone@gmail.com" }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ip": "54.100.200.255" - }, - "type": "track", - "session_id": "16733896350494", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "Product Added to Wishlist", - "userId": "testuserId1", - "properties": { - "product_id": "123", - "sku": "item-34454ga", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 39.95, - "quantity": 1, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dy-api.com/v2/collect/user/event", - "headers": { - "Content-Type": "application/json", - "DY-API-Key": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "user": { "id": "testuserId1" }, - "session": { "custom": "16733896350494" }, - "context": { "device": { "ip": "54.100.200.255" } }, - "events": [ - { - "name": "Add to Wishlist", - "properties": { - "dyType": "add-to-wishlist-v1", - "value": 39.95, - "productId": "item-34454ga", - "quantity": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with order completed event", - "input": { - "message": { - "context": { - "traits": { "email": "testone@gmail.com" }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ip": "54.100.200.255" - }, - "type": "track", - "session_id": "16733896350494", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "Order Completed", - "userId": "testuserId1", - "properties": { - "checkout_id": "12345", - "order_id": "1234", - "affiliation": "Apple Store", - "total": 20, - "revenue": 15.0, - "shipping": 4, - "tax": 1, - "discount": 1.5, - "coupon": "ImagePro", - "currency": "USD", - "products": [ - { - "product_id": "123", - "sku": "G-32", - "name": "Monopoly", - "price": 14, - "quantity": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "F-32", - "name": "UNO", - "price": 3.45, - "quantity": 2, - "category": "Games" - } - ] - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dy-api.com/v2/collect/user/event", - "headers": { - "Content-Type": "application/json", - "DY-API-Key": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "user": { "id": "testuserId1" }, - "session": { "custom": "16733896350494" }, - "context": { "device": { "ip": "54.100.200.255" } }, - "events": [ - { - "name": "Purchase", - "properties": { - "dyType": "purchase-v1", - "uniqueTransactionId": "1234", - "value": 15, - "currency": "USD", - "cart": [ - { - "itemPrice": 14, - "productId": "G-32", - "quantity": 1 - }, - { - "itemPrice": 3.45, - "productId": "F-32", - "quantity": 2 - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Unsupported group call check", - "input": { - "message": { - "anonymousId": "507f191e810c19729de860ea", - "context": { - "ip": "54.100.200.255", - "sessionId": "16733896350494", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36" - }, - "integrations": { "All": true }, - "receivedAt": "2015-02-23T22:28:55.387Z", - "sentAt": "2015-02-23T22:28:55.111Z", - "timestamp": "2015-02-23T22:28:55.111Z", - "traits": { - "email": "peter@example.com" - }, - "type": "group", - "userId": "user0", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - }, - "output": { - "error": "message type group is not supported" - } - }, - { - "description": "Event type not present", - "input": { - "message": { - "anonymousId": "507f191e810c19729de860ea", - "context": { - "ip": "54.100.200.255", - "sessionId": "16733896350494", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36" - }, - "integrations": { "All": true }, - "receivedAt": "2015-02-23T22:28:55.387Z", - "sentAt": "2015-02-23T22:28:55.111Z", - "timestamp": "2015-02-23T22:28:55.111Z", - "traits": { - "email": "peter@example.com" - }, - "userId": "user0", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - }, - "output": { - "error": "message Type is not present. Aborting message." - } - }, - { - "description": "API Key not present", - "input": { - "message": { - "anonymousId": "507f191e810c19729de860ea", - "type": "identify", - "context": { - "ip": "54.100.200.255", - "sessionId": "16733896350494", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36" - }, - "integrations": { "All": true }, - "receivedAt": "2015-02-23T22:28:55.387Z", - "sentAt": "2015-02-23T22:28:55.111Z", - "timestamp": "2015-02-23T22:28:55.111Z", - "traits": { - "email": "peter@example.com" - }, - "userId": "user0", - "version": "1" - }, - "destination": { - "Config": {} - } - }, - "output": { - "error": "Api Key is not present" - } - }, - { - "description": "Event is not there in input", - "input": { - "message": { - "context": { - "traits": { "email": "testone@gmail.com" }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ip": "54.100.200.255" - }, - "type": "track", - "session_id": "16733896350494", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "testuserId1", - "properties": { - "product_id": "123", - "sku": "item-34454ga", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 39.95, - "quantity": 1, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - }, - "output": { - "error": "event is not present. Aborting." - } - }, - { - "description": "Track call with custom event", - "input": { - "message": { - "context": { - "traits": { "email": "testone@gmail.com" }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ip": "54.100.200.255" - }, - "type": "track", - "session_id": "16733896350494", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "custom event", - "userId": "testuserId1", - "properties": { - "product_id": "123", - "sku": "item-34454ga", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 39.95, - "quantity": 1, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dy-api.com/v2/collect/user/event", - "headers": { - "Content-Type": "application/json", - "DY-API-Key": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "user": { "id": "testuserId1" }, - "session": { "custom": "16733896350494" }, - "context": { "device": { "ip": "54.100.200.255" } }, - "events": [ - { - "name": "custom event", - "properties": { - "product_id": "123", - "sku": "item-34454ga", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 39.95, - "quantity": 1, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/eloqua.json b/test/__tests__/data/eloqua.json deleted file mode 100644 index ed64f74d09..0000000000 --- a/test/__tests__/data/eloqua.json +++ /dev/null @@ -1,359 +0,0 @@ -[ - { - "description": "identify payload pass", - "input": { - "message": { - "type": "identify", - "traits": { - "C_FirstName": "Test User", - "C_patient_id1": 1, - "C_MobilePhone": "+008822773355", - "C_City": "Scranton", - "C_date_of_birth_1life1": "22/12/01" - }, - "userId": "testUser1234@keeptesting.com", - "context": { - "sources": { - "job_id": "2RVkqlV1adBiIpj33kWlQzchMP1/Syncher", - "version": "v1.28.0", - "job_run_id": "cja699onfuet3te5obc0", - "task_run_id": "cja699onfuet3te5obcg" - }, - "externalId": [ - { - "id": "testUser1234@keeptesting.com", - "type": "ELOQUA-contacts", - "identifierType": "C_EmailAddress" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "3606d3c7-8741-4245-a254-450e137d3866", - "messageId": "40def17a-1b6a-4d2d-a851-2a8d96f913bd" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "identifierFieldName": "C_EmailAddress", - "data": { - "C_FirstName": "Test User", - "C_patient_id1": "1", - "C_MobilePhone": "+008822773355", - "C_City": "Scranton", - "C_date_of_birth_1life1": "22/12/01", - "C_EmailAddress": "testUser1234@keeptesting.com" - }, - "customObjectId": "contacts", - "type": "identify" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "type not correect", - "input": { - "message": { - "type": "audiencelist", - "traits": { - "C_FirstName": "Test User", - "C_patient_id1": 1, - "C_MobilePhone": "+008822773355", - "C_City": "Scranton", - "C_date_of_birth_1life1": "22/12/01" - }, - "userId": "testUser1234@keeptesting.com", - "context": { - "sources": { - "job_id": "2RVkqlV1adBiIpj33kWlQzchMP1/Syncher", - "version": "v1.28.0", - "job_run_id": "cja699onfuet3te5obc0", - "task_run_id": "cja699onfuet3te5obcg" - }, - "externalId": [ - { - "id": "testUser1234@keeptesting.com", - "type": "ELOQUA-contacts", - "identifierType": "C_EmailAddress" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "3606d3c7-8741-4245-a254-450e137d3866", - "messageId": "40def17a-1b6a-4d2d-a851-2a8d96f913bd" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": false - } - } - }, - "output": { - "error": "Event type audiencelist is not supported. Aborting message." - } - }, - { - "description": "traits not present", - "input": { - "message": { - "type": "identify", - "userId": "testUser1234@keeptesting.com", - "context": { - "sources": { - "job_id": "2RVkqlV1adBiIpj33kWlQzchMP1/Syncher", - "version": "v1.28.0", - "job_run_id": "cja699onfuet3te5obc0", - "task_run_id": "cja699onfuet3te5obcg" - }, - "externalId": [ - { - "id": "testUser1234@keeptesting.com", - "type": "ELOQUA-contacts", - "identifierType": "C_EmailAddress" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "3606d3c7-8741-4245-a254-450e137d3866", - "messageId": "40def17a-1b6a-4d2d-a851-2a8d96f913bd" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": false - } - } - }, - "output": { - "error": "Message traits/properties not present. Aborting message." - } - }, - { - "description": "identify payload pass", - "input": { - "message": { - "type": "identify", - "traits": { - "C_FirstName": "Test User", - "C_patient_id1": 1, - "C_MobilePhone": "+008822773355", - "C_City": "Scranton", - "C_date_of_birth_1life1": "22/12/01" - }, - "userId": "testUser1234@keeptesting.com", - "context": { - "sources": { - "job_id": "2RVkqlV1adBiIpj33kWlQzchMP1/Syncher", - "version": "v1.28.0", - "job_run_id": "cja699onfuet3te5obc0", - "task_run_id": "cja699onfuet3te5obcg" - }, - "externalId": [ - { - "id": "testUser1234@keeptesting.com", - "type": "ELOQUA-contacts", - "identifierType": "C_EmailAddress" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "3606d3c7-8741-4245-a254-450e137d3866", - "messageId": "40def17a-1b6a-4d2d-a851-2a8d96f913bd" - }, - "destination": { - "Config": { - "customerAccountId": "89236978", - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "identifierFieldName": "C_EmailAddress", - "data": { - "C_FirstName": "Test User", - "C_patient_id1": "1", - "C_MobilePhone": "+008822773355", - "C_City": "Scranton", - "C_date_of_birth_1life1": "22/12/01", - "C_EmailAddress": "testUser1234@keeptesting.com" - }, - "customObjectId": "contacts", - "type": "identify" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "track payload pass", - "input": { - "message": { - "type": "track", - "properties": { - "key11": "Test User", - "key21": 1, - "contactID11": "+008822773355" - }, - "userId": "testUser1234@keeptesting.com", - "channel": "sources", - "context": { - "sources": { - "job_id": "2RVkqlV1adBiIpj33kWlQzchMP1/Syncher", - "version": "v1.28.0", - "job_run_id": "cja699onfuet3te5obc0", - "task_run_id": "cja699onfuet3te5obcg" - }, - "externalId": [ - { - "id": "testUser1234@keeptesting.com", - "type": "ELOQUA-172", - "identifierType": "contactID1" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "3606d3c7-8741-4245-a254-450e137d3866", - "messageId": "40def17a-1b6a-4d2d-a851-2a8d96f913bd" - }, - "destination": { - "Config": { - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "identifierFieldName": "contactID1", - "data": { - "key11": "Test User", - "key21": "1", - "contactID11": "+008822773355", - "contactID1": "testUser1234@keeptesting.com" - }, - "customObjectId": "172", - "type": "track" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "track payload pass", - "input": { - "message": { - "type": "track", - "properties": { - "key11": "Test User", - "key21": 1, - "contactID11": "+008822773355" - }, - "userId": "testUser1234@keeptesting.com", - "channel": "sources", - "context": { - "sources": { - "job_id": "2RVkqlV1adBiIpj33kWlQzchMP1/Syncher", - "version": "v1.28.0", - "job_run_id": "cja699onfuet3te5obc0", - "task_run_id": "cja699onfuet3te5obcg" - }, - "externalId": [ - { - "id": "testUser1234@keeptesting.com", - "type": "ELOQUA-1800", - "identifierType": "contactID112" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "3606d3c7-8741-4245-a254-450e137d3866", - "messageId": "40def17a-1b6a-4d2d-a851-2a8d96f913bd" - }, - "destination": { - "Config": { - "customerId": "78678678", - "audienceId": "564567", - "hashEmail": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "identifierFieldName": "contactID112", - "data": { - "key11": "Test User", - "key21": "1", - "contactID11": "+008822773355", - "contactID112": "testUser1234@keeptesting.com" - }, - "customObjectId": "1800", - "type": "track" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/facebook_conversions.json b/test/__tests__/data/facebook_conversions.json deleted file mode 100644 index cc4d9a1421..0000000000 --- a/test/__tests__/data/facebook_conversions.json +++ /dev/null @@ -1,1157 +0,0 @@ -[ - { - "description": "Timestamp validation. Events must be sent within seven days of their occurrence or up to one minute in the future", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "randomevent", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2023-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future." - } - }, - { - "description": "Track event without event property set", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "error": "'event' is required and should be a string" - } - }, - { - "description": "Simple track event", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/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\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"value\":400,\"currency\":\"USD\"}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event products searched", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "products searched", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"Search\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"content_ids\":[],\"contents\":[],\"content_type\":\"product\",\"currency\":\"USD\",\"value\":400}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event product added", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "product added", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"AddToCart\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"content_ids\":[],\"contents\":[],\"content_type\":\"product\",\"currency\":\"USD\",\"value\":400}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event product viewed", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "product viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"ViewContent\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"content_ids\":[],\"contents\":[],\"content_type\":\"product\",\"currency\":\"USD\",\"value\":400}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event product list viewed", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "product list viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "products": [ - { - "product_id": 1234, - "quantity": 5, - "price": 55 - } - ] - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"ViewContent\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"products\":[{\"product_id\":1234,\"quantity\":5,\"price\":55}],\"content_ids\":[1234],\"contents\":[{\"id\":1234,\"quantity\":5,\"item_price\":55}],\"content_type\":\"product\",\"currency\":\"USD\",\"value\":400}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event product list viewed without products array", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "product list viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "category": "randomCategory" - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"ViewContent\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"category\":\"randomCategory\",\"content_ids\":[\"randomCategory\"],\"contents\":[{\"id\":\"randomCategory\",\"quantity\":1}],\"content_type\":\"product_group\",\"content_category\":\"randomCategory\",\"currency\":\"USD\",\"value\":400}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event product added to wishlist", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "product added to wishlist", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"AddToWishlist\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"content_ids\":[],\"contents\":[],\"currency\":\"USD\",\"value\":400}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event payment info entered", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "payment info entered", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"AddPaymentInfo\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"content_ids\":[],\"contents\":[],\"currency\":\"USD\",\"value\":400}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event order completed with delivery_category in products array", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "order completed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "products": [ - { - "product_id": 1234, - "quantity": 5, - "price": 55, - "delivery_category": "home_delivery" - } - ] - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"Purchase\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"products\":[{\"product_id\":1234,\"quantity\":5,\"price\":55,\"delivery_category\":\"home_delivery\"}],\"content_ids\":[1234],\"contents\":[{\"id\":1234,\"quantity\":5,\"item_price\":55,\"delivery_category\":\"home_delivery\"}],\"content_type\":\"product\",\"currency\":\"USD\",\"value\":400,\"num_items\":1}}" - ] - } - }, - "files": {} - } - }, - { - "description": "Track event with standard event order completed with delivery_category in properties", - "input": { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "order completed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "delivery_category": "home_delivery", - "products": [ - { - "product_id": 1234, - "quantity": 5, - "price": 55 - } - ] - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"Purchase\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"delivery_category\":\"home_delivery\",\"products\":[{\"product_id\":1234,\"quantity\":5,\"price\":55}],\"content_ids\":[1234],\"contents\":[{\"id\":1234,\"quantity\":5,\"item_price\":55,\"delivery_category\":\"home_delivery\"}],\"content_type\":\"product\",\"currency\":\"USD\",\"value\":400,\"num_items\":1}}" - ] - } - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/facebook_conversions_router_input.json b/test/__tests__/data/facebook_conversions_router_input.json deleted file mode 100644 index b8865d124e..0000000000 --- a/test/__tests__/data/facebook_conversions_router_input.json +++ /dev/null @@ -1,158 +0,0 @@ -[ - { - "metadata": { - "jobId": 1 - }, - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - { - "metadata": { - "jobId": 2 - }, - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "web", - "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": "products searched", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2023-11-12T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/facebook_conversions_router_output.json b/test/__tests__/data/facebook_conversions_router_output.json deleted file mode 100644 index 542c173090..0000000000 --- a/test/__tests__/data/facebook_conversions_router_output.json +++ /dev/null @@ -1,122 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/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\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"value\":400,\"currency\":\"USD\"}}" - ] - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"Search\",\"event_time\":1699784211,\"action_source\":\"website\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0,\"content_ids\":[],\"contents\":[],\"content_type\":\"product\",\"currency\":\"USD\",\"value\":400}}" - ] - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "datasetId": "dummyID", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ], - "actionSource": "website" - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/facebook_pixel_proxy_input.json b/test/__tests__/data/facebook_pixel_proxy_input.json deleted file mode 100644 index 520cb0fc8d..0000000000 --- a/test/__tests__/data/facebook_pixel_proxy_input.json +++ /dev/null @@ -1,200 +0,0 @@ -[ - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"c58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654773112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_access_token", - "params": { - "destination": "facebook_pixel" - } - }, - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"c58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654773112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=my_access_token", - "params": { - "destination": "facebook_pixel" - } - }, - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"c58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654772112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_timestamp_correct_access_token", - "params": { - "destination": "facebook_pixel" - } - }, - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"c58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654772112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=throttled_valid_access_token", - "params": { - "destination": "facebook_pixel" - } - }, - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"c58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654772112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_account_id_valid_access_token", - "params": { - "destination": "facebook_pixel" - } - }, - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"d58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654772112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=not_found_access_token", - "params": { - "destination": "facebook_pixel" - } - }, - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"c58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654772112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "destination": "facebook_pixel" - }, - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234570/events?access_token=valid_access_token" - }, - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"c58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654772112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "destination": "facebook_pixel" - }, - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234571/events?access_token=valid_access_token" - }, - { - "body": { - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"c58f05b5e3cc4796f3181cf07349d306547c00b20841a175b179c6860e6a34ab\",\"client_ip_address\":\"32.122.223.26\",\"client_user_agent\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1\"},\"event_name\":\"Checkout Step Viewed\",\"event_time\":1654772112,\"event_source_url\":\"https://www.my.kaiser.com/checkout\",\"event_id\":\"4f002656-a7b2-4c17-b9bd-8caa5a29190a\",\"custom_data\":{\"checkout_id\":\"26SF29B\",\"site\":\"www.my.kaiser.com\",\"step\":1}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "destination": "facebook_pixel" - }, - "userId": "", - "headers": {}, - "version": "1", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234572/events?access_token=valid_access_token_unhandled_response" - } -] diff --git a/test/__tests__/data/facebook_pixel_proxy_output.json b/test/__tests__/data/facebook_pixel_proxy_output.json deleted file mode 100644 index e0afb028d3..0000000000 --- a/test/__tests__/data/facebook_pixel_proxy_output.json +++ /dev/null @@ -1,223 +0,0 @@ -[ - { - "output": { - "status": 400, - "message": "Invalid OAuth 2.0 access token", - "destinationResponse": { - "error": { - "message": "The access token could not be decrypted", - "type": "OAuthException", - "code": 190, - "fbtrace_id": "fbpixel_trace_id" - }, - "status": 500 - }, - "statTags": { - "destType": "FACEBOOK_PIXEL", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 200, - "message": "Request Processed Successfully", - "destinationResponse": { - "events_received": 1, - "fbtrace_id": "facebook_trace_id" - } - } - }, - { - "output": { - "status": 400, - "message": "Event Timestamp Too Old", - "destinationResponse": { - "error": { - "message": "Invalid parameter", - "type": "OAuthException", - "code": 100, - "error_subcode": 2804003, - "is_transient": false, - "error_user_title": "Event Timestamp Too Old", - "error_user_msg": "The timestamp for this event is too far in the past. Events need to be sent from your server within 7 days of when they occurred. Enter a timestamp that has occurred within the last 7 days.", - "fbtrace_id": "A6UyEgg_HdoiRX9duxcBOjb" - }, - "status": 400 - }, - "statTags": { - "destType": "FACEBOOK_PIXEL", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 429, - "message": "API User Too Many Calls", - "destinationResponse": { - "error": { - "message": "User request limit reached", - "type": "OAuthException", - "code": 17, - "fbtrace_id": "facebook_px_trace_id_4" - }, - "status": 500 - }, - "statTags": { - "destType": "FACEBOOK_PIXEL", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "throttled", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 400, - "message": "Object with ID 'PIXEL_ID' / 'DATASET_ID' / 'AUDIENCE_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation", - "destinationResponse": { - "error": { - "message": "Unsupported post request. Object with ID '1234567891234569' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", - "type": "GraphMethodException", - "code": 100, - "error_subcode": 33, - "fbtrace_id": "facebook_px_trace_id_5" - }, - "status": 400 - }, - "statTags": { - "destType": "FACEBOOK_PIXEL", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 400, - "message": "Invalid Parameter", - "destinationResponse": { - "error": { - "message": "Invalid Parameter", - "type": "GraphMethodException", - "code": 100, - "error_subcode": 34, - "fbtrace_id": "facebook_px_trace_id_6" - }, - "status": 404 - }, - "statTags": { - "destType": "FACEBOOK_PIXEL", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - - { - "output": { - "status": 400, - "message": "Invalid Parameter", - "destinationResponse": { - "error": { - "message": "Unsupported post request. some problem with sent parameters", - "type": "GraphMethodException", - "code": 100, - "error_subcode": 38, - "fbtrace_id": "facebook_px_trace_id_6" - }, - "status": 400 - }, - "statTags": { - "destType": "FACEBOOK_PIXEL", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 400, - "message": "Capability or permissions issue.", - "destinationResponse": { - "error": { - "message": "Some error in permission", - "type": "GraphMethodException", - "code": 3, - "error_subcode": 10, - "fbtrace_id": "facebook_px_trace_id_7" - }, - "status": 500 - }, - "statTags": { - "destType": "FACEBOOK_PIXEL", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 500, - "message": "Unhandled random error", - "destinationResponse": { - "error": { - "message": "Unhandled random error", - "type": "RandomException", - "code": 5, - "error_subcode": 12, - "fbtrace_id": "facebook_px_trace_id_10" - }, - "status": 412 - }, - "statTags": { - "destType": "FACEBOOK_PIXEL", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination", - "meta": "unhandledStatusCode" - } - } - } -] diff --git a/test/__tests__/data/fb_proxy_input.json b/test/__tests__/data/fb_proxy_input.json deleted file mode 100644 index d158c970e4..0000000000 --- a/test/__tests__/data/fb_proxy_input.json +++ /dev/null @@ -1,156 +0,0 @@ -[ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "event": "CUSTOM_APP_EVENTS", - "advertiser_id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "ud[fn]": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "ud[ge]": "62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a", - "ud[ln]": "3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3", - "ud[ph]": "588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f", - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",640,480,\"1.23\",0,0,0,\"Europe/Berlin\"]", - "app_user_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"spin_result\",\"_valueToSum\":400,\"fb_currency\":\"GBP\",\"additional_bet_index\":0,\"battle_id\":\"N/A\",\"bet_amount\":9,\"bet_level\":1,\"bet_multiplier\":1,\"coin_balance\":9466052,\"current_module_name\":\"CasinoGameModule\",\"days_in_game\":0,\"extra_param\":\"N/A\",\"fb_profile\":\"0\",\"featureGameType\":\"N/A\",\"game_fps\":30,\"game_id\":\"fireEagleBase\",\"game_name\":\"FireEagleSlots\",\"gem_balance\":0,\"graphicsQuality\":\"HD\",\"idfa\":\"2bf99787-33d2-4ae2-a76a-c49672f97252\",\"internetReachability\":\"ReachableViaLocalAreaNetwork\",\"isLowEndDevice\":\"False\",\"is_auto_spin\":\"False\",\"is_turbo\":\"False\",\"isf\":\"False\",\"ishighroller\":\"False\",\"jackpot_win_amount\":90,\"jackpot_win_type\":\"Silver\",\"level\":6,\"lifetime_gem_balance\":0,\"no_of_spin\":1,\"player_total_battles\":0,\"player_total_shields\":0,\"start_date\":\"2019-08-01\",\"total_payments\":0,\"tournament_id\":\"T1561970819\",\"userId\":\"c82cbdff-e5be-4009-ac78-cdeea09ab4b1\",\"versionSessionCount\":2,\"win_amount\":0,\"fb_content_id\":[\"123\",\"345\",\"567\"]}]", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0" - }, - "JSON": {} - }, - "endpoint": "https://graph.facebook.com/v17.0/RudderFbApp/activities?access_token=invalid_access_token", - "files": {}, - "headers": { - "x-forwarded-for": "1.2.3.4" - }, - "method": "POST", - "statusCode": 200, - "type": "REST", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "version": "1", - "params": { - "destination": "fb" - } - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "event": "CUSTOM_APP_EVENTS", - "advertiser_id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "ud[fn]": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "ud[ge]": "62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a", - "ud[ln]": "3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3", - "ud[ph]": "588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f", - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",640,480,\"1.23\",0,0,0,\"Europe/Berlin\"]", - "app_user_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"spin_result\",\"_valueToSum\":400,\"fb_currency\":\"GBP\",\"additional_bet_index\":0,\"battle_id\":\"N/A\",\"bet_amount\":9,\"bet_level\":1,\"bet_multiplier\":1,\"coin_balance\":9466052,\"current_module_name\":\"CasinoGameModule\",\"days_in_game\":0,\"extra_param\":\"N/A\",\"fb_profile\":\"0\",\"featureGameType\":\"N/A\",\"game_fps\":30,\"game_id\":\"fireEagleBase\",\"game_name\":\"FireEagleSlots\",\"gem_balance\":0,\"graphicsQuality\":\"HD\",\"idfa\":\"2bf99787-33d2-4ae2-a76a-c49672f97252\",\"internetReachability\":\"ReachableViaLocalAreaNetwork\",\"isLowEndDevice\":\"False\",\"is_auto_spin\":\"False\",\"is_turbo\":\"False\",\"isf\":\"False\",\"ishighroller\":\"False\",\"jackpot_win_amount\":90,\"jackpot_win_type\":\"Silver\",\"level\":6,\"lifetime_gem_balance\":0,\"no_of_spin\":1,\"player_total_battles\":0,\"player_total_shields\":0,\"start_date\":\"2019-08-01\",\"total_payments\":0,\"tournament_id\":\"T1561970819\",\"userId\":\"c82cbdff-e5be-4009-ac78-cdeea09ab4b1\",\"versionSessionCount\":2,\"win_amount\":0,\"fb_content_id\":[\"123\",\"345\",\"567\"]}]", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0" - }, - "JSON": {} - }, - "endpoint": "https://graph.facebook.com/v17.0/RudderFbApp/activities?access_token=my_access_token", - "files": {}, - "headers": { - "x-forwarded-for": "1.2.3.4" - }, - "method": "POST", - "statusCode": 200, - "type": "REST", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "version": "1", - "params": { - "destination": "fb" - } - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "event": "CUSTOM_APP_EVENTS", - "advertiser_id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "ud[fn]": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "ud[ge]": "62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a", - "ud[ln]": "3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3", - "ud[ph]": "588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f", - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",640,480,\"1.23\",0,0,0,\"Europe/Berlin\"]", - "app_user_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"spin_result\",\"_valueToSum\":400,\"fb_currency\":\"GBP\",\"additional_bet_index\":0,\"battle_id\":\"N/A\",\"bet_amount\":9,\"bet_level\":1,\"bet_multiplier\":1,\"coin_balance\":9466052,\"current_module_name\":\"CasinoGameModule\",\"days_in_game\":0,\"extra_param\":\"N/A\",\"fb_profile\":\"0\",\"featureGameType\":\"N/A\",\"game_fps\":30,\"game_id\":\"fireEagleBase\",\"game_name\":\"FireEagleSlots\",\"gem_balance\":0,\"graphicsQuality\":\"HD\",\"idfa\":\"2bf99787-33d2-4ae2-a76a-c49672f97252\",\"internetReachability\":\"ReachableViaLocalAreaNetwork\",\"isLowEndDevice\":\"False\",\"is_auto_spin\":\"False\",\"is_turbo\":\"False\",\"isf\":\"False\",\"ishighroller\":\"False\",\"jackpot_win_amount\":90,\"jackpot_win_type\":\"Silver\",\"level\":6,\"lifetime_gem_balance\":0,\"no_of_spin\":1,\"player_total_battles\":0,\"player_total_shields\":0,\"start_date\":\"2019-08-01\",\"total_payments\":0,\"tournament_id\":\"T1561970819\",\"userId\":\"c82cbdff-e5be-4009-ac78-cdeea09ab4b1\",\"versionSessionCount\":2,\"win_amount\":0,\"fb_content_id\":[\"123\",\"345\",\"567\"]}]", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0" - }, - "JSON": {} - }, - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_timestamp_correct_access_token", - "files": {}, - "headers": { - "x-forwarded-for": "1.2.3.4" - }, - "method": "POST", - "statusCode": 200, - "type": "REST", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "version": "1", - "params": { - "destination": "fb" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=throttled_valid_access_token", - "headers": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",0,100,\"50.00\",0,0,0,\"\"]", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"Viewed Screen\",\"fb_description\":\"Main.1233\"}]", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0", - "event": "CUSTOM_APP_EVENTS" - } - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "statusCode": 200, - "params": { - "destination": "fb" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_account_id_valid_access_token", - "headers": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",0,100,\"50.00\",0,0,0,\"\"]", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"Viewed Screen\",\"fb_description\":\"Main.1233\"}]", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0", - "event": "CUSTOM_APP_EVENTS" - } - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "statusCode": 200, - "params": { - "destination": "fb" - } - } -] diff --git a/test/__tests__/data/fb_proxy_output.json b/test/__tests__/data/fb_proxy_output.json deleted file mode 100644 index 12e06cff2c..0000000000 --- a/test/__tests__/data/fb_proxy_output.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "output": { - "status": 400, - "message": "Invalid OAuth 2.0 access token", - "destinationResponse": { - "error": { - "message": "The access token could not be decrypted", - "type": "OAuthException", - "code": 190, - "fbtrace_id": "fbpixel_trace_id" - }, - "status": 500 - }, - "statTags": { - "destType": "FB", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 200, - "message": "Request Processed Successfully", - "destinationResponse": { - "events_received": 1, - "fbtrace_id": "facebook_trace_id" - } - } - }, - { - "output": { - "status": 400, - "message": "Event Timestamp Too Old", - "destinationResponse": { - "error": { - "message": "Invalid parameter", - "type": "OAuthException", - "code": 100, - "error_subcode": 2804003, - "is_transient": false, - "error_user_title": "Event Timestamp Too Old", - "error_user_msg": "The timestamp for this event is too far in the past. Events need to be sent from your server within 7 days of when they occurred. Enter a timestamp that has occurred within the last 7 days.", - "fbtrace_id": "A6UyEgg_HdoiRX9duxcBOjb" - }, - "status": 400 - }, - "statTags": { - "destType": "FB", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 429, - "message": "API User Too Many Calls", - "destinationResponse": { - "error": { - "message": "User request limit reached", - "type": "OAuthException", - "code": 17, - "fbtrace_id": "facebook_px_trace_id_4" - }, - "status": 500 - }, - "statTags": { - "destType": "FB", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "throttled", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 400, - "message": "Object with ID 'PIXEL_ID' / 'DATASET_ID' / 'AUDIENCE_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation", - "destinationResponse": { - "error": { - "message": "Unsupported post request. Object with ID '1234567891234569' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", - "type": "GraphMethodException", - "code": 100, - "error_subcode": 33, - "fbtrace_id": "facebook_px_trace_id_5" - }, - "status": 400 - }, - "statTags": { - "destType": "FB", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } -] diff --git a/test/__tests__/data/freshmarketer.json b/test/__tests__/data/freshmarketer.json deleted file mode 100644 index 390c0fb44e..0000000000 --- a/test/__tests__/data/freshmarketer.json +++ /dev/null @@ -1,2507 +0,0 @@ -[ - { - "description": "Identify call for creating new user", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "email": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": 71010794467, - "phone": "9988776655", - "owner_id": "70000090119" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "emails": "testuser@google.com", - "last_name": "Mishra", - "created_at": "2022-06-22T10:57:58Z", - "first_name": "Rk", - "updated_at": "2022-06-22T10:57:58Z", - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "work_number": "9988776655", - "mobile_number": "1-926-555-9504", - "lifecycle_stage_id": 71010794467 - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert" - } - }, - { - "description": "Identify call with numbers in lifecycleStageId, ownerId", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "email": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": 71010794467, - "phone": "9988776655", - "owner_id": "70000090119" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "emails": "testuser@google.com", - "last_name": "Mishra", - "created_at": "2022-06-22T10:57:58Z", - "first_name": "Rk", - "updated_at": "2022-06-22T10:57:58Z", - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "work_number": "9988776655", - "mobile_number": "1-926-555-9504", - "lifecycle_stage_id": 71010794467 - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert" - } - }, - { - "description": "Identify call with wrong data type in lifecycleStageId, ownerId", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "email": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": "rudderSample", - "phone": "9988776655", - "ownerId": "rudderSample" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "statusCode": 400, - "error": "owner_id,lifecycle_stage_id: invalid number format", - "statTags": { - "destination": "freshmarketer", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Identify call, email is not provided.", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": "rudderSample", - "phone": "9988776655", - "owner_id": "rudderSample" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "statusCode": 400, - "error": "Missing required value from \"email\"", - "statTags": { - "destination": "freshmarketer", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Group call: testing with mock api", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser@google.com" - } - }, - "traits": { - "groupType": "accounts", - "name": "Mark Twain", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "sales_accounts": [ - { - "id": 70003771198, - "name": "div-quer", - "avatar": null, - "partial": true, - "website": null, - "is_primary": true, - "last_contacted": null, - "record_type_id": "71010794477" - }, - { - "id": 70003825177, - "name": "BisleriGroup", - "avatar": null, - "partial": true, - "website": null, - "is_primary": false, - "last_contacted": null, - "record_type_id": "71010794477" - }, - { - "id": 70003771396, - "is_primary": false - } - ] - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert" - } - }, - { - "description": "Group call: name is required field.", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser@google.com" - } - }, - "traits": { - "groupType": "accounts", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "error": "Missing required value from \"name\"", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2DnU7R3Ksf0O1IypvleCHNp4X7m", - "status_code": 400, - "destination_id": "2DnUEc7Ka4thYmPsPCdigkwaGkn", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "missing message type", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser4google.com" - } - }, - "traits": { - "name": "Mark Twain", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "statusCode": 400, - "error": "Message Type is not present. Aborting message.", - "statTags": { - "destination": "freshmarketer", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Wrong message type", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser4google.com" - } - }, - "traits": { - "name": "Mark Twain", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "page", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "statusCode": 400, - "error": "message type page not supported", - "statTags": { - "errorAt": "proc", - "destType": "FRESHMARKETER", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Group call: user email is missing", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": {} - }, - "traits": { - "groupType": "accounts", - "name": "div-quer", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Lal colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "sales_account": { - "city": "Lal colony", - "name": "div-quer", - "phone": "919191919191", - "state": "Haryana", - "address": "Red Colony", - "created_at": "2022-06-22T10:57:58Z", - "updated_at": "2022-06-22T10:57:58Z", - "annual_revenue": 1000, - "number_of_employees": 51 - }, - "unique_identifier": { - "name": "div-quer" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert" - } - }, - { - "description": "Identify call: Email is not present", - "input": { - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "first_name": "Rk", - "last_name": "Narayan", - "mobileNumber": "1-926-555-9504", - "phone": "9988776655" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Missing required value from \"email\"", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2DnU7R3Ksf0O1IypvleCHNp4X7m", - "status_code": 400, - "destination_id": "2DnUEc7Ka4thYmPsPCdigkwaGkn", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call, event is not supported.", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn" - }, - "event": "Add to Cart", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "statusCode": 400, - "error": "event name Add to Cart is not supported. Aborting!", - "statTags": { - "errorAt": "proc", - "destType": "FRESHMARKETER", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track call: some required properties is missing for sales_activity", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Missing required value from \"properties.title\"", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: for salesActivityName", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "salesActivityName": "own-calender", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "sales_activity": { - "title": "new Contact", - "end_date": "2022-06-04T17:30:00+05:30", - "owner_id": "70054866612", - "start_date": "2021-05-04T17:00:00+05:30", - "created_at": "2020-10-20T08:14:28.778Z", - "updated_at": "2020-10-20T08:14:28.778Z", - "targetable_id": 70054866612, - "targetable_type": "Contact", - "sales_activity_name": "own-calender", - "sales_activity_type_id": 70000666879 - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" - } - }, - { - "description": "Track call: lifecycle_stage_id", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "email": "jamessampleton3@gmail.com", - "lifecycleStageId": "71012139273", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert", - "headers": { - "Authorization": "Token token=dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "lifecycle_stage_id": "71012139273" - }, - "unique_identifier": { - "emails": "jamessampleton3@gmail.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call: In lifecycle stage, email is missing", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "lifecycleStageId": "71012139273", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "email is required for updating life Cycle Stages. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: Either of lifecycleStageName or lifecycleStageId is required", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "jamessampleton3@gmail.com", - "properties": { - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Either of lifecycleStageName or lifecycleStageId is required. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: Either of sales activity name or sales activity type id is required", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Either of sales activity name or sales activity type id is required. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: Either of email or targetable_id is required for creating sales activity.", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "salesActivityName": "own-calender", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Either of email or targetable_id is required for creating sales activity. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: sales activity with salesActivityTypeId", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "jamessampleton3@gmail.com", - "properties": { - "salesActivityTypeId": "70000663932", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "sales_activity": { - "title": "new Contact", - "end_date": "2022-06-04T17:30:00+05:30", - "owner_id": "70054866612", - "start_date": "2021-05-04T17:00:00+05:30", - "created_at": "2020-10-20T08:14:28.778Z", - "updated_at": "2020-10-20T08:14:28.778Z", - "targetable_id": 70054866612, - "targetable_type": "Contact", - "sales_activity_type_id": "70000663932" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" - } - }, - { - "description": "Track call: updated sales activity with salesActivityTypeId and targetableId", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "id": "70052305908", - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "salesActivityTypeId": "70000663932", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "sales_activity": { - "title": "new Contact", - "end_date": "2022-06-04T17:30:00+05:30", - "owner_id": "70054866612", - "start_date": "2021-05-04T17:00:00+05:30", - "created_at": "2020-10-20T08:14:28.778Z", - "updated_at": "2020-10-20T08:14:28.778Z", - "targetable_id": "70052305908", - "targetable_type": "Contact", - "sales_activity_type_id": "70000663932" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" - } - }, - { - "description": "Unsupported message Type", - "input": { - "message": { - "channel": "web", - "type": "page", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "jamessampleton3@gmail.com", - "properties": { - "lifecycleStageId": "71012139273", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "statusCode": 400, - "error": "message type page not supported", - "statTags": { - "errorAt": "proc", - "destType": "FRESHMARKETER", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Group call: email is required for adding contacts to marketing lists", - "input": { - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "traits": { - "groupType": "marketing_lists" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "statusCode": 400, - "error": "email is required for adding in the marketing lists. Aborting!", - "statTags": { - "errorAt": "proc", - "destType": "FRESHMARKETER", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Group call: group type is not present", - "input": { - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "traits": { - "name": "Mark Twain", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "groupType is required for Group call", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Group call: add contacts in existing marketing lists", - "input": { - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "jamessampleton1@gmail.com" - } - }, - "traits": { - "groupType": "marketing_lists", - "listName": "Voda 5G", - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "ids": [70054866612] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000059716/add_contacts" - } - }, - { - "description": "Group call: groupType is not supported", - "input": { - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "traits": { - "groupType": "marketing", - "listName": "Voda 5G", - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "groupType marketing is not supported. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Group call: listId or listName is required", - "input": { - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "traits": { - "email": "jamessampleton1@gmail.com" - } - }, - "traits": { - "groupType": "marketing_lists", - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "listId or listName is required. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Group call: add marketing lists with listId", - "input": { - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "jamessampleton1@gmail.com" - } - }, - "traits": { - "listId": "70000058627", - "groupType": "marketing_lists", - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "ids": [70054866612] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000058627/add_contacts" - } - }, - { - "description": "Track call: with wrong sales activity name", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "salesActivityName": "own-list", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "sales Activity own-list doesn't exists. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: update contacts with sales Activity name", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "email": "jamessampleton6@gmail.com", - "lifecycleStageName": "final Customer", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "lifecycle_stage_id": 71012806409 - }, - "unique_identifier": { - "emails": "jamessampleton6@gmail.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert" - } - }, - { - "description": "Track call: with wrong lifecycleStageName", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "email": "jamessampleton6@gmail.com", - "lifecycleStageName": "final ExCustomer", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "failed to fetch lifeCycleStages with final ExCustomer", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: Multiplexing", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "salesActivityName": "own-calender", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "lifecycleStageId": "71012139273" - }, - "event": "test_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com", - "rudderEventsToFreshmarketerEvents": [ - { - "from": "test_activity", - "to": "sales_activity" - }, - { - "from": "test_activity", - "to": "lifecycle_stage" - }, - { - "from": "test_event", - "to": "lifecycle_stage" - } - ] - } - } - }, - "output": [ - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "sales_activity": { - "title": "new Contact", - "end_date": "2022-06-04T17:30:00+05:30", - "owner_id": "70054866612", - "start_date": "2021-05-04T17:00:00+05:30", - "created_at": "2020-10-20T08:14:28.778Z", - "updated_at": "2020-10-20T08:14:28.778Z", - "targetable_id": 70054866612, - "targetable_type": "Contact", - "sales_activity_name": "own-calender", - "sales_activity_type_id": 70000666879 - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" - }, - { - "body": { - "JSON": { - "contact": { - "lifecycle_stage_id": "71012139273" - }, - "unique_identifier": { - "emails": "test@rudderstack.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Authorization": "Token token=dummyApiKey", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert" - } - ] - } -] diff --git a/test/__tests__/data/freshmarketer_router_input.json b/test/__tests__/data/freshmarketer_router_input.json deleted file mode 100644 index 2cc5ce58de..0000000000 --- a/test/__tests__/data/freshmarketer_router_input.json +++ /dev/null @@ -1,174 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "email": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": 71010794467, - "phone": "9988776655", - "owner_id": "70000090119" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "metadata": { - "jobId": 2 - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "email": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": 71010794467, - "phone": "9988776655", - "owner_id": "70000090119" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "metadata": { - "jobId": 3 - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser@google.com" - } - }, - "traits": { - "groupType": "accounts", - "name": "Mark Twain", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - } - } -] diff --git a/test/__tests__/data/freshmarketer_router_output.json b/test/__tests__/data/freshmarketer_router_output.json deleted file mode 100644 index 3525e4bb16..0000000000 --- a/test/__tests__/data/freshmarketer_router_output.json +++ /dev/null @@ -1,163 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert", - "headers": { - "Authorization": "Token token=dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "emails": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "work_number": "9988776655", - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "mobile_number": "1-926-555-9504", - "created_at": "2022-06-22T10:57:58Z", - "updated_at": "2022-06-22T10:57:58Z", - "lifecycle_stage_id": 71010794467 - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert", - "headers": { - "Authorization": "Token token=dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "emails": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "work_number": "9988776655", - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "mobile_number": "1-926-555-9504", - "created_at": "2022-06-22T10:57:58Z", - "updated_at": "2022-06-22T10:57:58Z", - "lifecycle_stage_id": 71010794467 - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "sales_accounts": [ - { - "id": 70003771198, - "name": "div-quer", - "avatar": null, - "partial": true, - "website": null, - "is_primary": true, - "last_contacted": null, - "record_type_id": "71010794477" - }, - { - "id": 70003825177, - "name": "BisleriGroup", - "avatar": null, - "partial": true, - "website": null, - "is_primary": false, - "last_contacted": null, - "record_type_id": "71010794477" - }, - { - "id": 70003771396, - "is_primary": false - } - ] - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert" - }, - "metadata": [ - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - } -] diff --git a/test/__tests__/data/freshsales.json b/test/__tests__/data/freshsales.json deleted file mode 100644 index 55193532f4..0000000000 --- a/test/__tests__/data/freshsales.json +++ /dev/null @@ -1,2173 +0,0 @@ -[ - { - "description": "Track call, event is not supported.", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn" - }, - "event": { - "name": "Add to Cart" - }, - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "statusCode": 400, - "error": "Event is a required field and should be a string", - "statTags": { - "errorAt": "proc", - "destType": "FRESHMARKETER", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Identify call for creating new user", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "email": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": 71010794467, - "phone": "9988776655", - "owner_id": "70000090119" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "emails": "testuser@google.com", - "last_name": "Mishra", - "created_at": "2022-06-22T10:57:58Z", - "first_name": "Rk", - "updated_at": "2022-06-22T10:57:58Z", - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "work_number": "9988776655", - "mobile_number": "1-926-555-9504", - "lifecycle_stage_id": 71010794467 - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert" - } - }, - { - "description": "Identify call with numbers in lifecycleStageId, ownerId", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "email": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": 71010794467, - "phone": "9988776655", - "owner_id": "70000090119" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "emails": "testuser@google.com", - "last_name": "Mishra", - "created_at": "2022-06-22T10:57:58Z", - "first_name": "Rk", - "updated_at": "2022-06-22T10:57:58Z", - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "work_number": "9988776655", - "mobile_number": "1-926-555-9504", - "lifecycle_stage_id": 71010794467 - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert" - } - }, - { - "description": "Identify call with wrong data type in lifecycleStageId, ownerId", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "email": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": "rudderSample", - "phone": "9988776655", - "ownerId": "rudderSample" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert", - "headers": { - "Authorization": "Token token=dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "emails": "testuser@google.com", - "first_name": "Rk", - "last_name": "Mishra", - "work_number": "9988776655", - "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "mobile_number": "1-926-555-9504", - "created_at": "2022-06-22T10:57:58Z", - "updated_at": "2022-06-22T10:57:58Z" - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call, email is not provided.", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "rudderstack-476952domain3105.myfreshworks.com" - } - }, - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "first_name": "Rk", - "last_name": "Mishra", - "mobileNumber": "1-926-555-9504", - "lifecycleStageId": "rudderSample", - "phone": "9988776655", - "owner_id": "rudderSample" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "statusCode": 400, - "error": "Missing required value from \"email\"", - "statTags": { - "errorAt": "proc", - "destType": "FRESHSALES", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Group call: testing with mock api", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser@google.com" - } - }, - "traits": { - "groupType": "accounts", - "name": "Mark Twain", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "sales_accounts": [ - { - "id": 70003771198, - "name": "div-quer", - "avatar": null, - "partial": true, - "website": null, - "is_primary": true, - "last_contacted": null, - "record_type_id": "71010794477" - }, - { - "id": 70003825177, - "name": "BisleriGroup", - "avatar": null, - "partial": true, - "website": null, - "is_primary": false, - "last_contacted": null, - "record_type_id": "71010794477" - }, - { - "id": 70003771396, - "is_primary": false - } - ] - }, - "unique_identifier": { - "emails": "testuser@google.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert" - } - }, - { - "description": "Group call: name is required field.", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser@google.com" - } - }, - "traits": { - "groupType": "accounts", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "error": "Missing required value from \"name\"", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2DnU7R3Ksf0O1IypvleCHNp4X7m", - "status_code": 400, - "destination_id": "2DnUEc7Ka4thYmPsPCdigkwaGkn", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "missing message type", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser4google.com" - } - }, - "traits": { - "name": "Mark Twain", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "statusCode": 400, - "error": "Message Type is not present. Aborting message.", - "statTags": { - "destination": "freshmarketer", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Wrong message type", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "testuser4google.com" - } - }, - "traits": { - "name": "Mark Twain", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Colony", - "state": "Haryana" - }, - "type": "page", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "statusCode": 400, - "error": "message type page not supported", - "statTags": { - "errorAt": "proc", - "destType": "FRESHMARKETER", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Group call: user email is missing", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - }, - "message": { - "messageId": "sadjb-1e2r3fhgb-12bvbbj", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": {} - }, - "traits": { - "groupType": "accounts", - "name": "div-quer", - "phone": "919191919191", - "numberOfEmployees": 51, - "annualRevenue": 1000, - "address": "Red Colony", - "city": "Lal colony", - "state": "Haryana" - }, - "type": "group", - "sentAt": "2022-04-22T10:57:58Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert", - "headers": { - "Authorization": "Token token=dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "unique_identifier": { - "name": "div-quer" - }, - "sales_account": { - "name": "div-quer", - "phone": "919191919191", - "number_of_employees": 51, - "annual_revenue": 1000, - "address": "", - "city": "Lal colony", - "state": "Haryana", - "created_at": "2022-06-22T10:57:58Z", - "updated_at": "2022-06-22T10:57:58Z" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call: Email is not present", - "input": { - "message": { - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-06-22T10:57:58Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - } - }, - "traits": { - "first_name": "Rk", - "last_name": "Narayan", - "mobileNumber": "1-926-555-9504", - "phone": "9988776655" - }, - "type": "identify", - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Missing required value from \"email\"", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2DnU7R3Ksf0O1IypvleCHNp4X7m", - "status_code": 400, - "destination_id": "2DnUEc7Ka4thYmPsPCdigkwaGkn", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call, event is not supported.", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn" - }, - "event": "Add to Cart", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "statusCode": 400, - "error": "event name Add to Cart is not supported. Aborting!", - "statTags": { - "errorAt": "proc", - "destType": "FRESHMARKETER", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track call: some required properties is missing for sales_activity", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Missing required value from \"properties.title\"", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: for salesActivityName", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "salesActivityName": "own-calender", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "test", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com", - "rudderEventsToFreshsalesEvents": [ - { - "from": "test", - "to": "sales_activity" - } - ] - } - } - }, - "output": [ - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "sales_activity": { - "title": "new Contact", - "created_at": "2020-10-20T08:14:28.778Z", - "end_date": "2022-06-04T17:30:00+05:30", - "owner_id": "70054866612", - "start_date": "2021-05-04T17:00:00+05:30", - "updated_at": "2020-10-20T08:14:28.778Z", - "targetable_id": 70054866612, - "targetable_type": "Contact", - "sales_activity_name": "own-calender", - "sales_activity_type_id": 70000666879 - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" - } - ] - }, - { - "description": "Track call: lifecycle_stage_id", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "email": "jamessampleton3@gmail.com", - "lifecycleStageId": "71012139273", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert", - "headers": { - "Authorization": "Token token=dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "lifecycle_stage_id": "71012139273" - }, - "unique_identifier": { - "emails": "jamessampleton3@gmail.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call: In lifecycle stage, email is missing", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "lifecycleStageId": "71012139273", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "email is required for updating life Cycle Stages. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: Either of lifecycleStageName or lifecycleStageId is required", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "jamessampleton3@gmail.com", - "properties": { - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Either of lifecycleStageName or lifecycleStageId is required. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: Either of sales activity name or sales activity type id is required", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Either of sales activity name or sales activity type id is required. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: Either of email or targetable_id is required for creating sales activity.", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "salesActivityName": "own-calender", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "Either of email or targetable_id is required for creating sales activity. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: sales activity with salesActivityTypeId", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "jamessampleton3@gmail.com", - "properties": { - "salesActivityTypeId": "70000663932", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "sales_activity": { - "title": "new Contact", - "created_at": "2020-10-20T08:14:28.778Z", - "end_date": "2022-06-04T17:30:00+05:30", - "owner_id": "70054866612", - "start_date": "2021-05-04T17:00:00+05:30", - "updated_at": "2020-10-20T08:14:28.778Z", - "targetable_id": 70054866612, - "targetable_type": "Contact", - "sales_activity_type_id": "70000663932" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" - } - }, - { - "description": "Track call: updated sales activity with salesActivityTypeId and targetableId", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "id": "70052305908", - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "salesActivityTypeId": "70000663932", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "sales_activity": { - "title": "new Contact", - "created_at": "2020-10-20T08:14:28.778Z", - "end_date": "2022-06-04T17:30:00+05:30", - "owner_id": "70054866612", - "start_date": "2021-05-04T17:00:00+05:30", - "updated_at": "2020-10-20T08:14:28.778Z", - "targetable_id": "70052305908", - "targetable_type": "Contact", - "sales_activity_type_id": "70000663932" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" - } - }, - { - "description": "Unsupported message Type", - "input": { - "message": { - "channel": "web", - "type": "page", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "jamessampleton3@gmail.com", - "properties": { - "lifecycleStageId": "71012139273", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "statusCode": 400, - "error": "message type page not supported", - "statTags": { - "errorAt": "proc", - "destType": "FRESHMARKETER", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track call: with wrong sales activity name", - "input": { - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - }, - "externalId": { - "type": "Contact" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "email": "test@rudderstack.com", - "properties": { - "product_name": "Shirt", - "brand": "Wrogn", - "salesActivityName": "own-list", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612" - }, - "event": "sales_activity", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "sales Activity own-list doesn't exists. Aborting!", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - }, - { - "description": "Track call: update contacts with sales Activity name", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "email": "jamessampleton6@gmail.com", - "lifecycleStageName": "final Customer", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contact": { - "lifecycle_stage_id": 71012806409 - }, - "unique_identifier": { - "emails": "jamessampleton6@gmail.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Token token=dummyApiKey" - }, - "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert" - } - }, - { - "description": "Track call: with wrong lifecycleStageName", - "input": { - "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", - "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": "/destinations/amplitude", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/amplitude", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", - "originalTimestamp": "2020-10-20T08:14:28.778Z", - "anonymousId": "my-anonymous-id-new", - "userId": "newUserIdAlias", - "properties": { - "email": "jamessampleton6@gmail.com", - "lifecycleStageName": "final ExCustomer", - "title": "new Contact", - "startDate": "2021-05-04T17:00:00+05:30", - "endDate": "2022-06-04T17:30:00+05:30", - "ownerId": "70054866612", - "targetableType": "Contact" - }, - "event": "lifecycle_stage", - "previousId": "sampleusrRudder3", - "sentAt": "2020-10-20T08:14:28.778Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" - } - } - }, - "output": { - "error": "failed to fetch lifeCycleStages with final ExCustomer", - "stage": "dest_transformer", - "record_id": null, - "source_id": "2EfN23bGjskM5qAM310n619XABT", - "status_code": 400, - "destination_id": "2FvdYen6HyqE0WlxkC6ZboEaDjR", - "source_job_run_id": "", - "source_task_run_id": "" - } - } -] diff --git a/test/__tests__/data/freshsales_router_input.json b/test/__tests__/data/freshsales_router_input.json deleted file mode 100644 index ea4b9887dd..0000000000 --- a/test/__tests__/data/freshsales_router_input.json +++ /dev/null @@ -1,78 +0,0 @@ -[ - { - "message": { - "context": { - "device": { - "name": "Mi", - "token": "dummyDeviceToken" - }, - "os": { - "name": "android" - }, - "traits": { - "address": { - "city": "city", - "country": "country", - "postalCode": "postalCode", - "state": "state", - "street": "street" - }, - "email": "user112@mail.com", - "firstName": "sample1", - "lastName": "user1" - } - }, - "messageId": "8184ebd7-3a19-45a3-a340-d6f449c63d27", - "originalTimestamp": "2022-08-30T11:28:48.429+05:30", - "receivedAt": "2022-08-30T11:28:43.648+05:30", - "request_ip": "[::1]", - "rudderId": "ed33ef22-569d-44b1-a6cb-063c69dca8f0", - "sentAt": "2022-08-30T11:28:48.429+05:30", - "timestamp": "2022-08-30T11:28:43.647+05:30", - "type": "identify", - "userId": "user113" - }, - "destination": { - "ID": "2E3xCNR3sae33y3AkGzuQ3ym05v", - "Name": "test", - "DestinationDefinition": { - "ID": "2E3x3AwySRvh6vXgYslvYApyFPb", - "Name": "FRESHSALES", - "DisplayName": "Freshsales", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "domain"] - }, - "excludeKeys": [], - "includeKeys": ["apiKey", "domain"], - "saveDestinationResponse": true, - "supportedMessageTypes": ["identify", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "hrkjfergeferf", - "domain": "rudderstack-479541159204968909.myfreshworks.com" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2E3xCLWeb83vOGDh0mkN4Auei3i" - }, - "metadata": {} - } -] diff --git a/test/__tests__/data/freshsales_router_output.json b/test/__tests__/data/freshsales_router_output.json deleted file mode 100644 index 69d259ff00..0000000000 --- a/test/__tests__/data/freshsales_router_output.json +++ /dev/null @@ -1,83 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack-479541159204968909.myfreshworks.com/crm/sales/api/contacts/upsert", - "headers": { - "Authorization": "Token token=hrkjfergeferf", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "emails": "user112@mail.com", - "first_name": "sample1", - "last_name": "user1", - "external_id": "user113", - "address": "street city state country postalCode", - "city": "city", - "state": "state", - "country": "country", - "zipcode": "postalCode", - "created_at": "2022-08-30T11:28:43.647+05:30", - "updated_at": "2022-08-30T11:28:43.647+05:30" - }, - "unique_identifier": { - "emails": "user112@mail.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{}], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2E3xCNR3sae33y3AkGzuQ3ym05v", - "Name": "test", - "DestinationDefinition": { - "ID": "2E3x3AwySRvh6vXgYslvYApyFPb", - "Name": "FRESHSALES", - "DisplayName": "Freshsales", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "domain"] - }, - "excludeKeys": [], - "includeKeys": ["apiKey", "domain"], - "saveDestinationResponse": true, - "supportedMessageTypes": ["identify", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "hrkjfergeferf", - "domain": "rudderstack-479541159204968909.myfreshworks.com" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2E3xCLWeb83vOGDh0mkN4Auei3i" - } - } -] diff --git a/test/__tests__/data/fullstory.json b/test/__tests__/data/fullstory.json deleted file mode 100644 index b6e462005b..0000000000 --- a/test/__tests__/data/fullstory.json +++ /dev/null @@ -1,354 +0,0 @@ -[ - { - "description": "Complete track event", - "input": { - "message": { - "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab", - "channel": "web", - "context": { - "app": { - "name": "RSPM", - "version": "1.9.0" - }, - "campaign": { - "name": "sales campaign", - "source": "google", - "medium": "medium", - "term": "event data", - "content": "Make sense of the modern data stack" - }, - "ip": "192.0.2.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "locale": "en-US", - "device": { - "manufacturer": "Nokia", - "model": "N2023" - }, - "page": { - "path": "/best-seller/1", - "initial_referrer": "https://www.google.com/search", - "initial_referring_domain": "google.com", - "referrer": "https://www.google.com/search?q=estore+bestseller", - "referring_domain": "google.com", - "search": "estore bestseller", - "title": "The best sellers offered by EStore", - "url": "https://www.estore.com/best-seller/1" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080, - "innerHeight": 200, - "innerWidth": 100 - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "event": "Product Reviewed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "userId": "u001", - "sessionId": "s001", - "review_id": "review_id_1", - "product_id": "product_id_1", - "rating": 5.0, - "review_body": "Sample Review Body", - "latitude": 44.56, - "longitude": 54.46, - "region": "Atlas", - "city": "NY", - "country": "USA" - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "Fullstory", - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "apiKey": "dummyfullstoryAPIKey" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "sourceType": "fddf", - "destinationType": "fdf", - "k8_namespace": "fdfd" - } - }, - "output": { - "body": { - "JSON": { - "name": "Product Reviewed", - "properties": { - "userId": "u001", - "sessionId": "s001", - "review_id": "review_id_1", - "product_id": "product_id_1", - "rating": 5, - "review_body": "Sample Review Body", - "latitude": 44.56, - "longitude": 54.46, - "region": "Atlas", - "city": "NY", - "country": "USA" - }, - "timestamp": "2020-01-09T10:01:53.558Z", - "context": { - "browser": { - "url": "https://www.estore.com/best-seller/1", - "user_agent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)", - "initial_referrer": "https://www.google.com/search" - }, - "mobile": { - "app_name": "RSPM", - "app_version": "1.9.0" - }, - "device": { - "manufacturer": "Nokia", - "model": "N2023" - }, - "location": { - "ip_address": "192.0.2.0", - "latitude": 44.56, - "longitude": 54.46, - "city": "NY", - "region": "Atlas", - "country": "USA" - } - }, - "session": { - "id": "s001" - }, - "user": { - "id": "u001" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "method": "POST", - "params": {}, - "version": "1", - "type": "REST", - "endpoint": "https://api.fullstory.com/v2/events", - "headers": { - "authorization": "Basic dummyfullstoryAPIKey", - "content-type": "application/json" - }, - "files": {} - } - }, - { - "description": "Missing event name", - "input": { - "message": { - "channel": "web", - "context": { - "device": { - "manufacturer": "Nokia", - "model": "N2023" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "integrations": { - "All": true - }, - "properties": { - "userId": "u001", - "latitude": 44.56, - "longitude": 54.46, - "region": "Atlas", - "city": "NY", - "country": "USA" - }, - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "Fullstory", - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "apiKey": "dummyfullstoryAPIKey" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "sourceType": "fddf", - "destinationType": "fdf", - "k8_namespace": "fdfd" - } - }, - "output": { - "error": "event is required for track call: Workflow: procWorkflow, Step: validateEventName, ChildStep: undefined, OriginalError: event is required for track call" - } - }, - { - "description": "Complete identify event", - "input": { - "message": { - "userId": "dummy-user001", - "channel": "web", - "context": { - "traits": { - "company": "Initech", - "address": { - "country": "USA", - "state": "CA", - "street": "101 dummy street" - }, - "email": "dummyuser@domain.com", - "name": "dummy user", - "phone": "099-999-9999" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36" - }, - "integrations": { - "All": true - }, - "originalTimestamp": "2020-01-27T12:20:55.301Z", - "receivedAt": "2020-01-27T17:50:58.657+05:30", - "request_ip": "14.98.244.60", - "sentAt": "2020-01-27T12:20:56.849Z", - "timestamp": "2020-01-27T17:50:57.109+05:30", - "type": "identify" - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "Fullstory", - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "apiKey": "fullstoryAPIKey" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "sourceType": "fddf", - "destinationType": "fdf", - "k8_namespace": "fdfd" - } - }, - "output": { - "body": { - "JSON": { - "properties": { - "company": "Initech", - "address": { - "country": "USA", - "state": "CA", - "street": "101 dummy street" - }, - "email": "dummyuser@domain.com", - "name": "dummy user", - "phone": "099-999-9999" - }, - "uid": "dummy-user001", - "email": "dummyuser@domain.com", - "display_name": "dummy user" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.fullstory.com/v2/users", - "headers": { - "authorization": "Basic fullstoryAPIKey", - "content-type": "application/json" - }, - "params": {}, - "files": {} - } - }, - { - "description": "Identify event with needed traits", - "input": { - "message": { - "userId": "dummy-user001", - "channel": "web", - "context": { - "traits": { - "email": "dummyuser@domain.com", - "name": "dummy user", - "phone": "099-999-9999" - } - }, - "timestamp": "2020-01-27T17:50:57.109+05:30", - "type": "identify" - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "Fullstory", - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "apiKey": "fullstoryAPIKey" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "sourceType": "fddf", - "destinationType": "fdf", - "k8_namespace": "fdfd" - } - }, - "output": { - "body": { - "JSON": { - "properties": { - "email": "dummyuser@domain.com", - "name": "dummy user", - "phone": "099-999-9999" - }, - "uid": "dummy-user001", - "email": "dummyuser@domain.com", - "display_name": "dummy user" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.fullstory.com/v2/users", - "headers": { - "authorization": "Basic fullstoryAPIKey", - "content-type": "application/json" - }, - "params": {}, - "files": {} - } - } -] diff --git a/test/__tests__/data/ga4.json b/test/__tests__/data/ga4.json deleted file mode 100644 index 5645c51457..0000000000 --- a/test/__tests__/data/ga4.json +++ /dev/null @@ -1,12734 +0,0 @@ -[ - { - "description": "(gtag) check all property mappings for 'Products Searched' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99v4f979fb997ce453373900f891" - } - ], - "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" - }, - "type": "track", - "event": "Products Searched", - "properties": { - "query": "t-shirts" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-22T10:57:58Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "timestamp_micros": 1650950229000000, - "events": [ - { - "name": "search", - "params": { - "search_term": "t-shirts", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'product list viewed' event", - "input": { - "message": { - "channel": "web", - "rudderId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99v4f979fb997ce453373900f891" - } - ], - "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" - }, - "type": "track", - "event": "product list viewed", - "properties": { - "list_id": "related_products", - "category": "Related_products", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "view_item_list", - "params": { - "item_list_id": "related_products", - "item_list_name": "Related_products", - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ], - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'promotion viewed' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "promotion viewed", - "properties": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "0", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "client_id", - "events": [ - { - "name": "view_promotion", - "params": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 0, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'promotion clicked' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "promotion clicked", - "properties": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "0", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "select_promotion", - "params": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 0, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) exclude only 'products' property from 'promotion clicked' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "promotion clicked", - "properties": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "select_promotion", - "params": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'product clicked' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product clicked", - "properties": { - "list_id": "related_products", - "category": "Related_products", - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "timezone": { - "name": "Europe/Tallinn" - }, - "engagementTimeMsec": 100, - "sessionId": 655 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "select_item", - "params": { - "item_list_id": "related_products", - "item_list_name": "Related_products", - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Related_products", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ], - "timezone_name": "Europe/Tallinn", - "engagement_time_msec": 100, - "session_id": 655 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'product viewed' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product viewed", - "properties": { - "currency": "USD", - "total": "7.77", - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "view_item", - "params": { - "currency": "USD", - "value": 7.77, - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'promotion clicked' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "promotion clicked", - "properties": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "0", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "typesOfClient": "gtag", - "firebaseAppId": "1:17864591371:android:7a9520d3c78962e21f9fee", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "client_id", - "events": [ - { - "name": "select_promotion", - "params": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 0, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(firebase) check all property mappings for 'promotion clicked' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "promotion clicked", - "properties": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "0", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "typesOfClient": "firebase", - "firebaseAppId": "1:17864591371:android:7a9520d3c78962e21f9fee", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "firebase_app_id": "1:17864591371:android:7a9520d3c78962e21f9fee" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "app_instance_id": "f0dd99b6f979fb551ce583373900f937", - "events": [ - { - "name": "select_promotion", - "params": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 0, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'product added' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "total": "7.77", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "add_to_cart", - "params": { - "currency": "USD", - "value": 7.77, - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'product removed' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product removed", - "properties": { - "currency": "USD", - "total": "7.77", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ], - "engagementTimeMsec": 100, - "sessionId": 655 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "remove_from_cart", - "params": { - "currency": "USD", - "value": 7.77, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ], - "engagement_time_msec": 100, - "session_id": 655 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'cart viewed' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "cart viewed", - "properties": { - "currency": "USD", - "total": "7.77", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "view_cart", - "params": { - "currency": "USD", - "value": 7.77, - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'checkout started' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "checkout started", - "properties": { - "currency": "USD", - "total": 7.77, - "coupon": "SUMMER_FUN", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "begin_checkout", - "params": { - "currency": "USD", - "value": 7.77, - "coupon": "SUMMER_FUN", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'payment info entered' -> 'add_payment_info' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "payment info entered", - "properties": { - "currency": "USD", - "value": "7.77", - "coupon": "SUMMER_FUN", - "payment_method": "Credit Card", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "params": { - "currency": "USD", - "value": 7.77, - "coupon": "SUMMER_FUN", - "payment_type": "Credit Card", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "name": "add_payment_info" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'checkout Step Completed' -> 'add_shipping_info' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "checkout Step Completed", - "properties": { - "currency": "USD", - "value": "7.77", - "coupon": "SUMMER_FUN", - "shipping_method": "Ground", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "params": { - "currency": "USD", - "value": 7.77, - "coupon": "SUMMER_FUN", - "shipping_tier": "Ground", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "name": "add_shipping_info" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'order completed' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "order completed", - "properties": { - "currency": "USD", - "order_id": "T_12345", - "total": 12.21, - "affiliation": "Google Store", - "coupon": "SUMMER_FUN", - "shipping": 3.33, - "tax": 1.11, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "purchase", - "params": { - "currency": "USD", - "transaction_id": "T_12345", - "value": 12.21, - "affiliation": "Google Store", - "coupon": "SUMMER_FUN", - "shipping": 3.33, - "tax": 1.11, - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'order refunded' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "order refunded", - "properties": { - "currency": "USD", - "order_id": "T_12345", - "total": 12.21, - "affiliation": "Google Store", - "coupon": "SUMMER_FUN", - "shipping": 3.33, - "tax": 1.11, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "refund", - "params": { - "currency": "USD", - "transaction_id": "T_12345", - "value": 12.21, - "affiliation": "Google Store", - "coupon": "SUMMER_FUN", - "shipping": 3.33, - "tax": 1.11, - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) exclude only 'products' property from 'order refunded' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "order refunded", - "properties": { - "currency": "USD", - "order_id": "T_12345", - "total": 12.21, - "affiliation": "Google Store", - "coupon": "SUMMER_FUN", - "shipping": 3.33, - "tax": 1.11 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "refund", - "params": { - "currency": "USD", - "transaction_id": "T_12345", - "value": 12.21, - "affiliation": "Google Store", - "coupon": "SUMMER_FUN", - "shipping": 3.33, - "tax": 1.11, - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'product added to wishlist' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product added to wishlist", - "properties": { - "currency": "USD", - "total": "7.77", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "add_to_wishlist", - "params": { - "currency": "USD", - "value": 7.77, - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'product_shared' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product_shared", - "properties": { - "share_via": "Twitter", - "content_type": "image", - "item_id": "C_12345" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "share", - "params": { - "method": "Twitter", - "content_type": "image", - "item_id": "C_12345", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'product_shared' event name without it's properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product_shared", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "share", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'cart Shared' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "cart Shared", - "properties": { - "share_via": "Twitter", - "content_type": "image", - "item_id": "C_12345" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "share", - "params": { - "method": "Twitter", - "content_type": "image", - "item_id": "C_12345", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'cart Shared' event name with empty properties: {}", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "cart Shared", - "properties": {}, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "share", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for group call", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "group", - "properties": { - "group_id": "G_12345", - "engagementTimeMsec": 100, - "sessionId": 655 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "group", - "params": { - "group_id": "G_12345", - "engagement_time_msec": 100, - "session_id": 655 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) group: send only group event name without it's properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "group", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "group", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'earn virtual currency' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "earn virtual currency", - "properties": { - "virtual_currency_name": "Gems", - "value": 5 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "earn_virtual_currency", - "params": { - "virtual_currency_name": "Gems", - "value": 5, - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'earn virtual currency' event name without it's properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "earn virtual currency", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "earn_virtual_currency", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'generate_lead' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "generate_lead", - "properties": { - "currency": "USD", - "value": 99.99 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "generate_lead", - "params": { - "currency": "USD", - "value": 99.99, - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'level_up' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "level_up", - "properties": { - "level": 5, - "character": "Player 1" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "level_up", - "params": { - "level": 5, - "character": "Player 1", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'level_up' event name without it's properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "level_up", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "level_up", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'login' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "login", - "properties": { - "method": "Google" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "login", - "params": { - "method": "Google", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'login' event name without it's properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "login", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "login", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'post_score' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "post_score", - "properties": { - "score": 10000, - "level": 5, - "character": "Player 1" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "post_score", - "params": { - "score": 10000, - "level": 5, - "character": "Player 1", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'login' event name with its required `score` properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "post_score", - "properties": { - "score": 10000 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "post_score", - "params": { - "score": 10000, - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'select_content' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "select_content", - "properties": { - "content_type": "product", - "item_id": "I_12345" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "select_content", - "params": { - "content_type": "product", - "item_id": "I_12345", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'group' event name without it's properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "select_content", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "select_content", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'sign_up' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "sign_up", - "properties": { - "method": "Google" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "sign_up", - "params": { - "method": "Google", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'sign_up' event name without it's properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "sign_up", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "sign_up", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'spend_virtual_currency' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "spend_virtual_currency", - "properties": { - "value": 5, - "virtual_currency_name": "Gems", - "item_name": "Starter Boost" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "spend_virtual_currency", - "params": { - "value": 5, - "virtual_currency_name": "Gems", - "item_name": "Starter Boost", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send only 'spend_virtual_currency' event name with it's required 'value' and 'virtual_currency_name' properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "spend_virtual_currency", - "properties": { - "value": 5, - "virtual_currency_name": "Gems" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "spend_virtual_currency", - "params": { - "value": 5, - "virtual_currency_name": "Gems", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send 'tutorial_begin' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "tutorial_begin", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "tutorial_begin", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send 'tutorial_complete' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "tutorial_complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "tutorial_complete", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send all properties for 'unlock_achievement' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "unlock_achievement", - "properties": { - "achievement_id": "A_12345" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "unlock_achievement", - "params": { - "achievement_id": "A_12345", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) send all properties for 'view_search_results' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "view_search_results", - "properties": { - "search_term": "Clothing", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "view_search_results", - "params": { - "search_term": "Clothing", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) pass only 'products: [...]' property for 'view_search_results' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "view_search_results", - "properties": { - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "view_search_results", - "params": { - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) pass custom event name 'rudderstack event' to GA4 along with custom properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "rudderstack event", - "properties": { - "total": "10", - "timezone": { - "name": "Europe/Tallinn" - }, - "engagementTimeMsec": 100, - "sessionId": 655 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "rudderstack_event", - "params": { - "total": "10", - "timezone_name": "Europe/Tallinn", - "engagement_time_msec": 100, - "session_id": 655 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) pass custom event name 'rudderstack event' to GA4 along with custom properties and user_properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "rudderstack event", - "properties": { - "total": "10", - "user_properties": { - "price": "19" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "user_properties": { - "price": { - "value": "19" - } - }, - "events": [ - { - "name": "rudderstack_event", - "params": { - "total": "10", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Error]: (gtag) pass reserved event name to GA4", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "ad_click", - "properties": { - "total": "10" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "track:: Reserved event names are not allowed", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Exclusion]: (gtag) pass reserved property name to GA4 for custom events", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "rudderstack event", - "properties": { - "firebase_conversion": "firebase_conversion", - "google_id": "1234", - "ga_value": "ga_value", - "value": "10" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "rudderstack_event", - "params": { - "value": "10", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Exclusion]: (gtag) pass reserved property name and reserved properties in `user_properties` to GA4 for custom events", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "rudderstack event", - "properties": { - "firebase_conversion": "firebase_conversion", - "google_id": "1234", - "ga_value": "ga_value", - "value": "10", - "user_properties": { - "first_open_time": "first_open_time", - "user_id": "user_id", - "firebase_value": "firebase_value", - "price": "100" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "user_properties": { - "price": { - "value": "100" - } - }, - "events": [ - { - "name": "rudderstack_event", - "params": { - "value": "10", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Error]: (gtag) pass reserved event names along with reserved properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "app_remove", - "properties": { - "firebase_conversion": "firebase_conversion", - "google_id": "1234", - "ga_value": "ga_value", - "value": "10", - "user_properties": { - "first_open_time": "first_open_time", - "user_id": "user_id", - "firebase_value": "firebase_value", - "price": "100" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "track:: Reserved event names are not allowed", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Error] (gtag) pass reserved custom prefix names to GA4 events", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "firebase_event1", - "properties": { - "firebase_conversion": "firebase_conversion", - "google_id": "1234", - "ga_value": "ga_value", - "value": "10" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "Reserved custom prefix names are not allowed", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "(gtag) check all property mappings for 'product added' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "total": "7.77", - "google_data": "google_data", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "add_to_cart", - "params": { - "currency": "USD", - "value": 7.77, - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) pass custom event name with its properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "rudderstack event", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "rudderstack_event", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) map 'product added' properties to ga4 'add_to_cart' items array", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "properties": { - "affiliation": "Google Merchandise Store", - "brand": "Google", - "category": "Related_products", - "coupon": "SUMMER_FUN", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "list_id": "related_products", - "location_id": "L_12345", - "name": "Monopoly: 3rd Edition", - "position": "1", - "price": "19", - "product_id": "507f1f77bcf86cd799439011", - "products": [], - "quantity": "2", - "total": "7.77", - "variant": "green" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "client_id": "client_id", - "events": [ - { - "name": "add_to_cart", - "params": { - "currency": "USD", - "engagement_time_msec": 1, - "items": [ - { - "affiliation": "Google Merchandise Store", - "coupon": "SUMMER_FUN", - "currency": "USD", - "discount": 2.22, - "index": 1, - "item_brand": "Google", - "item_category": "Related_products", - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_id": "507f1f77bcf86cd799439011", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "item_name": "Monopoly: 3rd Edition", - "item_variant": "green", - "location_id": "L_12345", - "price": 19, - "quantity": 2 - } - ], - "list_id": "related_products", - "value": 7.77 - } - } - ], - "non_personalized_ads": true, - "timestamp_micros": 1650950229000000 - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://www.google-analytics.com/mp/collect", - "files": {}, - "headers": { - "Content-Type": "application/json", - "HOST": "www.google-analytics.com" - }, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "type": "REST", - "version": "1" - } - }, - { - "description": "(gtag) pass event name with invalid data type for products: {...} properties (when products parameter is optional)", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "total": "7.77", - "products": { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - }, - "affiliation": "Google Merchandise Store", - "brand": "Google", - "category": "Related_products", - "coupon": "SUMMER_FUN", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "list_id": "related_products", - "location_id": "L_12345", - "name": "Monopoly: 3rd Edition", - "position": "1", - "price": "19", - "product_id": "507f1f77bcf86cd799439011", - "quantity": "2", - "variant": "green" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "client_id": "client_id", - "events": [ - { - "name": "add_to_cart", - "params": { - "currency": "USD", - "engagement_time_msec": 1, - "items": [ - { - "affiliation": "Google Merchandise Store", - "coupon": "SUMMER_FUN", - "currency": "USD", - "discount": 2.22, - "index": 1, - "item_brand": "Google", - "item_category": "Related_products", - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_id": "507f1f77bcf86cd799439011", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "item_name": "Monopoly: 3rd Edition", - "item_variant": "green", - "location_id": "L_12345", - "price": 19, - "quantity": 2 - } - ], - "list_id": "related_products", - "value": 7.77 - } - } - ], - "non_personalized_ads": true, - "timestamp_micros": 1650950229000000 - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://www.google-analytics.com/mp/collect", - "files": {}, - "headers": { - "Content-Type": "application/json", - "HOST": "www.google-analytics.com" - }, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "type": "REST", - "version": "1" - } - }, - { - "description": "[Error] (gtag) pass event name to GA4 with missing fields i.e required in products: [..]", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "total": "7.77", - "products": [ - { - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "One of product_id or name is required", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Error] (gtag) pass event name to GA4 with missing fields i.e required in properties", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "Product Viewed", - "properties": { - "currency": "USD", - "total": "7.77" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "One of product_id or name is required", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Error] (gtag) missing API Secret", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "tutotial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "API Secret not found. Aborting ", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Error] (gtag) missing measurementId", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "tutotial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "measurementId must be provided. Aborting", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "(gtag) firing group event with event name. should take event name by default", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "group", - "event": "tutorial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "client_id", - "events": [ - { - "name": "join_group", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Error] (gtag) payload has missing message.type", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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": "tutotial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "Message Type is not present. Aborting message.", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Error] (gtag) payload has missing event name", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "Event name is required", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "(gtag) taking client_id from anonymousId", - "input": { - "message": { - "channel": "web", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - } - ], - "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" - }, - "type": "track", - "event": "tutotial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "events": [ - { - "name": "tutotial_complete", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Error] (firebase) payload has missing ga4AppInstanceId", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "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" - }, - "type": "track", - "event": "tutotial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "", - "firebaseAppId": "1:17864591371:android:7a9520d3c78962e21f9fee", - "blockPageViewEvent": false, - "typesOfClient": "firebase", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "ga4AppInstanceId must be provided under externalId", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Error] (firebase) pass reserved event name", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "app_store_subscription_cancel", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "", - "firebaseAppId": "1:17864591371:android:7a9520d3c78962e21f9fee", - "blockPageViewEvent": false, - "typesOfClient": "firebase", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "Reserved custom event names are not allowed", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "(gtag) check all property mappings for 'tutorial complete' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "tutorial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "non_personalized_ads": true, - "events": [ - { - "name": "tutorial_complete", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) check all property mappings for 'cart viewed' event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "cart viewed", - "properties": { - "currency": "USD", - "total": "7.77", - "products": [ - { - "product_id": 0, - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "view_cart", - "params": { - "currency": "USD", - "value": 7.77, - "engagement_time_msec": 1, - "items": [ - { - "item_id": 0, - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Error]: (firebase) missing firebaseAppId", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "promotion clicked", - "properties": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "0", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "", - "typesOfClient": "firebase", - "firebaseAppId": "", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "firebaseAppId must be provided. Aborting", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "(gtag) firing page call", - "input": { - "message": { - "channel": "web", - "rudderId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - } - ], - "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" - }, - "type": "page", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "events": [ - { - "name": "page_view", - "params": { - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) firing page call with custom properties", - "input": { - "message": { - "channel": "web", - "rudderId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - } - ], - "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" - }, - "type": "page", - "event": "page view", - "properties": { - "view": "login" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "events": [ - { - "name": "page_view", - "params": { - "view": "login", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Error]: (gtag) pass timestamp more than 72 hours into the past", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-20T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "tutotial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "blockPageViewEvent": false, - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "Allowed timestamp is [72 hours] into the past", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Error]: (gtag) pass timestamp more than 15 min into the future", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-05-05T15:47:57Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "tutotial complete", - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "blockPageViewEvent": false, - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "Allowed timestamp is [15 minutes] into the future", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "(gtag) pass custom properties along with products: [..] parameters to GA4 standard events along with its stated ones", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "order completed", - "properties": { - "checkout_id": "12345", - "order_id": "1234", - "myCustomProp": "My arbitray value", - "affiliation": "Apple Store", - "total": 20, - "revenue": 15.0, - "shipping": 22, - "tax": 1, - "discount": 1.5, - "coupon": "ImagePro", - "currency": "USD", - "products": [ - { - "product_id": "123", - "sku": "G-32", - "name": "Monopoly", - "price": 14, - "quantity": 1, - "category": "Games", - "item_category2": "Board games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - } - ], - "timezone": { - "name": "Europe/Tallinn" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "purchase", - "params": { - "checkout_id": "12345", - "transaction_id": "1234", - "myCustomProp": "My arbitray value", - "affiliation": "Apple Store", - "value": 20, - "shipping": 22, - "tax": 1, - "discount": 1.5, - "coupon": "ImagePro", - "currency": "USD", - "engagement_time_msec": 1, - "items": [ - { - "item_id": "123", - "sku": "G-32", - "item_name": "Monopoly", - "price": 14, - "quantity": 1, - "item_category": "Games", - "item_category2": "Board games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - } - ], - "timezone_name": "Europe/Tallinn" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) pass custom properties excluding products: [..] parameter to GA4 standard events along with its stated ones", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "promotion clicked", - "properties": { - "customProp-1": "check-1", - "customProp-2": "check-2", - "timezone": { - "name": "Europe/Tallinn" - }, - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale" - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "client_id": "client_id", - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "events": [ - { - "name": "select_promotion", - "params": { - "customProp-1": "check-1", - "customProp-2": "check-2", - "timezone_name": "Europe/Tallinn", - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) message type group -> 'join_group' with custom event", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "group", - "traits": { - "custom1": 1234, - "custom2": "custom2", - "timezone": { - "name": "Europe/Tallinn" - }, - "engagementTimeMsec": 100, - "sessionId": 655 - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "client_id", - "events": [ - { - "name": "join_group", - "params": { - "custom1": 1234, - "custom2": "custom2", - "timezone_name": "Europe/Tallinn", - "engagement_time_msec": 100, - "session_id": 655 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag): check args keyword for price x currency multiplication", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "price": 2.4, - "quantity": 2, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "client_id", - "events": [ - { - "name": "add_to_cart", - "params": { - "currency": "USD", - "value": 4.8, - "engagement_time_msec": 1, - "items": [ - { - "item_id": "507f1f77bcf86cd799439011", - "item_name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "item_category": "Apparel", - "item_brand": "Google", - "item_variant": "green", - "price": 19, - "quantity": 2, - "index": 1, - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ], - "price": 2.4, - "quantity": 2 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag): take page properties from context.page for 'page' call along with custom properties", - "input": { - "message": { - "channel": "web", - "rudderId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "page": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "referrer": "morkey" - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - } - ], - "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" - }, - "type": "page", - "integrations": { - "All": true - }, - "properties": { - "cust1": 1234, - "engagementTimeMsec": 100, - "sessionId": 655 - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "events": [ - { - "name": "page_view", - "params": { - "page_referrer": "morkey", - "page_title": "miphone", - "page_location": "http://morkey.in", - "cust1": 1234, - "engagement_time_msec": 100, - "session_id": 655 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "[Error] GA4: event not as string", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2022-04-26T05:17:09Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": { - "name": "promotion_viewed" - }, - "properties": { - "creative_name": "Summer Banner", - "creative_slot": "featured_app_1", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "0", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "promotion_id": "P_12345", - "promotion_name": "Summer Sale", - "creative_name": "summer_banner2", - "creative_slot": "featured_app_1" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-04-20T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "track:: event name should be string", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "[Error] GA4: client_id not found in all four path", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "price": 2.4, - "quantity": 2, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": true, - "sendLoginSignup": true, - "newOrExistingUserTrait": "firstLogin", - "loginSignupMethod": "method", - "generateLead": true, - "generateLeadValueTrait": "value", - "generateLeadCurrencyTrait": "currency", - "clientIdFieldIdentifier": "properties.client_id" - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "ga4ClientId, anonymousId or messageId must be provided", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "client_id isn't sent from the path defined in the webapp config, falling back to default values i.e here it is anonymousId", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "price": 2.4, - "quantity": 2, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": true, - "sendLoginSignup": true, - "newOrExistingUserTrait": "firstLogin", - "loginSignupMethod": "method", - "generateLead": true, - "generateLeadValueTrait": "value", - "generateLeadCurrencyTrait": "currency", - "clientIdFieldIdentifier": "properties.client_id" - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "add_to_cart", - "params": { - "items": [ - { - "index": 1, - "price": 19, - "coupon": "SUMMER_FUN", - "item_id": "507f1f77bcf86cd799439011", - "currency": "USD", - "discount": 2.22, - "quantity": 2, - "item_name": "Monopoly: 3rd Edition", - "item_brand": "Google", - "affiliation": "Google Merchandise Store", - "location_id": "L_12345", - "item_list_id": "related_products", - "item_variant": "green", - "item_category": "Apparel", - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_name": "Related Products" - } - ], - "price": 2.4, - "value": 4.8, - "currency": "USD", - "quantity": 2, - "engagement_time_msec": 1 - } - } - ], - "client_id": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "any custom or item property with array value, is flattened with underscore delimeter", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "product added", - "originalTimestamp": "2022-04-26T05:17:09Z", - "properties": { - "currency": "USD", - "total": "7.77", - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "address": { - "city": "kolkata", - "district": "24pgs" - }, - "categoryLevels": ["Furniture", "Bedroom Furniture", "Dressers & Chests"], - "products": [ - { - "product_id": "1234", - "product_details": { - "colour": "red", - "shape": "rectangle" - }, - "productLevels": ["test1", "test2", "test3"] - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2022-11-14T15:20:57Z" - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": false, - "sendLoginSignup": false, - "generateLead": false - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "timestamp_micros": 1650950229000000, - "non_personalized_ads": true, - "client_id": "client_id", - "events": [ - { - "name": "add_to_cart", - "params": { - "currency": "USD", - "value": 7.77, - "items": [ - { - "item_id": "1234", - "product_details_colour": "red", - "product_details_shape": "rectangle", - "productLevels_0": "test1", - "productLevels_1": "test2", - "productLevels_2": "test3" - } - ], - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345", - "address_city": "kolkata", - "address_district": "24pgs", - "categoryLevels_0": "Furniture", - "categoryLevels_1": "Bedroom Furniture", - "categoryLevels_2": "Dressers & Chests", - "engagement_time_msec": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "extract session_id from context.sessionId", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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", - "sessionId": 16678456735 - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "price": 2.4, - "quantity": 2, - "client_id": "client@1234", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": true, - "sendLoginSignup": true, - "newOrExistingUserTrait": "firstLogin", - "loginSignupMethod": "method", - "generateLead": true, - "generateLeadValueTrait": "value", - "generateLeadCurrencyTrait": "currency" - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "add_to_cart", - "params": { - "items": [ - { - "index": 1, - "price": 19, - "coupon": "SUMMER_FUN", - "item_id": "507f1f77bcf86cd799439011", - "currency": "USD", - "discount": 2.22, - "quantity": 2, - "item_name": "Monopoly: 3rd Edition", - "item_brand": "Google", - "affiliation": "Google Merchandise Store", - "location_id": "L_12345", - "item_list_id": "related_products", - "item_variant": "green", - "item_category": "Apparel", - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_name": "Related Products" - } - ], - "price": 2.4, - "value": 4.8, - "currency": "USD", - "quantity": 2, - "session_id": 16678456735, - "engagement_time_msec": 1, - "client_id": "client@1234" - } - } - ], - "client_id": "client_id", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) send integer userId", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": 34567, - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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", - "sessionId": 16678456735 - }, - "type": "track", - "event": "product added", - "properties": { - "currency": "USD", - "price": 2.4, - "quantity": 2, - "client_id": "client@1234", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "Monopoly: 3rd Edition", - "coupon": "SUMMER_FUN", - "category": "Apparel", - "brand": "Google", - "variant": "green", - "price": "19", - "quantity": "2", - "position": "1", - "affiliation": "Google Merchandise Store", - "currency": "USD", - "discount": 2.22, - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_id": "related_products", - "item_list_name": "Related Products", - "location_id": "L_12345" - } - ] - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "blockPageViewEvent": false, - "typesOfClient": "gtag", - "extendPageViewParams": false, - "sendUserId": false, - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "enableServerSideIdentify": true, - "sendLoginSignup": true, - "newOrExistingUserTrait": "firstLogin", - "loginSignupMethod": "method", - "generateLead": true, - "generateLeadValueTrait": "value", - "generateLeadCurrencyTrait": "currency" - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "add_to_cart", - "params": { - "items": [ - { - "index": 1, - "price": 19, - "coupon": "SUMMER_FUN", - "item_id": "507f1f77bcf86cd799439011", - "currency": "USD", - "discount": 2.22, - "quantity": 2, - "item_name": "Monopoly: 3rd Edition", - "item_brand": "Google", - "affiliation": "Google Merchandise Store", - "location_id": "L_12345", - "item_list_id": "related_products", - "item_variant": "green", - "item_category": "Apparel", - "item_category2": "Adult", - "item_category3": "Shirts", - "item_category4": "Crew", - "item_category5": "Short sleeve", - "item_list_name": "Related Products" - } - ], - "price": 2.4, - "value": 4.8, - "currency": "USD", - "quantity": 2, - "session_id": 16678456735, - "engagement_time_msec": 1, - "client_id": "client@1234" - } - } - ], - "client_id": "client_id", - "user_id": "34567", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) login event with user_properties", - "input": { - "message": { - "userId": "user@1", - "channel": "web", - "anonymousId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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": { - "campaign": "advertizing" - }, - "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" - }, - "type": "track", - "event": "login", - "properties": { - "method": "facebook" - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "login", - "params": { - "method": "facebook", - "engagement_time_msec": 1 - } - } - ], - "user_id": "user@1", - "user_properties": { - "campaign": { - "value": "advertizing" - } - }, - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) sign_up event", - "input": { - "message": { - "userId": "user@1", - "channel": "web", - "anonymousId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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": { - "campaign": "advertizing" - }, - "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" - }, - "type": "track", - "event": "sign_up", - "properties": { - "method": "google" - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "sign_up", - "params": { - "method": "google", - "engagement_time_msec": 1 - } - } - ], - "user_id": "user@1", - "user_properties": { - "campaign": { - "value": "advertizing" - } - }, - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) generate_lead event", - "input": { - "message": { - "userId": "user@1", - "channel": "web", - "anonymousId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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": { - "campaign": "advertizing" - }, - "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" - }, - "type": "track", - "event": "generate_lead", - "properties": { - "source": "instagram", - "value": 20 - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "generate_lead", - "params": { - "currency": "USD", - "value": 20, - "source": "instagram", - "engagement_time_msec": 1 - } - } - ], - "user_id": "user@1", - "user_properties": { - "campaign": { - "value": "advertizing" - } - }, - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) track call with page information such as url, title, referrer", - "input": { - "message": { - "userId": "user@1", - "channel": "web", - "anonymousId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "page": { - "initial_referrer": "$direct", - "path": "/", - "referrer": "$direct", - "tab_url": "https://www.rudderstack.com/", - "title": "Document", - "url": "https://www.rudderstack.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" - }, - "type": "track", - "event": "generate_lead", - "properties": { - "source": "instagram", - "value": 20 - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "generate_lead", - "params": { - "currency": "USD", - "value": 20, - "source": "instagram", - "page_location": "https://www.rudderstack.com/", - "page_referrer": "$direct", - "page_title": "Document", - "engagement_time_msec": 1 - } - } - ], - "user_id": "user@1", - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) track event with hybrid connection mode using buffer cloud mode event approach", - "input": { - "message": { - "userId": "user@1", - "channel": "web", - "anonymousId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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": { - "campaign": "advertizing" - }, - "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" - }, - "type": "track", - "event": "generate_lead", - "properties": { - "source": "instagram", - "value": 20 - }, - "integrations": { - "All": true, - "Google Analytics 4 (GA4)": { - "clientId": "554581488.1683172875", - "sessionId": "1683172875" - } - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "connectionMode": "hybrid", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "generate_lead", - "params": { - "currency": "USD", - "value": 20, - "source": "instagram", - "session_id": "1683172875", - "engagement_time_msec": 1 - } - } - ], - "user_id": "user@1", - "user_properties": { - "campaign": { - "value": "advertizing" - } - }, - "client_id": "554581488.1683172875", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) track event with hybrid connection mode using override client_id and session_id approach", - "input": { - "message": { - "userId": "user@1", - "channel": "web", - "anonymousId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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": { - "campaign": "advertizing" - }, - "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", - "sessionId": 1683172874065 - }, - "type": "track", - "event": "generate_lead", - "properties": { - "source": "instagram", - "value": 20 - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "connectionMode": "hybrid", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "generate_lead", - "params": { - "currency": "USD", - "value": 20, - "source": "instagram", - "session_id": 1683172874065, - "engagement_time_msec": 1 - } - } - ], - "user_id": "user@1", - "user_properties": { - "campaign": { - "value": "advertizing" - } - }, - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) firing group calls with GA4 hybrid mode connection", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "group", - "event": "tutorial complete", - "integrations": { - "Google Analytics 4": { - "clientId": "4718026.1683606287", - "sessionId": "1683606287", - "sessionNumber": 1 - } - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "connectionMode": "hybrid", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/mp/collect", - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "body": { - "JSON": { - "non_personalized_ads": true, - "client_id": "4718026.1683606287", - "events": [ - { - "name": "join_group", - "params": { - "engagement_time_msec": 1, - "session_id": "1683606287", - "session_number": 1 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "(gtag) sign_up event with all data types of user_properties", - "input": { - "message": { - "userId": "user@1", - "channel": "web", - "anonymousId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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": { - "campaign": "advertizing", - "name": "rudder", - "age": 45, - "hobby": ["dancing", "singing", "reading"], - "enableEURegion": false, - "isEnterpriseUser": { - "value": false - } - }, - "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" - }, - "type": "track", - "event": "sign_up", - "properties": { - "method": "google" - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6BET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "sign_up", - "params": { - "method": "google", - "engagement_time_msec": 1 - } - } - ], - "user_id": "user@1", - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "user_properties": { - "age": { - "value": 45 - }, - "name": { - "value": "rudder" - }, - "campaign": { - "value": "advertizing" - }, - "enableEURegion": { - "value": false - } - }, - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "[Error]: (gtag) event name starts with numbers", - "input": { - "message": { - "channel": "web", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "type": "track", - "event": "1234_sign_up", - "properties": { - "total": "10" - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "connectionMode": "cloud", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "statusCode": 400, - "error": "Event name must start with a letter and can only contain letters, numbers, and underscores", - "statTags": { - "destination": "ga4", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "(gtag) event having multiple empty array and object parameters", - "input": { - "message": { - "type": "track", - "event": "logIn", - "userId": "user@1", - "group_id": "group@1", - "anon_id": "78e95d6d-58c0-4237-b99e-2ef510b6d502", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "externalId": [ - { - "type": "ga4AppInstanceId", - "id": "f0dd99b6f979fb551ce583373900f937" - }, - { - "type": "ga4ClientId", - "id": "client_id" - } - ], - "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" - }, - "properties": { - "user_interest": "Moderate", - "company_interest": "", - "profile": [ - { - "is_6qa": true, - "product": null, - "product_fit": "Moderate", - "product_stage": "Purchase", - "intent_score": 89, - "profile_score": 52, - "product_display$name": "rudderstack" - } - ], - "user_company": "Analytics consulting", - "user_account": "1", - "user_id_mappings": "330098|245252|461224|282599", - "company_naics_6sense": "5173", - "usr_consent": null, - "firebase_user_id": "kdgMnP", - "google_user_id": "G-123456", - "company_domain": "consulting.net", - "company_region": "New Zealand", - "user_product_interests": { - "ids": [], - "list": [ - { - "id": 330098, - "name": [] - }, - { - "id": 245252, - "name": {} - } - ], - "names": [] - }, - "company_country": {}, - "company_industry": "Business Analytics", - "company_revenue": "$5M - $10M", - "company_annual_revenue": "5568000", - "company_sic_description": "", - "company_naics_description": [] - }, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "dummyApiSecret", - "measurementId": "G-T40PE6KET4", - "firebaseAppId": "", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "connectionMode": "cloud", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "login", - "params": { - "company_annual_revenue": "5568000", - "company_domain": "consulting.net", - "company_industry": "Business Analytics", - "company_naics_6sense": "5173", - "company_region": "New Zealand", - "company_revenue": "$5M - $10M", - "engagement_time_msec": 1, - "profile_0_intent_score": 89, - "profile_0_is_6qa": true, - "profile_0_product_display$name": "rudderstack", - "profile_0_product_fit": "Moderate", - "profile_0_product_stage": "Purchase", - "profile_0_profile_score": 52, - "user_account": "1", - "user_company": "Analytics consulting", - "user_id_mappings": "330098|245252|461224|282599", - "user_interest": "Moderate", - "user_product_interests_list_0_id": 330098, - "user_product_interests_list_1_id": 245252 - } - } - ], - "user_id": "user@1", - "client_id": "client_id", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "dummyApiSecret", - "measurement_id": "G-T40PE6KET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - }, - { - "description": "(gtag) campaign_details custom event", - "input": { - "message": { - "userId": "user@1", - "channel": "web", - "anonymousId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": "false", - "advertisingId": "T0T0T072-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 - }, - "campaign": { - "id": "google_1234", - "name": "Summer_fun", - "source": "google", - "medium": "cpc", - "term": "summer+travel", - "content": "logo link" - }, - "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" - }, - "type": "track", - "event": "Campaign Details", - "properties": {}, - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiSecret": "QyWKGHj8QhG2L4ePAPiXCA", - "measurementId": "G-T40PE6BET4", - "typesOfClient": "gtag", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "campaign_details", - "params": { - "campaign_id": "google_1234", - "campaign": "Summer_fun", - "source": "google", - "medium": "cpc", - "term": "summer+travel", - "content": "logo link", - "engagement_time_msec": 1 - } - } - ], - "user_id": "user@1", - "client_id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "non_personalized_ads": true - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "api_secret": "QyWKGHj8QhG2L4ePAPiXCA", - "measurement_id": "G-T40PE6BET4" - }, - "headers": { - "HOST": "www.google-analytics.com", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://www.google-analytics.com/mp/collect" - } - } -] diff --git a/test/__tests__/data/gainsight_input.json b/test/__tests__/data/gainsight_input.json deleted file mode 100644 index 78c82d002d..0000000000 --- a/test/__tests__/data/gainsight_input.json +++ /dev/null @@ -1,416 +0,0 @@ -[ - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "personMap": [], - "companyMap": [], - "eventNameMap": [], - "eventVersionMap": [] - } - }, - "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": "cosmo@krammer.com", - "name": "Cosmo Krammer", - "linkedinUrl": "https://linkedin.com/cosmo-krammer", - "location": "New York", - "emailOptOut": true, - "masterAvatarTypeCode": 10 - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "personMap": [{ "from": "age", "to": "age__gc" }], - "companyMap": [], - "eventNameMap": [], - "eventVersionMap": [] - } - }, - "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": "cosmo@krammer.com", - "name": "Cosmo Krammer", - "linkedinUrl": "https://linkedin.com/cosmo-krammer", - "location": "New York", - "emailOptOut": true, - "masterAvatarTypeCode": 10, - "age": 35, - "randomKey": "this should be dropped" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "personMap": [], - "companyMap": [], - "eventNameMap": [], - "eventVersionMap": [] - } - }, - "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": { - "name": "Cosmo Krammer", - "linkedinUrl": "https://linkedin.com/cosmo-krammer", - "location": "New York", - "emailOptOut": true, - "masterAvatarTypeCode": 10 - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "sharedSecret": "sample-shared-secret", - "eventNameMap": [{ "from": "Ticket Resolved", "to": "Ticket Resolved Event" }], - "eventVersionMap": [{ "from": "Ticket Resolved", "to": "1.0.0" }], - "topicName": "Ticket Actions", - "tenantId": "sample-tenant-id", - "personMap": [], - "companyMap": [] - } - }, - "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": "track", - "event": "Ticket Resolved", - "properties": { - "ticketId": "sample-ticket-id", - "actionEmail": "sample@email.com", - "status": "resovled" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "sharedSecret": "sample-shared-secret", - "personMap": [], - "companyMap": [], - "eventNameMap": [], - "eventVersionMap": [] - } - }, - "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 }, - "traits": { - "email": "krammer@seinfeld.com" - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "anon_id", - "type": "group", - "traits": { - "name": "Kramerica Industries", - "industry": "Sitcom", - "employees": "100", - "status": "complete", - "companyType": "spoof" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "sharedSecret": "sample-shared-secret", - "personMap": [], - "companyMap": [], - "eventNameMap": [], - "eventVersionMap": [] - } - }, - "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 }, - "traits": { - "email": "krammer@seinfeld.com" - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "anon_id", - "type": "group", - "traits": { - "name": "Seinfeld Corps", - "industry": "TV Series", - "employees": "50", - "status": "complete" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "personMap": [], - "companyMap": [], - "eventNameMap": [], - "eventVersionMap": [] - } - }, - "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": "cosmo@krammer.com", - "firstname": "Cosmo", - "lastname": "Krammer", - "linkedinUrl": "https://linkedin.com/cosmo-krammer", - "location": "New York", - "emailOptOut": true, - "masterAvatarTypeCode": 10 - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "sharedSecret": "sample-shared-secret", - "eventNameMap": [{ "from": "Ticket Resolved", "to": "Ticket Resolved Event" }], - "eventVersionMap": [{ "from": "Ticket Resolved", "to": "1.0.0" }], - "topicName": "Ticket Actions", - "tenantId": "sample-tenant-id", - "personMap": [], - "companyMap": [], - "contractId": "externalId-shall-get-precedence" - } - }, - "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 }, - "externalId": [ - { - "type": "gainsightEventContractId", - "id": "sample-contract-id" - } - ] - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "anon_id", - "type": "track", - "event": "Ticket Resolved", - "properties": { - "ticketId": "sample-ticket-id", - "actionEmail": "sample@email.com", - "status": "resovled" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "domain": "demo-domain.gainsightcloud.com", - "accessKey": "sample-access-key", - "personMap": [{ "from": "car", "to": "car__gc" }], - "companyMap": [], - "eventNameMap": [], - "eventVersionMap": [] - } - }, - "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": { - "name": "Bruce Wayne", - "email": "ceo@waynefoundation.com", - "car": "Batmobile", - "comments": "I am Batman!", - "lastName": "Wayne", - "location": "Gotham Central", - "firstName": "Bruce", - "linkedinUrl": "https://www.linkedin.com/in/notyourBatman/" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - } -] diff --git a/test/__tests__/data/gainsight_output.json b/test/__tests__/data/gainsight_output.json deleted file mode 100644 index 6ed0928121..0000000000 --- a/test/__tests__/data/gainsight_output.json +++ /dev/null @@ -1,215 +0,0 @@ -[ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "Email": "cosmo@krammer.com", - "Name": "Cosmo Krammer", - "LinkedinUrl": "https://linkedin.com/cosmo-krammer", - "Location": "New York", - "EmailOptOut": true, - "MasterAvatarTypeCode": 10 - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accesskey": "sample-access-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "Email": "cosmo@krammer.com", - "Name": "Cosmo Krammer", - "LinkedinUrl": "https://linkedin.com/cosmo-krammer", - "Location": "New York", - "EmailOptOut": true, - "MasterAvatarTypeCode": 10, - "age__gc": 35 - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accesskey": "sample-access-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people" - }, - { - "error": "email is required for identify" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "ticketId": "sample-ticket-id", - "actionEmail": "sample@email.com", - "status": "resovled" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Accesskey": "sample-access-key", - "tenantId": "sample-tenant-id", - "sharedSecret": "sample-shared-secret", - "Content-Type": "application/json", - "topicName": "Ticket Actions", - "eventName": "Ticket Resolved Event", - "eventVersion": "1.0.0" - }, - "version": "1", - "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/eventManager/event" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "Email": "krammer@seinfeld.com", - "companies": [ - { - "Company_ID": "1P0203VCESP7AUQMV9E953G" - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accesskey": "sample-access-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "Email": "krammer@seinfeld.com", - "companies": [ - { - "Company_ID": "1P0203VCESP7AUQMV9E953G" - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accesskey": "sample-access-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "Email": "cosmo@krammer.com", - "FirstName": "Cosmo", - "LastName": "Krammer", - "Name": "Cosmo Krammer", - "LinkedinUrl": "https://linkedin.com/cosmo-krammer", - "Location": "New York", - "EmailOptOut": true, - "MasterAvatarTypeCode": 10 - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accesskey": "sample-access-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "ticketId": "sample-ticket-id", - "actionEmail": "sample@email.com", - "status": "resovled" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Accesskey": "sample-access-key", - "tenantId": "sample-tenant-id", - "sharedSecret": "sample-shared-secret", - "Content-Type": "application/json", - "topicName": "Ticket Actions", - "eventName": "Ticket Resolved Event", - "eventVersion": "1.0.0", - "contractId": "sample-contract-id" - }, - "version": "1", - "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/eventManager/event" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "Name": "Bruce Wayne", - "Email": "ceo@waynefoundation.com", - "car__gc": "Batmobile", - "Comments": "I am Batman!", - "LastName": "Wayne", - "Location": "Gotham Central", - "FirstName": "Bruce", - "LinkedinUrl": "https://www.linkedin.com/in/notyourBatman/" - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accesskey": "sample-access-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people" - } -] diff --git a/test/__tests__/data/gainsight_px_input.json b/test/__tests__/data/gainsight_px_input.json deleted file mode 100644 index 31123a46a9..0000000000 --- a/test/__tests__/data/gainsight_px_input.json +++ /dev/null @@ -1,1087 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "globalContextMap": [ - { - "from": "projectId", - "to": "p-123" - }, - { - "from": "tag", - "to": "sample-category-tag" - } - ] - } - }, - "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 - } - }, - "userId": "sample-user-id", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "type": "track", - "event": "Product Added", - "properties": { - "product_id": "123", - "sku": "F16", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "globalContextMap": [ - { - "from": "projectId", - "to": "p-123" - }, - { - "from": "tag", - "to": "sample-category-tag" - } - ] - } - }, - "message": { - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "version": "1.27.0", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:8887/", - "path": "/", - "title": "RudderStack in 5", - "search": "", - "tab_url": "http://127.0.0.1:8887/", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1512, - "height": 982, - "density": 2, - "innerWidth": 774, - "innerHeight": 774 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.27.0" - }, - "campaign": {}, - "sessionId": 1679967592314, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36", - "properties": { - "email": "84@84.com", - "price": "56.0", - "quantity": "5" - } - }, - "userId": "sample-user-id", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "type": "track", - "event": "Marketing - Plan Change Events", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "globalContextMap": [ - { - "from": "projectId", - "to": "p-123" - }, - { - "from": "tag", - "to": "sample-category-tag" - } - ] - } - }, - "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 - } - }, - "userId": "sample-user-id", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "type": "track", - "event": "Track Me", - "properties": { - "description": "Sample Track call", - "globalContext": { - "testOverride": "some-value" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "hobbyCustomField", - "to": "hobby" - } - ], - "globalContextMap": [] - } - }, - "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", - "userId": "sample-user-id", - "anonymousId": "sample-anon-id", - "type": "identify", - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "title": "engineer", - "countryName": "USA", - "countryCode": "US", - "city": "New York", - "hobbyCustomField": "Sample Hobby" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [], - "globalContextMap": [] - } - }, - "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 - }, - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "medium": null - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "userId": "sample-user-id", - "groupId": "ecorp-id", - "type": "group", - "traits": { - "name": "ECorp", - "industry": "software", - "numberOfEmployees": 400, - "website": "www.ecorp.com", - "plan": "premium" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "hobbyCustomField", - "to": "hobby" - } - ], - "globalContextMap": [] - } - }, - "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", - "type": "identify", - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "title": "engineer", - "countryName": "USA", - "countryCode": "US", - "city": "New York", - "hobbyCustomField": "Sample Hobby" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "globalContextMap": [ - { - "from": "projectId", - "to": "p-123" - }, - { - "from": "tag", - "to": "sample-category-tag" - } - ] - } - }, - "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", - "type": "track", - "event": "Product Added", - "properties": { - "product_id": "123", - "sku": "F16", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [], - "globalContextMap": [] - } - }, - "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 - }, - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User" - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "userId": "sample-user-id", - "type": "group", - "traits": { - "name": "ECorp", - "industry": "software", - "numberOfEmployees": 400, - "website": "www.ecorp.com", - "plan": "premium" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "globalContextMap": [ - { - "from": "projectId", - "to": "p-123" - }, - { - "from": "tag", - "to": "sample-category-tag" - } - ] - } - }, - "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 - } - }, - "userId": "sample-user-id", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "type": "track", - "event": "Stringify Test", - "properties": { - "description": "Stringify test for object values", - "nested": { - "a": [1, 2, 3], - "b": { - "c": 1 - } - }, - "arr": [1, 2, 3] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "globalContextMap": [ - { - "from": "projectId", - "to": "p-123" - }, - { - "from": "tag", - "to": "sample-category-tag" - } - ] - } - }, - "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 - } - }, - "userId": "sample-user-id", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "type": "track", - "event": "Stringify Test", - "properties": { - "description": "Stringify test for object values", - "nested": { - "a": [1, 2, 3], - "b": { - "c": 1 - } - }, - "arr": [1, 2, 3], - "globalContext": { - "someKey": "someVal" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [], - "globalContextMap": [] - } - }, - "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 - }, - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User" - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "userId": "absent-id", - "groupId": "ecorp-id", - "type": "group", - "traits": { - "name": "ECorp", - "industry": "software", - "numberOfEmployees": 400, - "website": "www.ecorp.com", - "plan": "premium" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "hobbyCustomField", - "to": "hobby" - } - ], - "globalContextMap": [] - } - }, - "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", - "userId": "absent-id", - "anonymousId": "sample-anon-id", - "type": "identify", - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "title": "engineer", - "countryName": "USA", - "countryCode": "US", - "city": "New York", - "hobbyCustomField": "Sample Hobby" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "globalContextMap": [] - } - }, - "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", - "userId": "absent-id", - "anonymousId": "sample-anon-id", - "type": "identify", - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "title": "engineer", - "countryName": "USA", - "countryCode": "US", - "city": "New York", - "hobbyCustomField": "Sample Hobby", - "accountId": 1234 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [], - "globalContextMap": [] - } - }, - "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 - }, - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User" - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "sample-anon-id", - "userId": "absent-id", - "groupId": "ecorp-id", - "type": "group", - "traits": { - "name": "ECorp", - "industry": "software", - "numberOfEmployees": 400, - "website": "www.ecorp.com", - "plan": "premium", - "term": null - }, - "integrations": { - "All": true, - "GAINSIGHT_PX": { - "limitAPIForGroup": true - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "sample-api-key", - "productTagKey": "AP-XABC-123", - "accountAttributeMap": [ - { - "from": "", - "to": "" - } - ], - "userAttributeMap": [ - { - "from": "hobbyCustomField", - "to": "hobby" - } - ], - "globalContextMap": [] - } - }, - "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", - "userId": "sample-user-id", - "anonymousId": "sample-anon-id", - "type": "identify", - "traits": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "title": "engineer", - "countryName": "USA", - "countryCode": "US", - "city": "New York", - "hobbyCustomField": "Sample Hobby", - "term": null, - "campaign": "" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - } -] diff --git a/test/__tests__/data/gainsight_px_output.json b/test/__tests__/data/gainsight_px_output.json deleted file mode 100644 index 1b4a000821..0000000000 --- a/test/__tests__/data/gainsight_px_output.json +++ /dev/null @@ -1,368 +0,0 @@ -[ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "attributes": { - "product_id": "123", - "sku": "F16", - "category": "Games", - "name": "Game", - "brand": "Gamepro", - "variant": "111", - "price": 13.49, - "quantity": 11, - "coupon": "DISC21", - "position": 1, - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.png" - }, - "propertyKey": "AP-XABC-123", - "userType": "USER", - "identifyId": "sample-user-id", - "date": 1571043797562, - "eventName": "Product Added", - "globalContext": { - "projectId": "p-123", - "tag": "sample-category-tag" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/events/custom" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "attributes": {}, - "url": "http://127.0.0.1:8887/", - "propertyKey": "AP-XABC-123", - "userType": "USER", - "identifyId": "sample-user-id", - "referrer": "$direct", - "date": 1571043797562, - "sessionId": 1679967592314, - "eventName": "Marketing - Plan Change Events", - "globalContext": { - "projectId": "p-123", - "tag": "sample-category-tag" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/events/custom" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "attributes": { - "description": "Sample Track call" - }, - "propertyKey": "AP-XABC-123", - "userType": "USER", - "identifyId": "sample-user-id", - "date": 1571043797562, - "eventName": "Track Me", - "globalContext": { - "testOverride": "some-value" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/events/custom" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "createDate": 1571043797562, - "title": "engineer", - "propertyKeys": ["AP-XABC-123"], - "location": { - "countryName": "USA", - "countryCode": "US", - "city": "New York" - }, - "customAttributes": { - "hobby": "Sample Hobby" - } - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/users/sample-user-id" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "accountId": "ecorp-id" - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/users/sample-user-id" - }, - { - "error": "userId or anonymousId is required for identify" - }, - { - "error": "Missing required value from \"userId\"" - }, - { - "error": "groupId is required for group" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "attributes": { - "description": "Stringify test for object values", - "nested": "{\"a\":[1,2,3],\"b\":{\"c\":1}}", - "arr": "[1,2,3]" - }, - "propertyKey": "AP-XABC-123", - "userType": "USER", - "identifyId": "sample-user-id", - "date": 1571043797562, - "eventName": "Stringify Test", - "globalContext": { - "projectId": "p-123", - "tag": "sample-category-tag" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/events/custom" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "attributes": { - "description": "Stringify test for object values", - "nested": "{\"a\":[1,2,3],\"b\":{\"c\":1}}", - "arr": "[1,2,3]" - }, - "propertyKey": "AP-XABC-123", - "userType": "USER", - "identifyId": "sample-user-id", - "date": 1571043797562, - "eventName": "Stringify Test", - "globalContext": { - "someKey": "someVal" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/events/custom" - }, - { - "error": "aborting group call: {\"status\":\"NOT_FOUND\",\"message\":\"User was not found for parameters {id=absent-id}\",\"debugMessage\":null,\"subErrors\":null}" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "identifyId": "absent-id", - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "createDate": 1571043797562, - "title": "engineer", - "propertyKeys": ["AP-XABC-123"], - "location": { - "countryName": "USA", - "countryCode": "US", - "city": "New York" - }, - "customAttributes": { - "hobby": "Sample Hobby" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/users" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "identifyId": "absent-id", - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "createDate": 1571043797562, - "title": "engineer", - "propertyKeys": ["AP-XABC-123"], - "accountId": "1234", - "location": { - "countryName": "USA", - "countryCode": "US", - "city": "New York" - }, - "customAttributes": {} - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/users" - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.aptrinsic.com/v1/users/absent-id", - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "accountId": "ecorp-id" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "USER", - "gender": "MALE", - "email": "user@email.com", - "firstName": "Sample", - "lastName": "User", - "signUpDate": 1624431528295, - "createDate": 1571043797562, - "title": "engineer", - "propertyKeys": ["AP-XABC-123"], - "location": { - "countryName": "USA", - "countryCode": "US", - "city": "New York" - }, - "customAttributes": { - "hobby": "Sample Hobby" - } - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.aptrinsic.com/v1/users/sample-user-id" - } -] diff --git a/test/__tests__/data/gainsight_px_router_input.json b/test/__tests__/data/gainsight_px_router_input.json deleted file mode 100644 index 52b9404824..0000000000 --- a/test/__tests__/data/gainsight_px_router_input.json +++ /dev/null @@ -1,298 +0,0 @@ -[ - { - "message": { - "type": "identify", - "sentAt": "2021-06-25T08:59:52.891Z", - "userId": "stanley-kubrick", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "title": "Test", - "search": "", - "path": "index.html", - "url": "http://127.0.0.1:3003/index.html", - "tab_url": "http://127.0.0.1:3003/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1920, - "height": 1080, - "density": 1, - "innerWidth": 1920, - "innerHeight": 436 - }, - "traits": { - "name": "Stanley Kubrick", - "email": "stanley@kubrick.com", - "score": 100, - "title": "Director/Film Maker", - "gender": "Male", - "countryCode": "US", - "countryName": "USA", - "hobbyCustomField": "Making films. Being a genius" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" - }, - "rudderId": "9a7820d0-0ff2-4451-b655-682cec15cbd2", - "messageId": "ff90d62e-a6e3-4e23-af20-03b4a249ef48", - "timestamp": "2021-06-25T14:29:52.911+05:30", - "receivedAt": "2021-06-25T14:29:52.911+05:30", - "request_ip": "[::1]", - "anonymousId": "1585ea2f-dddc-4d23-935f-c1196405d61e", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-06-25T08:59:52.891Z" - }, - "metadata": { - "userId": "9a7820d0-0ff2-4451-b655-682cec15cbd2", - "jobId": 1, - "sourceId": "1s9eG8UCer6YSKsD8ZlQCyLa3pj", - "destinationId": "1uLy1tqsoo9RhL1zLiqLQTKBIKL", - "attemptNum": 0, - "receivedAt": "2021-06-25T14:29:52.911+05:30", - "createdAt": "2021-06-25T08:59:56.329Z", - "firstAttemptedAt": "", - "transformAt": "router" - }, - "destination": { - "ID": "1uLy1tqsoo9RhL1zLiqLQTKBIKL", - "Name": "gainsight-px-dest", - "DestinationDefinition": { - "ID": "1uLuOdwPCqtei55ZKXewwPhjQPf", - "Name": "GAINSIGHT_PX", - "DisplayName": "Gainsight PX", - "Config": { - "destConfig": { - "defaultConfig": [ - "apiKey", - "productTagKey", - "userAttributeMap", - "accountAttributeMap", - "globalContextMap" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["apiKey", "productTagKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accountAttributeMap": [ - { - "from": "cultureCustomField", - "to": "culture" - } - ], - "apiKey": "sample-api-key", - "eventDelivery": false, - "eventDeliveryTS": 1624472902670, - "globalContextMap": [ - { - "from": "kubrickTest", - "to": "value" - } - ], - "productTagKey": "AP-SAMPLE-2", - "userAttributeMap": [ - { - "from": "hobbyCustomField", - "to": "hobby" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "type": "track", - "event": "nested test2", - "sentAt": "2021-06-26T10:41:22.316Z", - "userId": "adifhas9734", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "file:///Users/anurajguha/workspace/simple-html-test/index.html", - "path": "/Users/anurajguha/workspace/simple-html-test/index.html", - "title": "Test", - "search": "", - "tab_url": "file:///Users/anurajguha/workspace/simple-html-test/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1920, - "height": 1080, - "density": 1, - "innerWidth": 1920, - "innerHeight": 585 - }, - "traits": { - "name": "Update test unique", - "phone": "9900990899", - "lastname": "user6", - "firstname": "test", - "previousCompany": "testprevCompany2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" - }, - "rudderId": "a27a8a8a-9e81-4898-beeb-e6041fc1552d", - "messageId": "595dae36-5e4f-4feb-a2e4-8a7849615d38", - "timestamp": "2021-06-26T16:11:22.335+05:30", - "properties": { - "array": [1, 2, 3], - "nested": { - "json": "test" - }, - "status": "testing", - "description": "Example track call", - "fullyNested": [ - { - "a": 1, - "b": 2 - }, - { - "a": 1, - "b": [1, 2, 3] - } - ] - }, - "receivedAt": "2021-06-26T16:11:22.335+05:30", - "request_ip": "[::1]", - "anonymousId": "1585ea2f-dddc-4d23-935f-c1196405d61e", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-06-26T10:41:22.316Z" - }, - "metadata": { - "userId": "a27a8a8a-9e81-4898-beeb-e6041fc1552d", - "jobId": 2, - "sourceId": "1s9eG8UCer6YSKsD8ZlQCyLa3pj", - "destinationId": "1uLy1tqsoo9RhL1zLiqLQTKBIKL", - "attemptNum": 0, - "receivedAt": "2021-06-26T16:11:22.335+05:30", - "createdAt": "2021-06-26T10:41:24.126Z", - "firstAttemptedAt": "", - "transformAt": "router" - }, - "destination": { - "ID": "1uLy1tqsoo9RhL1zLiqLQTKBIKL", - "Name": "gainsight-px-dest", - "DestinationDefinition": { - "ID": "1uLuOdwPCqtei55ZKXewwPhjQPf", - "Name": "GAINSIGHT_PX", - "DisplayName": "Gainsight PX", - "Config": { - "destConfig": { - "defaultConfig": [ - "apiKey", - "productTagKey", - "userAttributeMap", - "accountAttributeMap", - "globalContextMap" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["apiKey", "productTagKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accountAttributeMap": [ - { - "from": "cultureCustomField", - "to": "culture" - } - ], - "apiKey": "sample-api-key", - "eventDelivery": false, - "eventDeliveryTS": 1624472902670, - "globalContextMap": [ - { - "from": "kubrickTest", - "to": "value" - } - ], - "productTagKey": "AP-SAMPLE-2", - "userAttributeMap": [ - { - "from": "hobbyCustomField", - "to": "hobby" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/gainsight_px_router_output.json b/test/__tests__/data/gainsight_px_router_output.json deleted file mode 100644 index d76b5d34f1..0000000000 --- a/test/__tests__/data/gainsight_px_router_output.json +++ /dev/null @@ -1,236 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.aptrinsic.com/v1/users/stanley-kubrick", - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "email": "stanley@kubrick.com", - "gender": "MALE", - "signUpDate": 1624611592911, - "title": "Director/Film Maker", - "score": 100, - "createDate": 1624611592911, - "location": { - "countryName": "USA", - "countryCode": "US" - }, - "firstName": "Stanley", - "lastName": "Kubrick", - "customAttributes": { - "hobby": "Making films. Being a genius" - }, - "propertyKeys": ["AP-SAMPLE-2"], - "type": "USER" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "userId": "9a7820d0-0ff2-4451-b655-682cec15cbd2", - "jobId": 1, - "sourceId": "1s9eG8UCer6YSKsD8ZlQCyLa3pj", - "destinationId": "1uLy1tqsoo9RhL1zLiqLQTKBIKL", - "attemptNum": 0, - "receivedAt": "2021-06-25T14:29:52.911+05:30", - "createdAt": "2021-06-25T08:59:56.329Z", - "firstAttemptedAt": "", - "transformAt": "router" - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1uLy1tqsoo9RhL1zLiqLQTKBIKL", - "Name": "gainsight-px-dest", - "DestinationDefinition": { - "ID": "1uLuOdwPCqtei55ZKXewwPhjQPf", - "Name": "GAINSIGHT_PX", - "DisplayName": "Gainsight PX", - "Config": { - "destConfig": { - "defaultConfig": [ - "apiKey", - "productTagKey", - "userAttributeMap", - "accountAttributeMap", - "globalContextMap" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["apiKey", "productTagKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accountAttributeMap": [ - { - "from": "cultureCustomField", - "to": "culture" - } - ], - "apiKey": "sample-api-key", - "eventDelivery": false, - "eventDeliveryTS": 1624472902670, - "globalContextMap": [ - { - "from": "kubrickTest", - "to": "value" - } - ], - "productTagKey": "AP-SAMPLE-2", - "userAttributeMap": [ - { - "from": "hobbyCustomField", - "to": "hobby" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.aptrinsic.com/v1/events/custom", - "headers": { - "X-APTRINSIC-API-KEY": "sample-api-key", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "identifyId": "adifhas9734", - "eventName": "nested test2", - "date": 1624704082335, - "attributes": { - "array": "[1,2,3]", - "nested": "{\"json\":\"test\"}", - "status": "testing", - "description": "Example track call", - "fullyNested": "[{\"a\":1,\"b\":2},{\"a\":1,\"b\":[1,2,3]}]" - }, - "url": "file:///Users/anurajguha/workspace/simple-html-test/index.html", - "referrer": "$direct", - "propertyKey": "AP-SAMPLE-2", - "userType": "USER", - "globalContext": { - "kubrickTest": "value" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "userId": "a27a8a8a-9e81-4898-beeb-e6041fc1552d", - "jobId": 2, - "sourceId": "1s9eG8UCer6YSKsD8ZlQCyLa3pj", - "destinationId": "1uLy1tqsoo9RhL1zLiqLQTKBIKL", - "attemptNum": 0, - "receivedAt": "2021-06-26T16:11:22.335+05:30", - "createdAt": "2021-06-26T10:41:24.126Z", - "firstAttemptedAt": "", - "transformAt": "router" - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1uLy1tqsoo9RhL1zLiqLQTKBIKL", - "Name": "gainsight-px-dest", - "DestinationDefinition": { - "ID": "1uLuOdwPCqtei55ZKXewwPhjQPf", - "Name": "GAINSIGHT_PX", - "DisplayName": "Gainsight PX", - "Config": { - "destConfig": { - "defaultConfig": [ - "apiKey", - "productTagKey", - "userAttributeMap", - "accountAttributeMap", - "globalContextMap" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["apiKey", "productTagKey"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accountAttributeMap": [ - { - "from": "cultureCustomField", - "to": "culture" - } - ], - "apiKey": "sample-api-key", - "eventDelivery": false, - "eventDeliveryTS": 1624472902670, - "globalContextMap": [ - { - "from": "kubrickTest", - "to": "value" - } - ], - "productTagKey": "AP-SAMPLE-2", - "userAttributeMap": [ - { - "from": "hobbyCustomField", - "to": "hobby" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/gainsight_router_input.json b/test/__tests__/data/gainsight_router_input.json deleted file mode 100644 index 9432b7c5ef..0000000000 --- a/test/__tests__/data/gainsight_router_input.json +++ /dev/null @@ -1,240 +0,0 @@ -[ - { - "message": { - "type": "identify", - "sentAt": "2021-05-28T11:22:01.842Z", - "userId": "live-test", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "file:///Users/anurajguha/workspace/simple-html-test/index.html", - "path": "/Users/anurajguha/workspace/simple-html-test/index.html", - "title": "Test", - "search": "", - "tab_url": "file:///Users/anurajguha/workspace/simple-html-test/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "density": 2 - }, - "traits": { - "name": "Cosmo Krammer", - "email": "cosmo@krammer.com", - "location": "New York", - "emailOptOut": true, - "linkedinUrl": "https://linkedin.com/cosmo-krammer", - "masterAvatarTypeCode": 10 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" - }, - "rudderId": "94d40f2f-5787-4798-8a03-34f3b02f5ede", - "messageId": "8274e525-d99c-4f55-b67a-bbc890d1444c", - "timestamp": "2021-05-28T16:52:01.859+05:30", - "receivedAt": "2021-05-28T16:52:01.859+05:30", - "request_ip": "[::1]", - "anonymousId": "1585ea2f-dddc-4d23-935f-c1196405d61e", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-05-28T11:22:01.842Z" - }, - "metadata": { - "userId": "94d40f2f-5787-4798-8a03-34f3b02f5ede", - "jobId": 1, - "sourceId": "1syvMwC0K62eIb4yAV9kFJtbDEA", - "destinationId": "1syvZAuiGo4l1SIsil0TxDEx34G", - "attemptNum": 0, - "receivedAt": "2021-05-28T16:52:01.859+05:30", - "createdAt": "2021-05-28T11:22:02.463Z", - "firstAttemptedAt": "", - "transformAt": "router" - }, - "destination": { - "ID": "1syvZAuiGo4l1SIsil0TxDEx34G", - "Name": "gainsight-dev-dest", - "DestinationDefinition": { - "ID": "1syuhEt4I8jpvlwJc4lr1IiLjPu", - "Name": "GAINSIGHT", - "DisplayName": "Gainsight", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKey", - "sharedSecret", - "tenantId", - "domain", - "personMap", - "companyMap", - "topicName", - "eventNameMap", - "eventVersionMap", - "contractId" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKey", "sharedSecret"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "sample-access-key", - "contractId": "", - "domain": "demo-account.gainsightcloud.com", - "sharedSecret": "", - "tenantId": "", - "topicName": "" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "type": "track", - "event": "Demo Request", - "sentAt": "2021-05-28T11:52:12.893Z", - "userId": "", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "file:///Users/anurajguha/workspace/simple-html-test/index.html", - "path": "/Users/anurajguha/workspace/simple-html-test/index.html", - "title": "Test", - "search": "", - "tab_url": "file:///Users/anurajguha/workspace/simple-html-test/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "density": 2 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" - }, - "rudderId": "1a30a93f-916b-4c39-ad20-1ce7bbbd7754", - "messageId": "f5619b1a-8704-42a8-bab9-92bbeaa44896", - "timestamp": "2021-05-28T17:22:12.905+05:30", - "properties": { - "email": "sample@user.com", - "status": "active" - }, - "receivedAt": "2021-05-28T17:22:12.905+05:30", - "request_ip": "[::1]", - "anonymousId": "1585ea2f-dddc-4d23-935f-c1196405d61e", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-05-28T11:52:12.893Z" - }, - "metadata": { - "userId": "1a30a93f-916b-4c39-ad20-1ce7bbbd7754", - "jobId": 2, - "sourceId": "1syvMwC0K62eIb4yAV9kFJtbDEA", - "destinationId": "1syvZAuiGo4l1SIsil0TxDEx34G", - "attemptNum": 0, - "receivedAt": "2021-05-28T17:22:12.905+05:30", - "createdAt": "2021-05-28T11:52:15.283Z", - "firstAttemptedAt": "", - "transformAt": "router" - }, - "destination": { - "ID": "1syvZAuiGo4l1SIsil0TxDEx34G", - "Name": "gainsight-dev-dest", - "DestinationDefinition": { - "ID": "1syuhEt4I8jpvlwJc4lr1IiLjPu", - "Name": "GAINSIGHT", - "DisplayName": "Gainsight", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKey", - "sharedSecret", - "tenantId", - "domain", - "personMap", - "companyMap", - "topicName", - "eventNameMap", - "eventVersionMap", - "contractId" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKey", "sharedSecret"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "sample-access-key", - "contractId": "sample-contract-id", - "domain": "demo-account.gainsightcloud.com", - "eventNameMap": [ - { - "from": "Demo Request", - "to": "Product Demo" - } - ], - "eventVersionMap": [ - { - "from": "Demo Request", - "to": "1.0.0" - } - ], - "sharedSecret": "sample-shared-secret", - "tenantId": "sample-tenant-id", - "topicName": "Support Tickets" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/gainsight_router_output.json b/test/__tests__/data/gainsight_router_output.json deleted file mode 100644 index a432c3c4c7..0000000000 --- a/test/__tests__/data/gainsight_router_output.json +++ /dev/null @@ -1,188 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://demo-account.gainsightcloud.com/v1.0/api/people", - "headers": { - "Accesskey": "sample-access-key", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "Email": "cosmo@krammer.com", - "Name": "Cosmo Krammer", - "LinkedinUrl": "https://linkedin.com/cosmo-krammer", - "Location": "New York", - "EmailOptOut": true, - "MasterAvatarTypeCode": 10 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "userId": "94d40f2f-5787-4798-8a03-34f3b02f5ede", - "jobId": 1, - "sourceId": "1syvMwC0K62eIb4yAV9kFJtbDEA", - "destinationId": "1syvZAuiGo4l1SIsil0TxDEx34G", - "attemptNum": 0, - "receivedAt": "2021-05-28T16:52:01.859+05:30", - "createdAt": "2021-05-28T11:22:02.463Z", - "firstAttemptedAt": "", - "transformAt": "router" - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1syvZAuiGo4l1SIsil0TxDEx34G", - "Name": "gainsight-dev-dest", - "DestinationDefinition": { - "ID": "1syuhEt4I8jpvlwJc4lr1IiLjPu", - "Name": "GAINSIGHT", - "DisplayName": "Gainsight", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKey", - "sharedSecret", - "tenantId", - "domain", - "personMap", - "companyMap", - "topicName", - "eventNameMap", - "eventVersionMap", - "contractId" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKey", "sharedSecret"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "sample-access-key", - "contractId": "", - "domain": "demo-account.gainsightcloud.com", - "sharedSecret": "", - "tenantId": "", - "topicName": "" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://demo-account.gainsightcloud.com/v1.0/api/eventManager/event", - "headers": { - "sharedSecret": "sample-shared-secret", - "topicName": "Support Tickets", - "tenantId": "sample-tenant-id", - "Content-Type": "application/json", - "eventName": "Product Demo", - "eventVersion": "1.0.0", - "contractId": "sample-contract-id", - "Accesskey": "sample-access-key" - }, - "params": {}, - "body": { - "JSON": { - "email": "sample@user.com", - "status": "active" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "userId": "1a30a93f-916b-4c39-ad20-1ce7bbbd7754", - "jobId": 2, - "sourceId": "1syvMwC0K62eIb4yAV9kFJtbDEA", - "destinationId": "1syvZAuiGo4l1SIsil0TxDEx34G", - "attemptNum": 0, - "receivedAt": "2021-05-28T17:22:12.905+05:30", - "createdAt": "2021-05-28T11:52:15.283Z", - "firstAttemptedAt": "", - "transformAt": "router" - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1syvZAuiGo4l1SIsil0TxDEx34G", - "Name": "gainsight-dev-dest", - "DestinationDefinition": { - "ID": "1syuhEt4I8jpvlwJc4lr1IiLjPu", - "Name": "GAINSIGHT", - "DisplayName": "Gainsight", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKey", - "sharedSecret", - "tenantId", - "domain", - "personMap", - "companyMap", - "topicName", - "eventNameMap", - "eventVersionMap", - "contractId" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKey", "sharedSecret"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "sample-access-key", - "contractId": "sample-contract-id", - "domain": "demo-account.gainsightcloud.com", - "eventNameMap": [ - { - "from": "Demo Request", - "to": "Product Demo" - } - ], - "eventVersionMap": [ - { - "from": "Demo Request", - "to": "1.0.0" - } - ], - "sharedSecret": "sample-shared-secret", - "tenantId": "sample-tenant-id", - "topicName": "Support Tickets" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/heap_cdk_output.json b/test/__tests__/data/heap_cdk_output.json deleted file mode 100644 index 7f119ffa82..0000000000 --- a/test/__tests__/data/heap_cdk_output.json +++ /dev/null @@ -1,180 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://heapanalytics.com/api/add_user_properties", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "identity": "sampath", - "properties": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "app_id": "" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://heapanalytics.com/api/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "identity": "sampath", - "event": "Send Transactional Email", - "properties": { - "subject": "Welcome to My App!", - "variation": "A" - }, - "app_id": "", - "timestamp": "2020-01-16T18:53:20.866+05:30" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "statusCode": 400, - "error": "message Type is not present. Aborting message." - }, - { - "statusCode": 400, - "error": "message type page is not supported" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://heapanalytics.com/api/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "identity": "sampath", - "event": "Send Transactional Email", - "properties": { - "subject": "Welcome to My App!", - "variation": "A" - }, - "timestamp": "2021-02-16T18:53:20.866+05:30", - "idempotency_key": "1234", - "app_id": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://heapanalytics.com/api/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "identity": "sampath", - "event": "Send Transactional Email", - "properties": { - "subject": "Welcome to My App!", - "variation": "A" - }, - "timestamp": "2020-01-16T18:53:20.866+05:30", - "idempotency_key": "1234", - "app_id": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://heapanalytics.com/api/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "identity": "sampath", - "event": "Send Transactional Email", - "properties": { - "Location.City": "Los Angeles", - "Location.State": "CA", - "hobbies[0]": "Music", - "hobbies[1]": "Running" - }, - "timestamp": "2020-01-16T18:53:20.866+05:30", - "app_id": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://heapanalytics.com/api/track", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "identity": "sampath", - "event": "Send Transactional Email", - "properties": { - "subject": "Welcome to My App!", - "variation": "A" - }, - "timestamp": "2020-01-16T18:53:20.866+05:30", - "app_id": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - } -] diff --git a/test/__tests__/data/hs.json b/test/__tests__/data/hs.json deleted file mode 100644 index fe51488c70..0000000000 --- a/test/__tests__/data/hs.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/test/__tests__/data/hs_input.json b/test/__tests__/data/hs_input.json deleted file mode 100644 index 0dab49824f..0000000000 --- a/test/__tests__/data/hs_input.json +++ /dev/null @@ -1,3185 +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": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "traits": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "properties": { - "revenue": 4.99, - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "properties": { - "value": 4.99, - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "invalid-api-key", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "rate-limit-id", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "Enabled": true - } - }, - { - "description": "[HS] (legacyApiKey): trigger update all objects endpoint for rETL source", - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot2@email.com", - "type": "HS-lead" - } - ], - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "Enabled": true - } - }, - { - "description": "[HS] (legacyApiKey): trigger create custom objects endpoint", - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot@email.com", - "type": "HS-lead" - } - ], - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "Enabled": true - } - }, - { - "description": "[HS] (newApiKey): trigger create all objects endpoint for rETL source", - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot@email.com", - "type": "HS-lead" - } - ], - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (newApiKey): trigger update all objects endpoint for rETL source", - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot2@email.com", - "type": "HS-lead" - } - ], - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "sentAt": "2019-10-14T11:15:53.296Z", - "properties": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - } - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (legacyApi): use (API Key) - check external id i.e hubspotId", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "hubspotId", - "id": "6556" - } - ] - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS 2", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (legacyApi): use (API Key) - check HS common config mappings", - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "hubspotId", - "id": "6556" - } - ] - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS 2", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345, - "address": { - "street": "24. park" - }, - "company": { - "name": "RudderStack" - } - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (legacyApi): use (newPrivateAppApi) for contact endpoint", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "accessToken": "dummy-access-token", - "apiVersion": "legacyApi", - "lookupField": "", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (newApi): get contact from hs with email (lookupField) exactly matching with one contact", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345", - "lookupField": "email" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (newApi): get contact from hs with email (lookupField) having no contacts", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "noname@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345", - "lookupField": "email" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (newApi): get contact from hs with firstname (lookupField) having more than one result", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "nonamess@email.com", - "firstname": "Jhon", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "firstname", - "hubspotEvents": [], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (newApi): Track - validate properties of custom behavioral events", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Purchase", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345, - "Revenue": 100 - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "1", - "apiKey": "1", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (legacyApi): (legacyApiKey) Identify - testing legacy api with new destination config", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "accessToken": "", - "apiVersion": "legacyApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (legacyApi): (legacyApiKey) Track - testing legacy api with new destination config", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "accessToken": "", - "apiVersion": "legacyApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) check for email in traits which is the deafult lookup field", - "message": { - "type": "identify", - "traits": {}, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ], - "mappedToDestination": false - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) email is present in traits as a default lookup field", - "message": { - "type": "identify", - "traits": { - "email": "noname@email.com" - }, - "context": { - "mappedToDestination": false - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) - rETL source - minimum config check", - "message": { - "type": "identify", - "traits": {}, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ], - "mappedToDestination": "true" - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) rETL - object type is not provided i.e externalId is empty", - "message": { - "type": "identify", - "traits": {}, - "context": { - "mappedToDestination": "true" - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) sample track call for property check", - "message": { - "type": "track", - "traits": {}, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ] - }, - "event": "Purchase", - "properties": { - "Revenue": "name1" - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) - check for accesstoken existence", - "message": { - "type": "identify", - "traits": { - "lookupField": "firstname", - "firstname": "Test" - }, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ] - }, - "event": "Purchase", - "properties": { - "revenue": "name1" - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (legacyApiKey) - check for hubId existence", - "message": { - "type": "identify", - "traits": { - "lookupField": "firstname", - "firstname": "Test" - }, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ] - }, - "event": "Purchase", - "properties": { - "revenue": "name1" - } - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "hubID": "", - "apiKey": "", - "accessToken": "", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (legacyApiKey) - check basic track call", - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Purchase", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345, - "address": { - "city": "kolkata", - "country": "India" - }, - "objectId": "5005" - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "accessToken": "", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (legacyApiKey) - either of email, utk or objectId must be present", - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Purchase", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345, - "address": { - "city": "kolkata", - "country": "India" - } - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "accessToken": "", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "description": "[HS] (newApi): check for legacyApiKey", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "noname@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) message type not present", - "message": { - "traits": {}, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ] - }, - "event": "Purchase", - "properties": { - "revenue": "name1" - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (legacyApiKey) - check for api key existence", - "message": { - "type": "identify", - "traits": { - "lookupField": "firstname", - "firstname": "Test" - }, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ] - }, - "event": "Purchase", - "properties": { - "revenue": "name1" - } - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "hubID": "dummy-hubId", - "apiKey": "", - "accessToken": "", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) Identify: traits is not supplied", - "message": { - "type": "identify", - "context": { - "mappedToDestination": false - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (legacyApiKey) - event not found", - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Temp Event", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345, - "address": { - "city": "kolkata", - "country": "India" - }, - "objectId": "5005" - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "accessToken": "", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (legacyApiKey) - event name is required", - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345, - "address": { - "city": "kolkata", - "country": "India" - }, - "objectId": "5005" - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "authorizationType": "legacyApiKey", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "accessToken": "", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (Legacy API v1) - (newPrivateAppApi) rETL - object type is not provided i.e externalId is empty", - "message": { - "type": "identify", - "traits": {}, - "context": { - "mappedToDestination": "true" - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "legacyApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pe22315509_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pe22315509_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - }, - { - "description": "[HS] (Legacy API v1) - (newPrivateAppApi) - sample track call for legacy api with newPrivateAppApi", - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId", - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "apiVersion": "legacyApi" - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot2@email.com", - "type": "HS-lead" - } - ], - "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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "rate-limit-id", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "traits": { - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "days_to_close": "29 days to close" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2023-04-11T09:35:31.288Z", - "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", - "userId": "user@1", - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "identify", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": {}, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "identify", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "identify", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": "", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "Enabled": true - } - }, - { - "description": "[HS] (New API v3) - (newPrivateAppApi) sample track call when hubspotEvents is undefined", - "message": { - "type": "track", - "traits": {}, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ] - }, - "event": "Purchase", - "properties": { - "Revenue": "name1" - } - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "hubID": "", - "apiKey": "", - "accessToken": "dummy-access-token", - "apiVersion": "newApi", - "lookupField": "lookupField", - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/hs_output.json b/test/__tests__/data/hs_output.json deleted file mode 100644 index 72fe50ba0d..0000000000 --- a/test/__tests__/data/hs_output.json +++ /dev/null @@ -1,843 +0,0 @@ -[ - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": { - "properties": [ - { - "property": "email", - "value": "testhubspot2@email.com" - }, - { - "property": "firstname", - "value": "Test Hubspot" - } - ] - }, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - ], - { - "statusCode": 400, - "error": "Message type page is not supported" - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS", - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "body": { - "JSON": {}, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": { - "properties": [ - { - "property": "email", - "value": "testhubspot2@email.com" - }, - { - "property": "firstname", - "value": "Test Hubspot" - } - ] - }, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - ], - { - "statusCode": 400, - "error": "Identify without email is not supported." - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS", - "_m": 4.99, - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "body": { - "JSON": {}, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS", - "_m": 4.99, - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "body": { - "JSON": {}, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - }, - { - "error": "Failed to get hubspot properties: {\"status\":\"error\",\"message\":\"The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/\",\"correlationId\":\"4d39ff11-e121-4514-bcd8-132a9dd1ff50\",\"category\":\"INVALID_AUTHENTICATION\",\"links\":{\"api key\":\"https://app.hubspot.com/l/api-key/\"}}" - }, - { - "error": "Failed to get hubspot properties: {\"status\":\"error\",\"message\":\"Request Rate Limit reached\",\"correlationId\":\"4d39ff11-e121-4514-bcd8-132a9dd1ff50\",\"category\":\"RATE-LIMIT_REACHED\",\"links\":{\"api key\":\"https://app.hubspot.com/l/api-key/\"}}" - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS", - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "body": { - "JSON": {}, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - }, - [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.hubapi.com/crm/v3/objects/lead/103605", - "source": "rETL", - "operation": "updateObject", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": { - "properties": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India", - "email": "testhubspot2@email.com" - } - }, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/lead", - "source": "rETL", - "operation": "createObject", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": { - "properties": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India", - "email": "testhubspot@email.com" - } - }, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/lead", - "source": "rETL", - "operation": "createObject", - "headers": { - "Authorization": "Bearer dummy-access-token", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "properties": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India", - "email": "testhubspot@email.com" - } - }, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.hubapi.com/crm/v3/objects/lead/103605", - "source": "rETL", - "operation": "updateObject", - "headers": { - "Authorization": "Bearer dummy-access-token", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "properties": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India", - "email": "testhubspot2@email.com" - } - }, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - ], - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS", - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "body": { - "JSON": {}, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS 2", - "id": "6556", - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS 2", - "id": "6556", - "address": "24. park", - "company": "RudderStack" - }, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "properties": [ - { - "property": "email", - "value": "testhubspot2@email.com" - }, - { - "property": "firstname", - "value": "Test Hubspot" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/contacts/103604", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "operation": "updateContacts", - "body": { - "JSON": { - "properties": { - "email": "testhubspot@email.com", - "firstname": "Test Hubspot" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "operation": "createContacts", - "body": { - "JSON": { - "properties": { - "email": "noname@email.com", - "firstname": "Test Hubspot" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - { - "statusCode": 400, - "error": "Unable to get single Hubspot contact. More than one contacts found. Retry with unique lookupPropertyName and lookupValue" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "messageType": "track", - "endpoint": "https://api.hubapi.com/events/v3/send", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "email": "testhubspot2@email.com", - "occurredAt": "2019-10-15T09:35:31.291Z", - "eventName": "pe22315509_rs_hub_test", - "properties": { - "value": 100 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": { - "properties": [ - { - "property": "email", - "value": "testhubspot2@email.com" - }, - { - "property": "firstname", - "value": "Test Hubspot" - } - ] - }, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - } - ], - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS", - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "body": { - "JSON": {}, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Identify:: email i.e a default lookup field for contact lookup not found in traits", - "statTags": { - "destination": "hs", - "stage": "transform", - "scope": "exception" - } - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "properties": { - "email": "noname@email.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "operation": "createContacts" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "properties": { - "email": "osvaldocostaferreira98@gmail.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "source": "rETL", - "operation": "createObject" - } - ], - { - "statusCode": 400, - "error": "rETL - external Id not found.", - "statTags": { - "destination": "hs", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/events/v3/send", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "email": "osvaldocostaferreira98@gmail.com", - "eventName": "pe22315509_rs_hub_test", - "properties": { - "value": "name1" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "messageType": "track" - }, - { - "statusCode": 400, - "error": "Access Token not found. Aborting", - "statTags": { - "destination": "hs", - "stage": "transform", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "Hub ID not found. Aborting", - "statTags": { - "destination": "hs", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/events/v3/send?hapikey=dummy-apikey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "occurredAt": "2019-10-15T09:35:31.291Z", - "objectId": "5005", - "eventName": "pe22315509_rs_hub_test", - "properties": { - "hs_city": "kolkata", - "hs_country": "India" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "messageType": "track" - }, - { - "statusCode": 400, - "error": "Either of email, utk or objectId is required for custom behavioral events", - "statTags": { - "destination": "hs", - "stage": "transform", - "scope": "exception" - } - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/contacts", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "operation": "createContacts", - "body": { - "JSON": { - "properties": { - "email": "noname@email.com", - "firstname": "Test Hubspot" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - { - "statusCode": 400, - "error": "Message type is not present. Aborting message." - }, - { - "statusCode": 400, - "error": "API Key not found. Aborting" - }, - { - "statusCode": 400, - "error": "Identify - Invalid traits value for lookup field" - }, - { - "statusCode": 400, - "error": "Event name 'temp event' mappings are not configured in the destination" - }, - { - "statusCode": 400, - "error": "event name is required for track call" - }, - { - "statusCode": 400, - "error": "rETL - external Id not found.", - "statTags": { - "destination": "hs", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "messageType": "track", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS", - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot" - }, - "body": { - "JSON": {}, - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {} - }, - "files": {} - }, - { - "error": "rETL - Error during searching object record. 404 not found" - }, - { - "error": "Property days_to_close data type string is not matching with Hubspot property data type number" - }, - [ - { - "body": { - "FORM": {}, - "JSON": { - "properties": [ - { "property": "email", "value": "testhubspot2@email.com" }, - { "property": "firstname", "value": "Test Hubspot" } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com", - "files": {}, - "headers": { "Content-Type": "application/json" }, - "method": "POST", - "params": { "hapikey": "dummy-apikey" }, - "type": "REST", - "version": "1" - } - ], - [ - { - "body": { - "FORM": {}, - "JSON": { - "properties": [ - { "property": "email", "value": "testhubspot2@email.com" }, - { "property": "firstname", "value": "Test Hubspot" } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com", - "files": {}, - "headers": { "Content-Type": "application/json" }, - "method": "POST", - "params": { "hapikey": "dummy-apikey" }, - "type": "REST", - "version": "1" - } - ], - [ - { - "body": { - "FORM": {}, - "JSON": { - "properties": [ - { "property": "email", "value": "testhubspot2@email.com" }, - { "property": "firstname", "value": "Test Hubspot" } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com", - "files": {}, - "headers": { "Content-Type": "application/json" }, - "method": "POST", - "params": { "hapikey": "dummy-apikey" }, - "type": "REST", - "version": "1" - } - ], - - { - "statusCode": 400, - "error": "Event and property mappings are required for track call", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "HS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } -] diff --git a/test/__tests__/data/hs_router_associations_rEtl_input.json b/test/__tests__/data/hs_router_associations_rEtl_input.json deleted file mode 100644 index 4cd0ac8d43..0000000000 --- a/test/__tests__/data/hs_router_associations_rEtl_input.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "destination": { - "ID": "123", - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "pat-123", - "apiVersion": "newApi" - } - }, - "message": { - "type": "identify", - "sentAt": "2022-08-23T05:59:38.214Z", - "traits": { - "to": { - "id": 1 - }, - "from": { - "id": 9405415215 - } - }, - "userId": "1", - "channel": "sources", - "context": { - "sources": { - "job_id": "2DkDam0hJ8CXZA43zksWMdPAPRe/Syncher", - "task_id": "HUBSPOT_ASSOC_COMPANY_CONTACT", - "version": "v1.8.15", - "batch_id": "8d566f29-5f9b-4fa7-ad0c-d8087ca52d6a", - "job_run_id": "cc26p35qhlpr6fd4jrmg", - "task_run_id": "cc26p35qhlpr6fd4jrn0" - }, - "externalId": [ - { - "id": 1, - "type": "HS-association", - "toObjectType": "contacts", - "fromObjectType": "companies", - "identifierType": "id", - "associationTypeId": "engineer" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "3afcdbfe-b6ec-4bdd-8ba6-28696e3cc163", - "messageId": "e0c554aa-0a9a-4e24-9a9a-c951a71a0875", - "timestamp": "2022-08-23T05:59:33.758Z", - "receivedAt": "2022-08-23T05:59:33.759Z", - "request_ip": "10.1.90.32", - "originalTimestamp": "2022-08-23T05:59:38.214Z" - }, - "metadata": { - "jobId": 2 - } - } -] diff --git a/test/__tests__/data/hs_router_associations_rEtl_output.json b/test/__tests__/data/hs_router_associations_rEtl_output.json deleted file mode 100644 index e8535c48d2..0000000000 --- a/test/__tests__/data/hs_router_associations_rEtl_output.json +++ /dev/null @@ -1,49 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/associations/companies/contacts/batch/create", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer pat-123" - }, - "params": {}, - "body": { - "JSON": { - "inputs": [ - { - "to": { - "id": 1 - }, - "from": { - "id": 9405415215 - }, - "type": "engineer" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "123", - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "pat-123", - "apiVersion": "newApi" - } - } - } -] diff --git a/test/__tests__/data/hs_router_input.json b/test/__tests__/data/hs_router_input.json deleted file mode 100644 index 7f82f2f8d4..0000000000 --- a/test/__tests__/data/hs_router_input.json +++ /dev/null @@ -1,573 +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": "noname@email.com", - "firstname": "Test Hubspot22", - "anonymousId": "4444" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "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": "noname@email.com", - "firstname": "Test Hubspot44", - "anonymousId": "4444" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "message": { - "type": "track", - "traits": {}, - "context": { - "externalId": [ - { - "id": "osvaldocostaferreira98@gmail.com", - "type": "HS-contacts", - "identifierType": "email" - } - ] - }, - "event": "Purchase", - "properties": { - "Revenue": "name1" - } - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "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": "testhubspot@email.com", - "firstname": "Test Hubspot22", - "anonymousId": "4444" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 4 - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "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": "testhubspot@email.com", - "firstname": "Test Hubspot44", - "anonymousId": "4444" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 5 - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/hs_router_input_legacy.json b/test/__tests__/data/hs_router_input_legacy.json deleted file mode 100644 index 022aba7315..0000000000 --- a/test/__tests__/data/hs_router_input_legacy.json +++ /dev/null @@ -1,281 +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": "testhubspot1@email.com", - "firstname": "Test Hubspot1", - "anonymousId": "1111" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "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": "testhubspot2@email.com", - "firstname": "Test Hubspot2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "08829772-d991-427c-b976-b4c4f4430b4e", - "originalTimestamp": "2019-10-15T09:35:31.291Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event HS", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "message": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com", - "headers": { - "Content-Type": "application/json" - }, - "userId": "00000000000000000000000000", - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": { - "properties": [ - { - "property": "email", - "value": "testhubspot3@email.com" - }, - { - "property": "firstname", - "value": "Test Hubspot3" - } - ] - }, - "XML": {}, - "FORM": {} - }, - "files": {}, - "statusCode": 200 - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "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": "testhubspot4@email.com", - "firstname": "Test Hubspot4", - "anonymousId": "4444" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 4 - }, - "destination": { - "Config": { - "apiKey": "rate-limit-id", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/hs_router_legacy_rETL_input.json b/test/__tests__/data/hs_router_legacy_rETL_input.json deleted file mode 100644 index 6bba7d72de..0000000000 --- a/test/__tests__/data/hs_router_legacy_rETL_input.json +++ /dev/null @@ -1,130 +0,0 @@ -[ - { - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot2@email.com", - "type": "HS-lead" - } - ], - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 2 - } - }, - { - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot@email.com", - "type": "HS-lead" - } - ], - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot 1", - "anonymousId": "123451", - "country": "India 1" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 3 - } - } -] diff --git a/test/__tests__/data/hs_router_legacy_rETL_output.json b/test/__tests__/data/hs_router_legacy_rETL_output.json deleted file mode 100644 index dcd3ab91b1..0000000000 --- a/test/__tests__/data/hs_router_legacy_rETL_output.json +++ /dev/null @@ -1,129 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/lead/batch/create", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": { - "inputs": [ - { - "properties": { - "firstname": "Test Hubspot 1", - "anonymousId": "123451", - "country": "India 1", - "email": "testhubspot@email.com" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/lead/batch/update", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": { - "inputs": [ - { - "properties": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India", - "email": "testhubspot2@email.com" - }, - "id": "103605" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/hs_router_output.json b/test/__tests__/data/hs_router_output.json deleted file mode 100644 index bd0045e7e6..0000000000 --- a/test/__tests__/data/hs_router_output.json +++ /dev/null @@ -1,321 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/contacts/batch/create", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "inputs": [ - { - "properties": { - "email": "noname@email.com", - "firstname": "Test Hubspot44" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/contacts/batch/update", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "inputs": [ - { - "id": "103604", - "properties": { - "email": "testhubspot@email.com", - "firstname": "Test Hubspot44" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 4 - }, - { - "jobId": 5 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/events/v3/send", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "email": "osvaldocostaferreira98@gmail.com", - "eventName": "pedummy-hubId_rs_hub_test", - "properties": { - "value": "name1" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "email", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/hs_router_output_legacy.json b/test/__tests__/data/hs_router_output_legacy.json deleted file mode 100644 index 7ce945a24a..0000000000 --- a/test/__tests__/data/hs_router_output_legacy.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/contacts/v1/contact/batch/", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "hapikey": "dummy-apikey" - }, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"email\":\"testhubspot3@email.com\",\"properties\":[{\"property\":\"firstname\",\"value\":\"Test Hubspot3\"}]},{\"email\":\"testhubspot1@email.com\",\"properties\":[{\"property\":\"firstname\",\"value\":\"Test Hubspot1\"}]},{\"email\":\"testhubspot4@email.com\",\"properties\":[{\"property\":\"firstname\",\"value\":\"Test Hubspot4\"}]}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3 - }, - { - "jobId": 1 - }, - { - "jobId": 4 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://track.hubspot.com/v1/event", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "_a": "dummy-hubId", - "_n": "test track event HS", - "email": "testhubspot2@email.com", - "firstname": "Test Hubspot2" - }, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummy-apikey", - "hubID": "dummy-hubId" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/hs_router_rETL_input.json b/test/__tests__/data/hs_router_rETL_input.json deleted file mode 100644 index 3e855855b4..0000000000 --- a/test/__tests__/data/hs_router_rETL_input.json +++ /dev/null @@ -1,332 +0,0 @@ -[ - { - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot2@email.com", - "type": "HS-lead" - } - ], - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 2 - } - }, - { - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspot@email.com", - "type": "HS-lead" - } - ], - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot 1", - "anonymousId": "123451", - "country": "India 1" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 3 - } - }, - { - "message": { - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email", - "id": "testhubspotdatetime@email.com", - "type": "HS-lead" - } - ], - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - } - }, - "type": "identify", - "traits": { - "firstname": "Test Hubspot", - "anonymousId": "123451", - "country": "India", - "date_submitted": "2023-09-25T17:31:04.128251Z", - "date_created": "2023-03-30T01:02:03.05Z", - "date_closed": "2023-10-18T04:38:59.229347Z" - }, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 4 - } - } -] diff --git a/test/__tests__/data/hs_router_rETL_output.json b/test/__tests__/data/hs_router_rETL_output.json deleted file mode 100644 index c20694cdf4..0000000000 --- a/test/__tests__/data/hs_router_rETL_output.json +++ /dev/null @@ -1,231 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/lead/batch/create", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "inputs": [ - { - "properties": { - "firstname": "Test Hubspot 1", - "anonymousId": "123451", - "country": "India 1", - "email": "testhubspot@email.com" - } - }, - { - "properties": { - "firstname": "Test Hubspot", - "anonymousId": "123451", - "country": "India", - "email": "testhubspotdatetime@email.com", - "date_closed": 1697587200000, - "date_created": 1680134400000, - "date_submitted": 1695600000000 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3 - }, - { - "jobId": 4 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.hubapi.com/crm/v3/objects/lead/batch/update", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummy-access-token" - }, - "params": {}, - "body": { - "JSON": { - "inputs": [ - { - "properties": { - "firstname": "Test Hubspot", - "anonymousId": "12345", - "country": "India", - "email": "testhubspot2@email.com" - }, - "id": "103605" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "authorizationType": "newPrivateAppApi", - "accessToken": "dummy-access-token", - "hubID": "dummy-hubId", - "apiKey": "dummy-apikey", - "apiVersion": "newApi", - "lookupField": "lookupField", - "hubspotEvents": [ - { - "rsEventName": "Purchase", - "hubspotEventName": "pedummy-hubId_rs_hub_test", - "eventProperties": [ - { - "from": "Revenue", - "to": "value" - }, - { - "from": "Price", - "to": "cost" - } - ] - }, - { - "rsEventName": "Order Complete", - "hubspotEventName": "pedummy-hubId_rs_hub_chair", - "eventProperties": [ - { - "from": "firstName", - "to": "first_name" - }, - { - "from": "lastName", - "to": "last_name" - } - ] - } - ], - "eventFilteringOption": "disable", - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Hubspot", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "HS", - "displayName": "Hubspot", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/intercom_input.json b/test/__tests__/data/intercom_input.json deleted file mode 100644 index 2d19ae5717..0000000000 --- a/test/__tests__/data/intercom_input.json +++ /dev/null @@ -1,1232 +0,0 @@ -[ - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "userId": "test_user_id_1", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1", - "address": { - "city": "Kolkata", - "state": "West Bengal" - }, - "originalArray": [ - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1"] - }, - { - "nested_field": "nested value" - } - ] - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "firstName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "firstName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1", - "company": { - "name": "Test Comp", - "id": "company_id", - "industry": "test industry", - "key1": "value1", - "key2": { - "a": "a" - }, - "key3": [1, 2, 3] - } - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1", - "company": { - "name": "Test Comp", - "industry": "test industry", - "key1": "value1", - "key2": null, - "key3": ["value1", "value2"], - "key4": { - "foo": "bar" - } - } - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false, - "updateLastRequestAt": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1", - "company": { - "industry": "test industry", - "key1": "value1", - "key2": null - } - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "userId": "test_user_id_1", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "properties": { - "property1": 1, - "property2": "test", - "property3": true, - "property4": "2020-10-05T09:09:03.731Z", - "property5": { - "property1": 1, - "property2": "test", - "property3": { - "subProp1": { - "a": "a", - "b": "b" - }, - "subProp2": ["a", "b"] - } - }, - "properties6": null, - "revenue": { - "amount": 1232, - "currency": "inr", - "test": 123 - }, - "price": { - "amount": 3000, - "currency": "USD" - }, - "article": { - "url": "https://example.org/ab1de.html", - "value": "the dude abides" - } - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "track" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "track" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "track" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "externalId": [ - { - "identifierType": "email", - "id": "test@gmail.com" - } - ], - "mappedToDestination": true, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false, - "sendAnonymousId": true - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false, - "sendAnonymousId": false - } - } - }, - { - "message": { - "groupId": "test_company_id_wdasda", - "traits": { - "employees": 450, - "plan": "basic", - "userId": "sdfrsdfsdfsf", - "email": "test@test.com", - "name": "rudderUpdate", - "size": "50", - "industry": "IT", - "monthlySpend": "2131231", - "remoteCreatedAt": "1683017572", - "key1": "val1" - }, - "anonymousId": "sdfrsdfsdfsf", - "integrations": { - "All": true - }, - "type": "group", - "userId": "sdfrsdfsdfsf" - }, - "destination": { - "Config": { - "apiKey": "abcd=", - "appId": "asdasdasd", - "collectContext": false - } - } - }, - { - "message": { - "groupId": "test_company_id", - "traits": { - "plan": "basic", - "name": "rudderUpdate", - "size": 50, - "industry": "IT", - "monthlySpend": "2131231", - "email": "comanyemail@abc.com" - }, - "anonymousId": "12312312", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "userAgent": "unknown" - }, - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "type": "group" - }, - "destination": { - "Config": { - "apiKey": "abcd=", - "appId": "asdasdasd", - "collectContext": false - } - } - }, - { - "message": { - "groupId": "test_company_id_wdasda", - "context": { - "traits": { - "email": "testUser@test.com" - } - }, - "traits": { - "employees": 450, - "plan": "basic", - "email": "test@test.com", - "name": "rudderUpdate", - "size": "50", - "industry": "IT", - "website": "url", - "monthlySpend": "2131231", - "remoteCreatedAt": "1683017572", - "key1": "val1" - }, - "anonymousId": "sdfrsdfsdfsf", - "integrations": { - "All": true - }, - "type": "group", - "userId": "sdfrsdfsdfsf" - }, - "destination": { - "Config": { - "apiKey": "abcd=", - "appId": "asdasdasd", - "collectContext": false - } - } - }, - { - "message": { - "groupId": "test_company_id_wdasda", - "context": { - "traits": { - "email": "testUser@test.com" - } - }, - "traits": { - "employees": 450, - "plan": "basic", - "email": "test@test.com", - "name": "rudderUpdate", - "size": "50", - "industry": "IT", - "website": "url", - "monthlySpend": "2131231", - "remoteCreatedAt": "1683017572", - "key1": "val1", - "key2": { - "a": "a", - "b": "b" - }, - "key3": [1, 2, 3], - "key4": null - }, - "anonymousId": "anonId", - "integrations": { - "All": true - }, - "type": "group" - }, - "destination": { - "Config": { - "apiKey": "abcd=", - "appId": "asdasdasd", - "collectContext": false, - "sendAnonymousId": true - } - } - } -] diff --git a/test/__tests__/data/intercom_output.json b/test/__tests__/data/intercom_output.json deleted file mode 100644 index 64ad4133bf..0000000000 --- a/test/__tests__/data/intercom_output.json +++ /dev/null @@ -1,651 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "name": "Test Name", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "user_id": "test_user_id_1", - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1", - "address.city": "Kolkata", - "address.state": "West Bengal", - "originalArray[0].nested_field": "nested value", - "originalArray[0].tags[0]": "tag_1", - "originalArray[0].tags[1]": "tag_2", - "originalArray[0].tags[2]": "tag_3", - "originalArray[1].nested_field": "nested value", - "originalArray[1].tags[0]": "tag_1", - "originalArray[2].nested_field": "nested value" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "signed_up_at": 1601493060, - "name": "Test Name", - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - }, - "name": "Name" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - }, - "name": "Name" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "statusCode": 400, - "error": "Either of `email` or `userId` is required for Identify call" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - }, - "name": "Name", - "companies": [ - { - "company_id": "company_id", - "custom_attributes": { - "key1": "value1", - "key2": "{\"a\":\"a\"}", - "key3": "[1,2,3]" - }, - "name": "Test Comp", - "industry": "test industry" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "update_last_request_at": false, - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - }, - "name": "Name", - "companies": [ - { - "company_id": "c0277b5c814453e5135f515f943d085a", - "custom_attributes": { - "key1": "value1", - "key3": "[\"value1\",\"value2\"]", - "key4": "{\"foo\":\"bar\"}" - }, - "name": "Test Comp", - "industry": "test industry" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - }, - "name": "Name", - "companies": [] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "test_user_id_1", - "email": "test_1@test.com", - "event_name": "Test Event 2", - "created": 1601493061, - "metadata": { - "property1": 1, - "property2": "test", - "property3": true, - "property4": "2020-10-05T09:09:03.731Z", - "property5.property1": 1, - "property5.property2": "test", - "property5.property3.subProp1.a": "a", - "property5.property3.subProp1.b": "b", - "property5.property3.subProp2[0]": "a", - "property5.property3.subProp2[1]": "b", - "properties6": null, - "revenue": { - "amount": 1232, - "currency": "inr", - "test": 123 - }, - "price": { - "amount": 3000, - "currency": "USD" - }, - "article": { - "url": "https://example.org/ab1de.html", - "value": "the dude abides" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "event_name": "Test Event 2", - "created": 1601493061 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "statusCode": 400, - "error": "Either of `email` or `userId` is required for Track call" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "phone": "9876543210", - "key1": "value1", - "email": "test@gmail.com", - "update_last_request_at": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "phone": "9876543210", - "name": "Test Name", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - }, - "user_id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "update_last_request_at": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - { - "statusCode": 400, - "error": "Either of `email` or `userId` is required for Identify call" - }, - [ - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "name": "rudderUpdate", - "plan": "basic", - "size": 50, - "industry": "IT", - "company_id": "test_company_id_wdasda", - "monthly_spend": 2131231, - "remote_created_at": 1683017572, - "custom_attributes": { - "key1": "val1", - "employees": 450, - "email": "test@test.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "sdfrsdfsdfsf", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer abcd=", - "Intercom-Version": "1.4" - }, - "version": "1", - "endpoint": "https://api.intercom.io/companies" - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "user_id": "sdfrsdfsdfsf", - "companies": [ - { - "name": "rudderUpdate", - "company_id": "test_company_id_wdasda" - } - ] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "sdfrsdfsdfsf", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer abcd=", - "Intercom-Version": "1.4" - }, - "version": "1", - "endpoint": "https://api.intercom.io/users" - } - ], - [ - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "name": "rudderUpdate", - "size": 50, - "industry": "IT", - "company_id": "test_company_id", - "monthly_spend": 2131231, - "plan": "basic", - "custom_attributes": { - "email": "comanyemail@abc.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "12312312", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer abcd=", - "Intercom-Version": "1.4" - }, - "version": "1", - "endpoint": "https://api.intercom.io/companies" - } - ], - [ - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "name": "rudderUpdate", - "plan": "basic", - "size": 50, - "industry": "IT", - "company_id": "test_company_id_wdasda", - "monthly_spend": 2131231, - "remote_created_at": 1683017572, - "website": "url", - "custom_attributes": { - "key1": "val1", - "employees": 450, - "email": "test@test.com" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "sdfrsdfsdfsf", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer abcd=", - "Intercom-Version": "1.4" - }, - "version": "1", - "endpoint": "https://api.intercom.io/companies" - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "user_id": "sdfrsdfsdfsf", - "email": "testUser@test.com", - "companies": [ - { - "name": "rudderUpdate", - "company_id": "test_company_id_wdasda" - } - ] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "sdfrsdfsdfsf", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer abcd=", - "Intercom-Version": "1.4" - }, - "version": "1", - "endpoint": "https://api.intercom.io/users" - } - ], - [ - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "name": "rudderUpdate", - "plan": "basic", - "size": 50, - "industry": "IT", - "company_id": "test_company_id_wdasda", - "monthly_spend": 2131231, - "remote_created_at": 1683017572, - "website": "url", - "custom_attributes": { - "key1": "val1", - "employees": 450, - "email": "test@test.com", - "key2.a": "a", - "key2.b": "b", - "key3[0]": 1, - "key3[1]": 2, - "key3[2]": 3, - "key4": null - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "anonId", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer abcd=", - "Intercom-Version": "1.4" - }, - "version": "1", - "endpoint": "https://api.intercom.io/companies" - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "user_id": "anonId", - "email": "testUser@test.com", - "companies": [ - { - "name": "rudderUpdate", - "company_id": "test_company_id_wdasda" - } - ] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "anonId", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json", - "Authorization": "Bearer abcd=", - "Intercom-Version": "1.4" - }, - "version": "1", - "endpoint": "https://api.intercom.io/users" - } - ] -] diff --git a/test/__tests__/data/intercom_proxy_input.json b/test/__tests__/data/intercom_proxy_input.json deleted file mode 100644 index 0074202ceb..0000000000 --- a/test/__tests__/data/intercom_proxy_input.json +++ /dev/null @@ -1,44 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users/test1", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "name": "Test Name", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "user_id": "test_user_id_1", - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1", - "address.city": "Kolkata", - "address.state": "West Bengal", - "originalArray[0].nested_field": "nested value", - "originalArray[0].tags[0]": "tag_1", - "originalArray[0].tags[1]": "tag_2", - "originalArray[0].tags[2]": "tag_3", - "originalArray[1].nested_field": "nested value", - "originalArray[1].tags[0]": "tag_1", - "originalArray[2].nested_field": "nested value" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - } -] diff --git a/test/__tests__/data/intercom_proxy_output.json b/test/__tests__/data/intercom_proxy_output.json deleted file mode 100644 index 5b6f9ef915..0000000000 --- a/test/__tests__/data/intercom_proxy_output.json +++ /dev/null @@ -1,31 +0,0 @@ -[ - { - "output": { - "status": 500, - "message": "[Intercom Response Handler] Request failed for destination intercom with status: 408", - "destinationResponse": { - "response": { - "type": "error.list", - "request_id": "000on04msi4jpk7d3u60", - "errors": [ - { - "code": "Request Timeout", - "message": "The server would not wait any longer for the client" - } - ] - }, - "status": 408 - }, - "statTags": { - "destType": "INTERCOM", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } -] diff --git a/test/__tests__/data/intercom_router_input.json b/test/__tests__/data/intercom_router_input.json deleted file mode 100644 index a3eb28fc10..0000000000 --- a/test/__tests__/data/intercom_router_input.json +++ /dev/null @@ -1,150 +0,0 @@ -[ - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "name": "Test Name", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "userId": "test_user_id_1", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "message": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "channel": "mobile", - "context": { - "app": { - "build": "1.0", - "name": "Test_Example", - "namespace": "com.example.testapp", - "version": "1.0" - }, - "device": { - "id": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPod touch (7th generation)", - "type": "iOS" - }, - "library": { - "name": "test-ios-library", - "version": "1.0.7" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.0" - }, - "screen": { - "density": 2, - "height": 320, - "width": 568 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "firstName": "Test", - "lastName": "Name", - "createdAt": "2020-09-30T19:11:00.337Z", - "email": "test_1@test.com", - "phone": "9876543210", - "key1": "value1" - }, - "userAgent": "unknown" - }, - "event": "Test Event 2", - "integrations": { - "All": true - }, - "messageId": "1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8", - "originalTimestamp": "2020-09-30T19:11:00.337Z", - "receivedAt": "2020-10-01T00:41:11.369+05:30", - "request_ip": "2405:201:8005:9856:7911:25e7:5603:5e18", - "sentAt": "2020-09-30T19:11:10.382Z", - "timestamp": "2020-10-01T00:41:01.324+05:30", - "type": "identify" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - } -] diff --git a/test/__tests__/data/intercom_router_output.json b/test/__tests__/data/intercom_router_output.json deleted file mode 100644 index 494d15e97a..0000000000 --- a/test/__tests__/data/intercom_router_output.json +++ /dev/null @@ -1,99 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "name": "Test Name", - "signed_up_at": 1601493060, - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "user_id": "test_user_id_1", - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.intercom.io/users", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer intercomApiKey", - "Accept": "application/json", - "Intercom-Version": "1.4" - }, - "params": {}, - "body": { - "JSON": { - "email": "test_1@test.com", - "phone": "9876543210", - "signed_up_at": 1601493060, - "name": "Test Name", - "last_seen_user_agent": "unknown", - "update_last_request_at": true, - "custom_attributes": { - "anonymousId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33", - "key1": "value1" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "58b21c2d-f8d5-4410-a2d0-b268a26b7e33" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - } -] diff --git a/test/__tests__/data/kafka_batch_input.json b/test/__tests__/data/kafka_batch_input.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/__tests__/data/kafka_batch_output.json b/test/__tests__/data/kafka_batch_output.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/__tests__/data/klaviyo.json b/test/__tests__/data/klaviyo.json deleted file mode 100644 index 796d9ed8e0..0000000000 --- a/test/__tests__/data/klaviyo.json +++ /dev/null @@ -1,1826 +0,0 @@ -[ - { - "description": "Profile updating call and subscribe user (old transformer)", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@1", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12 345 578 900", - "userId": "user@1", - "title": "Developer", - "organization": "Rudder", - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001", - "Flagged": false, - "Residence": "Shibuya", - "properties": { - "listId": "XUepkK", - "subscribe": true, - "consent": ["email", "sms"] - } - }, - "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", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile", - "attributes": { - "external_id": "user@1", - "email": "test@rudderstack.com", - "first_name": "Test", - "last_name": "Rudderlabs", - "phone_number": "+12 345 578 900", - "title": "Developer", - "organization": "Rudder", - "location": { - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001" - }, - "properties": { - "Flagged": false, - "Residence": "Shibuya" - } - }, - "id": "01GW3PHVY0MTCDGS0A1612HARX" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile-subscription-bulk-create-job", - "attributes": { - "list_id": "XUepkK", - "subscriptions": [ - { - "email": "test@rudderstack.com", - "phone_number": "+12 345 578 900", - "channels": { - "email": ["MARKETING"], - "sms": ["MARKETING"] - } - } - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Identify call for with flattenProperties enabled (old transformer)", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey", - "flattenProperties": true - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@1", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12 345 578 900", - "userId": "user@1", - "title": "Developer", - "organization": "Rudder", - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001", - "Flagged": false, - "Residence": "Shibuya", - "friend": { - "names": { - "first": "Alice", - "last": "Smith" - }, - "age": 25 - }, - "properties": { - "listId": "XUepkK", - "subscribe": true, - "consent": ["email", "sms"] - } - }, - "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", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile", - "attributes": { - "external_id": "user@1", - "email": "test@rudderstack.com", - "first_name": "Test", - "last_name": "Rudderlabs", - "phone_number": "+12 345 578 900", - "title": "Developer", - "organization": "Rudder", - "location": { - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001" - }, - "properties": { - "friend.age": 25, - "friend.names.first": "Alice", - "friend.names.last": "Smith", - "Flagged": false, - "Residence": "Shibuya" - } - }, - "id": "01GW3PHVY0MTCDGS0A1612HARX" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile-subscription-bulk-create-job", - "attributes": { - "list_id": "XUepkK", - "subscriptions": [ - { - "email": "test@rudderstack.com", - "phone_number": "+12 345 578 900", - "channels": { - "email": ["MARKETING"], - "sms": ["MARKETING"] - } - } - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Profile updation call and subcribe user", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@1", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "email": "test3@rudderstack.com", - "phone": "+12 345 578 900", - "userId": "user@1", - "title": "Developer", - "organization": "Rudder", - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001", - "Flagged": false, - "Residence": "Shibuya", - "properties": { - "listId": "XUepkK", - "subscribe": true, - "consent": ["email", "sms"] - } - }, - "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", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": { - "error": "Failed to create user due to {}" - } - }, - { - "description": "Profile updation call listId is not provided for subscribing the user", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@1", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12 345 578 900", - "userId": "user@1", - "title": "Developer", - "organization": "Rudder", - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001", - "Flagged": false, - "Residence": "Shibuya", - "properties": { - "subscribe": false, - "consent": ["email", "sms"] - } - }, - "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", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile", - "attributes": { - "external_id": "user@1", - "email": "test@rudderstack.com", - "first_name": "Test", - "last_name": "Rudderlabs", - "phone_number": "+12 345 578 900", - "title": "Developer", - "organization": "Rudder", - "location": { - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001" - }, - "properties": { - "Flagged": false, - "Residence": "Shibuya" - } - }, - "id": "01GW3PHVY0MTCDGS0A1612HARX" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call with enforceEmailAsPrimary enabled from UI", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey", - "enforceEmailAsPrimary": true - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@1", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12 345 578 900", - "userId": "user@1", - "title": "Developer", - "organization": "Rudder", - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001", - "Flagged": false, - "Residence": "Shibuya", - "properties": { - "listId": "XUepkK", - "subscribe": true, - "consent": ["email", "sms"] - } - }, - "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", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile", - "attributes": { - "email": "test@rudderstack.com", - "first_name": "Test", - "last_name": "Rudderlabs", - "phone_number": "+12 345 578 900", - "title": "Developer", - "organization": "Rudder", - "location": { - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001" - }, - "properties": { - "Flagged": false, - "Residence": "Shibuya", - "_id": "user@1" - } - }, - "id": "01GW3PHVY0MTCDGS0A1612HARX" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile-subscription-bulk-create-job", - "attributes": { - "list_id": "XUepkK", - "subscriptions": [ - { - "email": "test@rudderstack.com", - "phone_number": "+12 345 578 900", - "channels": { - "email": ["MARKETING"], - "sms": ["MARKETING"] - } - } - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Identify call without email and phone & enforceEmailAsPrimary enabled from UI", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey", - "enforceEmailAsPrimary": true - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@1", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "userId": "user@1", - "title": "Developer", - "organization": "Rudder", - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001", - "Flagged": false, - "Residence": "Shibuya", - "properties": { - "listId": "XUepkK", - "subscribe": true, - "consent": ["email", "sms"] - } - }, - "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", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": { - "error": "None of email and phone are present in the payload" - } - }, - { - "description": "Screen event call", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "type": "screen", - "event": "TestEven001", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "sajal12", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "traits": { - "id": "user@1", - "age": "22", - "email": "test@rudderstack.com", - "phone": "9112340375", - "anonymousId": "9c6bd77ea9da3e68" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "PreviouslyVicePresident": true, - "YearElected": 1801, - "VicePresidents": ["Aaron Burr", "George Clinton"] - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/events", - "headers": { - "Accept": "application/json", - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "event", - "attributes": { - "metric": { - "name": "TestEven001" - }, - "properties": { - "PreviouslyVicePresident": true, - "YearElected": 1801, - "VicePresidents": ["Aaron Burr", "George Clinton"] - }, - "profile": { - "$email": "test@rudderstack.com", - "$phone_number": "9112340375", - "$id": "sajal12", - "age": "22" - } - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track event call with flatten properties enabled", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey", - "flattenProperties": true - } - }, - "message": { - "type": "track", - "event": "TestEven001", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "sajal12", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "traits": { - "id": "user@1", - "age": "22", - "email": "test@rudderstack.com", - "phone": "9112340375", - "anonymousId": "9c6bd77ea9da3e68", - "plan_details": { - "plan_type": "gold", - "duration": "3 months" - } - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "vicePresdentInfo": { - "PreviouslVicePresident": true, - "YearElected": 1801, - "VicePresidents": ["AaronBurr", "GeorgeClinton"] - } - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/events", - "headers": { - "Accept": "application/json", - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "event", - "attributes": { - "metric": { - "name": "TestEven001" - }, - "properties": { - "vicePresdentInfo.PreviouslVicePresident": true, - "vicePresdentInfo.VicePresidents": ["AaronBurr", "GeorgeClinton"], - "vicePresdentInfo.YearElected": 1801 - }, - "profile": { - "$email": "test@rudderstack.com", - "$phone_number": "9112340375", - "$id": "sajal12", - "age": "22", - "plan_details.plan_type": "gold", - "plan_details.duration": "3 months" - } - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track event call", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "type": "track", - "event": "TestEven002", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "sajal12", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "traits": { - "id": "user@1", - "age": "22", - "name": "Test", - "email": "test@rudderstack.com", - "phone": "9112340375", - "anonymousId": "9c6bd77ea9da3e68", - "description": "Sample description" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "PreviouslyVicePresident": true, - "YearElected": 1801, - "VicePresidents": ["Aaron Burr", "George Clinton"], - "revenue": 3000 - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/events", - "headers": { - "Accept": "application/json", - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "event", - "attributes": { - "metric": { - "name": "TestEven002" - }, - "properties": { - "PreviouslyVicePresident": true, - "YearElected": 1801, - "VicePresidents": ["Aaron Burr", "George Clinton"] - }, - "profile": { - "$email": "test@rudderstack.com", - "$phone_number": "9112340375", - "$id": "sajal12", - "age": "22", - "name": "Test", - "description": "Sample description" - }, - "value": 3000 - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track event call, with make email or phone as primary identifier toggle on", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey", - "enforceEmailAsPrimary": true - } - }, - "message": { - "type": "track", - "event": "TestEven001", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "sajal12", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "traits": { - "id": "user@1", - "age": "22", - "email": "test@rudderstack.com", - "phone": "9112340375", - "anonymousId": "9c6bd77ea9da3e68" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "PreviouslyVicePresident": true, - "YearElected": 1801, - "VicePresidents": ["Aaron Burr", "George Clinton"] - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/events", - "headers": { - "Accept": "application/json", - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "event", - "attributes": { - "metric": { - "name": "TestEven001" - }, - "properties": { - "PreviouslyVicePresident": true, - "YearElected": 1801, - "VicePresidents": ["Aaron Burr", "George Clinton"] - }, - "profile": { - "$email": "test@rudderstack.com", - "$phone_number": "9112340375", - "age": "22", - "_id": "sajal12" - } - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track event call, without email and phone & with (make email or phone as primary identifier) toggle on", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey", - "enforceEmailAsPrimary": true - } - }, - "message": { - "type": "track", - "event": "TestEven001", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "sajal12", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "traits": { - "id": "user@1", - "age": "22", - "anonymousId": "9c6bd77ea9da3e68" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "PreviouslyVicePresident": true, - "YearElected": 1801, - "VicePresidents": ["Aaron Burr", "George Clinton"] - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - "output": { - "error": "None of email and phone are present in the payload" - } - }, - { - "description": "group call", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "userId": "user123", - "type": "group", - "groupId": "XUepkK", - "traits": { - "subscribe": true - }, - "context": { - "traits": { - "email": "test@rudderstack.com", - "phone": "+12 345 678 900", - "consent": ["email"] - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-01-21T00:21:34.208Z" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json", - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile-subscription-bulk-create-job", - "attributes": { - "list_id": "XUepkK", - "subscriptions": [ - { - "email": "test@rudderstack.com", - "phone_number": "+12 345 678 900" - } - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "group call without groupId", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "userId": "user123", - "type": "group", - "groupId": "", - "traits": { - "subscribe": true - }, - "context": { - "traits": { - "email": "test@rudderstack.com", - "phone": "+12 345 678 900", - "consent": "email" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-01-21T00:21:34.208Z" - } - }, - "output": { - "error": "groupId is a required field for group events" - } - }, - { - "description": "[Error]: Check for unsupported message type", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "userId": "user123", - "type": "random", - "groupId": "XUepkK", - "traits": { - "subscribe": true - }, - "context": { - "traits": { - "email": "test@rudderstack.com", - "phone": "+12 345 678 900", - "consent": "email" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-01-21T00:21:34.208Z" - } - }, - "output": { - "error": "Event type random is not supported" - } - }, - { - "description": "Track call with Ecom events (Viewed Product)", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "type": "track", - "event": "product viewed", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "sajal12", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "traits": { - "id": "user@1", - "age": "22", - "name": "Test", - "email": "test@rudderstack.com", - "phone": "9112340375", - "anonymousId": "9c6bd77ea9da3e68", - "description": "Sample description" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "name": "test product", - "product_id": "1114", - "sku": "WINNIePuh12", - "image_url": "http://www.example.com/path/to/product/image.png", - "url": "http://www.example.com/path/to/product", - "brand": "Not for Kids", - "price": 9.9, - "categories": ["Fiction", "Children"] - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/events", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "event", - "attributes": { - "metric": { - "name": "Viewed Product" - }, - "profile": { - "$email": "test@rudderstack.com", - "$phone_number": "9112340375", - "$id": "sajal12", - "age": "22", - "name": "Test", - "description": "Sample description" - }, - "properties": { - "ProductName": "test product", - "ProductID": "1114", - "SKU": "WINNIePuh12", - "ImageURL": "http://www.example.com/path/to/product/image.png", - "URL": "http://www.example.com/path/to/product", - "Brand": "Not for Kids", - "Price": 9.9, - "Categories": ["Fiction", "Children"] - } - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with Ecom events (Checkout Started) with enabled flattenProperties", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey", - "flattenProperties": true - } - }, - "message": { - "type": "track", - "event": "checkout started", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "sajal12", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "traits": { - "id": "user@1", - "age": "22", - "name": "Test", - "email": "test@rudderstack.com", - "phone": "9112340375", - "anonymousId": "9c6bd77ea9da3e68", - "description": "Sample description" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "order_id": "1234", - "affiliation": "Apple Store", - "value": 20, - "revenue": 15.0, - "shipping": 4, - "tax": 1, - "discount": 1.5, - "coupon": "ImagePro", - "currency": "USD", - "products": [ - { - "product_id": "123", - "sku": "G-32", - "name": "Monopoly", - "price": 14, - "quantity": 1, - "category": "Games", - "url": "https://www.website.com/product/path", - "image_url": "https://www.website.com/product/path.jpg" - }, - { - "product_id": "345", - "sku": "F-32", - "name": "UNO", - "price": 3.45, - "quantity": 2, - "category": "Games" - } - ] - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/events", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "event", - "attributes": { - "metric": { - "name": "Started Checkout" - }, - "properties": { - "$event_id": "1234", - "$value": 20, - "items[0].ProductID": "123", - "items[0].SKU": "G-32", - "items[0].ProductName": "Monopoly", - "items[0].Quantity": 1, - "items[0].ItemPrice": 14, - "items[0].ProductURL": "https://www.website.com/product/path", - "items[0].ImageURL": "https://www.website.com/product/path.jpg", - "items[1].ProductID": "345", - "items[1].SKU": "F-32", - "items[1].ProductName": "UNO", - "items[1].Quantity": 2, - "items[1].ItemPrice": 3.45 - }, - "profile": { - "$email": "test@rudderstack.com", - "$phone_number": "9112340375", - "$id": "sajal12", - "age": "22", - "name": "Test", - "description": "Sample description" - } - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with Ecom events (Added to Cart) with properties.products", - "input": { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "message": { - "type": "track", - "event": "product added", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "sajal12", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "traits": { - "id": "user@1", - "age": "22", - "name": "Test", - "email": "test@rudderstack.com", - "phone": "9112340375", - "anonymousId": "9c6bd77ea9da3e68", - "description": "Sample description" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "order_id": "1234", - "value": 12.12, - "categories": ["Fiction3", "Children3"], - "checkout_url": "http://www.heythere.com", - "item_names": ["book1", "book2"], - "products": [ - { - "product_id": "b1pid", - "sku": "123x", - "name": "book1", - "url": "heyther.com", - "price": 12.0 - }, - { - "product_id": "b2pid", - "sku": "123x", - "name": "book2", - "url": "heyther2.com", - "price": 14.0 - } - ] - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/events", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "event", - "attributes": { - "metric": { - "name": "Added to Cart" - }, - "profile": { - "$email": "test@rudderstack.com", - "$phone_number": "9112340375", - "$id": "sajal12", - "age": "22", - "name": "Test", - "description": "Sample description" - }, - "properties": { - "$value": 12.12, - "AddedItemCategories": ["Fiction3", "Children3"], - "ItemNames": ["book1", "book2"], - "CheckoutURL": "http://www.heythere.com", - "items": [ - { - "ProductID": "b1pid", - "SKU": "123x", - "ProductName": "book1", - "ItemPrice": 12, - "ProductURL": "heyther.com" - }, - { - "ProductID": "b2pid", - "SKU": "123x", - "ProductName": "book2", - "ItemPrice": 14, - "ProductURL": "heyther2.com" - } - ] - } - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/klaviyo_router.json b/test/__tests__/data/klaviyo_router.json deleted file mode 100644 index 7fae2ad90e..0000000000 --- a/test/__tests__/data/klaviyo_router.json +++ /dev/null @@ -1,599 +0,0 @@ -[ - { - "description": "Router tests", - "input": [ - { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "test", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12 345 578 900", - "userId": "Testc", - "title": "Developer", - "organization": "Rudder", - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001", - "Flagged": false, - "Residence": "Shibuya", - "properties": { - "consent": ["email", "sms"] - } - }, - "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", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "metadata": { - "jobId": 2 - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "test", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12 345 578 900", - "userId": "test", - "title": "Developer", - "organization": "Rudder", - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001", - "Flagged": false, - "Residence": "Shibuya", - "properties": { - "listId": "XUepkK", - "subscribe": true, - "consent": ["email", "sms"] - } - }, - "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", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "metadata": { - "jobId": 3 - }, - "message": { - "userId": "user123", - "type": "group", - "groupId": "XUepkK", - "traits": { - "subscribe": true - }, - "context": { - "traits": { - "email": "test@rudderstack.com", - "phone": "+12 345 678 900", - "consent": ["email"] - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-01-21T00:21:34.208Z" - } - }, - { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "metadata": { - "jobId": 4 - }, - "message": { - "userId": "user123", - "type": "random", - "groupId": "XUepkK", - "traits": { - "subscribe": true - }, - "context": { - "traits": { - "email": "test@rudderstack.com", - "phone": "+12 345 678 900", - "consent": "email" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-01-21T00:21:34.208Z" - } - }, - { - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - }, - "metadata": { - "jobId": 5 - }, - "message": { - "userId": "user123", - "type": "group", - "groupId": "", - "traits": { - "subscribe": true - }, - "context": { - "traits": { - "email": "test@rudderstack.com", - "phone": "+12 345 678 900", - "consent": "email" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-01-21T00:21:34.208Z" - } - } - ], - "newTransformerOutput": [ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile-subscription-bulk-create-job", - "attributes": { - "list_id": "XUepkK", - "subscriptions": [ - { - "email": "test@rudderstack.com", - "phone_number": "+12 345 678 900" - }, - { - "email": "test@rudderstack.com", - "phone_number": "+12 345 578 900", - "channels": { - "email": ["MARKETING"], - "sms": ["MARKETING"] - } - } - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 3 - }, - { - "jobId": 2 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile", - "attributes": { - "external_id": "test", - "email": "test@rudderstack.com", - "first_name": "Test", - "last_name": "Rudderlabs", - "phone_number": "+12 345 578 900", - "title": "Developer", - "organization": "Rudder", - "location": { - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001" - }, - "properties": { - "Flagged": false, - "Residence": "Shibuya" - } - }, - "id": "01GW3PHVY0MTCDGS0A1612HARX" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "error": "{\"id\":\"01GW3PHVY0MTCDGS0A1612HARX\",\"attributes\":{}}", - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 299, - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - } - }, - { - "error": "Event type random is not supported", - "metadata": [ - { - "jobId": 4 - } - ], - "batched": false, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400, - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - } - }, - { - "error": "groupId is a required field for group events", - "metadata": [ - { - "jobId": 5 - } - ], - "batched": false, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400, - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - } - } - ], - "oldTransformerOutput": [ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile-subscription-bulk-create-job", - "attributes": { - "list_id": "XUepkK", - "subscriptions": [ - { - "email": "test@rudderstack.com", - "phone_number": "+12 345 678 900" - }, - { - "email": "test@rudderstack.com", - "phone_number": "+12 345 578 900", - "channels": { - "email": ["MARKETING"], - "sms": ["MARKETING"] - } - } - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile", - "attributes": { - "external_id": "test", - "email": "test@rudderstack.com", - "first_name": "Test", - "last_name": "Rudderlabs", - "phone_number": "+12 345 578 900", - "title": "Developer", - "organization": "Rudder", - "location": { - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001" - }, - "properties": { - "Flagged": false, - "Residence": "Shibuya" - } - }, - "id": "01GW3PHVY0MTCDGS0A1612HARX" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 3 - }, - { - "jobId": 2 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX", - "headers": { - "Authorization": "Klaviyo-API-Key dummyPrivateApiKey", - "Content-Type": "application/json", - "Accept": "application/json", - "revision": "2023-02-22" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "profile", - "attributes": { - "external_id": "test", - "email": "test@rudderstack.com", - "first_name": "Test", - "last_name": "Rudderlabs", - "phone_number": "+12 345 578 900", - "title": "Developer", - "organization": "Rudder", - "location": { - "city": "Tokyo", - "region": "Kanto", - "country": "JP", - "zip": "100-0001" - }, - "properties": { - "Flagged": false, - "Residence": "Shibuya" - } - }, - "id": "01GW3PHVY0MTCDGS0A1612HARX" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - } - }, - { - "metadata": [ - { - "jobId": 4 - } - ], - "batched": false, - "statusCode": 400, - "error": "Event type random is not supported", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - } - }, - { - "metadata": [ - { - "jobId": 5 - } - ], - "batched": false, - "statusCode": 400, - "error": "groupId is a required field for group events", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "destination": { - "Config": { - "publicApiKey": "dummyPublicApiKey", - "privateApiKey": "dummyPrivateApiKey" - } - } - } - ] - } -] diff --git a/test/__tests__/data/kochava_cdk_output.json b/test/__tests__/data/kochava_cdk_output.json deleted file mode 100644 index f8067b6bc3..0000000000 --- a/test/__tests__/data/kochava_cdk_output.json +++ /dev/null @@ -1,529 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "sampath", - "data": { - "app_tracking_transparency": { - "att": false - }, - "currency": "USD", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ver": "", - "usertime": 1579236831206, - "origination_ip": "1.1.1.1", - "device_ua": "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", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "app_short_string": "1.0.0", - "os_version": "15.9", - "screen_dpi": 2, - "locale": "en-US", - "event_name": "Add to Cart", - "event_data": { "name": "sampath" } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { "statusCode": 400, "error": "message type identify is not supported" }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "currency": "USD", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ver": "", - "os_version": "", - "usertime": 1571043797562, - "device_ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "app_short_string": "1.0.0", - "screen_dpi": 2, - "locale": "en-US", - "event_name": "screen view", - "event_data": {}, - "origination_ip": "1.1.1.1" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "currency": "USD", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ver": "", - "os_version": "", - "usertime": 1571043797562, - "device_ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "app_short_string": "1.0.0", - "screen_dpi": 2, - "locale": "en-US", - "event_name": "screen view Home Screen", - "event_data": { "name": "Home Screen" }, - "origination_ip": "1.1.1.1" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { "att": false }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "Android SDK built for x86-Android-8.1.0", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "some_adid", - "android_id": "5094f5704b9cf2b3" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { "name": "MainActivity", "automatic": true }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "os_version": "8.1.0", - "screen_dpi": 420 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { "att": true }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "Android SDK built for x86-iOS-14.5", - "device_ids": { - "idfa": "some_adid", - "idfv": "5094f5704b9cf2b3", - "adid": "", - "android_id": "" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { "name": "MainActivity", "automatic": true }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "os_version": "14.5", - "screen_dpi": 420 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { - "att": true - }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "", - "device_ids": { - "idfa": "some_adid", - "idfv": "5094f5704b9cf2b3", - "adid": "", - "android_id": "" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { - "name": "MainActivity", - "automatic": true - }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "screen_dpi": 420 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "Android SDK built for x86-Android-8.1.0", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "5094f5704b9cf2b3" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { - "name": "MainActivity", - "automatic": true - }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "os_version": "8.1.0", - "screen_dpi": 420 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { - "name": "MainActivity", - "automatic": true - }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "screen_dpi": 420 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1571043797562, - "app_version": "1.0.0", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ua": "", - "event_name": "screen view", - "origination_ip": "1.1.1.1", - "currency": "USD", - "event_data": {}, - "app_name": "RudderLabs JavaScript SDK", - "app_short_string": "1.0.0", - "locale": "en-US", - "os_version": "", - "screen_dpi": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": true - }, - "usertime": 1571043797562, - "app_version": "1.0.0", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "00000000000000000000000000", - "adid": "", - "android_id": "" - }, - "device_ua": "", - "event_name": "screen view", - "origination_ip": "1.1.1.1", - "currency": "USD", - "event_data": {}, - "app_name": "RudderLabs JavaScript SDK", - "app_short_string": "1.0.0", - "locale": "en-US", - "os_version": "", - "screen_dpi": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1571043797562, - "app_version": "1.0.0", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "00000000000000000000000000", - "adid": "", - "android_id": "" - }, - "device_ua": "", - "event_name": "screen view", - "origination_ip": "1.1.1.1", - "currency": "USD", - "event_data": {}, - "app_name": "RudderLabs JavaScript SDK", - "app_short_string": "1.0.0", - "locale": "en-US", - "os_version": "", - "screen_dpi": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1571043797562, - "app_version": "1.0.0", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "00000000000000000000000000" - }, - "device_ua": "", - "event_name": "screen view", - "origination_ip": "1.1.1.1", - "currency": "USD", - "event_data": {}, - "app_name": "RudderLabs JavaScript SDK", - "app_short_string": "1.0.0", - "locale": "en-US", - "os_version": "", - "screen_dpi": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - } -] diff --git a/test/__tests__/data/kochava_input.json b/test/__tests__/data/kochava_input.json deleted file mode 100644 index 941a28ce22..0000000000 --- a/test/__tests__/data/kochava_input.json +++ /dev/null @@ -1,811 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava 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": "1.1.1.1", - "library": { "name": "RudderLabs JavaScript SDK", "version": "1.0.0" }, - "locale": "en-US", - "os": { "name": "macOS", "version": "15.9" }, - "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": "0.0.0.0", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "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": "1.1.1.1", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "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": "1.1.1.1", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "name": "Home Screen", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "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": "1.1.1.1", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "properties": { - "name": "Home Screen" - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "version": "1.0" - }, - "device": { - "id": "5094f5704b9cf2b3", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "adTrackingEnabled": true, - "advertisingId": "some_adid" - }, - "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": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "version": "1.0" - }, - "device": { - "id": "5094f5704b9cf2b3", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "adTrackingEnabled": true, - "advertisingId": "some_adid", - "attTrackingStatus": 3 - }, - "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": "iOS", - "version": "14.5" - }, - "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": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "version": "1.0" - }, - "device": { - "id": "5094f5704b9cf2b3", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "ipados", - "adTrackingEnabled": true, - "advertisingId": "some_adid", - "attTrackingStatus": 3 - }, - "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": "ipados" - }, - "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": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "version": "1.0" - }, - "device": { - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "adTrackingEnabled": true - }, - "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": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "version": "1.0" - }, - "device": { - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "adTrackingEnabled": true - }, - "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 - }, - "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": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "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": "1.1.1.1", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "name": "Home Screen", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "timestamp": "2019-10-14T09:03:17.562Z", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "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": "1.1.1.1", - "os": { - "name": "ios", - "version": "" - }, - "device": { - "attTrackingStatus": 3 - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "name": "Home Screen", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "timestamp": "2019-10-14T09:03:17.562Z", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "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": "1.1.1.1", - "os": { - "name": "tvOS", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "name": "Home Screen", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "timestamp": "2019-10-14T09:03:17.562Z", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - }, - { - "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": "1.1.1.1", - "os": { - "name": "android", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "name": "Home Screen", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "timestamp": "2019-10-14T09:03:17.562Z", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - }, - "DisplayName": "Kochava", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "KOCHAVA" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "kochava test", - "Transformations": [] - } - } -] diff --git a/test/__tests__/data/kochava_output.json b/test/__tests__/data/kochava_output.json deleted file mode 100644 index 3c22572c78..0000000000 --- a/test/__tests__/data/kochava_output.json +++ /dev/null @@ -1,529 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "sampath", - "data": { - "app_tracking_transparency": { - "att": false - }, - "currency": "USD", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ver": "", - "usertime": 1579236831206, - "origination_ip": "1.1.1.1", - "device_ua": "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", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "app_short_string": "1.0.0", - "os_version": "15.9", - "screen_dpi": 2, - "locale": "en-US", - "event_name": "Add to Cart", - "event_data": { "name": "sampath" } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { "statusCode": 400, "error": "message type \"identify\" not supported for \"kochava\"" }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "currency": "USD", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ver": "", - "os_version": "", - "usertime": 1571043797562, - "device_ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "app_short_string": "1.0.0", - "screen_dpi": 2, - "locale": "en-US", - "event_name": "screen view", - "event_data": {}, - "origination_ip": "1.1.1.1" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "currency": "USD", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ver": "", - "os_version": "", - "usertime": 1571043797562, - "device_ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "app_name": "RudderLabs JavaScript SDK", - "app_version": "1.0.0", - "app_short_string": "1.0.0", - "screen_dpi": 2, - "locale": "en-US", - "event_name": "screen view Home Screen", - "event_data": { "name": "Home Screen" }, - "origination_ip": "1.1.1.1" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { "att": false }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "Android SDK built for x86-Android-8.1.0", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "some_adid", - "android_id": "5094f5704b9cf2b3" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { "name": "MainActivity", "automatic": true }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "os_version": "8.1.0", - "screen_dpi": 420 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { "att": true }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "Android SDK built for x86-iOS-14.5", - "device_ids": { - "idfa": "some_adid", - "idfv": "5094f5704b9cf2b3", - "adid": "", - "android_id": "" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { "name": "MainActivity", "automatic": true }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "os_version": "14.5", - "screen_dpi": 420 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { - "att": true - }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "", - "device_ids": { - "idfa": "some_adid", - "idfv": "5094f5704b9cf2b3", - "adid": "", - "android_id": "" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { - "name": "MainActivity", - "automatic": true - }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "screen_dpi": 420 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "Android SDK built for x86-Android-8.1.0", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "5094f5704b9cf2b3" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { - "name": "MainActivity", - "automatic": true - }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "os_version": "8.1.0", - "screen_dpi": 420 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "5094f5704b9cf2b3", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1584003903421, - "app_version": "1", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ua": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)", - "event_name": "screen view MainActivity", - "currency": "USD", - "event_data": { - "name": "MainActivity", - "automatic": true - }, - "app_name": "LeanPlumIntegrationAndroid", - "app_short_string": "1.0", - "locale": "en-US", - "screen_dpi": 420 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1571043797562, - "app_version": "1.0.0", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "" - }, - "device_ua": "", - "event_name": "screen view", - "origination_ip": "1.1.1.1", - "currency": "USD", - "event_data": {}, - "app_name": "RudderLabs JavaScript SDK", - "app_short_string": "1.0.0", - "locale": "en-US", - "os_version": "", - "screen_dpi": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": true - }, - "usertime": 1571043797562, - "app_version": "1.0.0", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "00000000000000000000000000", - "adid": "", - "android_id": "" - }, - "device_ua": "", - "event_name": "screen view", - "origination_ip": "1.1.1.1", - "currency": "USD", - "event_data": {}, - "app_name": "RudderLabs JavaScript SDK", - "app_short_string": "1.0.0", - "locale": "en-US", - "os_version": "", - "screen_dpi": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1571043797562, - "app_version": "1.0.0", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "00000000000000000000000000", - "adid": "", - "android_id": "" - }, - "device_ua": "", - "event_name": "screen view", - "origination_ip": "1.1.1.1", - "currency": "USD", - "event_data": {}, - "app_name": "RudderLabs JavaScript SDK", - "app_short_string": "1.0.0", - "locale": "en-US", - "os_version": "", - "screen_dpi": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://control.kochava.com/track/json", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "action": "event", - "kochava_app_id": "", - "kochava_device_id": "00000000000000000000000000", - "data": { - "app_tracking_transparency": { - "att": false - }, - "usertime": 1571043797562, - "app_version": "1.0.0", - "device_ver": "", - "device_ids": { - "idfa": "", - "idfv": "", - "adid": "", - "android_id": "00000000000000000000000000" - }, - "device_ua": "", - "event_name": "screen view", - "origination_ip": "1.1.1.1", - "currency": "USD", - "event_data": {}, - "app_name": "RudderLabs JavaScript SDK", - "app_short_string": "1.0.0", - "locale": "en-US", - "os_version": "", - "screen_dpi": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - } -] diff --git a/test/__tests__/data/kustomer_input.json b/test/__tests__/data/kustomer_input.json deleted file mode 100644 index c711c2499c..0000000000 --- a/test/__tests__/data/kustomer_input.json +++ /dev/null @@ -1,851 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "Testc", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "name": "Test Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12345578900", - "birthday": "2005-01-01T23:28:56.782Z", - "userId": "Testc", - "address": { - "street": "24 Dovers Lane", - "city": "Miami", - "state": "Florida", - "postalCode": "1890001" - }, - "userName": "Testc47", - "company": "Rudderstack", - "createdAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatar": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "website": "www.mattertoast873.com", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@Testc", - "url": "http://twitter.com/Testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "Testc", - "url": "http://facebook.com/Testc" - } - ] - }, - "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", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "userId": "58210c3db0f09110006b7953", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "name": "Ano Domeni", - "phone": "+12345578000", - "birthday": "2005-01-01T23:28:56.782Z" - }, - "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", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "screen", - "event": "Test-Event-Screen", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "Testc", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "hasAccount": "true", - "YearSelectedNum": 1801, - "originalServing": "2021-01-25T15:32:56.409Z" - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "name": "Cart-Viewed", - "type": "page", - "sentAt": "2021-01-03T17:02:53.197Z", - "userId": "user@doe", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "referrer": "morkey" - }, - "locale": "en-US", - "screen": { "density": 2 }, - "traits": { - "userId": "userid", - "profession": "Student", - "anonymousId": "d80b66d5-b33d-412d-866f-r4fft5841af" - }, - "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" - }, - "category": "Cart", - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "15129730-eb00-4db7-8db2-799566ccb2ef", - "properties": { - "url": "http://morkey.in", - "name": "Cart Viewed", - "path": "/cart", - "title": "miphone", - "search": "MI", - "category": "Cart", - "referrer": "morkey", - "domain": "morkey.com" - }, - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.195Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "page", - "sentAt": "2021-01-03T17:02:53.197Z", - "userId": "user@doe", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "referrer": "morkey" - }, - "locale": "en-US", - "screen": { "density": 2 }, - "traits": { - "userId": "userid", - "profession": "Student", - "anonymousId": "d80b66d5-b33d-412d-866f-r4fft5841af" - }, - "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" - }, - "category": "Cart", - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "15129730-eb00-4db7-8db2-799566ccb2ef", - "properties": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "category": "Cart", - "referrer": "morkey", - "domain": "morkey.com", - "kustomerTrackingId": "829131sjad", - "kustomerSessionId": "hsad522" - }, - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.195Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "track", - "event": "Tracking-Weekender", - "sentAt": "2021-01-03T17:02:53.197Z", - "userId": "user@doe", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "referrer": "morkey" - }, - "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": "15129730-eb00-4db7-8db2-799566ccb2ef", - "properties": { - "YearServicedNum": 211, - "region": "strapis", - "kustomerTrackingId": "sahetwiac", - "kustomerSessionId": "63nsa22" - }, - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "locale": "en-US", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.195Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "track", - "event": "Tracking-Weekender2", - "sentAt": "2021-01-03T17:02:53.197Z", - "userId": "user@doe", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "referrer": "morkey" - }, - "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": "15129730-eb00-4db7-8db2-799566ccb2ef", - "properties": { - "YearServicedNum": 211, - "reg_8-821x": false, - "kustomer_tracking_id": "sahetwiac", - "kustomer_session_id": "63nsa22" - }, - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { "All": true }, - "locale": "en-US", - "originalTimestamp": "2021-01-03T17:02:53.195Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "genericPage": true - } - }, - "message": { - "type": "page", - "name": "Unfinished page", - "sentAt": "2021-01-03T17:02:53.197Z", - "userId": "user@doe", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "referrer": "morkey" - }, - "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": "15129730-eb00-4db7-8db2-799566ccb2ef", - "properties": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "category": "Cart", - "referrer": "morkey", - "domain": "morkey.com" - }, - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { "All": true }, - "locale": "en-US", - "originalTimestamp": "2021-01-03T17:02:53.195Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "genericScreen": true - } - }, - "message": { - "type": "screen", - "event": "Test-Event-Screen", - "sentAt": "2021-01-25T16:12:02.048Z", - "userId": "Testc", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "hasAccount": "true", - "YearSelectedNum": 1801, - "originalServing": "2021-01-25T15:32:56.409Z" - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-01-25T15:32:56.409Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "Testc", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12345578900", - "birthday": "2005-01-01T23:28:56.782Z", - "userId": "Testc", - "address": { - "street": "24 Dovers Lane", - "city": "Miami", - "state": "Florida", - "postalCode": "1890001" - }, - "userName": "Testc47", - "company": "Rudderstack", - "createdAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatar": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "website": "www.mattertoast873.com", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@Testc", - "url": "http://twitter.com/Testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "Testc", - "url": "http://facebook.com/Testc" - } - ] - }, - "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", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "Testc", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "emails": [ - { - "type": "home", - "email": "test@rudderstack.com" - } - ], - "phones": [ - { - "type": "home", - "phone": "+12345578900" - } - ], - "birthday": "2005-01-01T23:28:56.782Z", - "userId": "Testc", - "address": "test address string", - "userName": "Testc47", - "company": "Rudderstack", - "createdAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatar": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "website": "www.mattertoast873.com", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@Testc", - "url": "http://twitter.com/Testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "Testc", - "url": "http://facebook.com/Testc" - } - ] - }, - "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", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "Testc", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "firstName": "Test", - "lastName": "Rudderlabs", - "emails": [ - { - "type": "home", - "email": "test@rudderstack.com" - } - ], - "phones": [ - { - "type": "home", - "phone": "+12345578900" - } - ], - "birthday": "2005-01-01T23:28:56.782Z", - "userId": "Testc", - "address": "test address string", - "userName": "Testc47", - "company": "Rudderstack", - "createdAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatar": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "website": "www.mattertoast873.com", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@Testc", - "url": "http://twitter.com/Testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "Testc", - "url": "http://facebook.com/Testc" - } - ] - }, - "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", - "externalId": [ - { - "type": "kustomerId", - "id": "abcd1234" - } - ] - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "genericScreen": true - } - }, - "message": { - "type": "screen", - "event": "Test-Event-Screen", - "userId": "utsabc", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)", - "sessionId": "hsad522" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "hasAccount": "true", - "YearSelectedNum": 1801 - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2023-01-10T15:32:56.409Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyAPIkey", - "baseEndpoint": "https://api.prod2.kustomerapp.com", - "apiKey": "dummyApiKey", - "genericScreen": true - } - }, - "message": { - "type": "screen", - "event": "Test-Event-Screen", - "userId": "Testc", - "channel": "mobile", - "context": { - "os": { - "name": "Android", - "version": "10" - }, - "app": { - "name": "KlaviyoTest", - "build": "1", - "version": "1.0", - "namespace": "com.rudderstack.android.rudderstack.sampleAndroidApp" - }, - "device": { - "id": "9c6bd77ea9da3e68", - "name": "raphaelin", - "type": "android", - "model": "Redmi K20 Pro", - "manufacturer": "Xiaomi" - }, - "locale": "en-IN", - "screen": { - "width": 1080, - "height": 2210, - "density": 440 - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.2" - }, - "network": { - "wifi": true, - "carrier": "airtel", - "cellular": true, - "bluetooth": false - }, - "timezone": "Asia/Kolkata", - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)", - "sessionId": "hsad522" - }, - "rudderId": "b7b24f86-f7bf-46d8-b2b4-ccafc080239c", - "messageId": "1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce", - "properties": { - "hasAccount": "true", - "YearSelectedNum": 1801 - }, - "anonymousId": "9c6bd77ea9da3e68", - "integrations": { - "All": true - }, - "originalTimestamp": "2023-01-10T15:32:56.409Z" - } - } -] diff --git a/test/__tests__/data/kustomer_output.json b/test/__tests__/data/kustomer_output.json deleted file mode 100644 index 0a0876d29a..0000000000 --- a/test/__tests__/data/kustomer_output.json +++ /dev/null @@ -1,602 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/customers", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "name": "Test Rudderlabs", - "externalId": "Testc", - "username": "Testc47", - "company": "Rudderstack", - "signedUpAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatarUrl": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "locale": "en-US", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@Testc", - "url": "http://twitter.com/Testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "Testc", - "url": "http://facebook.com/Testc" - } - ], - "birthdayAt": "2005-01-01T23:28:56.782Z", - "emails": [ - { - "type": "home", - "email": "test@rudderstack.com" - } - ], - "phones": [ - { - "type": "home", - "phone": "+12345578900" - } - ], - "urls": [ - { - "url": "www.mattertoast873.com" - } - ], - "locations": [ - { - "type": "home", - "address": "24 Dovers Lane Miami Florida 1890001" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.kustomerapp.com/v1/customers/58210c3db0f09110006b7953?replace=false", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "name": "Ano Domeni", - "externalId": "58210c3db0f09110006b7953", - "locale": "en-US", - "birthdayAt": "2005-01-01T23:28:56.782Z", - "phones": [ - { - "type": "home", - "phone": "+12345578000" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "Testc" - }, - "event": { - "name": "Screen-Viewed-Test-Event-Screen", - "meta": { - "hasAccount": "true", - "YearSelectedNum": 1801, - "originalServing": "2021-01-25T15:32:56.409Z" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "user@doe" - }, - "event": { - "name": "Web-Page-Viewed-Cart-Viewed", - "meta": { - "url": "http://morkey.in", - "name": "Cart Viewed", - "path": "/cart", - "title": "miphone", - "search": "MI", - "category": "Cart", - "referrer": "morkey", - "domain": "morkey.com" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "user@doe" - }, - "event": { - "name": "Web-Page-Viewed", - "sessionId": "hsad522", - "trackingId": "829131sjad", - "meta": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "category": "Cart", - "referrer": "morkey", - "domain": "morkey.com" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "user@doe" - }, - "event": { - "name": "Tracking-Weekender", - "sessionId": "63nsa22", - "trackingId": "sahetwiac", - "meta": { - "YearServicedNum": 211, - "region": "strapis" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "FORM": {}, - "JSON": { - "event": { - "meta": { - "YearServicedNum": 211, - "reg_8-821x": false - }, - "name": "Tracking-Weekender2", - "sessionId": "63nsa22", - "trackingId": "sahetwiac" - }, - "identity": { - "externalId": "user@doe" - } - }, - "XML": {}, - "JSON_ARRAY": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "user@doe" - }, - "event": { - "name": "Web-Page-Viewed", - "meta": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "category": "Cart", - "referrer": "morkey", - "domain": "morkey.com" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "Testc" - }, - "event": { - "name": "Screen-Viewed", - "meta": { - "hasAccount": "true", - "YearSelectedNum": 1801, - "originalServing": "2021-01-25T15:32:56.409Z" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/customers", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "name": "Test Rudderlabs", - "externalId": "Testc", - "username": "Testc47", - "company": "Rudderstack", - "signedUpAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatarUrl": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "locale": "en-US", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@Testc", - "url": "http://twitter.com/Testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "Testc", - "url": "http://facebook.com/Testc" - } - ], - "birthdayAt": "2005-01-01T23:28:56.782Z", - "emails": [ - { - "type": "home", - "email": "test@rudderstack.com" - } - ], - "phones": [ - { - "type": "home", - "phone": "+12345578900" - } - ], - "urls": [ - { - "url": "www.mattertoast873.com" - } - ], - "locations": [ - { - "type": "home", - "address": "24 Dovers Lane Miami Florida 1890001" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/customers", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "name": "Test Rudderlabs", - "externalId": "Testc", - "username": "Testc47", - "company": "Rudderstack", - "signedUpAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatarUrl": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "locale": "en-US", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@Testc", - "url": "http://twitter.com/Testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "Testc", - "url": "http://facebook.com/Testc" - } - ], - "birthdayAt": "2005-01-01T23:28:56.782Z", - "emails": [ - { - "type": "home", - "email": "test@rudderstack.com" - } - ], - "phones": [ - { - "type": "home", - "phone": "+12345578900" - } - ], - "urls": [ - { - "url": "www.mattertoast873.com" - } - ], - "locations": [ - { - "type": "home", - "address": "test address string" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.kustomerapp.com/v1/customers/abcd1234?replace=false", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "name": "Test Rudderlabs", - "externalId": "Testc", - "username": "Testc47", - "company": "Rudderstack", - "signedUpAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatarUrl": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "locale": "en-US", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@Testc", - "url": "http://twitter.com/Testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "Testc", - "url": "http://facebook.com/Testc" - } - ], - "birthdayAt": "2005-01-01T23:28:56.782Z", - "emails": [ - { - "type": "home", - "email": "test@rudderstack.com" - } - ], - "phones": [ - { - "type": "home", - "phone": "+12345578900" - } - ], - "urls": [ - { - "url": "www.mattertoast873.com" - } - ], - "locations": [ - { - "type": "home", - "address": "test address string" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "utsabc" - }, - "event": { - "name": "Screen-Viewed", - "sessionId": "hsad522", - "meta": { - "hasAccount": "true", - "YearSelectedNum": 1801 - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.prod2.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "Testc" - }, - "event": { - "name": "Screen-Viewed", - "sessionId": "hsad522", - "meta": { - "hasAccount": "true", - "YearSelectedNum": 1801 - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/kustomer_router_input.json b/test/__tests__/data/kustomer_router_input.json deleted file mode 100644 index 0e4c88aa20..0000000000 --- a/test/__tests__/data/kustomer_router_input.json +++ /dev/null @@ -1,183 +0,0 @@ -[ - { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "testc", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "name": "test Rudderlabs", - "email": "test@rudderstack.com", - "phone": "+12345578900", - "birthday": "2005-01-01T23:28:56.782Z", - "userId": "testc", - "address": { - "street": "24 Dovers Lane", - "city": "Miami", - "state": "Florida", - "postalCode": "1890001" - }, - "userName": "testc47", - "company": "Rudderstack", - "createdAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatar": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "website": "www.mattertoast873.com", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@testc", - "url": "http://twitter.com/testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "testc", - "url": "http://facebook.com/testc" - } - ] - }, - "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", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.193Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "genericPage": false, - "genericScreen": false - } - } - }, - { - "message": { - "type": "track", - "event": "Tracking-Weekender", - "sentAt": "2021-01-03T17:02:53.197Z", - "userId": "user@doe", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "referrer": "morkey" - }, - "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": "15129730-eb00-4db7-8db2-799566ccb2ef", - "properties": { - "YearServicedNum": 211, - "region": "strapis", - "kustomerTrackingId": "sahetwiac", - "kustomerSessionId": "63nsa22" - }, - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "locale": "en-US", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.195Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "genericPage": false, - "genericScreen": false - } - } - }, - { - "message": { - "type": "track", - "event": "Tracking-Weekender", - "sentAt": "2021-01-03T17:02:53.197Z", - "userId": "user@doe", - "channel": "web", - "context": { - "os": { "name": "", "version": "" }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://morkey.in", - "path": "/cart", - "title": "miphone", - "search": "MI", - "referrer": "morkey" - }, - "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": "15129730-eb00-4db7-8db2-799566ccb2ef", - "properties": { - "YearServicedNum": 211, - "region": "strapis", - "kustomerTrackingId": "sahetwiac", - "kustomerSessionId": "63nsa22" - }, - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "locale": "en-US", - "integrations": { "All": true }, - "originalTimestamp": "2021-01-03T17:02:53.195Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "baseEndpoint": "https://api.prod2.kustomerapp.com", - "apiKey": "dummyApiKey", - "genericPage": false, - "genericScreen": false - } - } - } -] diff --git a/test/__tests__/data/kustomer_router_output.json b/test/__tests__/data/kustomer_router_output.json deleted file mode 100644 index 0d3470f74a..0000000000 --- a/test/__tests__/data/kustomer_router_output.json +++ /dev/null @@ -1,184 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/customers", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "name": "test Rudderlabs", - "externalId": "testc", - "username": "testc47", - "company": "Rudderstack", - "signedUpAt": "2015-04-17T12:37:42.146Z", - "lastActivityAt": "2016-04-17T12:37:42.146Z", - "lastCustomerActivityAt": "2017-04-17T12:37:42.146Z", - "lastSeenAt": "2017-04-17T12:37:42.146Z", - "avatarUrl": "https://homepages.cae.wisc.edu/~ece533/images/boat.png", - "gender": "m", - "tags": ["happy", "satisfied"], - "locale": "en-US", - "socials": [ - { - "verified": true, - "userid": "100", - "type": "twitter", - "username": "@testc", - "url": "http://twitter.com/testc" - }, - { - "verified": false, - "userid": "200", - "type": "facebook", - "username": "testc", - "url": "http://facebook.com/testc" - } - ], - "birthdayAt": "2005-01-01T23:28:56.782Z", - "emails": [ - { - "type": "home", - "email": "test@rudderstack.com" - } - ], - "phones": [ - { - "type": "home", - "phone": "+12345578900" - } - ], - "urls": [ - { - "url": "www.mattertoast873.com" - } - ], - "locations": [ - { - "type": "home", - "address": "24 Dovers Lane Miami Florida 1890001" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "genericPage": false, - "genericScreen": false - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "user@doe" - }, - "event": { - "name": "Tracking-Weekender", - "sessionId": "63nsa22", - "trackingId": "sahetwiac", - "meta": { - "YearServicedNum": 211, - "region": "strapis" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "genericPage": false, - "genericScreen": false - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.prod2.kustomerapp.com/v1/tracking/identityEvent", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "identity": { - "externalId": "user@doe" - }, - "event": { - "name": "Tracking-Weekender", - "sessionId": "63nsa22", - "trackingId": "sahetwiac", - "meta": { - "YearServicedNum": 211, - "region": "strapis" - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "baseEndpoint": "https://api.prod2.kustomerapp.com", - "apiKey": "dummyApiKey", - "genericPage": false, - "genericScreen": false - } - } - } -] diff --git a/test/__tests__/data/lambda.json b/test/__tests__/data/lambda.json deleted file mode 100644 index a0b19b5ce3..0000000000 --- a/test/__tests__/data/lambda.json +++ /dev/null @@ -1,334 +0,0 @@ -[ - { - "description": "Simple Identify call", - "input": { - "message": { - "type": "identify", - "sentAt": "2022-08-03T10:44:55.382+05:30", - "userId": "user113", - "context": { - "os": { - "name": "android" - }, - "device": { - "name": "Mi", - "token": "qwertyuioprtyuiop" - }, - "traits": { - "name": "User2", - "email": "user112@mail.com" - } - }, - "rudderId": "ed33ef22-569d-44b1-a6cb-063c69dca8f0", - "messageId": "29beef33-2771-45fd-adb4-4376aa6d72d9", - "timestamp": "2022-08-03T10:44:54.942+05:30", - "receivedAt": "2022-08-03T10:44:54.943+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-03T10:44:55.382+05:30" - }, - "metadata": { - "userId": "user113<<>>user113", - "jobId": 10, - "sourceId": "2CFEootdF2eQh0CGeD0jdVybP5A", - "destinationId": "2CojwY2YqpiTqfBPrMAUN8orgHA", - "attemptNum": 0, - "receivedAt": "2022-08-03T10:44:54.943+05:30", - "createdAt": "2022-08-03T05:14:55.384Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2ANaDOTAzxboCOF86FkRGMEJ5F7", - "secret": null, - "jobsT": { - "UUID": "53927e88-2d5c-4274-ad72-2e1c14a96301", - "JobID": 10, - "UserID": "user113<<>>user113", - "CreatedAt": "2022-08-03T05:14:55.384207Z", - "ExpireAt": "2022-08-03T05:14:55.384207Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "identify", - "sentAt": "2022-08-03T10:44:55.382+05:30", - "userId": "user113", - "context": { - "os": { - "name": "android" - }, - "device": { - "name": "Mi", - "token": "qwertyuioprtyuiop" - }, - "traits": { - "name": "User2", - "email": "user112@mail.com" - } - }, - "rudderId": "ed33ef22-569d-44b1-a6cb-063c69dca8f0", - "messageId": "29beef33-2771-45fd-adb4-4376aa6d72d9", - "timestamp": "2022-08-03T10:44:54.942+05:30", - "receivedAt": "2022-08-03T10:44:54.943+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-03T10:44:55.382+05:30" - }, - "PayloadSize": 550, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2CFEootdF2eQh0CGeD0jdVybP5A", - "event_name": "", - "event_type": "identify", - "message_id": "29beef33-2771-45fd-adb4-4376aa6d72d9", - "received_at": "2022-08-03T10:44:54.943+05:30", - "workspaceId": "2ANaDOTAzxboCOF86FkRGMEJ5F7", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2CojwY2YqpiTqfBPrMAUN8orgHA", - "gateway_job_id": 10, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2CCxgViQJACgWABA6h83wlXnE1k", - "destination_definition_id": "" - }, - "WorkspaceId": "2ANaDOTAzxboCOF86FkRGMEJ5F7" - }, - "pickedAtTime": "2022-08-03T10:44:56.193361+05:30", - "resultSetID": 10 - }, - "destination": { - "ID": "2CojwY2YqpiTqfBPrMAUN8orgHA", - "Name": "Lambda test", - "DestinationDefinition": { - "ID": "2CoiaHPaRb79wpSG3wZWfrG3B0n", - "Name": "LAMBDA", - "DisplayName": "AWS Lambda", - "Config": { - "destConfig": { - "defaultConfig": [ - "region", - "accessKeyId", - "accessKey", - "lambda", - "invocationType", - "enableBatchInput", - "clientContext" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "accessKey"], - "supportedMessageTypes": ["identify", "page", "screen", "track", "alias", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKeyId": "", - "clientContext": "", - "enableBatchInput": false, - "invocationType": "Event", - "lambda": "testFunction", - "region": "us-west-2", - "accessKey": "" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2CojwWiWjNghiGbfuRcwfs6Bt5q" - } - }, - "output": { - "payload": "{\"type\":\"identify\",\"sentAt\":\"2022-08-03T10:44:55.382+05:30\",\"userId\":\"user113\",\"context\":{\"os\":{\"name\":\"android\"},\"device\":{\"name\":\"Mi\",\"token\":\"qwertyuioprtyuiop\"},\"traits\":{\"name\":\"User2\",\"email\":\"user112@mail.com\"}},\"rudderId\":\"ed33ef22-569d-44b1-a6cb-063c69dca8f0\",\"messageId\":\"29beef33-2771-45fd-adb4-4376aa6d72d9\",\"timestamp\":\"2022-08-03T10:44:54.942+05:30\",\"receivedAt\":\"2022-08-03T10:44:54.943+05:30\",\"request_ip\":\"[::1]\",\"originalTimestamp\":\"2022-08-03T10:44:55.382+05:30\"}", - "destConfig": { - "clientContext": "", - "invocationType": "Event", - "lambda": "testFunction" - } - } - }, - { - "description": "Destination config not present", - "input": { - "message": { - "type": "identify", - "sentAt": "2022-08-03T10:44:55.382+05:30", - "userId": "user113", - "context": { - "os": { - "name": "android" - }, - "device": { - "name": "Mi", - "token": "qwertyuioprtyuiop" - }, - "traits": { - "name": "User2", - "email": "user112@mail.com" - } - }, - "rudderId": "ed33ef22-569d-44b1-a6cb-063c69dca8f0", - "messageId": "29beef33-2771-45fd-adb4-4376aa6d72d9", - "timestamp": "2022-08-03T10:44:54.942+05:30", - "receivedAt": "2022-08-03T10:44:54.943+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-03T10:44:55.382+05:30" - }, - "metadata": { - "userId": "user113<<>>user113", - "jobId": 10, - "sourceId": "2CFEootdF2eQh0CGeD0jdVybP5A", - "destinationId": "2CojwY2YqpiTqfBPrMAUN8orgHA", - "attemptNum": 0, - "receivedAt": "2022-08-03T10:44:54.943+05:30", - "createdAt": "2022-08-03T05:14:55.384Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2ANaDOTAzxboCOF86FkRGMEJ5F7", - "secret": null, - "jobsT": { - "UUID": "53927e88-2d5c-4274-ad72-2e1c14a96301", - "JobID": 10, - "UserID": "user113<<>>user113", - "CreatedAt": "2022-08-03T05:14:55.384207Z", - "ExpireAt": "2022-08-03T05:14:55.384207Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "identify", - "sentAt": "2022-08-03T10:44:55.382+05:30", - "userId": "user113", - "context": { - "os": { - "name": "android" - }, - "device": { - "name": "Mi", - "token": "qwertyuioprtyuiop" - }, - "traits": { - "name": "User2", - "email": "user112@mail.com" - } - }, - "rudderId": "ed33ef22-569d-44b1-a6cb-063c69dca8f0", - "messageId": "29beef33-2771-45fd-adb4-4376aa6d72d9", - "timestamp": "2022-08-03T10:44:54.942+05:30", - "receivedAt": "2022-08-03T10:44:54.943+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-03T10:44:55.382+05:30" - }, - "PayloadSize": 550, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2CFEootdF2eQh0CGeD0jdVybP5A", - "event_name": "", - "event_type": "identify", - "message_id": "29beef33-2771-45fd-adb4-4376aa6d72d9", - "received_at": "2022-08-03T10:44:54.943+05:30", - "workspaceId": "2ANaDOTAzxboCOF86FkRGMEJ5F7", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2CojwY2YqpiTqfBPrMAUN8orgHA", - "gateway_job_id": 10, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2CCxgViQJACgWABA6h83wlXnE1k", - "destination_definition_id": "" - }, - "WorkspaceId": "2ANaDOTAzxboCOF86FkRGMEJ5F7" - }, - "pickedAtTime": "2022-08-03T10:44:56.193361+05:30", - "resultSetID": 10 - }, - "destination": { - "ID": "2CojwY2YqpiTqfBPrMAUN8orgHA", - "Name": "Lambda test", - "DestinationDefinition": { - "ID": "2CoiaHPaRb79wpSG3wZWfrG3B0n", - "Name": "LAMBDA", - "DisplayName": "AWS Lambda", - "Config": { - "destConfig": { - "defaultConfig": [ - "region", - "accessKeyId", - "accessKey", - "lambda", - "invocationType", - "enableBatchInput", - "clientContext" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "accessKey"], - "supportedMessageTypes": ["identify", "page", "screen", "track", "alias", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2CojwWiWjNghiGbfuRcwfs6Bt5q" - } - }, - "output": { - "error": "destination.Config cannot be undefined" - } - } -] diff --git a/test/__tests__/data/lambda_router_input.json b/test/__tests__/data/lambda_router_input.json deleted file mode 100644 index 1cf6a5324d..0000000000 --- a/test/__tests__/data/lambda_router_input.json +++ /dev/null @@ -1,19396 +0,0 @@ -[ - { - "message": { - "type": "identify", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "traits": { - "data": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "data2": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "c864b4cd-8f07-4922-b3d0-82ef04c987d3", - "timestamp": "2020-02-02T00:23:09.544Z", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "metadata": { - "userId": "anon-id-new<<>>identified user id", - "jobId": 31, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "47b3937a-1fef-49fa-85c8-649673bd7170", - "JobID": 31, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "identify", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "traits": { - "data": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "data2": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "c864b4cd-8f07-4922-b3d0-82ef04c987d3", - "timestamp": "2020-02-02T00:23:09.544Z", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 95943, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "identify", - "message_id": "c864b4cd-8f07-4922-b3d0-82ef04c987d3", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - }, - "destination": { - "ID": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "Name": "Lambda test", - "DestinationDefinition": { - "ID": "2DTlHvPWOzBUksUQUvggRnalUkj", - "Name": "LAMBDA", - "DisplayName": "AWS Lambda", - "Config": { - "destConfig": { - "defaultConfig": [ - "region", - "iamRoleARN", - "externalID", - "accessKeyId", - "accessKey", - "lambda", - "enableBatchInput", - "clientContext", - "roleBasedAuth", - "maxBatchSize" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "accessKey", "iamRoleARN", "externalID"], - "supportedMessageTypes": ["identify", "page", "screen", "track", "alias", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "", - "accessKeyId": "", - "clientContext": "", - "enableBatchInput": true, - "externalID": "", - "iamRoleARN": "", - "lambda": "testFunction", - "maxBatchSize": "2", - "region": "us-west-2", - "roleBasedAuth": false - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2DVji2YjKiWRL0Qdx73xg9r8ReQ" - } - }, - { - "message": { - "type": "track", - "event": "Product Purchased new", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "9f8fb785-c720-4381-a009-bf22a13f4ced", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "data": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "name": "Shirt", - "revenue": 4.99 - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "metadata": { - "userId": "anon-id-new<<>>identified user id", - "jobId": 32, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "dc239cd1-bef4-4999-88e1-7332c64bf78c", - "JobID": 32, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "track", - "event": "Product Purchased new", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "9f8fb785-c720-4381-a009-bf22a13f4ced", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "data": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "name": "Shirt", - "revenue": 4.99 - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 48375, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "Product Purchased new", - "event_type": "track", - "message_id": "9f8fb785-c720-4381-a009-bf22a13f4ced", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - }, - "destination": { - "ID": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "Name": "Lambda test", - "DestinationDefinition": { - "ID": "2DTlHvPWOzBUksUQUvggRnalUkj", - "Name": "LAMBDA", - "DisplayName": "AWS Lambda", - "Config": { - "destConfig": { - "defaultConfig": [ - "region", - "iamRoleARN", - "externalID", - "accessKeyId", - "accessKey", - "lambda", - "enableBatchInput", - "clientContext", - "roleBasedAuth", - "maxBatchSize" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "accessKey", "iamRoleARN", "externalID"], - "supportedMessageTypes": ["identify", "page", "screen", "track", "alias", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "", - "accessKeyId": "", - "clientContext": "", - "enableBatchInput": true, - "externalID": "", - "iamRoleARN": "", - "lambda": "testFunction", - "maxBatchSize": "2", - "region": "us-west-2", - "roleBasedAuth": false - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2DVji2YjKiWRL0Qdx73xg9r8ReQ" - } - }, - { - "message": { - "name": "Page View", - "type": "page", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "5f58d1f7-cbd6-4bff-8571-9933be7210b1", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "path": "/", - "title": "Home" - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "metadata": { - "userId": "anon-id-new<<>>identified user id", - "jobId": 33, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "bf616af4-2c6b-495f-8b2d-b522c93bdca2", - "JobID": 33, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "name": "Page View", - "type": "page", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "5f58d1f7-cbd6-4bff-8571-9933be7210b1", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "path": "/", - "title": "Home" - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 548, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "page", - "message_id": "5f58d1f7-cbd6-4bff-8571-9933be7210b1", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - }, - "destination": { - "ID": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "Name": "Lambda test", - "DestinationDefinition": { - "ID": "2DTlHvPWOzBUksUQUvggRnalUkj", - "Name": "LAMBDA", - "DisplayName": "AWS Lambda", - "Config": { - "destConfig": { - "defaultConfig": [ - "region", - "iamRoleARN", - "externalID", - "accessKeyId", - "accessKey", - "lambda", - "enableBatchInput", - "clientContext", - "roleBasedAuth", - "maxBatchSize" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "accessKey", "iamRoleARN", "externalID"], - "supportedMessageTypes": ["identify", "page", "screen", "track", "alias", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "", - "accessKeyId": "", - "clientContext": "", - "enableBatchInput": true, - "externalID": "", - "iamRoleARN": "", - "lambda": "testFunction", - "maxBatchSize": "2", - "region": "us-west-2", - "roleBasedAuth": false - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2DVji2YjKiWRL0Qdx73xg9r8ReQ" - } - }, - { - "message": { - "name": "Screen View", - "type": "screen", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "1b8ee4c3-ffad-4457-b453-31b32da1dfea", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "prop1": "5" - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "metadata": { - "userId": "anon-id-new<<>>identified user id", - "jobId": 34, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "8faa9d6d-d8a8-468c-bef4-c2db52f6101b", - "JobID": 34, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "name": "Screen View", - "type": "screen", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "1b8ee4c3-ffad-4457-b453-31b32da1dfea", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "prop1": "5" - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 536, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "screen", - "message_id": "1b8ee4c3-ffad-4457-b453-31b32da1dfea", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - }, - "destination": { - "ID": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "Name": "Lambda test", - "DestinationDefinition": { - "ID": "2DTlHvPWOzBUksUQUvggRnalUkj", - "Name": "LAMBDA", - "DisplayName": "AWS Lambda", - "Config": { - "destConfig": { - "defaultConfig": [ - "region", - "iamRoleARN", - "externalID", - "accessKeyId", - "accessKey", - "lambda", - "enableBatchInput", - "clientContext", - "roleBasedAuth", - "maxBatchSize" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "accessKey", "iamRoleARN", "externalID"], - "supportedMessageTypes": ["identify", "page", "screen", "track", "alias", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "", - "accessKeyId": "", - "clientContext": "", - "enableBatchInput": true, - "externalID": "", - "iamRoleARN": "", - "lambda": "testFunction", - "maxBatchSize": "2", - "region": "us-west-2", - "roleBasedAuth": false - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2DVji2YjKiWRL0Qdx73xg9r8ReQ" - } - }, - { - "message": { - "type": "group", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "traits": { - "name": "Company", - "industry": "Industry", - "employees": 123 - }, - "userId": "user123", - "context": { - "ip": "14.5.67.21", - "traits": { - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "groupId": "group1", - "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5", - "messageId": "2c59b527-3235-4fc2-9680-f41ec52ebb51", - "timestamp": "2020-01-21T00:21:34.208Z", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "metadata": { - "userId": "anon-id-new<<>>identified user id", - "jobId": 35, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "73cea314-998a-4b72-8004-34b0618093a3", - "JobID": 35, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "group", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "traits": { - "name": "Company", - "industry": "Industry", - "employees": 123 - }, - "userId": "user123", - "context": { - "ip": "14.5.67.21", - "traits": { - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "groupId": "group1", - "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5", - "messageId": "2c59b527-3235-4fc2-9680-f41ec52ebb51", - "timestamp": "2020-01-21T00:21:34.208Z", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 589, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "group", - "message_id": "2c59b527-3235-4fc2-9680-f41ec52ebb51", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - }, - "destination": { - "ID": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "Name": "Lambda test", - "DestinationDefinition": { - "ID": "2DTlHvPWOzBUksUQUvggRnalUkj", - "Name": "LAMBDA", - "DisplayName": "AWS Lambda", - "Config": { - "destConfig": { - "defaultConfig": [ - "region", - "iamRoleARN", - "externalID", - "accessKeyId", - "accessKey", - "lambda", - "enableBatchInput", - "clientContext", - "roleBasedAuth", - "maxBatchSize" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "accessKey", "iamRoleARN", "externalID"], - "supportedMessageTypes": ["identify", "page", "screen", "track", "alias", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "", - "accessKeyId": "", - "clientContext": "", - "enableBatchInput": true, - "externalID": "", - "iamRoleARN": "", - "lambda": "testFunction", - "maxBatchSize": "2", - "region": "us-west-2", - "roleBasedAuth": false - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2DVji2YjKiWRL0Qdx73xg9r8ReQ" - } - }, - { - "message": { - "type": "alias", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "user123", - "context": { - "ip": "14.5.67.21", - "traits": { - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5", - "messageId": "3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d", - "timestamp": "2020-01-21T00:21:34.208Z", - "previousId": "previd1", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "metadata": { - "userId": "anon-id-new<<>>identified user id", - "jobId": 36, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "ac80629c-9eb6-4e92-bee8-4647e88f7fc0", - "JobID": 36, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "alias", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "user123", - "context": { - "ip": "14.5.67.21", - "traits": { - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5", - "messageId": "3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d", - "timestamp": "2020-01-21T00:21:34.208Z", - "previousId": "previd1", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 506, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "alias", - "message_id": "3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - }, - "destination": { - "ID": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "Name": "Lambda test", - "DestinationDefinition": { - "ID": "2DTlHvPWOzBUksUQUvggRnalUkj", - "Name": "LAMBDA", - "DisplayName": "AWS Lambda", - "Config": { - "destConfig": { - "defaultConfig": [ - "region", - "iamRoleARN", - "externalID", - "accessKeyId", - "accessKey", - "lambda", - "enableBatchInput", - "clientContext", - "roleBasedAuth", - "maxBatchSize" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "accessKey", "iamRoleARN", "externalID"], - "supportedMessageTypes": ["identify", "page", "screen", "track", "alias", "group"], - "supportedSourceTypes": [ - "amp", - "android", - "cordova", - "cloud", - "flutter", - "ios", - "reactnative", - "unity", - "warehouse", - "web" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "accessKey": "", - "accessKeyId": "", - "clientContext": "", - "enableBatchInput": true, - "externalID": "", - "iamRoleARN": "", - "lambda": "testFunction", - "maxBatchSize": "2", - "region": "us-west-2", - "roleBasedAuth": false - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2DVji2YjKiWRL0Qdx73xg9r8ReQ" - } - } -] diff --git a/test/__tests__/data/lambda_router_output.json b/test/__tests__/data/lambda_router_output.json deleted file mode 100644 index ccc142bc8c..0000000000 --- a/test/__tests__/data/lambda_router_output.json +++ /dev/null @@ -1,9727 +0,0 @@ -[ - { - "batchedRequest": { - "payload": "[{\"type\":\"track\",\"event\":\"Product Purchased new\",\"sentAt\":\"2022-08-18T08:43:15.539+05:30\",\"userId\":\"identified user id\",\"context\":{\"ip\":\"14.5.67.21\",\"library\":{\"name\":\"http\"}},\"rudderId\":\"daf823fb-e8d3-413a-8313-d34cd756f968\",\"messageId\":\"9f8fb785-c720-4381-a009-bf22a13f4ced\",\"timestamp\":\"2020-02-02T00:23:09.544Z\",\"properties\":{\"data\":[{\"id\":6104546,\"url\":\"https://api.github.com/repos/mralexgray/-REPONAME\",\"fork\":false,\"name\":\"-REPONAME\",\"size\":48,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/-REPONAME.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnk2MTA0NTQ2\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/-REPONAME.git\",\"svn_url\":\"https://github.com/mralexgray/-REPONAME\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/-REPONAME\",\"keys_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}\",\"language\":null,\"tags_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/-REPONAME.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/forks\",\"full_name\":\"mralexgray/-REPONAME\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}\",\"pushed_at\":\"2012-10-06T16:37:39Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}\",\"created_at\":\"2012-10-06T16:37:39Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/events\",\"has_issues\":true,\"issues_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/merges\",\"mirror_url\":null,\"updated_at\":\"2013-01-12T13:39:30Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}\",\"description\":null,\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":104510411,\"url\":\"https://api.github.com/repos/mralexgray/...\",\"fork\":true,\"name\":\"...\",\"size\":113,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/....git\",\"license\":{\"key\":\"mit\",\"url\":\"https://api.github.com/licenses/mit\",\"name\":\"MIT License\",\"node_id\":\"MDc6TGljZW5zZTEz\",\"spdx_id\":\"MIT\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/....git\",\"svn_url\":\"https://github.com/mralexgray/...\",\"archived\":false,\"disabled\":false,\"has_wiki\":false,\"homepage\":\"https://driesvints.com/blog/getting-started-with-dotfiles\",\"html_url\":\"https://github.com/mralexgray/...\",\"keys_url\":\"https://api.github.com/repos/mralexgray/.../keys{/key_id}\",\"language\":\"Shell\",\"tags_url\":\"https://api.github.com/repos/mralexgray/.../tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/.../git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/....git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/.../forks\",\"full_name\":\"mralexgray/...\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/.../hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/.../pulls{/number}\",\"pushed_at\":\"2017-09-15T08:27:32Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/.../teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/.../git/trees{/sha}\",\"created_at\":\"2017-09-22T19:19:42Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/.../events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/.../issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/.../labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/.../merges\",\"mirror_url\":null,\"updated_at\":\"2017-09-22T19:20:22Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/.../commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/.../compare/{base}...{head}\",\"description\":\":computer: Public repo for my personal dotfiles.\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/.../branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/.../comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/.../contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/.../git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/.../git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/.../releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/.../statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/.../assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/.../downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/.../languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/.../milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/.../stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/.../deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/.../git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/.../subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/.../contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/.../issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/.../subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/.../issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":58656723,\"url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol\",\"fork\":true,\"name\":\"2200087-Serial-Protocol\",\"size\":41,\"forks\":1,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/2200087-Serial-Protocol.git\",\"license\":{\"key\":\"gpl-2.0\",\"url\":\"https://api.github.com/licenses/gpl-2.0\",\"name\":\"GNU General Public License v2.0\",\"node_id\":\"MDc6TGljZW5zZTg=\",\"spdx_id\":\"GPL-2.0\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/2200087-Serial-Protocol.git\",\"svn_url\":\"https://github.com/mralexgray/2200087-Serial-Protocol\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"http://daviddworken.com\",\"html_url\":\"https://github.com/mralexgray/2200087-Serial-Protocol\",\"keys_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}\",\"language\":\"Python\",\"tags_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/2200087-Serial-Protocol.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks\",\"full_name\":\"mralexgray/2200087-Serial-Protocol\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}\",\"pushed_at\":\"2016-05-12T16:07:24Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}\",\"created_at\":\"2016-05-12T16:05:28Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges\",\"mirror_url\":null,\"updated_at\":\"2016-05-12T16:05:30Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}\",\"description\":\"A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter\",\"forks_count\":1,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":13121042,\"url\":\"https://api.github.com/repos/mralexgray/ace\",\"fork\":true,\"name\":\"ace\",\"size\":21080,\"forks\":1,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/ace.git\",\"license\":{\"key\":\"other\",\"url\":null,\"name\":\"Other\",\"node_id\":\"MDc6TGljZW5zZTA=\",\"spdx_id\":\"NOASSERTION\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/ace.git\",\"svn_url\":\"https://github.com/mralexgray/ace\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"http://ace.c9.io\",\"html_url\":\"https://github.com/mralexgray/ace\",\"keys_url\":\"https://api.github.com/repos/mralexgray/ace/keys{/key_id}\",\"language\":\"JavaScript\",\"tags_url\":\"https://api.github.com/repos/mralexgray/ace/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/ace.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/ace/forks\",\"full_name\":\"mralexgray/ace\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/ace/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/ace/pulls{/number}\",\"pushed_at\":\"2013-10-26T12:34:48Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/ace/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/ace/git/trees{/sha}\",\"created_at\":\"2013-09-26T11:58:10Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/ace/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/ace/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/ace/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/ace/merges\",\"mirror_url\":null,\"updated_at\":\"2013-10-26T12:34:49Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/ace/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}\",\"description\":\"Ace (Ajax.org Cloud9 Editor)\",\"forks_count\":1,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/ace/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/ace/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/ace/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/ace/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/ace/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/ace/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/ace/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/ace/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/ace/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/ace/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/ace/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/ace/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/ace/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/ace/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/ace/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/ace/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/ace/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/ace/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/ace/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":10791045,\"url\":\"https://api.github.com/repos/mralexgray/ACEView\",\"fork\":true,\"name\":\"ACEView\",\"size\":1733,\"forks\":1,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/ACEView.git\",\"license\":{\"key\":\"other\",\"url\":null,\"name\":\"Other\",\"node_id\":\"MDc6TGljZW5zZTA=\",\"spdx_id\":\"NOASSERTION\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/ACEView.git\",\"svn_url\":\"https://github.com/mralexgray/ACEView\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/ACEView\",\"keys_url\":\"https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/ACEView/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/ACEView.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/ACEView/forks\",\"full_name\":\"mralexgray/ACEView\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/ACEView/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/ACEView/pulls{/number}\",\"pushed_at\":\"2014-05-09T01:36:23Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/ACEView/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}\",\"created_at\":\"2013-06-19T12:15:04Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/ACEView/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/ACEView/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/ACEView/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/ACEView/merges\",\"mirror_url\":null,\"updated_at\":\"2015-11-24T01:14:10Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/ACEView/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}\",\"description\":\"Use the wonderful ACE editor in your Cocoa applications\",\"forks_count\":1,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/ACEView/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/ACEView/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/ACEView/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/ACEView/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/ACEView/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/ACEView/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/ACEView/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/ACEView/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/ACEView/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/ACEView/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/ACEView/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/ACEView/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/ACEView/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":13623648,\"url\":\"https://api.github.com/repos/mralexgray/ActiveLog\",\"fork\":true,\"name\":\"ActiveLog\",\"size\":60,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/ActiveLog.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/ActiveLog.git\",\"svn_url\":\"https://github.com/mralexgray/ActiveLog\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"http://deepitpro.com/en/articles/ActiveLog/info/\",\"html_url\":\"https://github.com/mralexgray/ActiveLog\",\"keys_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/ActiveLog.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/forks\",\"full_name\":\"mralexgray/ActiveLog\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}\",\"pushed_at\":\"2011-07-03T06:28:59Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}\",\"created_at\":\"2013-10-16T15:52:37Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/merges\",\"mirror_url\":null,\"updated_at\":\"2013-10-16T15:52:37Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}\",\"description\":\"Shut up all logs with active filter.\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":9716210,\"url\":\"https://api.github.com/repos/mralexgray/adium\",\"fork\":false,\"name\":\"adium\",\"size\":277719,\"forks\":37,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/adium.git\",\"license\":{\"key\":\"other\",\"url\":null,\"name\":\"Other\",\"node_id\":\"MDc6TGljZW5zZTA=\",\"spdx_id\":\"NOASSERTION\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnk5NzE2MjEw\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/adium.git\",\"svn_url\":\"https://github.com/mralexgray/adium\",\"archived\":false,\"disabled\":false,\"has_wiki\":false,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/adium\",\"keys_url\":\"https://api.github.com/repos/mralexgray/adium/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/adium/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/adium.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/adium/forks\",\"full_name\":\"mralexgray/adium\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/adium/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/adium/pulls{/number}\",\"pushed_at\":\"2013-04-26T16:43:53Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/adium/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/adium/git/trees{/sha}\",\"created_at\":\"2013-04-27T14:59:33Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/adium/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/adium/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/adium/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/adium/merges\",\"mirror_url\":null,\"updated_at\":\"2019-12-11T06:51:45Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/adium/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}\",\"description\":\"Official mirror of hg.adium.im\",\"forks_count\":37,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/adium/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/adium/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/adium/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/adium/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/adium/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/adium/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/adium/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/adium/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/adium/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/adium/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/adium/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/adium/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/adium/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/adium/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/adium/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/adium/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/adium/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/adium/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/adium/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":12752329,\"url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView\",\"fork\":true,\"name\":\"ADLivelyTableView\",\"size\":73,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/ADLivelyTableView.git\",\"license\":{\"key\":\"other\",\"url\":null,\"name\":\"Other\",\"node_id\":\"MDc6TGljZW5zZTA=\",\"spdx_id\":\"NOASSERTION\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/ADLivelyTableView.git\",\"svn_url\":\"https://github.com/mralexgray/ADLivelyTableView\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"http://applidium.com/en/news/lively_uitableview/\",\"html_url\":\"https://github.com/mralexgray/ADLivelyTableView\",\"keys_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/ADLivelyTableView.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/forks\",\"full_name\":\"mralexgray/ADLivelyTableView\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}\",\"pushed_at\":\"2012-05-10T10:40:15Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}\",\"created_at\":\"2013-09-11T09:18:01Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/merges\",\"mirror_url\":null,\"updated_at\":\"2013-09-11T09:18:03Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}\",\"description\":\"Lively UITableView\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":5697379,\"url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore\",\"fork\":true,\"name\":\"AFIncrementalStore\",\"size\":139,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AFIncrementalStore.git\",\"license\":{\"key\":\"mit\",\"url\":\"https://api.github.com/licenses/mit\",\"name\":\"MIT License\",\"node_id\":\"MDc6TGljZW5zZTEz\",\"spdx_id\":\"MIT\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnk1Njk3Mzc5\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AFIncrementalStore.git\",\"svn_url\":\"https://github.com/mralexgray/AFIncrementalStore\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/AFIncrementalStore\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AFIncrementalStore.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/forks\",\"full_name\":\"mralexgray/AFIncrementalStore\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}\",\"pushed_at\":\"2012-09-01T22:46:25Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}\",\"created_at\":\"2012-09-06T04:20:33Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/merges\",\"mirror_url\":null,\"updated_at\":\"2013-01-12T03:15:29Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}\",\"description\":\"Core Data Persistence with AFNetworking, Done Right\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":6969621,\"url\":\"https://api.github.com/repos/mralexgray/AFNetworking\",\"fork\":true,\"name\":\"AFNetworking\",\"size\":4341,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AFNetworking.git\",\"license\":{\"key\":\"mit\",\"url\":\"https://api.github.com/licenses/mit\",\"name\":\"MIT License\",\"node_id\":\"MDc6TGljZW5zZTEz\",\"spdx_id\":\"MIT\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnk2OTY5NjIx\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AFNetworking.git\",\"svn_url\":\"https://github.com/mralexgray/AFNetworking\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"http://afnetworking.com\",\"html_url\":\"https://github.com/mralexgray/AFNetworking\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/tags\",\"watchers\":2,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AFNetworking.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/forks\",\"full_name\":\"mralexgray/AFNetworking\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}\",\"pushed_at\":\"2014-01-24T07:14:32Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}\",\"created_at\":\"2012-12-02T17:00:04Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/merges\",\"mirror_url\":null,\"updated_at\":\"2014-01-24T07:14:33Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}\",\"description\":\"A delightful iOS and OS X networking framework\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/stargazers\",\"watchers_count\":2,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}\",\"stargazers_count\":2,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":9485541,\"url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView\",\"fork\":true,\"name\":\"AGNSSplitView\",\"size\":68,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AGNSSplitView.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnk5NDg1NTQx\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AGNSSplitView.git\",\"svn_url\":\"https://github.com/mralexgray/AGNSSplitView\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/AGNSSplitView\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AGNSSplitView.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/forks\",\"full_name\":\"mralexgray/AGNSSplitView\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}\",\"pushed_at\":\"2013-02-26T00:32:32Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}\",\"created_at\":\"2013-04-17T00:10:13Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/merges\",\"mirror_url\":null,\"updated_at\":\"2013-04-17T00:10:13Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}\",\"description\":\"Simple NSSplitView additions.\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":12767784,\"url\":\"https://api.github.com/repos/mralexgray/AGScopeBar\",\"fork\":true,\"name\":\"AGScopeBar\",\"size\":64,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AGScopeBar.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AGScopeBar.git\",\"svn_url\":\"https://github.com/mralexgray/AGScopeBar\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/AGScopeBar\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AGScopeBar.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/forks\",\"full_name\":\"mralexgray/AGScopeBar\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}\",\"pushed_at\":\"2013-05-07T03:35:29Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}\",\"created_at\":\"2013-09-11T21:06:54Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/merges\",\"mirror_url\":null,\"updated_at\":\"2013-09-11T21:06:54Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}\",\"description\":\"Custom scope bar implementation for Cocoa\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":31829499,\"url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin\",\"fork\":true,\"name\":\"agvtool-xcode-plugin\",\"size\":102,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/agvtool-xcode-plugin.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/agvtool-xcode-plugin.git\",\"svn_url\":\"https://github.com/mralexgray/agvtool-xcode-plugin\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/agvtool-xcode-plugin\",\"keys_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/agvtool-xcode-plugin.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks\",\"full_name\":\"mralexgray/agvtool-xcode-plugin\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}\",\"pushed_at\":\"2015-03-08T00:04:31Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}\",\"created_at\":\"2015-03-07T22:15:38Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges\",\"mirror_url\":null,\"updated_at\":\"2015-03-07T22:15:41Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}\",\"description\":\"this is a plugin wrapper for agvtool for xcode.\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":9227846,\"url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser\",\"fork\":true,\"name\":\"AHContentBrowser\",\"size\":223,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AHContentBrowser.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnk5MjI3ODQ2\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AHContentBrowser.git\",\"svn_url\":\"https://github.com/mralexgray/AHContentBrowser\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"\",\"html_url\":\"https://github.com/mralexgray/AHContentBrowser\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AHContentBrowser.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/forks\",\"full_name\":\"mralexgray/AHContentBrowser\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}\",\"pushed_at\":\"2013-03-13T17:38:23Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}\",\"created_at\":\"2013-04-04T20:56:16Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/merges\",\"mirror_url\":null,\"updated_at\":\"2015-10-22T05:00:24Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}\",\"description\":\"A Mac only webview that loads a fast readable version of the website if available.\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":37430328,\"url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl\",\"fork\":true,\"name\":\"AHLaunchCtl\",\"size\":592,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AHLaunchCtl.git\",\"license\":{\"key\":\"mit\",\"url\":\"https://api.github.com/licenses/mit\",\"name\":\"MIT License\",\"node_id\":\"MDc6TGljZW5zZTEz\",\"spdx_id\":\"MIT\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AHLaunchCtl.git\",\"svn_url\":\"https://github.com/mralexgray/AHLaunchCtl\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"\",\"html_url\":\"https://github.com/mralexgray/AHLaunchCtl\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AHLaunchCtl.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/forks\",\"full_name\":\"mralexgray/AHLaunchCtl\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}\",\"pushed_at\":\"2015-05-26T18:50:48Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}\",\"created_at\":\"2015-06-14T21:31:03Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/merges\",\"mirror_url\":null,\"updated_at\":\"2015-06-14T21:31:04Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}\",\"description\":\"LaunchD Framework for Cocoa Apps\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":9167473,\"url\":\"https://api.github.com/repos/mralexgray/AHLayout\",\"fork\":true,\"name\":\"AHLayout\",\"size\":359,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AHLayout.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnk5MTY3NDcz\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AHLayout.git\",\"svn_url\":\"https://github.com/mralexgray/AHLayout\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/AHLayout\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AHLayout/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AHLayout.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AHLayout/forks\",\"full_name\":\"mralexgray/AHLayout\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AHLayout/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}\",\"pushed_at\":\"2013-07-08T02:31:14Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AHLayout/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}\",\"created_at\":\"2013-04-02T10:10:30Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AHLayout/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AHLayout/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AHLayout/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AHLayout/merges\",\"mirror_url\":null,\"updated_at\":\"2013-07-08T02:31:17Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}\",\"description\":\"AHLayout\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AHLayout/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AHLayout/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AHLayout/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AHLayout/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AHLayout/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AHLayout/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AHLayout/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AHLayout/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AHLayout/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":18450201,\"url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework\",\"fork\":true,\"name\":\"Airmail-Plug-In-Framework\",\"size\":888,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/Airmail-Plug-In-Framework.git\",\"license\":{\"key\":\"gpl-2.0\",\"url\":\"https://api.github.com/licenses/gpl-2.0\",\"name\":\"GNU General Public License v2.0\",\"node_id\":\"MDc6TGljZW5zZTg=\",\"spdx_id\":\"GPL-2.0\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/Airmail-Plug-In-Framework.git\",\"svn_url\":\"https://github.com/mralexgray/Airmail-Plug-In-Framework\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/Airmail-Plug-In-Framework\",\"keys_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}\",\"language\":null,\"tags_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/Airmail-Plug-In-Framework.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks\",\"full_name\":\"mralexgray/Airmail-Plug-In-Framework\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}\",\"pushed_at\":\"2014-03-27T15:42:19Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}\",\"created_at\":\"2014-04-04T19:33:54Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges\",\"mirror_url\":null,\"updated_at\":\"2014-11-23T19:31:04Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}\",\"description\":null,\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":5203219,\"url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API\",\"fork\":true,\"name\":\"AJS-iTunes-API\",\"size\":103,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AJS-iTunes-API.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnk1MjAzMjE5\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AJS-iTunes-API.git\",\"svn_url\":\"https://github.com/mralexgray/AJS-iTunes-API\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"\",\"html_url\":\"https://github.com/mralexgray/AJS-iTunes-API\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags\",\"watchers\":2,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AJS-iTunes-API.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks\",\"full_name\":\"mralexgray/AJS-iTunes-API\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}\",\"pushed_at\":\"2011-10-30T22:26:48Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}\",\"created_at\":\"2012-07-27T10:20:58Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges\",\"mirror_url\":null,\"updated_at\":\"2013-01-11T11:00:05Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}\",\"description\":\"Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers\",\"watchers_count\":2,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}\",\"stargazers_count\":2,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":10093801,\"url\":\"https://api.github.com/repos/mralexgray/Alcatraz\",\"fork\":true,\"name\":\"Alcatraz\",\"size\":3668,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/Alcatraz.git\",\"license\":{\"key\":\"mit\",\"url\":\"https://api.github.com/licenses/mit\",\"name\":\"MIT License\",\"node_id\":\"MDc6TGljZW5zZTEz\",\"spdx_id\":\"MIT\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/Alcatraz.git\",\"svn_url\":\"https://github.com/mralexgray/Alcatraz\",\"archived\":false,\"disabled\":false,\"has_wiki\":false,\"homepage\":\"mneorr.github.com/Alcatraz\",\"html_url\":\"https://github.com/mralexgray/Alcatraz\",\"keys_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/Alcatraz.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/forks\",\"full_name\":\"mralexgray/Alcatraz\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}\",\"pushed_at\":\"2014-03-19T12:50:37Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}\",\"created_at\":\"2013-05-16T04:41:13Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/merges\",\"mirror_url\":null,\"updated_at\":\"2014-03-19T20:38:35Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}\",\"description\":\"The most awesome (and only) Xcode package manager!\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":12916552,\"url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages\",\"fork\":true,\"name\":\"alcatraz-packages\",\"size\":826,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/alcatraz-packages.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/alcatraz-packages.git\",\"svn_url\":\"https://github.com/mralexgray/alcatraz-packages\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"mneorr.github.com/Alcatraz\",\"html_url\":\"https://github.com/mralexgray/alcatraz-packages\",\"keys_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}\",\"language\":\"Ruby\",\"tags_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/alcatraz-packages.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/forks\",\"full_name\":\"mralexgray/alcatraz-packages\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}\",\"pushed_at\":\"2015-12-14T16:21:31Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}\",\"created_at\":\"2013-09-18T07:15:24Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/merges\",\"mirror_url\":null,\"updated_at\":\"2015-11-10T20:52:30Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}\",\"description\":\"Package list repository for Alcatraz\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":44278362,\"url\":\"https://api.github.com/repos/mralexgray/alexicons\",\"fork\":true,\"name\":\"alexicons\",\"size\":257,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/alexicons.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/alexicons.git\",\"svn_url\":\"https://github.com/mralexgray/alexicons\",\"archived\":false,\"disabled\":false,\"has_wiki\":false,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/alexicons\",\"keys_url\":\"https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}\",\"language\":\"CoffeeScript\",\"tags_url\":\"https://api.github.com/repos/mralexgray/alexicons/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/alexicons.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/alexicons/forks\",\"full_name\":\"mralexgray/alexicons\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/alexicons/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/alexicons/pulls{/number}\",\"pushed_at\":\"2015-10-16T03:57:51Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/alexicons/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}\",\"created_at\":\"2015-10-14T21:49:39Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/alexicons/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/alexicons/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/alexicons/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/alexicons/merges\",\"mirror_url\":null,\"updated_at\":\"2015-10-15T06:20:08Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/alexicons/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}\",\"description\":\"Get popular cat names\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/alexicons/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/alexicons/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/alexicons/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/alexicons/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/alexicons/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/alexicons/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/alexicons/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/alexicons/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/alexicons/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/alexicons/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/alexicons/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/alexicons/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/alexicons/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":10476467,\"url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate\",\"fork\":true,\"name\":\"Alfred-Google-Translate\",\"size\":103,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/Alfred-Google-Translate.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/Alfred-Google-Translate.git\",\"svn_url\":\"https://github.com/mralexgray/Alfred-Google-Translate\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/Alfred-Google-Translate\",\"keys_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}\",\"language\":\"Shell\",\"tags_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/Alfred-Google-Translate.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks\",\"full_name\":\"mralexgray/Alfred-Google-Translate\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}\",\"pushed_at\":\"2013-01-12T19:39:03Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}\",\"created_at\":\"2013-06-04T10:45:10Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges\",\"mirror_url\":null,\"updated_at\":\"2013-06-04T10:45:10Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}\",\"description\":\"Extension for Alfred that will do a Google translate for you\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":5524019,\"url\":\"https://api.github.com/repos/mralexgray/Amber\",\"fork\":false,\"name\":\"Amber\",\"size\":48,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/Amber.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnk1NTI0MDE5\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/Amber.git\",\"svn_url\":\"https://github.com/mralexgray/Amber\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/Amber\",\"keys_url\":\"https://api.github.com/repos/mralexgray/Amber/keys{/key_id}\",\"language\":null,\"tags_url\":\"https://api.github.com/repos/mralexgray/Amber/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/Amber.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/Amber/forks\",\"full_name\":\"mralexgray/Amber\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/Amber/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/Amber/pulls{/number}\",\"pushed_at\":\"2012-08-23T10:38:25Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/Amber/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}\",\"created_at\":\"2012-08-23T10:38:24Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/Amber/events\",\"has_issues\":true,\"issues_url\":\"https://api.github.com/repos/mralexgray/Amber/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/Amber/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/Amber/merges\",\"mirror_url\":null,\"updated_at\":\"2013-01-11T22:25:35Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/Amber/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}\",\"description\":\"Fork of the difficult-to-deal-with Amber.framework\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/Amber/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/Amber/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/Amber/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/Amber/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/Amber/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/Amber/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/Amber/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/Amber/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/Amber/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/Amber/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/Amber/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/Amber/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/Amber/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/Amber/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/Amber/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":10809060,\"url\":\"https://api.github.com/repos/mralexgray/Amethyst\",\"fork\":true,\"name\":\"Amethyst\",\"size\":12623,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/Amethyst.git\",\"license\":{\"key\":\"mit\",\"url\":\"https://api.github.com/licenses/mit\",\"name\":\"MIT License\",\"node_id\":\"MDc6TGljZW5zZTEz\",\"spdx_id\":\"MIT\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/Amethyst.git\",\"svn_url\":\"https://github.com/mralexgray/Amethyst\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"http://ianyh.github.io/Amethyst/\",\"html_url\":\"https://github.com/mralexgray/Amethyst\",\"keys_url\":\"https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/Amethyst/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/Amethyst.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/Amethyst/forks\",\"full_name\":\"mralexgray/Amethyst\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/Amethyst/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}\",\"pushed_at\":\"2013-06-18T02:54:11Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/Amethyst/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}\",\"created_at\":\"2013-06-20T00:34:22Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/Amethyst/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/Amethyst/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/Amethyst/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/Amethyst/merges\",\"mirror_url\":null,\"updated_at\":\"2013-06-20T00:34:22Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}\",\"description\":\"Tiling window manager for OS X.\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/Amethyst/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/Amethyst/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/Amethyst/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/Amethyst/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/Amethyst/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/Amethyst/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/Amethyst/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/Amethyst/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/Amethyst/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":3684286,\"url\":\"https://api.github.com/repos/mralexgray/Animated-Paths\",\"fork\":true,\"name\":\"Animated-Paths\",\"size\":411,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/Animated-Paths.git\",\"license\":{\"key\":\"other\",\"url\":null,\"name\":\"Other\",\"node_id\":\"MDc6TGljZW5zZTA=\",\"spdx_id\":\"NOASSERTION\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkzNjg0Mjg2\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/Animated-Paths.git\",\"svn_url\":\"https://github.com/mralexgray/Animated-Paths\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/\",\"html_url\":\"https://github.com/mralexgray/Animated-Paths\",\"keys_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/tags\",\"watchers\":2,\"blobs_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/Animated-Paths.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/forks\",\"full_name\":\"mralexgray/Animated-Paths\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}\",\"pushed_at\":\"2010-12-30T20:56:51Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}\",\"created_at\":\"2012-03-11T02:56:38Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/merges\",\"mirror_url\":null,\"updated_at\":\"2013-01-08T04:12:21Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}\",\"description\":\"Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/stargazers\",\"watchers_count\":2,\"deployments_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}\",\"stargazers_count\":2,\"subscription_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":16662874,\"url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework\",\"fork\":true,\"name\":\"AnsiLove.framework\",\"size\":3780,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AnsiLove.framework.git\",\"license\":{\"key\":\"other\",\"url\":null,\"name\":\"Other\",\"node_id\":\"MDc6TGljZW5zZTA=\",\"spdx_id\":\"NOASSERTION\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AnsiLove.framework.git\",\"svn_url\":\"https://github.com/mralexgray/AnsiLove.framework\",\"archived\":false,\"disabled\":false,\"has_wiki\":false,\"homepage\":\"http://byteproject.net\",\"html_url\":\"https://github.com/mralexgray/AnsiLove.framework\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}\",\"language\":\"M\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AnsiLove.framework.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/forks\",\"full_name\":\"mralexgray/AnsiLove.framework\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}\",\"pushed_at\":\"2013-10-04T14:08:38Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}\",\"created_at\":\"2014-02-09T08:30:27Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/merges\",\"mirror_url\":null,\"updated_at\":\"2015-01-13T20:41:46Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}\",\"description\":\"Cocoa Framework for rendering ANSi / ASCII art\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":5189563,\"url\":\"https://api.github.com/repos/mralexgray/ANTrackBar\",\"fork\":true,\"name\":\"ANTrackBar\",\"size\":94,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/ANTrackBar.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnk1MTg5NTYz\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/ANTrackBar.git\",\"svn_url\":\"https://github.com/mralexgray/ANTrackBar\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"\",\"html_url\":\"https://github.com/mralexgray/ANTrackBar\",\"keys_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/tags\",\"watchers\":2,\"blobs_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/ANTrackBar.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/forks\",\"full_name\":\"mralexgray/ANTrackBar\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}\",\"pushed_at\":\"2012-03-09T01:40:02Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}\",\"created_at\":\"2012-07-26T08:17:22Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/merges\",\"mirror_url\":null,\"updated_at\":\"2013-01-11T10:29:56Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}\",\"description\":\"An easy-to-use Cocoa seek bar with a pleasing appearance\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/stargazers\",\"watchers_count\":2,\"deployments_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}\",\"stargazers_count\":2,\"subscription_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":16240152,\"url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C\",\"fork\":true,\"name\":\"AOP-in-Objective-C\",\"size\":340,\"forks\":1,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/AOP-in-Objective-C.git\",\"license\":null,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/AOP-in-Objective-C.git\",\"svn_url\":\"https://github.com/mralexgray/AOP-in-Objective-C\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":\"http://innoli.hu/en/opensource/\",\"html_url\":\"https://github.com/mralexgray/AOP-in-Objective-C\",\"keys_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}\",\"language\":\"Objective-C\",\"tags_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/AOP-in-Objective-C.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks\",\"full_name\":\"mralexgray/AOP-in-Objective-C\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}\",\"pushed_at\":\"2014-02-12T16:23:20Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}\",\"created_at\":\"2014-01-25T21:18:04Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges\",\"mirror_url\":null,\"updated_at\":\"2014-06-19T19:38:12Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}\",\"description\":\"An NSProxy based library for easily enabling AOP like functionality in Objective-C.\",\"forks_count\":1,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages\",\"default_branch\":\"travis-coveralls\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":13141936,\"url\":\"https://api.github.com/repos/mralexgray/Apaxy\",\"fork\":true,\"name\":\"Apaxy\",\"size\":113,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/Apaxy.git\",\"license\":{\"key\":\"unlicense\",\"url\":\"https://api.github.com/licenses/unlicense\",\"name\":\"The Unlicense\",\"node_id\":\"MDc6TGljZW5zZTE1\",\"spdx_id\":\"Unlicense\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/Apaxy.git\",\"svn_url\":\"https://github.com/mralexgray/Apaxy\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/Apaxy\",\"keys_url\":\"https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}\",\"language\":\"CSS\",\"tags_url\":\"https://api.github.com/repos/mralexgray/Apaxy/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/Apaxy.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/Apaxy/forks\",\"full_name\":\"mralexgray/Apaxy\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/Apaxy/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}\",\"pushed_at\":\"2013-08-02T16:01:32Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/Apaxy/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}\",\"created_at\":\"2013-09-27T05:05:35Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/Apaxy/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/Apaxy/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/Apaxy/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/Apaxy/merges\",\"mirror_url\":null,\"updated_at\":\"2018-02-16T21:40:24Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}\",\"description\":\"A simple, customisable theme for your Apache directory listing.\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/Apaxy/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/Apaxy/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/Apaxy/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/Apaxy/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/Apaxy/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/Apaxy/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/Apaxy/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/Apaxy/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/Apaxy/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false},{\"id\":20027360,\"url\":\"https://api.github.com/repos/mralexgray/app\",\"fork\":true,\"name\":\"app\",\"size\":1890,\"forks\":0,\"owner\":{\"id\":262517,\"url\":\"https://api.github.com/users/mralexgray\",\"type\":\"User\",\"login\":\"mralexgray\",\"node_id\":\"MDQ6VXNlcjI2MjUxNw==\",\"html_url\":\"https://github.com/mralexgray\",\"gists_url\":\"https://api.github.com/users/mralexgray/gists{/gist_id}\",\"repos_url\":\"https://api.github.com/users/mralexgray/repos\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/262517?v=4\",\"events_url\":\"https://api.github.com/users/mralexgray/events{/privacy}\",\"site_admin\":false,\"gravatar_id\":\"\",\"starred_url\":\"https://api.github.com/users/mralexgray/starred{/owner}{/repo}\",\"followers_url\":\"https://api.github.com/users/mralexgray/followers\",\"following_url\":\"https://api.github.com/users/mralexgray/following{/other_user}\",\"organizations_url\":\"https://api.github.com/users/mralexgray/orgs\",\"subscriptions_url\":\"https://api.github.com/users/mralexgray/subscriptions\",\"received_events_url\":\"https://api.github.com/users/mralexgray/received_events\"},\"topics\":[],\"git_url\":\"git://github.com/mralexgray/app.git\",\"license\":{\"key\":\"other\",\"url\":null,\"name\":\"Other\",\"node_id\":\"MDc6TGljZW5zZTA=\",\"spdx_id\":\"NOASSERTION\"},\"node_id\":\"MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==\",\"private\":false,\"ssh_url\":\"git@github.com:mralexgray/app.git\",\"svn_url\":\"https://github.com/mralexgray/app\",\"archived\":false,\"disabled\":false,\"has_wiki\":true,\"homepage\":null,\"html_url\":\"https://github.com/mralexgray/app\",\"keys_url\":\"https://api.github.com/repos/mralexgray/app/keys{/key_id}\",\"language\":\"JavaScript\",\"tags_url\":\"https://api.github.com/repos/mralexgray/app/tags\",\"watchers\":0,\"blobs_url\":\"https://api.github.com/repos/mralexgray/app/git/blobs{/sha}\",\"clone_url\":\"https://github.com/mralexgray/app.git\",\"forks_url\":\"https://api.github.com/repos/mralexgray/app/forks\",\"full_name\":\"mralexgray/app\",\"has_pages\":false,\"hooks_url\":\"https://api.github.com/repos/mralexgray/app/hooks\",\"pulls_url\":\"https://api.github.com/repos/mralexgray/app/pulls{/number}\",\"pushed_at\":\"2014-05-20T19:51:38Z\",\"teams_url\":\"https://api.github.com/repos/mralexgray/app/teams\",\"trees_url\":\"https://api.github.com/repos/mralexgray/app/git/trees{/sha}\",\"created_at\":\"2014-05-21T15:54:20Z\",\"events_url\":\"https://api.github.com/repos/mralexgray/app/events\",\"has_issues\":false,\"issues_url\":\"https://api.github.com/repos/mralexgray/app/issues{/number}\",\"labels_url\":\"https://api.github.com/repos/mralexgray/app/labels{/name}\",\"merges_url\":\"https://api.github.com/repos/mralexgray/app/merges\",\"mirror_url\":null,\"updated_at\":\"2014-05-21T15:54:22Z\",\"visibility\":\"public\",\"archive_url\":\"https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}\",\"commits_url\":\"https://api.github.com/repos/mralexgray/app/commits{/sha}\",\"compare_url\":\"https://api.github.com/repos/mralexgray/app/compare/{base}...{head}\",\"description\":\"Instant mobile web app creation\",\"forks_count\":0,\"is_template\":false,\"open_issues\":0,\"branches_url\":\"https://api.github.com/repos/mralexgray/app/branches{/branch}\",\"comments_url\":\"https://api.github.com/repos/mralexgray/app/comments{/number}\",\"contents_url\":\"https://api.github.com/repos/mralexgray/app/contents/{+path}\",\"git_refs_url\":\"https://api.github.com/repos/mralexgray/app/git/refs{/sha}\",\"git_tags_url\":\"https://api.github.com/repos/mralexgray/app/git/tags{/sha}\",\"has_projects\":true,\"releases_url\":\"https://api.github.com/repos/mralexgray/app/releases{/id}\",\"statuses_url\":\"https://api.github.com/repos/mralexgray/app/statuses/{sha}\",\"allow_forking\":true,\"assignees_url\":\"https://api.github.com/repos/mralexgray/app/assignees{/user}\",\"downloads_url\":\"https://api.github.com/repos/mralexgray/app/downloads\",\"has_downloads\":true,\"languages_url\":\"https://api.github.com/repos/mralexgray/app/languages\",\"default_branch\":\"master\",\"milestones_url\":\"https://api.github.com/repos/mralexgray/app/milestones{/number}\",\"stargazers_url\":\"https://api.github.com/repos/mralexgray/app/stargazers\",\"watchers_count\":0,\"deployments_url\":\"https://api.github.com/repos/mralexgray/app/deployments\",\"git_commits_url\":\"https://api.github.com/repos/mralexgray/app/git/commits{/sha}\",\"subscribers_url\":\"https://api.github.com/repos/mralexgray/app/subscribers\",\"contributors_url\":\"https://api.github.com/repos/mralexgray/app/contributors\",\"issue_events_url\":\"https://api.github.com/repos/mralexgray/app/issues/events{/number}\",\"stargazers_count\":0,\"subscription_url\":\"https://api.github.com/repos/mralexgray/app/subscription\",\"collaborators_url\":\"https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}\",\"issue_comment_url\":\"https://api.github.com/repos/mralexgray/app/issues/comments{/number}\",\"notifications_url\":\"https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}\",\"open_issues_count\":0,\"web_commit_signoff_required\":false}],\"name\":\"Shirt\",\"revenue\":4.99},\"receivedAt\":\"2022-08-18T08:43:13.521+05:30\",\"request_ip\":\"[::1]\",\"anonymousId\":\"anon-id-new\",\"originalTimestamp\":\"2022-08-18T08:43:15.539+05:30\"},{\"name\":\"Page View\",\"type\":\"page\",\"sentAt\":\"2022-08-18T08:43:15.539+05:30\",\"userId\":\"identified user id\",\"context\":{\"ip\":\"14.5.67.21\",\"library\":{\"name\":\"http\"}},\"rudderId\":\"daf823fb-e8d3-413a-8313-d34cd756f968\",\"messageId\":\"5f58d1f7-cbd6-4bff-8571-9933be7210b1\",\"timestamp\":\"2020-02-02T00:23:09.544Z\",\"properties\":{\"path\":\"/\",\"title\":\"Home\"},\"receivedAt\":\"2022-08-18T08:43:13.521+05:30\",\"request_ip\":\"[::1]\",\"anonymousId\":\"anon-id-new\",\"originalTimestamp\":\"2022-08-18T08:43:15.539+05:30\"}]", - "destConfig": { - "clientContext": "", - "lambda": "testFunction", - "invocationType": "Event" - } - }, - "metadata": [ - { - "userId": "anon-id-new<<>>identified user id", - "jobId": 32, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "dc239cd1-bef4-4999-88e1-7332c64bf78c", - "JobID": 32, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "track", - "event": "Product Purchased new", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "9f8fb785-c720-4381-a009-bf22a13f4ced", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "data": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "name": "Shirt", - "revenue": 4.99 - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 48375, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "Product Purchased new", - "event_type": "track", - "message_id": "9f8fb785-c720-4381-a009-bf22a13f4ced", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - }, - { - "userId": "anon-id-new<<>>identified user id", - "jobId": 33, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "bf616af4-2c6b-495f-8b2d-b522c93bdca2", - "JobID": 33, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "name": "Page View", - "type": "page", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "5f58d1f7-cbd6-4bff-8571-9933be7210b1", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "path": "/", - "title": "Home" - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 548, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "page", - "message_id": "5f58d1f7-cbd6-4bff-8571-9933be7210b1", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - } - ], - "batched": false, - "statusCode": 200 - }, - { - "batchedRequest": { - "payload": "[{\"name\":\"Screen View\",\"type\":\"screen\",\"sentAt\":\"2022-08-18T08:43:15.539+05:30\",\"userId\":\"identified user id\",\"context\":{\"ip\":\"14.5.67.21\",\"library\":{\"name\":\"http\"}},\"rudderId\":\"daf823fb-e8d3-413a-8313-d34cd756f968\",\"messageId\":\"1b8ee4c3-ffad-4457-b453-31b32da1dfea\",\"timestamp\":\"2020-02-02T00:23:09.544Z\",\"properties\":{\"prop1\":\"5\"},\"receivedAt\":\"2022-08-18T08:43:13.521+05:30\",\"request_ip\":\"[::1]\",\"anonymousId\":\"anon-id-new\",\"originalTimestamp\":\"2022-08-18T08:43:15.539+05:30\"},{\"type\":\"group\",\"sentAt\":\"2022-08-18T08:43:15.539+05:30\",\"traits\":{\"name\":\"Company\",\"industry\":\"Industry\",\"employees\":123},\"userId\":\"user123\",\"context\":{\"ip\":\"14.5.67.21\",\"traits\":{\"trait1\":\"new-val\"},\"library\":{\"name\":\"http\"}},\"groupId\":\"group1\",\"rudderId\":\"bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5\",\"messageId\":\"2c59b527-3235-4fc2-9680-f41ec52ebb51\",\"timestamp\":\"2020-01-21T00:21:34.208Z\",\"receivedAt\":\"2022-08-18T08:43:13.521+05:30\",\"request_ip\":\"[::1]\",\"originalTimestamp\":\"2022-08-18T08:43:15.539+05:30\"}]", - "destConfig": { - "clientContext": "", - "lambda": "testFunction", - "invocationType": "Event" - } - }, - "metadata": [ - { - "userId": "anon-id-new<<>>identified user id", - "jobId": 34, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "8faa9d6d-d8a8-468c-bef4-c2db52f6101b", - "JobID": 34, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "name": "Screen View", - "type": "screen", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "1b8ee4c3-ffad-4457-b453-31b32da1dfea", - "timestamp": "2020-02-02T00:23:09.544Z", - "properties": { - "prop1": "5" - }, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 536, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "screen", - "message_id": "1b8ee4c3-ffad-4457-b453-31b32da1dfea", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - }, - { - "userId": "anon-id-new<<>>identified user id", - "jobId": 35, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "73cea314-998a-4b72-8004-34b0618093a3", - "JobID": 35, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "group", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "traits": { - "name": "Company", - "industry": "Industry", - "employees": 123 - }, - "userId": "user123", - "context": { - "ip": "14.5.67.21", - "traits": { - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "groupId": "group1", - "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5", - "messageId": "2c59b527-3235-4fc2-9680-f41ec52ebb51", - "timestamp": "2020-01-21T00:21:34.208Z", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 589, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "group", - "message_id": "2c59b527-3235-4fc2-9680-f41ec52ebb51", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - } - ], - "batched": false, - "statusCode": 200 - }, - { - "batchedRequest": { - "payload": "[{\"type\":\"alias\",\"sentAt\":\"2022-08-18T08:43:15.539+05:30\",\"userId\":\"user123\",\"context\":{\"ip\":\"14.5.67.21\",\"traits\":{\"trait1\":\"new-val\"},\"library\":{\"name\":\"http\"}},\"rudderId\":\"bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5\",\"messageId\":\"3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d\",\"timestamp\":\"2020-01-21T00:21:34.208Z\",\"previousId\":\"previd1\",\"receivedAt\":\"2022-08-18T08:43:13.521+05:30\",\"request_ip\":\"[::1]\",\"originalTimestamp\":\"2022-08-18T08:43:15.539+05:30\"}]", - "destConfig": { - "clientContext": "", - "lambda": "testFunction", - "invocationType": "Event" - } - }, - "metadata": [ - { - "userId": "anon-id-new<<>>identified user id", - "jobId": 36, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "ac80629c-9eb6-4e92-bee8-4647e88f7fc0", - "JobID": 36, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "alias", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "user123", - "context": { - "ip": "14.5.67.21", - "traits": { - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5", - "messageId": "3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d", - "timestamp": "2020-01-21T00:21:34.208Z", - "previousId": "previd1", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 506, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "alias", - "message_id": "3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - } - ], - "batched": false, - "statusCode": 200 - }, - { - "metadata": [ - { - "userId": "anon-id-new<<>>identified user id", - "jobId": 31, - "sourceId": "2DTlLPQxignYp4ag9sISgGN2uY7", - "destinationId": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "attemptNum": 0, - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "createdAt": "2022-08-18T03:13:15.549Z", - "firstAttemptedAt": "", - "transformAt": "router", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "secret": null, - "jobsT": { - "UUID": "47b3937a-1fef-49fa-85c8-649673bd7170", - "JobID": 31, - "UserID": "anon-id-new<<>>identified user id", - "CreatedAt": "2022-08-18T03:13:15.549078Z", - "ExpireAt": "2022-08-18T03:13:15.549078Z", - "CustomVal": "LAMBDA", - "EventCount": 1, - "EventPayload": { - "type": "identify", - "sentAt": "2022-08-18T08:43:15.539+05:30", - "userId": "identified user id", - "context": { - "ip": "14.5.67.21", - "traits": { - "data": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "data2": [ - { - "id": 6104546, - "url": "https://api.github.com/repos/mralexgray/-REPONAME", - "fork": false, - "name": "-REPONAME", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/-REPONAME.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk2MTA0NTQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/-REPONAME.git", - "svn_url": "https://github.com/mralexgray/-REPONAME", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/-REPONAME", - "keys_url": "https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/-REPONAME.git", - "forks_url": "https://api.github.com/repos/mralexgray/-REPONAME/forks", - "full_name": "mralexgray/-REPONAME", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/-REPONAME/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}", - "pushed_at": "2012-10-06T16:37:39Z", - "teams_url": "https://api.github.com/repos/mralexgray/-REPONAME/teams", - "trees_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}", - "created_at": "2012-10-06T16:37:39Z", - "events_url": "https://api.github.com/repos/mralexgray/-REPONAME/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/-REPONAME/merges", - "mirror_url": null, - "updated_at": "2013-01-12T13:39:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/-REPONAME/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/-REPONAME/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/-REPONAME/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/-REPONAME/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/-REPONAME/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/-REPONAME/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 104510411, - "url": "https://api.github.com/repos/mralexgray/...", - "fork": true, - "name": "...", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/....git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=", - "private": false, - "ssh_url": "git@github.com:mralexgray/....git", - "svn_url": "https://github.com/mralexgray/...", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "https://driesvints.com/blog/getting-started-with-dotfiles", - "html_url": "https://github.com/mralexgray/...", - "keys_url": "https://api.github.com/repos/mralexgray/.../keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/.../tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/.../git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/....git", - "forks_url": "https://api.github.com/repos/mralexgray/.../forks", - "full_name": "mralexgray/...", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/.../hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/.../pulls{/number}", - "pushed_at": "2017-09-15T08:27:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/.../teams", - "trees_url": "https://api.github.com/repos/mralexgray/.../git/trees{/sha}", - "created_at": "2017-09-22T19:19:42Z", - "events_url": "https://api.github.com/repos/mralexgray/.../events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/.../issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/.../labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/.../merges", - "mirror_url": null, - "updated_at": "2017-09-22T19:20:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/.../commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/.../compare/{base}...{head}", - "description": ":computer: Public repo for my personal dotfiles.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/.../branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/.../comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/.../contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/.../git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/.../git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/.../releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/.../statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/.../assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/.../downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/.../languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/.../milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/.../stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/.../deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/.../git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/.../subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/.../contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/.../issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/.../subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/.../issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 58656723, - "url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol", - "fork": true, - "name": "2200087-Serial-Protocol", - "size": 41, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/2200087-Serial-Protocol.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/2200087-Serial-Protocol.git", - "svn_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://daviddworken.com", - "html_url": "https://github.com/mralexgray/2200087-Serial-Protocol", - "keys_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}", - "language": "Python", - "tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/2200087-Serial-Protocol.git", - "forks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks", - "full_name": "mralexgray/2200087-Serial-Protocol", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}", - "pushed_at": "2016-05-12T16:07:24Z", - "teams_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams", - "trees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}", - "created_at": "2016-05-12T16:05:28Z", - "events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges", - "mirror_url": null, - "updated_at": "2016-05-12T16:05:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}", - "description": "A reverse engineered protocol description and accompanying code for Radioshack's 2200087 multimeter", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13121042, - "url": "https://api.github.com/repos/mralexgray/ace", - "fork": true, - "name": "ace", - "size": 21080, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ace.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ace.git", - "svn_url": "https://github.com/mralexgray/ace", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ace.c9.io", - "html_url": "https://github.com/mralexgray/ace", - "keys_url": "https://api.github.com/repos/mralexgray/ace/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/ace/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ace.git", - "forks_url": "https://api.github.com/repos/mralexgray/ace/forks", - "full_name": "mralexgray/ace", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ace/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ace/pulls{/number}", - "pushed_at": "2013-10-26T12:34:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/ace/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ace/git/trees{/sha}", - "created_at": "2013-09-26T11:58:10Z", - "events_url": "https://api.github.com/repos/mralexgray/ace/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ace/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ace/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ace/merges", - "mirror_url": null, - "updated_at": "2013-10-26T12:34:49Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ace/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}", - "description": "Ace (Ajax.org Cloud9 Editor)", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ace/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ace/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ace/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ace/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ace/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ace/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ace/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ace/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ace/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ace/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ace/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ace/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ace/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ace/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ace/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ace/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ace/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ace/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ace/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10791045, - "url": "https://api.github.com/repos/mralexgray/ACEView", - "fork": true, - "name": "ACEView", - "size": 1733, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ACEView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ACEView.git", - "svn_url": "https://github.com/mralexgray/ACEView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/ACEView", - "keys_url": "https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ACEView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ACEView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ACEView/forks", - "full_name": "mralexgray/ACEView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ACEView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ACEView/pulls{/number}", - "pushed_at": "2014-05-09T01:36:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/ACEView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}", - "created_at": "2013-06-19T12:15:04Z", - "events_url": "https://api.github.com/repos/mralexgray/ACEView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ACEView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ACEView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ACEView/merges", - "mirror_url": null, - "updated_at": "2015-11-24T01:14:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ACEView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}", - "description": "Use the wonderful ACE editor in your Cocoa applications", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ACEView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ACEView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ACEView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ACEView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ACEView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ACEView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ACEView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ACEView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ACEView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ACEView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ACEView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ACEView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ACEView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13623648, - "url": "https://api.github.com/repos/mralexgray/ActiveLog", - "fork": true, - "name": "ActiveLog", - "size": 60, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ActiveLog.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ActiveLog.git", - "svn_url": "https://github.com/mralexgray/ActiveLog", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://deepitpro.com/en/articles/ActiveLog/info/", - "html_url": "https://github.com/mralexgray/ActiveLog", - "keys_url": "https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ActiveLog.git", - "forks_url": "https://api.github.com/repos/mralexgray/ActiveLog/forks", - "full_name": "mralexgray/ActiveLog", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ActiveLog/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}", - "pushed_at": "2011-07-03T06:28:59Z", - "teams_url": "https://api.github.com/repos/mralexgray/ActiveLog/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}", - "created_at": "2013-10-16T15:52:37Z", - "events_url": "https://api.github.com/repos/mralexgray/ActiveLog/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ActiveLog/merges", - "mirror_url": null, - "updated_at": "2013-10-16T15:52:37Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}", - "description": "Shut up all logs with active filter.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ActiveLog/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ActiveLog/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ActiveLog/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ActiveLog/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ActiveLog/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ActiveLog/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9716210, - "url": "https://api.github.com/repos/mralexgray/adium", - "fork": false, - "name": "adium", - "size": 277719, - "forks": 37, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/adium.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk5NzE2MjEw", - "private": false, - "ssh_url": "git@github.com:mralexgray/adium.git", - "svn_url": "https://github.com/mralexgray/adium", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/adium", - "keys_url": "https://api.github.com/repos/mralexgray/adium/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/adium/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/adium.git", - "forks_url": "https://api.github.com/repos/mralexgray/adium/forks", - "full_name": "mralexgray/adium", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/adium/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/adium/pulls{/number}", - "pushed_at": "2013-04-26T16:43:53Z", - "teams_url": "https://api.github.com/repos/mralexgray/adium/teams", - "trees_url": "https://api.github.com/repos/mralexgray/adium/git/trees{/sha}", - "created_at": "2013-04-27T14:59:33Z", - "events_url": "https://api.github.com/repos/mralexgray/adium/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/adium/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/adium/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/adium/merges", - "mirror_url": null, - "updated_at": "2019-12-11T06:51:45Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/adium/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}", - "description": "Official mirror of hg.adium.im", - "forks_count": 37, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/adium/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/adium/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/adium/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/adium/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/adium/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/adium/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/adium/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/adium/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/adium/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/adium/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/adium/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/adium/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/adium/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/adium/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/adium/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/adium/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/adium/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/adium/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/adium/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12752329, - "url": "https://api.github.com/repos/mralexgray/ADLivelyTableView", - "fork": true, - "name": "ADLivelyTableView", - "size": 73, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ADLivelyTableView.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/ADLivelyTableView.git", - "svn_url": "https://github.com/mralexgray/ADLivelyTableView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://applidium.com/en/news/lively_uitableview/", - "html_url": "https://github.com/mralexgray/ADLivelyTableView", - "keys_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ADLivelyTableView.git", - "forks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/forks", - "full_name": "mralexgray/ADLivelyTableView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}", - "pushed_at": "2012-05-10T10:40:15Z", - "teams_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}", - "created_at": "2013-09-11T09:18:01Z", - "events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/merges", - "mirror_url": null, - "updated_at": "2013-09-11T09:18:03Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}", - "description": "Lively UITableView", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5697379, - "url": "https://api.github.com/repos/mralexgray/AFIncrementalStore", - "fork": true, - "name": "AFIncrementalStore", - "size": 139, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFIncrementalStore.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk1Njk3Mzc5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFIncrementalStore.git", - "svn_url": "https://github.com/mralexgray/AFIncrementalStore", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AFIncrementalStore", - "keys_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFIncrementalStore.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/forks", - "full_name": "mralexgray/AFIncrementalStore", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}", - "pushed_at": "2012-09-01T22:46:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}", - "created_at": "2012-09-06T04:20:33Z", - "events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/merges", - "mirror_url": null, - "updated_at": "2013-01-12T03:15:29Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}", - "description": "Core Data Persistence with AFNetworking, Done Right", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 6969621, - "url": "https://api.github.com/repos/mralexgray/AFNetworking", - "fork": true, - "name": "AFNetworking", - "size": 4341, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AFNetworking.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnk2OTY5NjIx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AFNetworking.git", - "svn_url": "https://github.com/mralexgray/AFNetworking", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://afnetworking.com", - "html_url": "https://github.com/mralexgray/AFNetworking", - "keys_url": "https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AFNetworking.git", - "forks_url": "https://api.github.com/repos/mralexgray/AFNetworking/forks", - "full_name": "mralexgray/AFNetworking", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AFNetworking/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}", - "pushed_at": "2014-01-24T07:14:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AFNetworking/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}", - "created_at": "2012-12-02T17:00:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AFNetworking/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AFNetworking/merges", - "mirror_url": null, - "updated_at": "2014-01-24T07:14:33Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}", - "description": "A delightful iOS and OS X networking framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AFNetworking/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AFNetworking/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AFNetworking/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AFNetworking/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AFNetworking/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AFNetworking/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9485541, - "url": "https://api.github.com/repos/mralexgray/AGNSSplitView", - "fork": true, - "name": "AGNSSplitView", - "size": 68, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGNSSplitView.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5NDg1NTQx", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGNSSplitView.git", - "svn_url": "https://github.com/mralexgray/AGNSSplitView", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGNSSplitView", - "keys_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGNSSplitView.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/forks", - "full_name": "mralexgray/AGNSSplitView", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}", - "pushed_at": "2013-02-26T00:32:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}", - "created_at": "2013-04-17T00:10:13Z", - "events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/merges", - "mirror_url": null, - "updated_at": "2013-04-17T00:10:13Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}", - "description": "Simple NSSplitView additions.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12767784, - "url": "https://api.github.com/repos/mralexgray/AGScopeBar", - "fork": true, - "name": "AGScopeBar", - "size": 64, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AGScopeBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AGScopeBar.git", - "svn_url": "https://github.com/mralexgray/AGScopeBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AGScopeBar", - "keys_url": "https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AGScopeBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/forks", - "full_name": "mralexgray/AGScopeBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AGScopeBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}", - "pushed_at": "2013-05-07T03:35:29Z", - "teams_url": "https://api.github.com/repos/mralexgray/AGScopeBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}", - "created_at": "2013-09-11T21:06:54Z", - "events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AGScopeBar/merges", - "mirror_url": null, - "updated_at": "2013-09-11T21:06:54Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}", - "description": "Custom scope bar implementation for Cocoa", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AGScopeBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AGScopeBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AGScopeBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AGScopeBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AGScopeBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 31829499, - "url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin", - "fork": true, - "name": "agvtool-xcode-plugin", - "size": 102, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/agvtool-xcode-plugin.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/agvtool-xcode-plugin.git", - "svn_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/agvtool-xcode-plugin", - "keys_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/agvtool-xcode-plugin.git", - "forks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks", - "full_name": "mralexgray/agvtool-xcode-plugin", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}", - "pushed_at": "2015-03-08T00:04:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams", - "trees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}", - "created_at": "2015-03-07T22:15:38Z", - "events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges", - "mirror_url": null, - "updated_at": "2015-03-07T22:15:41Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}", - "description": "this is a plugin wrapper for agvtool for xcode.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9227846, - "url": "https://api.github.com/repos/mralexgray/AHContentBrowser", - "fork": true, - "name": "AHContentBrowser", - "size": 223, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHContentBrowser.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MjI3ODQ2", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHContentBrowser.git", - "svn_url": "https://github.com/mralexgray/AHContentBrowser", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHContentBrowser", - "keys_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHContentBrowser.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/forks", - "full_name": "mralexgray/AHContentBrowser", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}", - "pushed_at": "2013-03-13T17:38:23Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}", - "created_at": "2013-04-04T20:56:16Z", - "events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/merges", - "mirror_url": null, - "updated_at": "2015-10-22T05:00:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}", - "description": "A Mac only webview that loads a fast readable version of the website if available.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 37430328, - "url": "https://api.github.com/repos/mralexgray/AHLaunchCtl", - "fork": true, - "name": "AHLaunchCtl", - "size": 592, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLaunchCtl.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLaunchCtl.git", - "svn_url": "https://github.com/mralexgray/AHLaunchCtl", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AHLaunchCtl", - "keys_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLaunchCtl.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/forks", - "full_name": "mralexgray/AHLaunchCtl", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}", - "pushed_at": "2015-05-26T18:50:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}", - "created_at": "2015-06-14T21:31:03Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/merges", - "mirror_url": null, - "updated_at": "2015-06-14T21:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}", - "description": "LaunchD Framework for Cocoa Apps", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 9167473, - "url": "https://api.github.com/repos/mralexgray/AHLayout", - "fork": true, - "name": "AHLayout", - "size": 359, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AHLayout.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk5MTY3NDcz", - "private": false, - "ssh_url": "git@github.com:mralexgray/AHLayout.git", - "svn_url": "https://github.com/mralexgray/AHLayout", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/AHLayout", - "keys_url": "https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AHLayout/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AHLayout.git", - "forks_url": "https://api.github.com/repos/mralexgray/AHLayout/forks", - "full_name": "mralexgray/AHLayout", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AHLayout/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}", - "pushed_at": "2013-07-08T02:31:14Z", - "teams_url": "https://api.github.com/repos/mralexgray/AHLayout/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}", - "created_at": "2013-04-02T10:10:30Z", - "events_url": "https://api.github.com/repos/mralexgray/AHLayout/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AHLayout/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AHLayout/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AHLayout/merges", - "mirror_url": null, - "updated_at": "2013-07-08T02:31:17Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}", - "description": "AHLayout", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AHLayout/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AHLayout/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AHLayout/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AHLayout/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AHLayout/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AHLayout/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AHLayout/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AHLayout/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AHLayout/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 18450201, - "url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework", - "fork": true, - "name": "Airmail-Plug-In-Framework", - "size": 888, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "license": { - "key": "gpl-2.0", - "url": "https://api.github.com/licenses/gpl-2.0", - "name": "GNU General Public License v2.0", - "node_id": "MDc6TGljZW5zZTg=", - "spdx_id": "GPL-2.0" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Airmail-Plug-In-Framework.git", - "svn_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework", - "keys_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Airmail-Plug-In-Framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks", - "full_name": "mralexgray/Airmail-Plug-In-Framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}", - "pushed_at": "2014-03-27T15:42:19Z", - "teams_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}", - "created_at": "2014-04-04T19:33:54Z", - "events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges", - "mirror_url": null, - "updated_at": "2014-11-23T19:31:04Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}", - "description": null, - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5203219, - "url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API", - "fork": true, - "name": "AJS-iTunes-API", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AJS-iTunes-API.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MjAzMjE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/AJS-iTunes-API.git", - "svn_url": "https://github.com/mralexgray/AJS-iTunes-API", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/AJS-iTunes-API", - "keys_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AJS-iTunes-API.git", - "forks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks", - "full_name": "mralexgray/AJS-iTunes-API", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}", - "pushed_at": "2011-10-30T22:26:48Z", - "teams_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}", - "created_at": "2012-07-27T10:20:58Z", - "events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges", - "mirror_url": null, - "updated_at": "2013-01-11T11:00:05Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}", - "description": "Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10093801, - "url": "https://api.github.com/repos/mralexgray/Alcatraz", - "fork": true, - "name": "Alcatraz", - "size": 3668, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alcatraz.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alcatraz.git", - "svn_url": "https://github.com/mralexgray/Alcatraz", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/Alcatraz", - "keys_url": "https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alcatraz.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alcatraz/forks", - "full_name": "mralexgray/Alcatraz", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alcatraz/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}", - "pushed_at": "2014-03-19T12:50:37Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alcatraz/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}", - "created_at": "2013-05-16T04:41:13Z", - "events_url": "https://api.github.com/repos/mralexgray/Alcatraz/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alcatraz/merges", - "mirror_url": null, - "updated_at": "2014-03-19T20:38:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}", - "description": "The most awesome (and only) Xcode package manager!", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alcatraz/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alcatraz/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alcatraz/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alcatraz/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alcatraz/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alcatraz/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 12916552, - "url": "https://api.github.com/repos/mralexgray/alcatraz-packages", - "fork": true, - "name": "alcatraz-packages", - "size": 826, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alcatraz-packages.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alcatraz-packages.git", - "svn_url": "https://github.com/mralexgray/alcatraz-packages", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "mneorr.github.com/Alcatraz", - "html_url": "https://github.com/mralexgray/alcatraz-packages", - "keys_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}", - "language": "Ruby", - "tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alcatraz-packages.git", - "forks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/forks", - "full_name": "mralexgray/alcatraz-packages", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}", - "pushed_at": "2015-12-14T16:21:31Z", - "teams_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}", - "created_at": "2013-09-18T07:15:24Z", - "events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/merges", - "mirror_url": null, - "updated_at": "2015-11-10T20:52:30Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}", - "description": "Package list repository for Alcatraz", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 44278362, - "url": "https://api.github.com/repos/mralexgray/alexicons", - "fork": true, - "name": "alexicons", - "size": 257, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/alexicons.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/alexicons.git", - "svn_url": "https://github.com/mralexgray/alexicons", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": null, - "html_url": "https://github.com/mralexgray/alexicons", - "keys_url": "https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}", - "language": "CoffeeScript", - "tags_url": "https://api.github.com/repos/mralexgray/alexicons/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/alexicons.git", - "forks_url": "https://api.github.com/repos/mralexgray/alexicons/forks", - "full_name": "mralexgray/alexicons", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/alexicons/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/alexicons/pulls{/number}", - "pushed_at": "2015-10-16T03:57:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/alexicons/teams", - "trees_url": "https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}", - "created_at": "2015-10-14T21:49:39Z", - "events_url": "https://api.github.com/repos/mralexgray/alexicons/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/alexicons/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/alexicons/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/alexicons/merges", - "mirror_url": null, - "updated_at": "2015-10-15T06:20:08Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/alexicons/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}", - "description": "Get popular cat names", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/alexicons/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/alexicons/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/alexicons/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/alexicons/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/alexicons/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/alexicons/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/alexicons/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/alexicons/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/alexicons/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/alexicons/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/alexicons/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/alexicons/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/alexicons/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10476467, - "url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate", - "fork": true, - "name": "Alfred-Google-Translate", - "size": 103, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Alfred-Google-Translate.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Alfred-Google-Translate.git", - "svn_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Alfred-Google-Translate", - "keys_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}", - "language": "Shell", - "tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Alfred-Google-Translate.git", - "forks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks", - "full_name": "mralexgray/Alfred-Google-Translate", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}", - "pushed_at": "2013-01-12T19:39:03Z", - "teams_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}", - "created_at": "2013-06-04T10:45:10Z", - "events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges", - "mirror_url": null, - "updated_at": "2013-06-04T10:45:10Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}", - "description": "Extension for Alfred that will do a Google translate for you", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5524019, - "url": "https://api.github.com/repos/mralexgray/Amber", - "fork": false, - "name": "Amber", - "size": 48, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amber.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1NTI0MDE5", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amber.git", - "svn_url": "https://github.com/mralexgray/Amber", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Amber", - "keys_url": "https://api.github.com/repos/mralexgray/Amber/keys{/key_id}", - "language": null, - "tags_url": "https://api.github.com/repos/mralexgray/Amber/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amber.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amber/forks", - "full_name": "mralexgray/Amber", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amber/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amber/pulls{/number}", - "pushed_at": "2012-08-23T10:38:25Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amber/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}", - "created_at": "2012-08-23T10:38:24Z", - "events_url": "https://api.github.com/repos/mralexgray/Amber/events", - "has_issues": true, - "issues_url": "https://api.github.com/repos/mralexgray/Amber/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amber/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amber/merges", - "mirror_url": null, - "updated_at": "2013-01-11T22:25:35Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amber/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}", - "description": "Fork of the difficult-to-deal-with Amber.framework", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amber/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amber/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amber/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amber/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amber/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amber/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amber/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amber/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amber/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amber/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amber/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amber/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amber/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amber/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amber/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 10809060, - "url": "https://api.github.com/repos/mralexgray/Amethyst", - "fork": true, - "name": "Amethyst", - "size": 12623, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Amethyst.git", - "license": { - "key": "mit", - "url": "https://api.github.com/licenses/mit", - "name": "MIT License", - "node_id": "MDc6TGljZW5zZTEz", - "spdx_id": "MIT" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Amethyst.git", - "svn_url": "https://github.com/mralexgray/Amethyst", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://ianyh.github.io/Amethyst/", - "html_url": "https://github.com/mralexgray/Amethyst", - "keys_url": "https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Amethyst/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Amethyst.git", - "forks_url": "https://api.github.com/repos/mralexgray/Amethyst/forks", - "full_name": "mralexgray/Amethyst", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Amethyst/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}", - "pushed_at": "2013-06-18T02:54:11Z", - "teams_url": "https://api.github.com/repos/mralexgray/Amethyst/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}", - "created_at": "2013-06-20T00:34:22Z", - "events_url": "https://api.github.com/repos/mralexgray/Amethyst/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Amethyst/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Amethyst/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Amethyst/merges", - "mirror_url": null, - "updated_at": "2013-06-20T00:34:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}", - "description": "Tiling window manager for OS X.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Amethyst/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Amethyst/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Amethyst/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Amethyst/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Amethyst/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Amethyst/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Amethyst/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Amethyst/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Amethyst/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 3684286, - "url": "https://api.github.com/repos/mralexgray/Animated-Paths", - "fork": true, - "name": "Animated-Paths", - "size": 411, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Animated-Paths.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkzNjg0Mjg2", - "private": false, - "ssh_url": "git@github.com:mralexgray/Animated-Paths.git", - "svn_url": "https://github.com/mralexgray/Animated-Paths", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/", - "html_url": "https://github.com/mralexgray/Animated-Paths", - "keys_url": "https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Animated-Paths.git", - "forks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/forks", - "full_name": "mralexgray/Animated-Paths", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Animated-Paths/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}", - "pushed_at": "2010-12-30T20:56:51Z", - "teams_url": "https://api.github.com/repos/mralexgray/Animated-Paths/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}", - "created_at": "2012-03-11T02:56:38Z", - "events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Animated-Paths/merges", - "mirror_url": null, - "updated_at": "2013-01-08T04:12:21Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}", - "description": "Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Animated-Paths/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Animated-Paths/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/Animated-Paths/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Animated-Paths/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/Animated-Paths/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16662874, - "url": "https://api.github.com/repos/mralexgray/AnsiLove.framework", - "fork": true, - "name": "AnsiLove.framework", - "size": 3780, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AnsiLove.framework.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AnsiLove.framework.git", - "svn_url": "https://github.com/mralexgray/AnsiLove.framework", - "archived": false, - "disabled": false, - "has_wiki": false, - "homepage": "http://byteproject.net", - "html_url": "https://github.com/mralexgray/AnsiLove.framework", - "keys_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}", - "language": "M", - "tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AnsiLove.framework.git", - "forks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/forks", - "full_name": "mralexgray/AnsiLove.framework", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}", - "pushed_at": "2013-10-04T14:08:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}", - "created_at": "2014-02-09T08:30:27Z", - "events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/merges", - "mirror_url": null, - "updated_at": "2015-01-13T20:41:46Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}", - "description": "Cocoa Framework for rendering ANSi / ASCII art", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 5189563, - "url": "https://api.github.com/repos/mralexgray/ANTrackBar", - "fork": true, - "name": "ANTrackBar", - "size": 94, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/ANTrackBar.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnk1MTg5NTYz", - "private": false, - "ssh_url": "git@github.com:mralexgray/ANTrackBar.git", - "svn_url": "https://github.com/mralexgray/ANTrackBar", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "", - "html_url": "https://github.com/mralexgray/ANTrackBar", - "keys_url": "https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/tags", - "watchers": 2, - "blobs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/ANTrackBar.git", - "forks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/forks", - "full_name": "mralexgray/ANTrackBar", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/ANTrackBar/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}", - "pushed_at": "2012-03-09T01:40:02Z", - "teams_url": "https://api.github.com/repos/mralexgray/ANTrackBar/teams", - "trees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}", - "created_at": "2012-07-26T08:17:22Z", - "events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/ANTrackBar/merges", - "mirror_url": null, - "updated_at": "2013-01-11T10:29:56Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}", - "description": "An easy-to-use Cocoa seek bar with a pleasing appearance", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/ANTrackBar/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/ANTrackBar/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/stargazers", - "watchers_count": 2, - "deployments_url": "https://api.github.com/repos/mralexgray/ANTrackBar/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/ANTrackBar/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}", - "stargazers_count": 2, - "subscription_url": "https://api.github.com/repos/mralexgray/ANTrackBar/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 16240152, - "url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C", - "fork": true, - "name": "AOP-in-Objective-C", - "size": 340, - "forks": 1, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/AOP-in-Objective-C.git", - "license": null, - "node_id": "MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/AOP-in-Objective-C.git", - "svn_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": "http://innoli.hu/en/opensource/", - "html_url": "https://github.com/mralexgray/AOP-in-Objective-C", - "keys_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}", - "language": "Objective-C", - "tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/AOP-in-Objective-C.git", - "forks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks", - "full_name": "mralexgray/AOP-in-Objective-C", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}", - "pushed_at": "2014-02-12T16:23:20Z", - "teams_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams", - "trees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}", - "created_at": "2014-01-25T21:18:04Z", - "events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges", - "mirror_url": null, - "updated_at": "2014-06-19T19:38:12Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}", - "description": "An NSProxy based library for easily enabling AOP like functionality in Objective-C.", - "forks_count": 1, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages", - "default_branch": "travis-coveralls", - "milestones_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 13141936, - "url": "https://api.github.com/repos/mralexgray/Apaxy", - "fork": true, - "name": "Apaxy", - "size": 113, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/Apaxy.git", - "license": { - "key": "unlicense", - "url": "https://api.github.com/licenses/unlicense", - "name": "The Unlicense", - "node_id": "MDc6TGljZW5zZTE1", - "spdx_id": "Unlicense" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==", - "private": false, - "ssh_url": "git@github.com:mralexgray/Apaxy.git", - "svn_url": "https://github.com/mralexgray/Apaxy", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/Apaxy", - "keys_url": "https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}", - "language": "CSS", - "tags_url": "https://api.github.com/repos/mralexgray/Apaxy/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/Apaxy.git", - "forks_url": "https://api.github.com/repos/mralexgray/Apaxy/forks", - "full_name": "mralexgray/Apaxy", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/Apaxy/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}", - "pushed_at": "2013-08-02T16:01:32Z", - "teams_url": "https://api.github.com/repos/mralexgray/Apaxy/teams", - "trees_url": "https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}", - "created_at": "2013-09-27T05:05:35Z", - "events_url": "https://api.github.com/repos/mralexgray/Apaxy/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/Apaxy/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/Apaxy/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/Apaxy/merges", - "mirror_url": null, - "updated_at": "2018-02-16T21:40:24Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}", - "description": "A simple, customisable theme for your Apache directory listing.", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/Apaxy/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/Apaxy/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/Apaxy/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/Apaxy/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/Apaxy/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/Apaxy/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/Apaxy/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/Apaxy/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/Apaxy/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - }, - { - "id": 20027360, - "url": "https://api.github.com/repos/mralexgray/app", - "fork": true, - "name": "app", - "size": 1890, - "forks": 0, - "owner": { - "id": 262517, - "url": "https://api.github.com/users/mralexgray", - "type": "User", - "login": "mralexgray", - "node_id": "MDQ6VXNlcjI2MjUxNw==", - "html_url": "https://github.com/mralexgray", - "gists_url": "https://api.github.com/users/mralexgray/gists{/gist_id}", - "repos_url": "https://api.github.com/users/mralexgray/repos", - "avatar_url": "https://avatars.githubusercontent.com/u/262517?v=4", - "events_url": "https://api.github.com/users/mralexgray/events{/privacy}", - "site_admin": false, - "gravatar_id": "", - "starred_url": "https://api.github.com/users/mralexgray/starred{/owner}{/repo}", - "followers_url": "https://api.github.com/users/mralexgray/followers", - "following_url": "https://api.github.com/users/mralexgray/following{/other_user}", - "organizations_url": "https://api.github.com/users/mralexgray/orgs", - "subscriptions_url": "https://api.github.com/users/mralexgray/subscriptions", - "received_events_url": "https://api.github.com/users/mralexgray/received_events" - }, - "topics": [], - "git_url": "git://github.com/mralexgray/app.git", - "license": { - "key": "other", - "url": null, - "name": "Other", - "node_id": "MDc6TGljZW5zZTA=", - "spdx_id": "NOASSERTION" - }, - "node_id": "MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==", - "private": false, - "ssh_url": "git@github.com:mralexgray/app.git", - "svn_url": "https://github.com/mralexgray/app", - "archived": false, - "disabled": false, - "has_wiki": true, - "homepage": null, - "html_url": "https://github.com/mralexgray/app", - "keys_url": "https://api.github.com/repos/mralexgray/app/keys{/key_id}", - "language": "JavaScript", - "tags_url": "https://api.github.com/repos/mralexgray/app/tags", - "watchers": 0, - "blobs_url": "https://api.github.com/repos/mralexgray/app/git/blobs{/sha}", - "clone_url": "https://github.com/mralexgray/app.git", - "forks_url": "https://api.github.com/repos/mralexgray/app/forks", - "full_name": "mralexgray/app", - "has_pages": false, - "hooks_url": "https://api.github.com/repos/mralexgray/app/hooks", - "pulls_url": "https://api.github.com/repos/mralexgray/app/pulls{/number}", - "pushed_at": "2014-05-20T19:51:38Z", - "teams_url": "https://api.github.com/repos/mralexgray/app/teams", - "trees_url": "https://api.github.com/repos/mralexgray/app/git/trees{/sha}", - "created_at": "2014-05-21T15:54:20Z", - "events_url": "https://api.github.com/repos/mralexgray/app/events", - "has_issues": false, - "issues_url": "https://api.github.com/repos/mralexgray/app/issues{/number}", - "labels_url": "https://api.github.com/repos/mralexgray/app/labels{/name}", - "merges_url": "https://api.github.com/repos/mralexgray/app/merges", - "mirror_url": null, - "updated_at": "2014-05-21T15:54:22Z", - "visibility": "public", - "archive_url": "https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}", - "commits_url": "https://api.github.com/repos/mralexgray/app/commits{/sha}", - "compare_url": "https://api.github.com/repos/mralexgray/app/compare/{base}...{head}", - "description": "Instant mobile web app creation", - "forks_count": 0, - "is_template": false, - "open_issues": 0, - "branches_url": "https://api.github.com/repos/mralexgray/app/branches{/branch}", - "comments_url": "https://api.github.com/repos/mralexgray/app/comments{/number}", - "contents_url": "https://api.github.com/repos/mralexgray/app/contents/{+path}", - "git_refs_url": "https://api.github.com/repos/mralexgray/app/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/mralexgray/app/git/tags{/sha}", - "has_projects": true, - "releases_url": "https://api.github.com/repos/mralexgray/app/releases{/id}", - "statuses_url": "https://api.github.com/repos/mralexgray/app/statuses/{sha}", - "allow_forking": true, - "assignees_url": "https://api.github.com/repos/mralexgray/app/assignees{/user}", - "downloads_url": "https://api.github.com/repos/mralexgray/app/downloads", - "has_downloads": true, - "languages_url": "https://api.github.com/repos/mralexgray/app/languages", - "default_branch": "master", - "milestones_url": "https://api.github.com/repos/mralexgray/app/milestones{/number}", - "stargazers_url": "https://api.github.com/repos/mralexgray/app/stargazers", - "watchers_count": 0, - "deployments_url": "https://api.github.com/repos/mralexgray/app/deployments", - "git_commits_url": "https://api.github.com/repos/mralexgray/app/git/commits{/sha}", - "subscribers_url": "https://api.github.com/repos/mralexgray/app/subscribers", - "contributors_url": "https://api.github.com/repos/mralexgray/app/contributors", - "issue_events_url": "https://api.github.com/repos/mralexgray/app/issues/events{/number}", - "stargazers_count": 0, - "subscription_url": "https://api.github.com/repos/mralexgray/app/subscription", - "collaborators_url": "https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}", - "issue_comment_url": "https://api.github.com/repos/mralexgray/app/issues/comments{/number}", - "notifications_url": "https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}", - "open_issues_count": 0, - "web_commit_signoff_required": false - } - ], - "trait1": "new-val" - }, - "library": { - "name": "http" - } - }, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "messageId": "c864b4cd-8f07-4922-b3d0-82ef04c987d3", - "timestamp": "2020-02-02T00:23:09.544Z", - "receivedAt": "2022-08-18T08:43:13.521+05:30", - "request_ip": "[::1]", - "anonymousId": "anon-id-new", - "originalTimestamp": "2022-08-18T08:43:15.539+05:30" - }, - "PayloadSize": 95943, - "LastJobStatus": { - "JobID": 0, - "JobState": "", - "AttemptNum": 0, - "ExecTime": "0001-01-01T00:00:00Z", - "RetryTime": "0001-01-01T00:00:00Z", - "ErrorCode": "", - "ErrorResponse": null, - "Parameters": null, - "WorkspaceId": "" - }, - "Parameters": { - "record_id": null, - "source_id": "2DTlLPQxignYp4ag9sISgGN2uY7", - "event_name": "", - "event_type": "identify", - "message_id": "c864b4cd-8f07-4922-b3d0-82ef04c987d3", - "received_at": "2022-08-18T08:43:13.521+05:30", - "workspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd", - "transform_at": "router", - "source_job_id": "", - "destination_id": "2DTozIMGtBwTGNJtuvdPByFSL2Z", - "gateway_job_id": 6, - "source_task_id": "", - "source_batch_id": "", - "source_category": "", - "source_job_run_id": "", - "source_task_run_id": "", - "source_definition_id": "2DTlJaW1jHhM8B27Et2CMTZoxZF", - "destination_definition_id": "" - }, - "WorkspaceId": "2DTlBMipxWfJZzZ1SsjELQWvkwd" - }, - "workerAssignedTime": "2022-08-18T08:43:16.586825+05:30" - } - ], - "batched": false, - "statusCode": 400, - "error": "payload size limit exceeded" - } -] diff --git a/test/__tests__/data/launchdarkly_audience.json b/test/__tests__/data/launchdarkly_audience.json deleted file mode 100644 index 2f348e01fa..0000000000 --- a/test/__tests__/data/launchdarkly_audience.json +++ /dev/null @@ -1,495 +0,0 @@ -[ - { - "description": "Unsupported event type", - "input": { - "message": { - "userId": "user123", - "type": "abc", - "properties": { - "listData": { - "add": [ - { - "identifier": "alex@email.com" - }, - { - "identifier": "ryan@email.com" - }, - { - "identifier": "van@email.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "audienceId": "test-audienceId", - "audienceName": "test-audienceName", - "accessToken": "test-accessToken", - "clientSideId": "test-clientSideId" - } - } - }, - "output": { - "error": "Event type abc is not supported. Aborting message." - } - }, - { - "description": "List data is not passed", - "input": { - "message": { - "userId": "user123", - "type": "audiencelist", - "properties": {}, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "audienceId": "test-audienceId", - "audienceName": "test-audienceName", - "accessToken": "test-accessToken", - "clientSideId": "test-clientSideId" - } - } - }, - "output": { - "error": "`listData` is not present inside properties. Aborting message." - } - }, - { - "description": "List data is empty", - "input": { - "message": { - "userId": "user123", - "type": "audiencelist", - "properties": { - "listData": {} - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "audienceId": "test-audienceId", - "audienceName": "test-audienceName", - "accessToken": "test-accessToken", - "clientSideId": "test-clientSideId" - } - } - }, - "output": { - "error": "`listData` is empty. Aborting message." - } - }, - { - "description": "List data is empty", - "input": { - "message": { - "userId": "user123", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "identifier": "" - }, - { - "identifier": "" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "audienceId": "test-audienceId", - "audienceName": "test-audienceName", - "accessToken": "test-accessToken", - "clientSideId": "test-clientSideId" - } - } - }, - "output": { - "error": "`listData` is empty. Aborting message." - } - }, - { - "description": "Unsupported action type", - "input": { - "message": { - "userId": "user123", - "type": "audiencelist", - "properties": { - "listData": { - "update": [ - { - "identifier": "alex@email.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "audienceId": "test-audienceId", - "audienceName": "test-audienceName", - "accessToken": "test-accessToken", - "clientSideId": "test-clientSideId" - } - } - }, - "output": { - "error": "Unsupported action type. Aborting message." - } - }, - { - "description": "Add members to the audience list", - "input": { - "message": { - "userId": "user123", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "identifier": "alex@email.com" - }, - { - "identifier": "ryan@email.com" - }, - { - "identifier": "van@email.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "audienceId": "test-audienceId", - "audienceName": "test-audienceName", - "accessToken": "test-accessToken", - "clientSideId": "test-clientSideId" - } - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://app.launchdarkly.com/api/v2/segment-targets/rudderstack", - "headers": { - "Authorization": "test-accessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "environmentId": "test-clientSideId", - "cohortId": "test-audienceId", - "cohortName": "test-audienceName", - "listData": { - "add": [ - { - "id": "alex@email.com" - }, - { - "id": "ryan@email.com" - } - ], - "remove": [] - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://app.launchdarkly.com/api/v2/segment-targets/rudderstack", - "headers": { - "Authorization": "test-accessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "environmentId": "test-clientSideId", - "cohortId": "test-audienceId", - "cohortName": "test-audienceName", - "listData": { - "add": [ - { - "id": "van@email.com" - } - ], - "remove": [] - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Remove members from the audience list", - "input": { - "message": { - "userId": "user123", - "type": "audiencelist", - "properties": { - "listData": { - "remove": [ - { - "identifier": "alex@email.com" - }, - { - "identifier": "ryan@email.com" - }, - { - "identifier": "van@email.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "audienceId": "test-audienceId", - "audienceName": "test-audienceName", - "accessToken": "test-accessToken", - "clientSideId": "test-clientSideId" - } - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://app.launchdarkly.com/api/v2/segment-targets/rudderstack", - "headers": { - "Authorization": "test-accessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "environmentId": "test-clientSideId", - "cohortId": "test-audienceId", - "cohortName": "test-audienceName", - "listData": { - "remove": [ - { - "id": "alex@email.com" - }, - { - "id": "ryan@email.com" - } - ], - "add": [] - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://app.launchdarkly.com/api/v2/segment-targets/rudderstack", - "headers": { - "Authorization": "test-accessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "environmentId": "test-clientSideId", - "cohortId": "test-audienceId", - "cohortName": "test-audienceName", - "listData": { - "remove": [ - { - "id": "van@email.com" - } - ], - "add": [] - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Add/Remove members", - "input": { - "message": { - "userId": "user123", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "identifier": "alex@email.com" - }, - { - "userId": "user1" - } - ], - "remove": [ - { - "identifier": "ryan@email.com" - }, - { - "identifier": "van@email.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "audienceId": "test-audienceId", - "audienceName": "test-audienceName", - "accessToken": "test-accessToken", - "clientSideId": "test-clientSideId" - } - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://app.launchdarkly.com/api/v2/segment-targets/rudderstack", - "headers": { - "Authorization": "test-accessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "environmentId": "test-clientSideId", - "cohortId": "test-audienceId", - "cohortName": "test-audienceName", - "listData": { - "add": [ - { - "id": "alex@email.com" - } - ], - "remove": [ - { - "id": "ryan@email.com" - } - ] - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://app.launchdarkly.com/api/v2/segment-targets/rudderstack", - "headers": { - "Authorization": "test-accessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "environmentId": "test-clientSideId", - "cohortId": "test-audienceId", - "cohortName": "test-audienceName", - "listData": { - "add": [], - "remove": [ - { - "id": "van@email.com" - } - ] - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - } -] diff --git a/test/__tests__/data/leanplum_input.json b/test/__tests__/data/leanplum_input.json deleted file mode 100644 index d1a3741083..0000000000 --- a/test/__tests__/data/leanplum_input.json +++ /dev/null @@ -1,924 +0,0 @@ -[ - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "id2", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key__", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "id3", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "id3", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "page", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "name": "Test Page Name", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "id3", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "page", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "id4", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "id5", - "properties": { - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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)" - }, - "integrations": { - "All": true - }, - "messageId": "id6", - "properties": { - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "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 - }, - "traits": { - "id": "some_developer_id", - "createAt": "2019-10-14T09:03:17.562Z", - "address": { - "country": "USA", - "city": "NY" - }, - "country": "India", - "city": "Delhi" - } - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": { - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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)" - }, - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "account: logged out", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "track", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "account: logged out", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "MainActivity", - "automatic": true, - "total": 2.45, - "currency": "USD" - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "track", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - } -] diff --git a/test/__tests__/data/leanplum_output.json b/test/__tests__/data/leanplum_output.json deleted file mode 100644 index 8de34e5c8f..0000000000 --- a/test/__tests__/data/leanplum_output.json +++ /dev/null @@ -1,703 +0,0 @@ -[ - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key__", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key__", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "state": "Test Page Name", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - { - "statusCode": 400, - "error": "Missing required value from [\"properties.name\",\"event\"]" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "setUserAttributes" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "00000000000000000000000000", - "newUserId": "some_developer_id", - "userAttributes": { - "id": "some_developer_id", - "createAt": "2019-10-14T09:03:17.562Z", - "address": { "country": "USA", "city": "NY" }, - "country": "India", - "city": "Delhi" - }, - "created": 1571043798, - "locale": "en-US", - "country": "USA", - "city": "NY", - "time": 1571043798, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "advance" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - { - "statusCode": 400, - "error": "Missing required value from [\"properties.name\",\"event\"]" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "track" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "event": "account: logged out", - "deviceId": "5094f5704b9cf2b3", - "params": { "name": "MainActivity", "automatic": true }, - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "start" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { "anonymousId": "5094f5704b9cf2b3" }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { "Content-Type": "application/json" }, - "params": { "action": "track" }, - "body": { - "JSON": { - "apiVersion": "1.0.6", - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "userId": "5094f5704b9cf2b3", - "event": "account: logged out", - "deviceId": "5094f5704b9cf2b3", - "params": { - "name": "MainActivity", - "automatic": true, - "total": 2.45, - "currency": "USD" - }, - "value": 2.45, - "currencyCode": "USD", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ] -] diff --git a/test/__tests__/data/leanplum_router_input.json b/test/__tests__/data/leanplum_router_input.json deleted file mode 100644 index ba36628209..0000000000 --- a/test/__tests__/data/leanplum_router_input.json +++ /dev/null @@ -1,142 +0,0 @@ -[ - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "LeanPlumIntegrationAndroid", - "namespace": "com.android.SampleLeanPlum", - "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": "id2", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key__", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - } -] diff --git a/test/__tests__/data/leanplum_router_output.json b/test/__tests__/data/leanplum_router_output.json deleted file mode 100644 index e32c53cf83..0000000000 --- a/test/__tests__/data/leanplum_router_output.json +++ /dev/null @@ -1,176 +0,0 @@ -[ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "action": "start" - }, - "body": { - "JSON": { - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "apiVersion": "1.0.6", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { - "anonymousId": "5094f5704b9cf2b3" - }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "action": "advance" - }, - "body": { - "JSON": { - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "apiVersion": "1.0.6", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - }, - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "action": "start" - }, - "body": { - "JSON": { - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key__", - "apiVersion": "1.0.6", - "userId": "5094f5704b9cf2b3", - "deviceId": "5094f5704b9cf2b3", - "appVersion": "1.0", - "systemName": "Android", - "systemVersion": "8.1.0", - "deviceName": "generic_x86", - "deviceModel": "Android SDK built for x86", - "userAttributes": { - "anonymousId": "5094f5704b9cf2b3" - }, - "locale": "en-US", - "timezone": "Asia/Kolkata", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.leanplum.com/api", - "headers": { - "Content-Type": "application/json" - }, - "params": { - "action": "advance" - }, - "body": { - "JSON": { - "appId": "leanplum_application_id", - "clientKey": "leanplum_client_key__", - "apiVersion": "1.0.6", - "userId": "5094f5704b9cf2b3", - "state": "MainActivity", - "deviceId": "5094f5704b9cf2b3", - "time": 1584003903, - "devMode": true - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "5094f5704b9cf2b3" - } - ], - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "applicationId": "leanplum_application_id", - "clientKey": "leanplum_client_key__", - "isDevelop": true, - "useNativeSDK": false, - "sendEvents": false - } - } - } -] diff --git a/test/__tests__/data/lemnisk.json b/test/__tests__/data/lemnisk.json deleted file mode 100644 index 3dc295da58..0000000000 --- a/test/__tests__/data/lemnisk.json +++ /dev/null @@ -1,983 +0,0 @@ -[ - { - "description": "Error: Event Type is required ", - "input": { - "message": { - "userId": "user123", - "event": "Product Reviewed", - "properties": { - "review_body": "Average product, expected much more." - }, - "context": { - "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" - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - } - }, - "output": { - "error": "Event type is required" - } - }, - { - "description": "Error: Pl Track: Invalid Configuration", - "input": { - "message": { - "type": "track", - "properties": { - "product_id": "ab1234", - "rating": 3, - "review_body": "Average product, expected much more.", - "review_id": "12345" - }, - "event": "Product Reviewed", - "context": { - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "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" - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - } - }, - "output": { - "error": "Configuration for Web Mode requires write key and region url" - } - }, - { - "description": "Error: Invalid Configs for Diapi", - "input": { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - }, - "traits": { - "firstName": "test", - "lastName": "rudderlabs", - "role": "Manager", - "address": "Flat No 58 ABC building XYZ Area near PQRS , 354408", - "hasPurchased": "yes", - "email": "abc@xyz.com", - "title": "Mr", - "phone": "9876543212", - "state": "Uttar Pradesh", - "zipcode": "243001", - "prospectOrCustomer": "Prospect", - "country": "India", - "website": "abc.com", - "subscriptionStatus": "New" - } - }, - "messageId": "25ea6605-c788-4cab-8fed-2cf0b831c4a8", - "originalTimestamp": "2020-02-02T00:23:09.544Z", - "receivedAt": "2022-08-17T10:40:21.162+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2022-08-17T10:40:21.728+05:30", - "timestamp": "2020-02-02T05:53:08.977+05:30", - "type": "track", - "userId": "identified user id" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "", - "pl": "", - "passKey": "1234", - "apiKey": "", - "diapi": "https://crux.lemnisk.co/v3/data", - "cloudMode": "server", - "srcId": "1", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - } - }, - "output": { - "error": "Configuration for Server Mode requires Api key, Pass Key and region url" - } - }, - { - "description": "Diapi Platform: Track Call", - "input": { - "message": { - "type": "track", - "properties": { - "product_id": "ab1234", - "rating": 3, - "review_body": "Average product, expected much more.", - "review_id": "12345" - }, - "event": "Product Reviewed", - "context": { - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.9.1" - }, - "traits": { - "email": "a@example.com" - }, - "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" - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "userId": "user123" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "", - "pl": "", - "passKey": "1234", - "apiKey": "abcd", - "diapi": "https://crux.lemnisk.co/v3/data", - "cloudMode": "server", - "srcId": "1", - "diapiWriteKey": "diapi_write_key" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://crux.lemnisk.co/v3/data", - "headers": { - "Content-Type": "application/json", - "x-api-passKey": "1234", - "x-api-key": "abcd" - }, - "params": {}, - "body": { - "JSON": { - "type": "track", - "properties": { - "product_id": "ab1234", - "rating": 3, - "review_body": "Average product, expected much more.", - "review_id": "12345" - }, - "WriteKey": "diapi_write_key", - "eventname": "Product Reviewed", - "userId": "user123", - "email": "a@example.com", - "srcid": "1" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "user123" - } - }, - { - "description": "Error: Message type not supported", - "input": { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - }, - "traits": { - "state": "uttar pradesh" - } - }, - "messageId": "25ea6605-c788-4cab-8fed-2cf0b831c4a8", - "originalTimestamp": "2020-02-02T00:23:09.544Z", - "receivedAt": "2022-08-17T10:40:21.162+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2022-08-17T10:40:21.728+05:30", - "timestamp": "2020-02-02T05:53:08.977+05:30", - "userId": "identified user id", - "type": "Alias" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - } - }, - "output": { - "error": "Event type alias is not supported in Web Cloud Mode" - } - }, - { - "description": " Page Call -> pl Platform ", - "input": { - "message": { - "anonymousId": "anon-id-new", - "channel": "mobile", - "context": { - "app": { - "build": "4", - "name": "RuddCDN" - }, - "page": { - "referrer": "google.com" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "customProp": "customValue" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "name": "Home", - "category": "Profile", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-28T19:53:31.900Z", - "properties": { - "title": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "receivedAt": "2020-09-29T14:50:43.005+05:30", - "sentAt": "2020-09-28T19:53:44.998Z", - "timestamp": "2020-09-29T14:50:29.907+05:30", - "type": "page" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "http://10.11.36.17:8080/analyze/analyze.php", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "type": "page", - "context": { - "app": { - "build": "4", - "name": "RuddCDN" - }, - "page": { - "referrer": "google.com" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "customProp": "customValue" - }, - "userAgent": { - "ua": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - } - }, - "properties": { - "title": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "name": "Home", - "id": "anon-id-new", - "userId": "anon-id-new", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-29T14:50:29.907+05:30", - "writeKey": "pl_writeKey" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - } - }, - { - "description": " Identify Call -> pl Platform ", - "input": { - "message": { - "anonymousId": "anon-id-new", - "channel": "mobile", - "context": { - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "event": "Visited Home", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-28T19:53:31.900Z", - "traits": { - "name": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "receivedAt": "2020-09-29T14:50:43.005+05:30", - "sentAt": "2020-09-28T19:53:44.998Z", - "timestamp": "2020-09-29T14:50:29.907+05:30", - "type": "identify" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "http://10.11.36.17:8080/analyze/analyze.php", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "type": "identify", - "context": { - "userAgent": { - "ua": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - } - }, - "customerProperties": { - "name": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "id": "anon-id-new", - "userId": "anon-id-new", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-29T14:50:29.907+05:30", - "writeKey": "pl_writeKey" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - } - }, - { - "description": " Track Call -> pl Platform ", - "input": { - "message": { - "anonymousId": "anon-id-new", - "channel": "mobile", - "context": { - "app": { - "build": "4", - "name": "RuddCDN" - }, - "page": { - "referrer": "google.com" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "customProp": "customValue" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "event": "Visited Home", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-28T19:53:31.900Z", - "properties": { - "title": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "receivedAt": "2020-09-29T14:50:43.005+05:30", - "sentAt": "2020-09-28T19:53:44.998Z", - "timestamp": "2020-09-29T14:50:29.907+05:30", - "type": "track" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "http://10.11.36.17:8080/analyze/analyze.php", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "type": "track", - "context": { - "app": { - "build": "4", - "name": "RuddCDN" - }, - "page": { - "referrer": "google.com" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "customProp": "customValue" - }, - "userAgent": { - "ua": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - } - }, - "properties": { - "title": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "event": "Visited Home", - "id": "anon-id-new", - "userId": "anon-id-new", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-29T14:50:29.907+05:30", - "writeKey": "pl_writeKey" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - } - } -] diff --git a/test/__tests__/data/lemnisk_router.json b/test/__tests__/data/lemnisk_router.json deleted file mode 100644 index 8599a36445..0000000000 --- a/test/__tests__/data/lemnisk_router.json +++ /dev/null @@ -1,639 +0,0 @@ -[ - { - "description": "Lemnisk batch events", - "input": [ - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "type": "identify" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "", - "pl": "https://crux.lemnisk.co/v2/data", - "passKey": "", - "apiKey": "", - "diapi": " ", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 1 - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "channel": "mobile", - "context": { - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "event": "Visited Home", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-29T14:50:29.907+05:30", - "traits": { - "name": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "receivedAt": "2020-09-29T14:50:43.005+05:30", - "sentAt": "2020-09-28T19:53:44.998Z", - "timestamp": "2020-09-29T14:50:29.907+05:30", - "type": "identify" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - }, - "metadata": { - "anonymousId": "12345", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "DISCORD", - "jobId": 123, - "messageId": "4aaecff2-a513-4bbf-9824-c471f4ac9777", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "channel": "mobile", - "context": { - "app": { - "build": "4", - "name": "RuddCDN" - }, - "page": { - "referrer": "google.com" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "customProp": "customValue" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "event": "Visited Home", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-28T19:53:31.900Z", - "properties": { - "title": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "receivedAt": "2020-09-29T14:50:43.005+05:30", - "sentAt": "2020-09-28T19:53:44.998Z", - "timestamp": "2020-09-29T14:50:29.907+05:30", - "type": "track" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "DISCORD", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ], - "output": [ - { - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "", - "pl": "https://crux.lemnisk.co/v2/data", - "passKey": "", - "apiKey": "", - "diapi": " ", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - }, - "metadata": [ - { - "jobId": 1 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - }, - "batched": false, - "statusCode": 400, - "error": "Configuration for Web Mode requires write key and region url" - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "http://10.11.36.17:8080/analyze/analyze.php", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "type": "identify", - "context": { - "userAgent": { - "ua": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - } - }, - "customerProperties": { - "name": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "id": "anon-id-new", - "userId": "anon-id-new", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-29T14:50:29.907+05:30", - "writeKey": "pl_writeKey" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - }, - "metadata": [ - { - "anonymousId": "12345", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "DISCORD", - "jobId": 123, - "messageId": "4aaecff2-a513-4bbf-9824-c471f4ac9777", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - ], - "batched": false, - "statusCode": 200 - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "http://10.11.36.17:8080/analyze/analyze.php", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "type": "track", - "context": { - "app": { - "build": "4", - "name": "RuddCDN" - }, - "page": { - "referrer": "google.com" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "customProp": "customValue" - }, - "userAgent": { - "ua": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - } - }, - "properties": { - "title": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "event": "Visited Home", - "id": "anon-id-new", - "userId": "anon-id-new", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-29T14:50:29.907+05:30", - "writeKey": "pl_writeKey" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "anon-id-new" - }, - "destination": { - "id": "2JAdls99p6UxoFNSKGwvh0aIt7E", - "name": "Lemnisk Marketing Automation", - "enabled": true, - "Config": { - "plWriteKey": "pl_writeKey", - "pl": "http://10.11.36.17:8080/analyze/analyze.php", - "passKey": "", - "apiKey": "", - "diapi": "", - "cloudMode": "web", - "srcId": "", - "diapiWriteKey": "" - }, - "destinationDefinition": { - "config": { - "transformAt": "processor", - "transformAtV1": "processor", - "saveDestinationResponse": true, - "includeKeys": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "srcId" - ], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track", "identify", "page"], - "destConfig": { - "defaultConfig": [ - "apiKey", - "passKey", - "cloudMode", - "diapi", - "pl", - "diapiWriteKey", - "plWriteKey", - "deviceModeWriteKey", - "srcId" - ] - }, - "secretKeys": ["apiKey", "passKey", "plWriteKey", "diapiWriteKey"] - }, - "responseRules": null, - "id": "1j9dYVEplxUC5swbXkpK9fYT7uk", - "name": "LEMNISK_MARKETING_AUTOMATION", - "displayName": "Lemnisk Marketing Automation", - "createdAt": "2022-12-12T21:58:08.637Z" - }, - "rootStore": null, - "isProcessorEnabled": true - }, - "metadata": [ - { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "DISCORD", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - ], - "batched": false, - "statusCode": 200 - } - ] - } -] diff --git a/test/__tests__/data/lytics_cdk_output.json b/test/__tests__/data/lytics_cdk_output.json deleted file mode 100644 index ee8d3e7254..0000000000 --- a/test/__tests__/data/lytics_cdk_output.json +++ /dev/null @@ -1,342 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "_e": "Order Completed", - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "message Type is not present. Aborting message." - }, - { - "statusCode": 400, - "error": "message type gone is not supported" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "_e": "Order Completed", - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "ApplicationLoaded", - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "ApplicationLoaded", - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise", - "first_name": "Rudderstack", - "last_name": "Test" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/lytics_input.json b/test/__tests__/data/lytics_input.json deleted file mode 100644 index 4ea3001e2e..0000000000 --- a/test/__tests__/data/lytics_input.json +++ /dev/null @@ -1,948 +0,0 @@ -[ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "timestamp": "2020-10-16T08:10:12.782Z", - "originalTimestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "type": "track", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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", - "originalTimestamp": "2020-10-16T08:26:14.938Z", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:26:14.939Z", - "timestamp": "2020-10-16T13:56:14.944+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "token": "desuhere", - "type": "android" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "531e3507-1ef5-4a06-b83c-cb521ff34f0c", - "originalTimestamp": "2020-10-16T08:53:29.386Z", - "receivedAt": "2020-10-16T14:23:29.402+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:53:29.387Z", - "timestamp": "2020-10-16T14:23:29.401+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "a61357dd-e29e-4033-b1af-029625947fec", - "originalTimestamp": "2020-10-16T09:05:11.001Z", - "receivedAt": "2020-10-16T14:35:11.014+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:05:11.002Z", - "timestamp": "2020-10-16T14:35:11.013+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "9eb2f7c0-d896-494e-b105-60f604ce2906", - "originalTimestamp": "2020-10-16T09:09:31.465Z", - "receivedAt": "2020-10-16T14:39:31.468+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:09:31.466Z", - "timestamp": "2020-10-16T14:39:31.467+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "9eb2f7c0-d896-494e-b105-60f604ce2906", - "originalTimestamp": "2020-10-16T09:09:31.465Z", - "receivedAt": "2020-10-16T14:39:31.468+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:09:31.466Z", - "timestamp": "2020-10-16T14:39:31.467+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "9eb2f7c0-d896-494e-b105-60f604ce2906", - "originalTimestamp": "2020-10-16T09:09:31.465Z", - "receivedAt": "2020-10-16T14:39:31.468+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:09:31.466Z", - "timestamp": "2020-10-16T14:39:31.467+05:30", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "9eb2f7c0-d896-494e-b105-60f604ce2906", - "originalTimestamp": "2020-10-16T09:09:31.465Z", - "receivedAt": "2020-10-16T14:39:31.468+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:09:31.466Z", - "timestamp": "2020-10-16T14:39:31.467+05:30", - "type": "gone", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "originalTimestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "timestamp": "2020-10-16T13:40:12.791+05:30", - "type": "track", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "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": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "destination_props": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "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": "testhubspot2@email.com", - "name": "Test Hubspot", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "e8585d9a-7137-4223-b295-68ab1b17dad7", - "originalTimestamp": "2019-10-15T09:35:31.289Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z", - "destination_props": { - "AF": { - "af_uid": "afUid" - } - } - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise", - "firstName": "Rudderstack", - "lastname": "Test" - }, - "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", - "originalTimestamp": "2020-10-16T08:26:14.938Z", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:26:14.939Z", - "timestamp": "2020-10-16T13:56:14.944+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/lytics_output.json b/test/__tests__/data/lytics_output.json deleted file mode 100644 index 8a1949bbb4..0000000000 --- a/test/__tests__/data/lytics_output.json +++ /dev/null @@ -1,342 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "_e": "Order Completed", - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "\"type\" is a required field and it must be a string" - }, - { - "statusCode": 400, - "error": "message type \"gone\" not supported for \"lytics\"" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "_e": "Order Completed", - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "ApplicationLoaded", - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "ApplicationLoaded", - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise", - "first_name": "Rudderstack", - "last_name": "Test" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/lytics_router_input.json b/test/__tests__/data/lytics_router_input.json deleted file mode 100644 index 425a7b1e3e..0000000000 --- a/test/__tests__/data/lytics_router_input.json +++ /dev/null @@ -1,194 +0,0 @@ -[ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "timestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "type": "track", - "userId": "rudder123" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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", - "originalTimestamp": "2020-10-16T08:26:14.938Z", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:26:14.939Z", - "timestamp": "2020-10-16T13:56:14.944+05:30", - "type": "identify", - "userId": "rudder123" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/lytics_router_output.json b/test/__tests__/data/lytics_router_output.json deleted file mode 100644 index 2ac41bea00..0000000000 --- a/test/__tests__/data/lytics_router_output.json +++ /dev/null @@ -1,131 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "_e": "Order Completed", - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.lytics.io/collect/json/default?access_token=dummyApiKey", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_id": "rudder123", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "stream": "default" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/mailchimp_batch_input.json b/test/__tests__/data/mailchimp_batch_input.json deleted file mode 100644 index ea382b1d89..0000000000 --- a/test/__tests__/data/mailchimp_batch_input.json +++ /dev/null @@ -1,225 +0,0 @@ -[ - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey-dummyApiKey", - "audienceId": "1232yyqw22", - "datacenterId": "us20" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 2 - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email_address", - "id": "bob.dole@initech.com", - "type": "audience" - } - ], - "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_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "traits": { - "merge_fields": { - "FIRSTNAME": "Bob" - }, - "status": "subscribed" - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey-dummyApiKey", - "audienceId": "1232yyqw22", - "datacenterId": "us20" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 3 - }, - "message": { - "type": "identify", - "traits": { - "status": "subscribed" - }, - "userId": "emrichardson820+22822@gmail.com", - "channel": "sources", - "context": { - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - }, - "externalId": [ - { - "id": "emrichardson820+22822@gmail.com", - "type": "MAILCHIMP-92e1f1ad2c", - "identifierType": "email_address" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a", - "messageId": "b3bee036-fc26-4f6d-9867-c17f85708a82" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey-dummyApiKey", - "audienceId": "1232yyqw22", - "datacenterId": "us20" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 4 - }, - "message": { - "type": "identify", - "traits": { - "status": "subscribed" - }, - "userId": "emrichardson820+22822@gmail.com", - "channel": "sources", - "context": { - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - }, - "externalId": [ - { - "id": "emrichardson820+22822@gmail.com", - "type": "MAILCHIMP-92e1f1ad2c", - "identifierType": "email_address" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a", - "messageId": "b3bee036-fc26-4f6d-9867-c17f85708a82" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey-dummyApiKey", - "audienceId": "1232yyqw22", - "datacenterId": "us20" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 5 - }, - "message": { - "type": "identify", - "traits": { - "status": "subscrib" - }, - "userId": "emrichardson820+22822@gmail.com", - "channel": "sources", - "context": { - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - }, - "externalId": [ - { - "id": "emrichardson820+22822@gmail.com", - "type": "MAILCHIMP-92e1f1ad2c", - "identifierType": "email_address" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a", - "messageId": "b3bee036-fc26-4f6d-9867-c17f85708a82" - } - } -] diff --git a/test/__tests__/data/mailchimp_batch_output.json b/test/__tests__/data/mailchimp_batch_output.json deleted file mode 100644 index fac07b6a46..0000000000 --- a/test/__tests__/data/mailchimp_batch_output.json +++ /dev/null @@ -1,100 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://us20.api.mailchimp.com/3.0/lists/1232yyqw22?skip_merge_validation=false&skip_duplicate_check=false", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmFwaUtleS1kdW1teUFwaUtleQ==" - }, - "params": {}, - "body": { - "JSON": { - "members": [ - { - "merge_fields": { - "FIRSTNAME": "Bob" - }, - "status": "subscribed", - "email_address": "bob.dole@initech.com" - }, - { - "status": "subscribed", - "email_address": "emrichardson820+22822@gmail.com" - }, - { - "status": "subscribed", - "email_address": "emrichardson820+22822@gmail.com" - } - ], - "update_existing": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - }, - { - "jobId": 3 - }, - { - "jobId": 4 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey-dummyApiKey", - "audienceId": "1232yyqw22", - "datacenterId": "us20" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey-dummyApiKey", - "audienceId": "1232yyqw22", - "datacenterId": "us20" - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": [ - { - "jobId": 5 - } - ], - "batched": false, - "statusCode": 400, - "error": "The status must be one of [subscribed, unsubscribed, cleaned, pending, transactional]", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - } -] diff --git a/test/__tests__/data/mailchimp_input.json b/test/__tests__/data/mailchimp_input.json deleted file mode 100644 index 20b7ba0fc0..0000000000 --- a/test/__tests__/data/mailchimp_input.json +++ /dev/null @@ -1,1299 +0,0 @@ -[ - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com", - "firstName": "Bob", - "lastName": "Dole", - "zip": "123", - "state": "test", - "city": "test", - "addressLine1": "test", - "birthday": "2000-05-06" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "MailChimp": { - "subscriptionStatus": "subscribed" - } - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "Titli Test", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey-dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "type": "identify", - "sentAt": "2021-05-18T06:58:57.186Z", - "userId": "test.rudderlabs@yara.com", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://app.rudderstack.com/sources/1qHR2Qzd894ievNGc4aBHmjltLD", - "path": "/sources/1qHR2Qzd894ievNGc4aBHmjltLD", - "title": "RudderStack", - "search": "", - "tab_url": "https://app.rudderstack.com/sources/1qHR2Qzd894ievNGc4aBHmjltLD", - "referrer": "$direct", - "initial_referrer": "https://www.google.com/", - "referring_domain": "", - "initial_referring_domain": "www.google.com" - }, - "locale": "en-US", - "screen": { - "width": 1792, - "height": 1120, - "density": 2 - }, - "traits": { - "name": "test rudderlabs", - "email": "test.rudderlabs@yara.com", - "userId": "1sWVaQTxoVwjvShC0295E6OqMaP", - "first_login": false, - "workspaceId": "1jWrHYPjNGSHbvKwzow0ZFPIQll", - "account_type": "invited" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" - }, - "rudderId": "6d612dda-9c8c-4062-9d09-af9425b846ce", - "messageId": "c6d49688-89f2-45cf-b061-0ae3c212a4e5", - "timestamp": "2021-05-18T06:58:57.811Z", - "receivedAt": "2021-05-18T06:58:57.812Z", - "request_ip": "122.172.221.51", - "anonymousId": "6914679f-fd34-45ef-86e0-4930e6e8b91a", - "integrations": { - "Salesforce": true - }, - "originalTimestamp": "2021-05-18T06:58:57.185Z" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "Titli Test", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "type": "page", - "sentAt": "2021-05-18T07:02:17.675Z", - "userId": "", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://app.rudderstack.com/signup?type=freetrial", - "path": "/signup", - "title": "", - "search": "?type=freetrial", - "tab_url": "https://app.rudderstack.com/signup?type=freetrial", - "referrer": "https://rudderstack.medium.com/kafka-vs-postgresql-how-we-implemented-our-queueing-system-using-postgresql-ec128650e3e", - "initial_referrer": "https://rudderstack.medium.com/kafka-vs-postgresql-how-we-implemented-our-queueing-system-using-postgresql-ec128650e3e", - "referring_domain": "rudderstack.medium.com", - "initial_referring_domain": "rudderstack.medium.com" - }, - "locale": "en-GB", - "screen": { - "density": 2 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" - }, - "rudderId": "4dbe224c-6aea-4d89-8da6-09d27c0d2908", - "messageId": "72df8cb0-54ab-417c-8e87-e97e9d339feb", - "timestamp": "2021-05-18T07:02:18.566Z", - "properties": { - "url": "https://app.rudderstack.com/signup?type=freetrial", - "path": "/signup", - "title": "", - "search": "?type=freetrial", - "tab_url": "https://app.rudderstack.com/signup?type=freetrial", - "referrer": "https://rudderstack.medium.com/kafka-vs-postgresql-how-we-implemented-our-queueing-system-using-postgresql-ec128650e3e", - "initial_referrer": "https://rudderstack.medium.com/kafka-vs-postgresql-how-we-implemented-our-queueing-system-using-postgresql-ec128650e3e", - "referring_domain": "rudderstack.medium.com", - "initial_referring_domain": "rudderstack.medium.com" - }, - "receivedAt": "2021-05-18T07:02:18.566Z", - "request_ip": "162.44.150.11", - "anonymousId": "58ec7b39-48f1-4d83-9d45-a48c64f96fa0", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-05-18T07:02:17.675Z" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "mappedToDestination": true, - "externalId": [ - { - "identifierType": "email_address", - "id": "bob.dole@initech.com", - "type": "audience" - } - ], - "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_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "traits": { - "merge_fields": { - "FIRSTNAME": "Bob" - }, - "status": "subscribed" - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "type": "identify", - "traits": { - "status": "subscri" - }, - "userId": "emrichardson820+22822@gmail.com", - "channel": "sources", - "context": { - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - }, - "externalId": [ - { - "id": "emrichardson820+22822@gmail.com", - "type": "MAILCHIMP-92e1f1ad2c", - "identifierType": "email_address" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a", - "messageId": "b3bee036-fc26-4f6d-9867-c17f85708a82" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud112", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "email": "jhon@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "email": "bob.dole@initech.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "MailChimp": { - "subscriptionStatus": "subscribed" - } - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "test-rudderlabs", - "email": "test-rudderlabs-test@initech.com", - "firstName": "Test", - "lastName": "Rudderlabs" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "test-rudderlabs", - "email": "test-rudderlabs-test@initech.com", - "firstName": "Test", - "lastName": "Rudderlabs" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "test-rudderlabs", - "email": "test-rudderlabs-test@initech.com", - "firstName": "Test", - "lastName": "Rudderlabs" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "test-rudderlabs", - "email": "test-rudderlabs-test@initech.com", - "firstName": "Test", - "lastName": "Rudderlabs" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "group", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments" - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "local testing", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments", - "isSyncing": false - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "local testing", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345" - } - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "local testing", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments", - "isSyncing": false - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "local testing", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments", - "isSyncing": false, - "products": [ - { - "product_id": "123", - "price": "14" - }, - { - "product_id": "123", - "price": 14 - } - ], - "purchased": false - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "local testing", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments", - "isSyncing": false, - "products": [ - { - "product_id": "123", - "price": "14" - }, - { - "product_id": "123", - "price": 14 - } - ], - "purchased": false - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": 22, - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments", - "isSyncing": false, - "products": [ - { - "product_id": "123", - "price": "14" - }, - { - "product_id": "123", - "price": 14 - } - ], - "purchased": false - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "E", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments", - "isSyncing": false, - "products": [ - { - "product_id": "123", - "price": "14" - }, - { - "product_id": "123", - "price": 14 - } - ], - "purchased": false - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "Event Name more than 30 characters abcdefghijklmno", - "userId": "userId12345" - } - } -] diff --git a/test/__tests__/data/mailchimp_output.json b/test/__tests__/data/mailchimp_output.json deleted file mode 100644 index e1a8384242..0000000000 --- a/test/__tests__/data/mailchimp_output.json +++ /dev/null @@ -1,498 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "merge_fields": { - "ADDRESS": { - "addr1": "test", - "city": "test", - "state": "test", - "zip": "123" - }, - "FNAME": "Bob", - "LNAME": "Dole", - "ANONYMOUSI": "userId12345", - "BIRTHDAY": "05/06" - }, - "email_address": "bob.dole@initech.com", - "status": "subscribed" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "status": "subscribed", - "email_address": "bob.dole@initech.com", - "merge_fields": { - "ANONYMOUSI": "userId12345" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "error": "User does not have access to the requested operation", - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "Titli Test", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey-dummyApiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "Titli Test", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apiKey", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "error": "message type page is not supported" - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "merge_fields": { - "FIRSTNAME": "Bob" - }, - "status": "subscribed", - "email_address": "bob.dole@initech.com" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "94f71917d8522770c97449b0c90caa4c-usXX", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "error": "The status must be one of [subscribed, unsubscribed, cleaned, pending, transactional]" - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "ff21810ddc", - "datacenterId": "us14" - }, - "Enabled": true, - "Transformations": [] - }, - "statusCode": 400, - "error": "Email is required for identify", - "statTags": { - "destination": "mailchimp", - "stage": "transform", - "scope": "exception" - } - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "status": "subscribed", - "email_address": "jhon@gmail.com" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "audienceId": "aud112", - "version": "1", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud112/members/7f3863b197eeff650876bb89eca08e57" - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "email_address": "bob.dole@initech.com", - "status": "subscribed" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "audienceId": "aud111", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab" - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "status": "subscribed", - "email_address": "bob.dole@initech.com" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "error": "API Key not found. Aborting" - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "awesrdcfgvhbjnkkjhgf", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "error": "Audience Id not found. Aborting" - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "aud111", - "datacenterId": "" - }, - "Enabled": true, - "Transformations": [] - }, - "error": "DataCenter Id not found. Aborting" - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "zesrxdthfcjg345yruikyhntbgrafvd", - "audienceId": "aud111", - "datacenterId": "usXX" - }, - "Enabled": true, - "Transformations": [] - }, - "error": "message type group is not supported" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "name": "local_testing", - "occurred_at": "2019-11-15T10:26:53+00:00", - "properties": { - "brand": "Aster", - "product": "Garments" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "name": "local_testing", - "occurred_at": "2019-11-15T10:26:53+00:00", - "is_syncing": false, - "properties": { - "brand": "Aster", - "product": "Garments" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "error": "Email is required for track" - }, - { - "error": "Missing required value from \"event\"" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "name": "local_testing", - "occurred_at": "2019-11-15T10:26:53+00:00" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "name": "local_testing", - "occurred_at": "2019-11-15T10:26:53+00:00", - "is_syncing": false, - "properties": { - "brand": "Aster", - "product": "Garments", - "products": "[{\"product_id\":\"123\",\"price\":\"14\"},{\"product_id\":\"123\",\"price\":14}]", - "purchased": "false" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "name": "22", - "occurred_at": "2019-11-15T10:26:53+00:00", - "is_syncing": false, - "properties": { - "brand": "Aster", - "product": "Garments", - "products": "[{\"product_id\":\"123\",\"price\":\"14\"},{\"product_id\":\"123\",\"price\":14}]", - "purchased": "false" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "ff21810ddc", - "datacenterId": "us14" - }, - "Enabled": true, - "Transformations": [] - }, - "statusCode": 400, - "error": "Event name should be between 2 and 30 characters", - "statTags": { - "destination": "mailchimp", - "stage": "transform", - "scope": "exception" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "dummyApiKey", - "audienceId": "ff21810ddc", - "datacenterId": "us14" - }, - "Enabled": true, - "Transformations": [] - }, - "statusCode": 400, - "error": "Event name should be between 2 and 30 characters", - "statTags": { - "destination": "mailchimp", - "stage": "transform", - "scope": "exception" - } - } -] diff --git a/test/__tests__/data/mailchimp_router_input.json b/test/__tests__/data/mailchimp_router_input.json deleted file mode 100644 index e3cdbdddf5..0000000000 --- a/test/__tests__/data/mailchimp_router_input.json +++ /dev/null @@ -1,347 +0,0 @@ -[ - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 2 - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com", - "firstName": "Bob", - "lastName": "Dole" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "21e475b2-3694-477b-afb6-5b94a81aac21", - "originalTimestamp": "2019-11-15T10:22:32Z", - "receivedAt": "2019-11-15T15:52:37+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:22:37Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:52:32+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 3 - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "MailChimp": { - "subscriptionStatus": "subscribed" - } - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 4 - }, - "message": { - "anonymousId": "userId12345", - "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 - }, - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36" - }, - "integrations": { - "MailChimp": { - "subscriptionStatus": "subscrib" - } - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "request_ip": "[::1]:62921", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "identify", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 5 - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments" - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "local testing", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 6 - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments", - "is_syncing": false - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "userId": "userId12345" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": { - "jobId": 7 - }, - "message": { - "anonymousId": "userId12345", - "channel": "web", - "context": { - "traits": { - "anonymousId": "userId12345", - "email": "bob.dole@initech.com" - } - }, - "properties": { - "brand": "Aster", - "product": "Garments", - "isSyncing": false, - "products": [ - { - "product_id": "123", - "price": "14" - }, - { - "product_id": "123", - "price": 14 - } - ], - "purchased": false - }, - "messageId": "6d1f3ca8-e2d0-4d34-9926-44596171af0c", - "originalTimestamp": "2019-11-15T10:26:53Z", - "receivedAt": "2019-11-15T15:56:58+05:30", - "sentAt": "2019-11-15T10:26:58Z", - "source_id": "1TdhTcwsUVOeEMWyPUpQIgF3pYr", - "timestamp": "2019-11-15T15:56:53+05:30", - "type": "track", - "event": "local testing", - "userId": "userId12345" - } - } -] diff --git a/test/__tests__/data/mailchimp_router_output.json b/test/__tests__/data/mailchimp_router_output.json deleted file mode 100644 index 3a3eec40a9..0000000000 --- a/test/__tests__/data/mailchimp_router_output.json +++ /dev/null @@ -1,238 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111?skip_merge_validation=true&skip_duplicate_check=false", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmFwaWtleQ==" - }, - "params": {}, - "body": { - "JSON": { - "members": [ - { - "email_address": "bob.dole@initech.com", - "merge_fields": { - "FNAME": "Bob", - "LNAME": "Dole", - "ANONYMOUSI": "userId12345" - }, - "status": "subscribed" - }, - { - "email_address": "bob.dole@initech.com", - "merge_fields": { - "ANONYMOUSI": "userId12345" - }, - "status": "subscribed" - } - ], - "update_existing": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - }, - { - "jobId": 3 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmFwaWtleQ==" - }, - "params": {}, - "body": { - "JSON": { - "name": "local_testing", - "occurred_at": "2019-11-15T10:26:53+00:00", - "properties": { - "brand": "Aster", - "product": "Garments" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - "metadata": [ - { - "jobId": 5 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic YXBpS2V5OmFwaWtleQ==" - }, - "params": {}, - "body": { - "JSON": { - "name": "local_testing", - "occurred_at": "2019-11-15T10:26:53+00:00", - "is_syncing": false, - "properties": { - "brand": "Aster", - "product": "Garments", - "products": "[{\"product_id\":\"123\",\"price\":\"14\"},{\"product_id\":\"123\",\"price\":14}]", - "purchased": "false" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "audienceId": "aud111" - }, - "metadata": [ - { - "jobId": 7 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": [ - { - "jobId": 6 - } - ], - "batched": false, - "statusCode": 400, - "error": "Missing required value from \"event\"", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "destination": { - "ID": "1Tdi0lpXwSVwXG1lcdP2pXHKrJ6", - "Name": "test-mc", - "DestinationDefinition": { - "ID": "1SujZGrVEPqYmpUJcV4vSl9tfxn", - "Name": "MC", - "DisplayName": "MailChimp" - }, - "Config": { - "apiKey": "apikey", - "audienceId": "aud111", - "datacenterId": "usXX", - "enableMergeFields": true - }, - "Enabled": true, - "Transformations": [] - }, - "metadata": [ - { - "jobId": 4 - } - ], - "batched": false, - "statusCode": 400, - "error": "The status must be one of [subscribed, unsubscribed, cleaned, pending, transactional]", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - } -] diff --git a/test/__tests__/data/mailjet.json b/test/__tests__/data/mailjet.json deleted file mode 100644 index 86e49f924d..0000000000 --- a/test/__tests__/data/mailjet.json +++ /dev/null @@ -1,145 +0,0 @@ -[ - { - "description": "No Message type", - "input": { - "message": { - "userId": "test@123", - "context": { - "traits": { - "email": "test@rudderstack.com", - "username": "Samle_putUserName", - "firstName": "uday" - } - }, - "integrations": { - "All": true, - "user.com": { - "lookup": "email" - } - } - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret" - } - } - }, - "output": { - "error": "Event type is required" - } - }, - { - "description": "Unsupported Type", - "input": { - "message": { - "userId": "test@123", - "type": "trackUser", - "context": { - "traits": { - "email": "test@rudderstack.com", - "firstName": "test", - "lastName": "rudderstack", - "age": 15, - "gender": "male", - "status": "user", - "city": "Kalkata", - "country": "india", - "tags": ["productuser"], - "phone": "9225467887" - } - } - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret" - } - } - }, - "output": { - "error": "Event type \"trackuser\" is not supported" - } - }, - { - "description": "MailJet identify call without an email", - "input": { - "message": { - "userId": "test@123", - "type": "identify", - "context": { - "traits": { - "firstName": "test", - "lastName": "rudderstack", - "age": 15, - "gender": "male", - "status": "user", - "city": "Kalkata", - "country": "india", - "tags": ["productuser"], - "phone": "9225467887" - } - } - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret" - } - } - }, - "output": { - "error": "Missing required value from \"email\"" - } - }, - { - "description": "Mailjet identify call without batching", - "input": { - "message": { - "userId": "user@45", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - } - } - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "", - "headers": {}, - "params": {}, - "body": { - "JSON": { - "email": "test@user.com", - "properties": { "country": "india" } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "listId": "58578", - "action": "addnoforce" - } - } -] diff --git a/test/__tests__/data/mailjet_batch.json b/test/__tests__/data/mailjet_batch.json deleted file mode 100644 index 10c2a863d0..0000000000 --- a/test/__tests__/data/mailjet_batch.json +++ /dev/null @@ -1,640 +0,0 @@ -[ - { - "description": "batching with 1 listId and 1 action", - "input": [ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "userId": "user@45", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - } - } - } - } - ], - "output": [ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailjet.com/v3/REST/contactslist/58578/managemanycontacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=" - }, - "params": {}, - "body": { - "FORM": {}, - "JSON": { - "Action": "addnoforce", - "Contacts": [ - { - "email": "test@user.com", - "properties": { "country": "india" } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [ - { - "from": "userCountry", - "to": "country" - } - ] - } - } - } - ] - }, - { - "description": "batching with multiple listId and multiple action combinations", - "input": [ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "userId": "user@45", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - } - } - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 2 - }, - "message": { - "userId": "user@46", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test2@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - }, - "externalId": [ - { - "type": "listId", - "id": "58570" - } - ] - }, - "integrations": { - "All": true, - "mailjet": { - "Action": "unsub" - } - } - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 3 - }, - "message": { - "userId": "user@47", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test3@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - }, - "externalId": [ - { - "type": "listId", - "id": "58576" - } - ] - }, - "integrations": { - "All": true, - "mailjet": { - "Action": "addforce" - } - } - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 4 - }, - "message": { - "userId": "user@48", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test4@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - }, - "externalId": [ - { - "type": "listId", - "id": "58576" - } - ] - }, - "integrations": { - "All": true, - "mailjet": { - "Action": "unsub" - } - } - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 5 - }, - "message": { - "userId": "user@49", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test5@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - }, - "externalId": [ - { - "type": "listId", - "id": "585896" - } - ] - }, - "integrations": { - "All": true, - "mailjet": { - "Action": "unsub" - } - } - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 6 - }, - "message": { - "userId": "user@49", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test5@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - }, - "externalId": [ - { - "type": "listId", - "id": "584896" - } - ] - } - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 7 - }, - "message": { - "userId": "user@50", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test10@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - } - } - } - } - ], - "output": [ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailjet.com/v3/REST/contactslist/58578/managemanycontacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=" - }, - "params": {}, - "body": { - "JSON": { - "Action": "addnoforce", - "Contacts": [ - { - "email": "test@user.com", - "properties": { - "country": "india" - } - }, - { - "email": "test10@user.com", - "properties": { - "country": "india" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 1 }, { "jobId": 7 }], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [ - { - "from": "userCountry", - "to": "country" - } - ] - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailjet.com/v3/REST/contactslist/58570/managemanycontacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=" - }, - "params": {}, - "body": { - "JSON": { - "Action": "unsub", - "Contacts": [ - { - "email": "test2@user.com", - "properties": { - "country": "india" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 2 }], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [ - { - "from": "userCountry", - "to": "country" - } - ] - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailjet.com/v3/REST/contactslist/58576/managemanycontacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=" - }, - "params": {}, - "body": { - "JSON": { - "Action": "addforce", - "Contacts": [ - { - "email": "test3@user.com", - "properties": { - "country": "india" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 3 }], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [ - { - "from": "userCountry", - "to": "country" - } - ] - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailjet.com/v3/REST/contactslist/58576/managemanycontacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=" - }, - "params": {}, - "body": { - "JSON": { - "Action": "unsub", - "Contacts": [ - { - "email": "test4@user.com", - "properties": { - "country": "india" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 4 }], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [ - { - "from": "userCountry", - "to": "country" - } - ] - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailjet.com/v3/REST/contactslist/585896/managemanycontacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=" - }, - "params": {}, - "body": { - "JSON": { - "Action": "unsub", - "Contacts": [ - { - "email": "test5@user.com", - "properties": { - "country": "india" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 5 }], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [ - { - "from": "userCountry", - "to": "country" - } - ] - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailjet.com/v3/REST/contactslist/584896/managemanycontacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=" - }, - "params": {}, - "body": { - "JSON": { - "Action": "addnoforce", - "Contacts": [ - { - "email": "test5@user.com", - "properties": { - "country": "india" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 6 }], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [ - { - "from": "userCountry", - "to": "country" - } - ] - } - } - } - ] - } -] diff --git a/test/__tests__/data/mailjet_router.json b/test/__tests__/data/mailjet_router.json deleted file mode 100644 index 7381a9dfa6..0000000000 --- a/test/__tests__/data/mailjet_router.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "input": [ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [{ "from": "userCountry", "to": "country" }] - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "userId": "user@45", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "test@user.com", - "phone": "7267286346802347827", - "userId": "sajal", - "city": "gondal", - "userCountry": "india", - "lastName": "dev", - "username": "Samle_putUserName", - "firstName": "rudderlabs" - } - } - } - } - ], - "output": [ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailjet.com/v3/REST/contactslist/58578/managemanycontacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=" - }, - "params": {}, - "body": { - "FORM": {}, - "JSON": { - "Action": "addnoforce", - "Contacts": [ - { - "email": "test@user.com", - "properties": { "country": "india" } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "apiSecret": "dummyApiSecret", - "listId": "58578", - "contactPropertiesMapping": [ - { - "from": "userCountry", - "to": "country" - } - ] - } - } - } - ] - } -] diff --git a/test/__tests__/data/mailjet_source.json b/test/__tests__/data/mailjet_source.json index ba7f32fb89..6d9562e2c4 100644 --- a/test/__tests__/data/mailjet_source.json +++ b/test/__tests__/data/mailjet_source.json @@ -1,23 +1,25 @@ [ { "description": "MailJet email open event", - "input": { - "event": "open", - "time": 1664443614, - "MessageID": 94857068804950690, - "Message_GUID": "54d6cdec-f659-4547-8926-13d9c4126b82", - "email": "test@rudderstack.com", - "mj_campaign_id": 108760, - "mj_contact_id": 399962859, - "customcampaign": "mj.nl=58424", - "ip": "66.249.84.231", - "geo": "US", - "agent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)", - "CustomID": "", - "Payload": "" - }, - "output": { - "Message": { + "input": [ + { + "event": "open", + "time": 1664443614, + "MessageID": 94857068804950690, + "Message_GUID": "54d6cdec-f659-4547-8926-13d9c4126b82", + "email": "test@rudderstack.com", + "mj_campaign_id": 108760, + "mj_contact_id": 399962859, + "customcampaign": "mj.nl=58424", + "ip": "66.249.84.231", + "geo": "US", + "agent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)", + "CustomID": "", + "Payload": "" + } + ], + "output": [ + { "context": { "library": { "name": "unknown", @@ -52,10 +54,10 @@ "originalTimestamp": "2022-09-29T09:26:54.000Z", "userId": "5b6a3426dba2cb24e4f0aeec43bee9d7" } - } + ] }, { - "description": "MailJet email bounce event", + "description": "MailJet email bounce event where input event is of type ", "input": { "event": "bounce", "time": 1664444171, @@ -70,8 +72,8 @@ "error_related_to": "system", "error": "connection issue" }, - "output": { - "Message": { + "output": [ + { "context": { "library": { "name": "unknown", @@ -102,23 +104,25 @@ "originalTimestamp": "2022-09-29T09:36:11.000Z", "userId": "5b6a3426dba2cb24e4f0aeec43bee9d7" } - } + ] }, { "description": "MailJet email sent event", - "input": { - "event": "sent", - "time": 1664444171, - "MessageID": 92886743924596480, - "Message_GUID": "0230c73a-2b77-4aea-8ef2-ed15d0edc5fd", - "email": "test@rudderstack.com", - "mj_campaign_id": 108892, - "mj_contact_id": 372651182, - "customcampaign": "mj.nl=58486", - "smtp_reply": "250 2.0.0 OK DMARC:Quarantine 1664444171 u17-20020adfdd51000000b0022cc3f2bf13si3225188wrm.271 - gsmtp" - }, - "output": { - "Message": { + "input": [ + { + "event": "sent", + "time": 1664444171, + "MessageID": 92886743924596480, + "Message_GUID": "0230c73a-2b77-4aea-8ef2-ed15d0edc5fd", + "email": "test@rudderstack.com", + "mj_campaign_id": 108892, + "mj_contact_id": 372651182, + "customcampaign": "mj.nl=58486", + "smtp_reply": "250 2.0.0 OK DMARC:Quarantine 1664444171 u17-20020adfdd51000000b0022cc3f2bf13si3225188wrm.271 - gsmtp" + } + ], + "output": [ + { "context": { "library": { "name": "unknown", @@ -149,26 +153,28 @@ "originalTimestamp": "2022-09-29T09:36:11.000Z", "userId": "5b6a3426dba2cb24e4f0aeec43bee9d7" } - } + ] }, { "description": "MailJet email bounce event", - "input": { - "event": "bounce", - "time": 1664444170, - "MessageID": 56013522696710744, - "Message_GUID": "dbe4f0a3-4a5a-4784-a724-a9794d3c0444", - "email": "test@rudderstack.com", - "mj_campaign_id": 108892, - "mj_contact_id": 373142182, - "customcampaign": "mj.nl=58486", - "blocked": false, - "hard_bounce": false, - "error_related_to": "system", - "error": "connection issue" - }, - "output": { - "Message": { + "input": [ + { + "event": "bounce", + "time": 1664444170, + "MessageID": 56013522696710744, + "Message_GUID": "dbe4f0a3-4a5a-4784-a724-a9794d3c0444", + "email": "test@rudderstack.com", + "mj_campaign_id": 108892, + "mj_contact_id": 373142182, + "customcampaign": "mj.nl=58486", + "blocked": false, + "hard_bounce": false, + "error_related_to": "system", + "error": "connection issue" + } + ], + "output": [ + { "context": { "library": { "name": "unknown", @@ -199,6 +205,165 @@ "originalTimestamp": "2022-09-29T09:36:10.000Z", "userId": "5b6a3426dba2cb24e4f0aeec43bee9d7" } - } + ] + }, + { + "description": "MailJet when no email is present", + "input": [ + { + "event": "bounce", + "time": 1664444170, + "MessageID": 56013522696710744, + "Message_GUID": "dbe4f0a3-4a5a-4784-a724-a9794d3c0444", + "mj_campaign_id": 108892, + "mj_contact_id": 373142182, + "customcampaign": "mj.nl=58486", + "blocked": false, + "hard_bounce": false, + "error_related_to": "system", + "error": "connection issue" + } + ], + "output": [ + { + "context": { + "library": { + "name": "unknown", + "version": "unknown" + }, + "integration": { + "name": "MailJet" + }, + "externalId": [ + { + "type": "mailjetContactId", + "id": 373142182 + } + ] + }, + "integrations": { + "MailJet": false + }, + "type": "track", + "event": "bounce", + "properties": { + "customcampaign": "mj.nl=58486", + "mj_campaign_id": 108892 + }, + "originalTimestamp": "2022-09-29T09:36:10.000Z" + } + ] + }, + { + "description": "MailJet Multiple payloads in single request", + "input": [ + { + "event": "open", + "time": 1704458040, + "MessageID": 987654, + "Message_GUID": "876r-oihugyf-7tfygh", + "email": "abc@r.com", + "mj_campaign_id": 321, + "mj_contact_id": 123, + "customcampaign": "test_campaign", + "url": "https://www.example.com/", + "ip": "ip_info", + "geo": "some geo info", + "agent": "mailjet api test" + }, + { + "event": "click", + "time": 1704458041, + "MessageID": 12345234567, + "Message_GUID": "12345-kjhgfd-2efv", + "email": "abc@r.com", + "mj_campaign_id": 12, + "mj_contact_id": 32532, + "customcampaign": "test_campaign", + "url": "https://www.example.com/", + "ip": "ip_info", + "geo": "some geo info", + "agent": "mailjet api test" + } + ], + "output": [ + { + "context": { + "library": { + "name": "unknown", + "version": "unknown" + }, + "ip": "ip_info", + "integration": { + "name": "MailJet" + }, + "traits": { + "email": "abc@r.com" + }, + "page": { + "url": "https://www.example.com/" + }, + "userAgent": "mailjet api test", + "externalId": [ + { + "type": "mailjetContactId", + "id": 123 + } + ] + }, + "integrations": { + "MailJet": false + }, + "type": "track", + "event": "open", + "properties": { + "customcampaign": "test_campaign", + "mj_campaign_id": 321, + "ip": "ip_info", + "url": "https://www.example.com/" + }, + "userId": "593a5aff0b445b3b77a6d9676b7ec86e", + "originalTimestamp": "2024-01-05T12:34:00.000Z" + }, + { + "context": { + "library": { + "name": "unknown", + "version": "unknown" + }, + "page": { + "url": "https://www.example.com/" + }, + + "integration": { + "name": "MailJet" + }, + "traits": { + "email": "abc@r.com" + }, + "userAgent": "mailjet api test", + "ip": "ip_info", + "externalId": [ + { + "type": "mailjetContactId", + "id": 32532 + } + ] + }, + "integrations": { + "MailJet": false + }, + "type": "track", + "event": "click", + "properties": { + "customcampaign": "test_campaign", + "mj_campaign_id": 12, + "ip": "ip_info", + "url": "https://www.example.com/" + }, + "userId": "593a5aff0b445b3b77a6d9676b7ec86e", + "originalTimestamp": "2024-01-05T12:34:01.000Z" + } + ] } ] diff --git a/test/__tests__/data/mailmodo.json b/test/__tests__/data/mailmodo.json deleted file mode 100644 index 30b093a6b2..0000000000 --- a/test/__tests__/data/mailmodo.json +++ /dev/null @@ -1,573 +0,0 @@ -[ - { - "description": "Track call", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "message": { - "event": "trackevent", - "type": "track", - "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", - "avatar": "https://i.pravatar.cc/300" - }, - "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": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailmodo.com/api/v1/addEvent", - "headers": { - "mmApiKey": "dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "email": "firstUser@testmail.com", - "event_name": "trackevent" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Providing empty API Key", - "input": { - "destination": { - "Config": { - "apiKey": "" - } - }, - "message": { - "event": "trackevent", - "type": "track", - "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", - "avatar": "https://i.pravatar.cc/300" - }, - "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": { - "statusCode": 400, - "error": "API Key is not present, Aborting event" - } - }, - { - "description": "Not providing event type", - "input": { - "destination": { - "Config": { - "apiKey": "ahj" - } - }, - "message": { - "event": "trackevent", - "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", - "avatar": "https://i.pravatar.cc/300" - }, - "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": { - "statusCode": 400, - "error": "Event type is required" - } - }, - { - "description": "Page call- not supported", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abcdef" - } - }, - "message": { - "type": "page", - "event": "Email Opened", - "sentAt": "2020-08-28T16:26:16.473Z", - "context": { - "library": { - "name": "analytics-node", - "version": "0.0.3" - } - }, - "_metadata": { - "nodeVersion": "10.22.0" - }, - "messageId": "node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453", - "properties": { - "subject": "resume validate", - "sendtime": "2020-01-01", - "sendlocation": "akashdeep@gmail.com" - }, - "anonymousId": "abcdeeeeeeeexxxx102", - "originalTimestamp": "2020-08-28T16:26:06.468Z" - } - }, - "output": { - "statusCode": 400, - "error": "Event type page is not supported" - } - }, - { - "description": "Identify call- with empty listName", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "" - } - }, - "message": { - "type": "identify", - "event": "Email Opened", - "sentAt": "2020-08-28T16:26:16.473Z", - "context": { - "library": { - "name": "analytics-node", - "version": "0.0.3" - } - }, - "_metadata": { - "nodeVersion": "10.22.0" - }, - "messageId": "node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453", - "properties": { - "email": "test3@abc.com", - "subject": "resume validate", - "sendtime": "2020-01-01", - "sendlocation": "akashdeep@gmail.com" - }, - "anonymousId": "abcdeeeeeeeexxxx102", - "originalTimestamp": "2020-08-28T16:26:06.468Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailmodo.com/api/v1/addToList/batch", - "headers": { - "mmApiKey": "dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "listName": "Rudderstack", - "values": [ - { - "email": "test3@abc.com" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call- with listName", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abcdef" - } - }, - "message": { - "type": "identify", - "event": "Email Opened", - "sentAt": "2020-08-28T16:26:16.473Z", - "context": { - "library": { - "name": "analytics-node", - "version": "0.0.3" - } - }, - "_metadata": { - "nodeVersion": "10.22.0" - }, - "messageId": "node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453", - "properties": { - "email": "test3@abc.com", - "subject": "resume validate", - "sendtime": "2020-01-01", - "sendlocation": "akashdeep@gmail.com" - }, - "anonymousId": "abcdeeeeeeeexxxx102", - "originalTimestamp": "2020-08-28T16:26:06.468Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailmodo.com/api/v1/addToList/batch", - "headers": { - "mmApiKey": "dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "listName": "abcdef", - "values": [ - { - "email": "test3@abc.com" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call- without email", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abcdef" - } - }, - "message": { - "type": "identify", - "event": "Email Opened", - "sentAt": "2020-08-28T16:26:16.473Z", - "context": { - "library": { - "name": "analytics-node", - "version": "0.0.3" - } - }, - "_metadata": { - "nodeVersion": "10.22.0" - }, - "messageId": "node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453", - "properties": { - "subject": "resume validate", - "sendtime": "2020-01-01", - "sendlocation": "akashdeep@gmail.com" - }, - "anonymousId": "abcdeeeeeeeexxxx102", - "originalTimestamp": "2020-08-28T16:26:06.468Z" - } - }, - "output": { - "statusCode": 400, - "error": "Missing required value from [\"traits.email\",\"context.traits.email\",\"properties.email\"]" - } - }, - { - "description": "Identify call- with user properties(address as an object)", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abcdef" - } - }, - "message": { - "type": "identify", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "traits": { - "email": "testabc2@abcd.com", - "name": "Rudder Test", - "firstName": "Test", - "lastName": "Rudderlabs", - "age": 21, - "phone": "9876543210", - "address": { - "street": "A street", - "city": "Vijayawada", - "country": "India" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailmodo.com/api/v1/addToList/batch", - "headers": { - "mmApiKey": "dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "listName": "abcdef", - "values": [ - { - "email": "testabc2@abcd.com", - "data": { - "age": 21, - "first_name": "Test", - "last_name": "Rudderlabs", - "name": "Rudder Test", - "phone": "9876543210", - "trait1": "new-val", - "city": "Vijayawada", - "country": "India", - "address1": "A street Vijayawada India " - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call- with user properties(address as a string)", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abcdef" - } - }, - "message": { - "type": "identify", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "traits": { - "email": "testabc2@abcd.com", - "name": "Rudder Test", - "firstName": "Test", - "lastName": "Rudderlabs", - "age": 21, - "phone": "9876543210", - "address": "welcome to home" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.mailmodo.com/api/v1/addToList/batch", - "headers": { - "mmApiKey": "dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "listName": "abcdef", - "values": [ - { - "email": "testabc2@abcd.com", - "data": { - "age": 21, - "first_name": "Test", - "last_name": "Rudderlabs", - "name": "Rudder Test", - "phone": "9876543210", - "trait1": "new-val", - "address1": "welcome to home" - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/mailmodo_router_input.json b/test/__tests__/data/mailmodo_router_input.json deleted file mode 100644 index 78db8426ff..0000000000 --- a/test/__tests__/data/mailmodo_router_input.json +++ /dev/null @@ -1,141 +0,0 @@ -[ - { - "message": { - "type": "identify", - "event": "Email Opened", - "sentAt": "2020-08-28T16:26:16.473Z", - "context": { - "library": { - "name": "analytics-node", - "version": "0.0.3" - } - }, - "_metadata": { - "nodeVersion": "10.22.0" - }, - "messageId": "node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453", - "properties": { - "email": "test@abc.com", - "subject": "resume validate", - "sendtime": "2020-01-01", - "sendlocation": "akashdeep@gmail.com" - }, - "anonymousId": "abcdeeeeeeeexxxx102", - "originalTimestamp": "2020-08-28T16:26:06.468Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abc" - }, - "Enabled": true - } - }, - { - "message": { - "type": "track", - "event": "Email Opened", - "sentAt": "2020-08-28T16:26:16.473Z", - "context": { - "library": { - "name": "analytics-node", - "version": "0.0.3" - } - }, - "_metadata": { - "nodeVersion": "10.22.0" - }, - "messageId": "node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453", - "properties": { - "email": "test@abc.com", - "subject": "resume validate", - "sendtime": "2020-01-01", - "sendlocation": "akashdeep@gmail.com" - }, - "anonymousId": "abcdeeeeeeeexxxx102", - "originalTimestamp": "2020-08-28T16:26:06.468Z" - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abc" - }, - "Enabled": true - } - }, - { - "message": { - "type": "identify", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "traits": { - "email": "test@abc.com", - "name": "Rudder Test", - "firstName": "Test", - "lastName": "Rudderlabs", - "age": 21, - "phone": "9876543210" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "jobId": 4 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abc" - }, - "Enabled": true - } - }, - { - "message": { - "type": "identify", - "event": "Email Opened", - "sentAt": "2020-08-28T16:26:16.473Z", - "context": { - "library": { - "name": "analytics-node", - "version": "0.0.3" - } - }, - "_metadata": { - "nodeVersion": "10.22.0" - }, - "messageId": "node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453", - "properties": { - "subject": "resume validate", - "sendtime": "2020-01-01", - "sendlocation": "akashdeep@gmail.com" - }, - "anonymousId": "abcdeeeeeeeexxxx102", - "originalTimestamp": "2020-08-28T16:26:06.468Z" - }, - "metadata": { - "jobId": 5 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "" - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/mailmodo_router_output.json b/test/__tests__/data/mailmodo_router_output.json deleted file mode 100644 index 2e2eb9e3fb..0000000000 --- a/test/__tests__/data/mailmodo_router_output.json +++ /dev/null @@ -1,121 +0,0 @@ -[ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "listName": "abc", - "values": [ - { - "email": "test@abc.com" - }, - { - "email": "test@abc.com", - "data": { - "name": "Rudder Test", - "first_name": "Test", - "last_name": "Rudderlabs", - "age": 21, - "phone": "9876543210", - "trait1": "new-val" - } - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "mmApiKey": "dummyApiKey", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.mailmodo.com/api/v1/addToList/batch" - }, - "metadata": [ - { - "jobId": 2 - }, - { - "jobId": 4 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abc" - }, - "Enabled": true - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "email": "test@abc.com", - "event_name": "Email Opened", - "event_properties": { - "email": "test@abc.com", - "sendlocation": "akashdeep@gmail.com", - "sendtime": "2020-01-01", - "subject": "resume validate" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "mmApiKey": "dummyApiKey", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.mailmodo.com/api/v1/addEvent" - }, - "metadata": [ - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "abc" - }, - "Enabled": true - } - }, - { - "batched": false, - "error": "Missing required value from [\"traits.email\",\"context.traits.email\",\"properties.email\"]", - "metadata": [ - { - "jobId": 5 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "listName": "" - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/marketo_bulk_upload_jobStatus_output.json b/test/__tests__/data/marketo_bulk_upload_jobStatus_output.json index eac43ee82c..320ed050c5 100644 --- a/test/__tests__/data/marketo_bulk_upload_jobStatus_output.json +++ b/test/__tests__/data/marketo_bulk_upload_jobStatus_output.json @@ -8,7 +8,7 @@ }, { "statusCode": 400, - "error": "Unable to fetch job status" + "error": "Unable to fetch job status: due to error " } ] }, @@ -21,7 +21,7 @@ }, { "statusCode": 400, - "error": "Unable to fetch job status" + "error": "Unable to fetch job status: due to error " } ] } diff --git a/test/__tests__/data/marketo_input.json b/test/__tests__/data/marketo_input.json deleted file mode 100644 index c54005b9f6..0000000000 --- a/test/__tests__/data/marketo_input.json +++ /dev/null @@ -1,1210 +0,0 @@ -[ - { - "message": { - "channel": "sources", - "context": { - "externalId": [ - { - "id": "lynnanderson@smith.net", - "identifierType": "email", - "type": "MARKETO-new_user" - } - ], - "mappedToDestination": "true", - "sources": { - "batch_id": "f5f240d0-0acb-46e0-b043-57fb0aabbadd", - "job_id": "1zAj94bEy8komdqnYtSoDp0VmGs/Syncher", - "job_run_id": "c5tar6cqgmgmcjvupdhg", - "task_id": "tt_10_rows_check", - "task_run_id": "c5tar6cqgmgmcjvupdi0", - "version": "release.v1.6.8" - } - }, - "messageId": "2f052f7c-f694-4849-a7ed-a432f7ffa0a4", - "originalTimestamp": "2021-10-28T14:03:50.503Z", - "receivedAt": "2021-10-28T14:03:46.567Z", - "recordId": "8", - "request_ip": "10.1.94.92", - "rudderId": "c0f6843e-e3d6-4946-9752-fa339fbadef2", - "sentAt": "2021-10-28T14:03:50.503Z", - "timestamp": "2021-10-28T14:03:46.566Z", - "traits": { - "marketoGUID": "23", - "administrative_unit": "Minnesota", - "am_pm": "AM", - "boolean": true, - "firstname": "Jacqueline", - "pPower": "AM", - "userId": "Jacqueline" - }, - "type": "identify", - "userId": "lynnanderson@smith.net" - }, - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "Config": { - "destConfig": { - "defaultConfig": [] - }, - "excludeKeys": [], - "includeKeys": [], - "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": null - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "type": "track", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product", - "product_id": "prod_1" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "type": "track", - "sentAt": "2020-12-17T21:00:59.176Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - }, - { - "from": "product_id", - "to": "productId" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "userId": "user_id_success", - "type": "track", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": false, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "traits": { - "anonymousId": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "userId": "user_id_success", - "type": "track", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBerte", - "Config": { - "accountId": "marketo_acct_id_token_failure", - "clientId": "marketo_acct_id_token_failure", - "clientSecret": "marketo_acct_id_token_failure", - "trackAnonymousEvents": false, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "userId": "user_id_success", - "type": "track", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBerte", - "Config": { - "accountId": "marketo_acct_id_failed", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": false, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": 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": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - }, - { - "from": "product_id", - "to": "productId" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "type": "track", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": false, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Purchased", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "type": "track", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "product_name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "type": "track", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "product_name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": true - } - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "product_name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ], - "createIfNotExist": 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": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "integrations": { - "All": true - }, - "traits": { - "score": "0.5" - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - }, - { - "from": "product_id", - "to": "productId" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "score", - "to": "customLeadScore" - } - ] - } - } - }, - { - "message": { - "channel": "sources", - "context": { - "externalId": [ - { - "id": "lynnanderson@smith.net", - "identifierType": "email", - "type": "MARKETO-new_user" - } - ], - "traits": { - "marketoGUID": "23", - "administrative_unit": "Minnesota", - "am_pm": "AM", - "boolean": true, - "firstname": "Jacqueline", - "pPower": "AM", - "userId": "Jacqueline" - }, - "sources": { - "batch_id": "f5f240d0-0acb-46e0-b043-57fb0aabbadd", - "job_id": "1zAj94bEy8komdqnYtSoDp0VmGs/Syncher", - "job_run_id": "c5tar6cqgmgmcjvupdhg", - "task_id": "tt_10_rows_check", - "task_run_id": "c5tar6cqgmgmcjvupdi0", - "version": "release.v1.6.8" - } - }, - "messageId": "2f052f7c-f694-4849-a7ed-a432f7ffa0a4", - "originalTimestamp": "2021-10-28T14:03:50.503Z", - "receivedAt": "2021-10-28T14:03:46.567Z", - "recordId": "8", - "request_ip": "10.1.94.92", - "rudderId": "c0f6843e-e3d6-4946-9752-fa339fbadef2", - "sentAt": "2021-10-28T14:03:50.503Z", - "timestamp": "2021-10-28T14:03:46.566Z", - "type": "identify", - "userId": "dummyMail@dummyDomain.com" - }, - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "Config": { - "destConfig": { - "defaultConfig": [] - }, - "excludeKeys": [], - "includeKeys": [], - "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": null - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - } -] diff --git a/test/__tests__/data/marketo_output.json b/test/__tests__/data/marketo_output.json deleted file mode 100644 index 32d31ccaf8..0000000000 --- a/test/__tests__/data/marketo_output.json +++ /dev/null @@ -1,204 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/customobjects/new_user.json", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "action": "createOrUpdate", - "dedupeBy": "dedupeFields", - "input": [ - { - "administrative_unit": "Minnesota", - "am_pm": "AM", - "boolean": true, - "firstname": "Jacqueline", - "pPower": "AM", - "userId": "Jacqueline", - "email": "lynnanderson@smith.net" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer access_token_success" - }, - "params": {}, - "body": { - "JSON": { - "input": [ - { - "activityDate": "2020-12-17T21:00:59.176Z", - "activityTypeId": 100001, - "attributes": [], - "leadId": 4, - "primaryAttributeValue": "Test Product" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer access_token_success" - }, - "params": {}, - "body": { - "JSON": { - "input": [ - { - "activityDate": "2020-12-17T21:00:59.176Z", - "activityTypeId": 100001, - "attributes": [ - { - "name": "productId", - "value": "prod_1" - } - ], - "leadId": 4, - "primaryAttributeValue": "Test Product" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer access_token_success" - }, - "params": {}, - "body": { - "JSON": { - "input": [ - { - "activityDate": "2020-12-17T21:00:59.176Z", - "activityTypeId": 100001, - "attributes": [], - "leadId": 4, - "primaryAttributeValue": "Test Product" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 500, - "error": "Request Failed for marketo, Access Token Expired (Retryable).During fetching auth token" - }, - { - "statusCode": 500, - "error": "Request Failed for marketo, Access Token Expired (Retryable).During fetching auth token" - }, - { - "statusCode": 400, - "error": "Invalid traits value for Marketo" - }, - { - "statusCode": 400, - "error": "Anonymous event tracking is turned off and invalid userId" - }, - { - "statusCode": 400, - "error": "Event is not mapped to Custom Activity" - }, - { - "statusCode": 400, - "error": "Primary Key value is invalid for the event" - }, - { - "statusCode": 400, - "error": "Message Type is not present. Aborting message." - }, - { - "statusCode": 400, - "error": "Message type not supported" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/leads.json", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "action": "createOrUpdate", - "input": [ - { - "customLeadScore": "0.5", - "id": 4 - } - ], - "lookupField": "id" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/leads.json", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "action": "createOrUpdate", - "input": [{ "id": 4, "userId": "dummyMail@dummyDomain.com" }], - "lookupField": "id" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/marketo_router_input.json b/test/__tests__/data/marketo_router_input.json deleted file mode 100644 index acf59508dd..0000000000 --- a/test/__tests__/data/marketo_router_input.json +++ /dev/null @@ -1,1011 +0,0 @@ -[ - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "type": "track", - "sentAt": "2020-03-12T09:05:03.421Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "anon_id_success", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "TestAppName", - "namespace": "com.android.sample", - "version": "1.0" - }, - "device": { - "id": "anon_id_success", - "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": "anon_id_success" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "Product Clicked", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "Test Product", - "product_id": "prod_1" - }, - "originalTimestamp": "2020-12-17T21:00:59.176Z", - "type": "track", - "sentAt": "2020-12-17T21:00:59.176Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "message": { - "type": "identify", - "sentAt": "2022-09-19T10:34:02.002Z", - "userId": "e17c5a5e-5e2f-430b-b497-fe3f1ea3a704", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "2.12.1", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://accounts.app.t2.broken.com/home", - "path": "/home", - "title": "Home", - "search": "", - "tab_url": "https://accounts.app.t2.broken.com/home", - "referrer": "https://ts50-cvii.core.broken.org/", - "initial_referrer": "https://ts50-cvii.core.broken.org/", - "referring_domain": "ts50-cvii.core.broken.org", - "initial_referring_domain": "ts50-cvii.core.broken.org" - }, - "locale": "en-IN", - "screen": { - "width": 1728, - "height": 1117, - "density": 2, - "innerWidth": 1728, - "innerHeight": 969 - }, - "traits": { - "name": "AM", - "email": "0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail", - "lastName": "M", - "firstName": "A", - "accountName": "MACDEV", - "billingName": "g g", - "companyName": "macDev", - "currentTier": "Webinar Pro 250", - "billingCycle": "Annually", - "lastBillingDate": "2022-06-29T09:40:42.000Z", - "nextBillingDate": "2023-09-09T04:00:00.000Z", - "subscriptionType": "Webinar Pro 250", - "subscriptionStatus": "ACTIVE", - "lastWebinarEventDate": "2022-09-15T20:00:00.000Z", - "nextWebinarEventDate": "2022-09-16T06:15:00.000Z" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.12.1" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36" - }, - "rudderId": "73dc83ef-587f-4077-90f3-c36083e64019", - "messageId": "1663583642000200-e3f31c4c-6361-4f99-b643-7755303a6007", - "timestamp": "2022-09-19T10:34:02.954Z", - "receivedAt": "2022-09-19T10:34:02.956Z", - "request_ip": "11.105.44.120", - "anonymousId": "0c7b8b80-9c43-4f8e-b2d2-5e2448a25040", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-09-19T10:34:02.000Z" - }, - "destination": { - "Config": { - "accountId": "valid_account_broken_event", - "clientId": "504300cd-76b2-a7l4-bhle-90a07420nx73", - "clientSecret": "3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd", - "trackAnonymousEvents": false, - "createIfNotExist": true, - "customActivityEventMap": [ - { - "from": "acq_signup_completed", - "to": "100026" - }, - { - "from": "act_createwebinarform_submit", - "to": "100025" - }, - { - "from": "act_presentation_style", - "to": "100025" - }, - { - "from": "act_webinar_view", - "to": "100025" - }, - { - "from": "act_webinar_join", - "to": "100025" - }, - { - "from": "act_presentation_addteammember", - "to": "100025" - }, - { - "from": "act_engagement_discussions_savediscussion", - "to": "100025" - }, - { - "to": "100025", - "from": "act_engagement_networking_savetime" - } - ] - }, - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVke", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmMd", - "deleted": false, - "createdAt": "2022-02-10T08:39:32.005Z", - "updatedAt": "2022-09-03T16:22:31.374Z", - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 3 - } - }, - { - "message": { - "type": "identify", - "sentAt": "2022-09-19T10:34:02.002Z", - "userId": "e17c5a5e-5e2f-430b-b497-fe3f1ea3a704", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "2.12.1", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://accounts.app.t2.broken.com/home", - "path": "/home", - "title": "Home", - "search": "", - "tab_url": "https://accounts.app.t2.broken.com/home", - "referrer": "https://ts50-cvii.core.broken.org/", - "initial_referrer": "https://ts50-cvii.core.broken.org/", - "referring_domain": "ts50-cvii.core.broken.org", - "initial_referring_domain": "ts50-cvii.core.broken.org" - }, - "locale": "en-IN", - "screen": { - "width": 1728, - "height": 1117, - "density": 2, - "innerWidth": 1728, - "innerHeight": 969 - }, - "traits": { - "name": "AM", - "email": "0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail", - "lastName": "M", - "firstName": "A", - "accountName": "MACDEV", - "billingName": "g g", - "companyName": "macDev", - "currentTier": "Webinar Pro 250", - "billingCycle": "Annually", - "lastBillingDate": "2022-06-29T09:40:42.000Z", - "nextBillingDate": "2023-09-09T04:00:00.000Z", - "subscriptionType": "Webinar Pro 250", - "subscriptionStatus": "ACTIVE", - "lastWebinarEventDate": "2022-09-15T20:00:00.000Z", - "nextWebinarEventDate": "2022-09-16T06:15:00.000Z" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.12.1" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36" - }, - "rudderId": "73dc83ef-587f-4077-90f3-c36083e64019", - "messageId": "1663583642000200-e3f31c4c-6361-4f99-b643-7755303a6007", - "timestamp": "2022-09-19T10:34:02.954Z", - "receivedAt": "2022-09-19T10:34:02.956Z", - "request_ip": "11.105.44.120", - "anonymousId": "0c7b8b80-9c43-4f8e-b2d2-5e2448a25040", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-09-19T10:34:02.000Z" - }, - "destination": { - "Config": { - "accountId": "unhandled_status_code", - "clientId": "504300cd-76b2-a7l4-bhle-90a07420nx73", - "clientSecret": "3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd", - "trackAnonymousEvents": false, - "createIfNotExist": true, - "customActivityEventMap": [ - { - "from": "acq_signup_completed", - "to": "100026" - }, - { - "from": "act_createwebinarform_submit", - "to": "100025" - }, - { - "from": "act_presentation_style", - "to": "100025" - }, - { - "from": "act_webinar_view", - "to": "100025" - }, - { - "from": "act_webinar_join", - "to": "100025" - }, - { - "from": "act_presentation_addteammember", - "to": "100025" - }, - { - "from": "act_engagement_discussions_savediscussion", - "to": "100025" - }, - { - "to": "100025", - "from": "act_engagement_networking_savetime" - } - ] - }, - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVke", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmMd", - "deleted": false, - "createdAt": "2022-02-10T08:39:32.005Z", - "updatedAt": "2022-09-03T16:22:31.374Z", - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 4 - } - }, - { - "message": { - "type": "identify", - "sentAt": "2022-09-19T10:34:02.002Z", - "userId": "e17c5a5e-5e2f-430b-b497-fe3f1ea3a704", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "2.12.1", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://accounts.app.t2.broken.com/home", - "path": "/home", - "title": "Home", - "search": "", - "tab_url": "https://accounts.app.t2.broken.com/home", - "referrer": "https://ts50-cvii.core.broken.org/", - "initial_referrer": "https://ts50-cvii.core.broken.org/", - "referring_domain": "ts50-cvii.core.broken.org", - "initial_referring_domain": "ts50-cvii.core.broken.org" - }, - "locale": "en-IN", - "screen": { - "width": 1728, - "height": 1117, - "density": 2, - "innerWidth": 1728, - "innerHeight": 969 - }, - "traits": { - "name": "AM", - "email": "0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail", - "lastName": "M", - "firstName": "A", - "accountName": "MACDEV", - "billingName": "g g", - "companyName": "macDev", - "currentTier": "Webinar Pro 250", - "billingCycle": "Annually", - "lastBillingDate": "2022-06-29T09:40:42.000Z", - "nextBillingDate": "2023-09-09T04:00:00.000Z", - "subscriptionType": "Webinar Pro 250", - "subscriptionStatus": "ACTIVE", - "lastWebinarEventDate": "2022-09-15T20:00:00.000Z", - "nextWebinarEventDate": "2022-09-16T06:15:00.000Z" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.12.1" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36" - }, - "rudderId": "73dc83ef-587f-4077-90f3-c36083e64019", - "messageId": "1663583642000200-e3f31c4c-6361-4f99-b643-7755303a6007", - "timestamp": "2022-09-19T10:34:02.954Z", - "receivedAt": "2022-09-19T10:34:02.956Z", - "request_ip": "11.105.44.120", - "anonymousId": "0c7b8b80-9c43-4f8e-b2d2-5e2448a25040", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-09-19T10:34:02.000Z" - }, - "destination": { - "Config": { - "accountId": "successful_identify_transformation", - "clientId": "504300cd-76b2-a7l4-bhle-90a07420nx73", - "clientSecret": "3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd", - "trackAnonymousEvents": false, - "createIfNotExist": true, - "customActivityEventMap": [ - { - "from": "acq_signup_completed", - "to": "100026" - }, - { - "from": "act_createwebinarform_submit", - "to": "100025" - }, - { - "from": "act_presentation_style", - "to": "100025" - }, - { - "from": "act_webinar_view", - "to": "100025" - }, - { - "from": "act_webinar_join", - "to": "100025" - }, - { - "from": "act_presentation_addteammember", - "to": "100025" - }, - { - "from": "act_engagement_discussions_savediscussion", - "to": "100025" - }, - { - "to": "100025", - "from": "act_engagement_networking_savetime" - } - ] - }, - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVke", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmMd", - "deleted": false, - "createdAt": "2022-02-10T08:39:32.005Z", - "updatedAt": "2022-09-03T16:22:31.374Z", - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": { - "jobId": 5 - } - } -] diff --git a/test/__tests__/data/marketo_router_metadata_input.json b/test/__tests__/data/marketo_router_metadata_input.json deleted file mode 100644 index 1c02a9c6fd..0000000000 --- a/test/__tests__/data/marketo_router_metadata_input.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer access_token_success" - }, - "params": {}, - "body": { - "JSON": { - "input": [ - { - "activityDate": "2020-12-17T21:00:59.176Z", - "activityTypeId": 100001, - "attributes": [], - "leadId": 4, - "primaryAttributeValue": "Test Product" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 1 - }, - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [{ "from": "Product Clicked", "to": "100001" }], - "customActivityPropertyMap": [{ "from": "name", "to": "productName" }], - "customActivityPrimaryKeyMap": [{ "from": "Product Clicked", "to": "name" }], - "leadTraitMapping": [{ "from": "leadScore", "to": "customLeadScore" }] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { "success": "false", "errors.0.code": 600 }, - { "success": "false", "errors.0.code": 601 }, - { "success": "false", "errors.0.code": 602 }, - { "success": "false", "errors.0.code": 604 }, - { "success": "false", "errors.0.code": 606 }, - { "success": "false", "errors.0.code": 607 }, - { "success": "false", "errors.0.code": 608 }, - { "success": "false", "errors.0.code": 611 } - ], - "abortable": [ - { "success": "false", "errors.0.code": 603 }, - { "success": "false", "errors.0.code": 605 }, - { "success": "false", "errors.0.code": 609 }, - { "success": "false", "errors.0.code": 610 } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } -} diff --git a/test/__tests__/data/marketo_router_metadata_output.json b/test/__tests__/data/marketo_router_metadata_output.json deleted file mode 100644 index 4fb7308fe4..0000000000 --- a/test/__tests__/data/marketo_router_metadata_output.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "destInfo": { - "authKey": "1mMy5cqbtfuaKZv1IhVQKnBdVwe" - }, - "jobId": 1 - }, - { - "destInfo": { - "authKey": "1mMy5cqbtfuaKZv1IhVQKnBdVwe" - }, - "jobId": 1 - }, - { - "destInfo": { - "authKey": "1mMy5cqbtfuaKZv1IhVQKnBdVwe" - }, - "jobId": 1 - } -] diff --git a/test/__tests__/data/marketo_router_output.json b/test/__tests__/data/marketo_router_output.json deleted file mode 100644 index a8877399e9..0000000000 --- a/test/__tests__/data/marketo_router_output.json +++ /dev/null @@ -1,807 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer access_token_success" - }, - "params": {}, - "body": { - "JSON": { - "input": [ - { - "activityDate": "2020-12-17T21:00:59.176Z", - "activityTypeId": 100001, - "attributes": [], - "leadId": 4, - "primaryAttributeValue": "Test Product" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer access_token_success" - }, - "params": {}, - "body": { - "JSON": { - "input": [ - { - "activityDate": "2020-12-17T21:00:59.176Z", - "activityTypeId": 100001, - "attributes": [], - "leadId": 4, - "primaryAttributeValue": "Test Product" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "trackAnonymousEvents": true, - "customActivityEventMap": [ - { - "from": "Product Clicked", - "to": "100001" - } - ], - "customActivityPropertyMap": [ - { - "from": "name", - "to": "productName" - } - ], - "customActivityPrimaryKeyMap": [ - { - "from": "Product Clicked", - "to": "name" - } - ], - "leadTraitMapping": [ - { - "from": "leadScore", - "to": "customLeadScore" - } - ] - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "batched": false, - "statusCode": 400, - "error": "{\"message\":\"Request Failed for marketo, Lookup field 'userId' not found (Aborted).[Marketo Transformer]: During lead look up using email\",\"destinationResponse\":{\"response\":{\"requestId\":\"142e4#1835b117b76\",\"success\":false,\"errors\":[{\"code\":\"1006\",\"message\":\"Lookup field 'userId' not found\"}]},\"status\":200}}", - "statTags": { - "errorCategory": "network", - "errorType": "aborted" - }, - "metadata": [ - { - "jobId": 3 - } - ], - "destination": { - "Config": { - "accountId": "valid_account_broken_event", - "clientId": "504300cd-76b2-a7l4-bhle-90a07420nx73", - "clientSecret": "3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd", - "trackAnonymousEvents": false, - "createIfNotExist": true, - "customActivityEventMap": [ - { - "from": "acq_signup_completed", - "to": "100026" - }, - { - "from": "act_createwebinarform_submit", - "to": "100025" - }, - { - "from": "act_presentation_style", - "to": "100025" - }, - { - "from": "act_webinar_view", - "to": "100025" - }, - { - "from": "act_webinar_join", - "to": "100025" - }, - { - "from": "act_presentation_addteammember", - "to": "100025" - }, - { - "from": "act_engagement_discussions_savediscussion", - "to": "100025" - }, - { - "to": "100025", - "from": "act_engagement_networking_savetime" - } - ] - }, - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVke", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmMd", - "deleted": false, - "createdAt": "2022-02-10T08:39:32.005Z", - "updatedAt": "2022-09-03T16:22:31.374Z", - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - }, - { - "batched": false, - "statusCode": 400, - "error": "{\"message\":\"Error occurred [Marketo Transformer]: During lead look up using email -> some other problem\",\"destinationResponse\":{\"response\":{\"requestId\":\"142e4#1835b117b76\",\"success\":false,\"errors\":[{\"code\":\"random_marketo_code\",\"message\":\"some other problem\"}]},\"status\":200}}", - "statTags": { - "errorCategory": "network", - "errorType": "aborted", - "meta": "unhandledStatusCode" - }, - "destination": { - "Config": { - "accountId": "unhandled_status_code", - "clientId": "504300cd-76b2-a7l4-bhle-90a07420nx73", - "clientSecret": "3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd", - "trackAnonymousEvents": false, - "createIfNotExist": true, - "customActivityEventMap": [ - { - "from": "acq_signup_completed", - "to": "100026" - }, - { - "from": "act_createwebinarform_submit", - "to": "100025" - }, - { - "from": "act_presentation_style", - "to": "100025" - }, - { - "from": "act_webinar_view", - "to": "100025" - }, - { - "from": "act_webinar_join", - "to": "100025" - }, - { - "from": "act_presentation_addteammember", - "to": "100025" - }, - { - "from": "act_engagement_discussions_savediscussion", - "to": "100025" - }, - { - "to": "100025", - "from": "act_engagement_networking_savetime" - } - ] - }, - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVke", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmMd", - "deleted": false, - "createdAt": "2022-02-10T08:39:32.005Z", - "updatedAt": "2022-09-03T16:22:31.374Z", - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - }, - "metadata": [ - { - "jobId": 4 - } - ] - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://successful_identify_transformation.mktorest.com/rest/v1/leads.json", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer access_token_success" - }, - "params": {}, - "body": { - "JSON": { - "action": "createOrUpdate", - "input": [ - { - "Email": "0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail", - "FirstName": "A", - "LastName": "M", - "id": 4, - "userId": "e17c5a5e-5e2f-430b-b497-fe3f1ea3a704" - } - ], - "lookupField": "id" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 5 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "accountId": "successful_identify_transformation", - "clientId": "504300cd-76b2-a7l4-bhle-90a07420nx73", - "clientSecret": "3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd", - "trackAnonymousEvents": false, - "createIfNotExist": true, - "customActivityEventMap": [ - { - "from": "acq_signup_completed", - "to": "100026" - }, - { - "from": "act_createwebinarform_submit", - "to": "100025" - }, - { - "from": "act_presentation_style", - "to": "100025" - }, - { - "from": "act_webinar_view", - "to": "100025" - }, - { - "from": "act_webinar_join", - "to": "100025" - }, - { - "from": "act_presentation_addteammember", - "to": "100025" - }, - { - "from": "act_engagement_discussions_savediscussion", - "to": "100025" - }, - { - "to": "100025", - "from": "act_engagement_networking_savetime" - } - ] - }, - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": [ - "accountId", - "clientId", - "clientSecret", - "trackAnonymousEvents", - "customActivityEventMap", - "customActivityPropertyMap", - "customActivityPrimaryKeyMap", - "leadTraitMapping" - ] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "responseRules": { - "responseType": "JSON", - "rules": { - "retryable": [ - { - "success": "false", - "errors.0.code": 600 - }, - { - "success": "false", - "errors.0.code": 601 - }, - { - "success": "false", - "errors.0.code": 602 - }, - { - "success": "false", - "errors.0.code": 604 - }, - { - "success": "false", - "errors.0.code": 606 - }, - { - "success": "false", - "errors.0.code": 607 - }, - { - "success": "false", - "errors.0.code": 608 - }, - { - "success": "false", - "errors.0.code": 611 - } - ], - "abortable": [ - { - "success": "false", - "errors.0.code": 603 - }, - { - "success": "false", - "errors.0.code": 605 - }, - { - "success": "false", - "errors.0.code": 609 - }, - { - "success": "false", - "errors.0.code": 610 - } - ] - } - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO", - "displayName": "Marketo", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVke", - "name": "Marketo", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmMd", - "deleted": false, - "createdAt": "2022-02-10T08:39:32.005Z", - "updatedAt": "2022-09-03T16:22:31.374Z", - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/marketo_static_list.json b/test/__tests__/data/marketo_static_list.json deleted file mode 100644 index 701868cab0..0000000000 --- a/test/__tests__/data/marketo_static_list.json +++ /dev/null @@ -1,2542 +0,0 @@ -[ - { - "description": "adding and removing users and getting staticListId from externalId", - "input": { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 3421 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "id": 1 - }, - { - "id": 2 - }, - { - "id": 3 - } - ], - "remove": [ - { - "id": 4 - }, - { - "id": 5 - }, - { - "id": 6 - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - }, - "externalId": [ - { - "type": "marketoStaticListId", - "id": 1234 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "DELETE", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=4&id=5&id=6", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "adding more than max limit users", - "input": { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "id": 0 - }, - { - "id": 1 - }, - { - "id": 2 - }, - { - "id": 3 - }, - { - "id": 4 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 7 - }, - { - "id": 8 - }, - { - "id": 9 - }, - { - "id": 10 - }, - { - "id": 11 - }, - { - "id": 12 - }, - { - "id": 13 - }, - { - "id": 14 - }, - { - "id": 15 - }, - { - "id": 16 - }, - { - "id": 17 - }, - { - "id": 18 - }, - { - "id": 19 - }, - { - "id": 20 - }, - { - "id": 21 - }, - { - "id": 22 - }, - { - "id": 23 - }, - { - "id": 24 - }, - { - "id": 25 - }, - { - "id": 26 - }, - { - "id": 27 - }, - { - "id": 28 - }, - { - "id": 29 - }, - { - "id": 30 - }, - { - "id": 31 - }, - { - "id": 32 - }, - { - "id": 33 - }, - { - "id": 34 - }, - { - "id": 35 - }, - { - "id": 36 - }, - { - "id": 37 - }, - { - "id": 38 - }, - { - "id": 39 - }, - { - "id": 40 - }, - { - "id": 41 - }, - { - "id": 42 - }, - { - "id": 43 - }, - { - "id": 44 - }, - { - "id": 45 - }, - { - "id": 46 - }, - { - "id": 47 - }, - { - "id": 48 - }, - { - "id": 49 - }, - { - "id": 50 - }, - { - "id": 51 - }, - { - "id": 52 - }, - { - "id": 53 - }, - { - "id": 54 - }, - { - "id": 55 - }, - { - "id": 56 - }, - { - "id": 57 - }, - { - "id": 58 - }, - { - "id": 59 - }, - { - "id": 60 - }, - { - "id": 61 - }, - { - "id": 62 - }, - { - "id": 63 - }, - { - "id": 64 - }, - { - "id": 65 - }, - { - "id": 66 - }, - { - "id": 67 - }, - { - "id": 68 - }, - { - "id": 69 - }, - { - "id": 70 - }, - { - "id": 71 - }, - { - "id": 72 - }, - { - "id": 73 - }, - { - "id": 74 - }, - { - "id": 75 - }, - { - "id": 76 - }, - { - "id": 77 - }, - { - "id": 78 - }, - { - "id": 79 - }, - { - "id": 80 - }, - { - "id": 81 - }, - { - "id": 82 - }, - { - "id": 83 - }, - { - "id": 84 - }, - { - "id": 85 - }, - { - "id": 86 - }, - { - "id": 87 - }, - { - "id": 88 - }, - { - "id": 89 - }, - { - "id": 90 - }, - { - "id": 91 - }, - { - "id": 92 - }, - { - "id": 93 - }, - { - "id": 94 - }, - { - "id": 95 - }, - { - "id": 96 - }, - { - "id": 97 - }, - { - "id": 98 - }, - { - "id": 99 - }, - { - "id": 100 - }, - { - "id": 101 - }, - { - "id": 102 - }, - { - "id": 103 - }, - { - "id": 104 - }, - { - "id": 105 - }, - { - "id": 106 - }, - { - "id": 107 - }, - { - "id": 108 - }, - { - "id": 109 - }, - { - "id": 110 - }, - { - "id": 111 - }, - { - "id": 112 - }, - { - "id": 113 - }, - { - "id": 114 - }, - { - "id": 115 - }, - { - "id": 116 - }, - { - "id": 117 - }, - { - "id": 118 - }, - { - "id": 119 - }, - { - "id": 120 - }, - { - "id": 121 - }, - { - "id": 122 - }, - { - "id": 123 - }, - { - "id": 124 - }, - { - "id": 125 - }, - { - "id": 126 - }, - { - "id": 127 - }, - { - "id": 128 - }, - { - "id": 129 - }, - { - "id": 130 - }, - { - "id": 131 - }, - { - "id": 132 - }, - { - "id": 133 - }, - { - "id": 134 - }, - { - "id": 135 - }, - { - "id": 136 - }, - { - "id": 137 - }, - { - "id": 138 - }, - { - "id": 139 - }, - { - "id": 140 - }, - { - "id": 141 - }, - { - "id": 142 - }, - { - "id": 143 - }, - { - "id": 144 - }, - { - "id": 145 - }, - { - "id": 146 - }, - { - "id": 147 - }, - { - "id": 148 - }, - { - "id": 149 - }, - { - "id": 150 - }, - { - "id": 151 - }, - { - "id": 152 - }, - { - "id": 153 - }, - { - "id": 154 - }, - { - "id": 155 - }, - { - "id": 156 - }, - { - "id": 157 - }, - { - "id": 158 - }, - { - "id": 159 - }, - { - "id": 160 - }, - { - "id": 161 - }, - { - "id": 162 - }, - { - "id": 163 - }, - { - "id": 164 - }, - { - "id": 165 - }, - { - "id": 166 - }, - { - "id": 167 - }, - { - "id": 168 - }, - { - "id": 169 - }, - { - "id": 170 - }, - { - "id": 171 - }, - { - "id": 172 - }, - { - "id": 173 - }, - { - "id": 174 - }, - { - "id": 175 - }, - { - "id": 176 - }, - { - "id": 177 - }, - { - "id": 178 - }, - { - "id": 179 - }, - { - "id": 180 - }, - { - "id": 181 - }, - { - "id": 182 - }, - { - "id": 183 - }, - { - "id": 184 - }, - { - "id": 185 - }, - { - "id": 186 - }, - { - "id": 187 - }, - { - "id": 188 - }, - { - "id": 189 - }, - { - "id": 190 - }, - { - "id": 191 - }, - { - "id": 192 - }, - { - "id": 193 - }, - { - "id": 194 - }, - { - "id": 195 - }, - { - "id": 196 - }, - { - "id": 197 - }, - { - "id": 198 - }, - { - "id": 199 - }, - { - "id": 200 - }, - { - "id": 201 - }, - { - "id": 202 - }, - { - "id": 203 - }, - { - "id": 204 - }, - { - "id": 205 - }, - { - "id": 206 - }, - { - "id": 207 - }, - { - "id": 208 - }, - { - "id": 209 - }, - { - "id": 210 - }, - { - "id": 211 - }, - { - "id": 212 - }, - { - "id": 213 - }, - { - "id": 214 - }, - { - "id": 215 - }, - { - "id": 216 - }, - { - "id": 217 - }, - { - "id": 218 - }, - { - "id": 219 - }, - { - "id": 220 - }, - { - "id": 221 - }, - { - "id": 222 - }, - { - "id": 223 - }, - { - "id": 224 - }, - { - "id": 225 - }, - { - "id": 226 - }, - { - "id": 227 - }, - { - "id": 228 - }, - { - "id": 229 - }, - { - "id": 230 - }, - { - "id": 231 - }, - { - "id": 232 - }, - { - "id": 233 - }, - { - "id": 234 - }, - { - "id": 235 - }, - { - "id": 236 - }, - { - "id": 237 - }, - { - "id": 238 - }, - { - "id": 239 - }, - { - "id": 240 - }, - { - "id": 241 - }, - { - "id": 242 - }, - { - "id": 243 - }, - { - "id": 244 - }, - { - "id": 245 - }, - { - "id": 246 - }, - { - "id": 247 - }, - { - "id": 248 - }, - { - "id": 249 - }, - { - "id": 250 - }, - { - "id": 251 - }, - { - "id": 252 - }, - { - "id": 253 - }, - { - "id": 254 - }, - { - "id": 255 - }, - { - "id": 256 - }, - { - "id": 257 - }, - { - "id": 258 - }, - { - "id": 259 - }, - { - "id": 260 - }, - { - "id": 261 - }, - { - "id": 262 - }, - { - "id": 263 - }, - { - "id": 264 - }, - { - "id": 265 - }, - { - "id": 266 - }, - { - "id": 267 - }, - { - "id": 268 - }, - { - "id": 269 - }, - { - "id": 270 - }, - { - "id": 271 - }, - { - "id": 272 - }, - { - "id": 273 - }, - { - "id": 274 - }, - { - "id": 275 - }, - { - "id": 276 - }, - { - "id": 277 - }, - { - "id": 278 - }, - { - "id": 279 - }, - { - "id": 280 - }, - { - "id": 281 - }, - { - "id": 282 - }, - { - "id": 283 - }, - { - "id": 284 - }, - { - "id": 285 - }, - { - "id": 286 - }, - { - "id": 287 - }, - { - "id": 288 - }, - { - "id": 289 - }, - { - "id": 290 - }, - { - "id": 291 - }, - { - "id": 292 - }, - { - "id": 293 - }, - { - "id": 294 - }, - { - "id": 295 - }, - { - "id": 296 - }, - { - "id": 297 - }, - { - "id": 298 - }, - { - "id": 299 - }, - { - "id": 300 - }, - { - "id": 301 - }, - { - "id": 302 - }, - { - "id": 303 - }, - { - "id": 304 - }, - { - "id": 305 - }, - { - "id": 306 - }, - { - "id": 307 - }, - { - "id": 308 - }, - { - "id": 309 - }, - { - "id": 310 - }, - { - "id": 311 - }, - { - "id": 312 - }, - { - "id": 313 - }, - { - "id": 314 - }, - { - "id": 315 - }, - { - "id": 316 - }, - { - "id": 317 - }, - { - "id": 318 - }, - { - "id": 319 - }, - { - "id": 320 - }, - { - "id": 321 - }, - { - "id": 322 - }, - { - "id": 323 - }, - { - "id": 324 - }, - { - "id": 325 - }, - { - "id": 326 - }, - { - "id": 327 - }, - { - "id": 328 - }, - { - "id": 329 - }, - { - "id": 330 - }, - { - "id": 331 - }, - { - "id": 332 - }, - { - "id": 333 - }, - { - "id": 334 - }, - { - "id": 335 - }, - { - "id": 336 - }, - { - "id": 337 - }, - { - "id": 338 - }, - { - "id": 339 - }, - { - "id": 340 - }, - { - "id": 341 - }, - { - "id": 342 - }, - { - "id": 343 - }, - { - "id": 344 - }, - { - "id": 345 - }, - { - "id": 346 - }, - { - "id": 347 - }, - { - "id": 348 - }, - { - "id": 349 - }, - { - "id": 350 - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=0&id=1&id=2&id=3&id=4&id=5&id=6&id=7&id=8&id=9&id=10&id=11&id=12&id=13&id=14&id=15&id=16&id=17&id=18&id=19&id=20&id=21&id=22&id=23&id=24&id=25&id=26&id=27&id=28&id=29&id=30&id=31&id=32&id=33&id=34&id=35&id=36&id=37&id=38&id=39&id=40&id=41&id=42&id=43&id=44&id=45&id=46&id=47&id=48&id=49&id=50&id=51&id=52&id=53&id=54&id=55&id=56&id=57&id=58&id=59&id=60&id=61&id=62&id=63&id=64&id=65&id=66&id=67&id=68&id=69&id=70&id=71&id=72&id=73&id=74&id=75&id=76&id=77&id=78&id=79&id=80&id=81&id=82&id=83&id=84&id=85&id=86&id=87&id=88&id=89&id=90&id=91&id=92&id=93&id=94&id=95&id=96&id=97&id=98&id=99&id=100&id=101&id=102&id=103&id=104&id=105&id=106&id=107&id=108&id=109&id=110&id=111&id=112&id=113&id=114&id=115&id=116&id=117&id=118&id=119&id=120&id=121&id=122&id=123&id=124&id=125&id=126&id=127&id=128&id=129&id=130&id=131&id=132&id=133&id=134&id=135&id=136&id=137&id=138&id=139&id=140&id=141&id=142&id=143&id=144&id=145&id=146&id=147&id=148&id=149&id=150&id=151&id=152&id=153&id=154&id=155&id=156&id=157&id=158&id=159&id=160&id=161&id=162&id=163&id=164&id=165&id=166&id=167&id=168&id=169&id=170&id=171&id=172&id=173&id=174&id=175&id=176&id=177&id=178&id=179&id=180&id=181&id=182&id=183&id=184&id=185&id=186&id=187&id=188&id=189&id=190&id=191&id=192&id=193&id=194&id=195&id=196&id=197&id=198&id=199&id=200&id=201&id=202&id=203&id=204&id=205&id=206&id=207&id=208&id=209&id=210&id=211&id=212&id=213&id=214&id=215&id=216&id=217&id=218&id=219&id=220&id=221&id=222&id=223&id=224&id=225&id=226&id=227&id=228&id=229&id=230&id=231&id=232&id=233&id=234&id=235&id=236&id=237&id=238&id=239&id=240&id=241&id=242&id=243&id=244&id=245&id=246&id=247&id=248&id=249&id=250&id=251&id=252&id=253&id=254&id=255&id=256&id=257&id=258&id=259&id=260&id=261&id=262&id=263&id=264&id=265&id=266&id=267&id=268&id=269&id=270&id=271&id=272&id=273&id=274&id=275&id=276&id=277&id=278&id=279&id=280&id=281&id=282&id=283&id=284&id=285&id=286&id=287&id=288&id=289&id=290&id=291&id=292&id=293&id=294&id=295&id=296&id=297&id=298&id=299", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=300&id=301&id=302&id=303&id=304&id=305&id=306&id=307&id=308&id=309&id=310&id=311&id=312&id=313&id=314&id=315&id=316&id=317&id=318&id=319&id=320&id=321&id=322&id=323&id=324&id=325&id=326&id=327&id=328&id=329&id=330&id=331&id=332&id=333&id=334&id=335&id=336&id=337&id=338&id=339&id=340&id=341&id=342&id=343&id=344&id=345&id=346&id=347&id=348&id=349&id=350", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "removing more than max limit users", - "input": { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "remove": [ - { - "id": 0 - }, - { - "id": 1 - }, - { - "id": 2 - }, - { - "id": 3 - }, - { - "id": 4 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 7 - }, - { - "id": 8 - }, - { - "id": 9 - }, - { - "id": 10 - }, - { - "id": 11 - }, - { - "id": 12 - }, - { - "id": 13 - }, - { - "id": 14 - }, - { - "id": 15 - }, - { - "id": 16 - }, - { - "id": 17 - }, - { - "id": 18 - }, - { - "id": 19 - }, - { - "id": 20 - }, - { - "id": 21 - }, - { - "id": 22 - }, - { - "id": 23 - }, - { - "id": 24 - }, - { - "id": 25 - }, - { - "id": 26 - }, - { - "id": 27 - }, - { - "id": 28 - }, - { - "id": 29 - }, - { - "id": 30 - }, - { - "id": 31 - }, - { - "id": 32 - }, - { - "id": 33 - }, - { - "id": 34 - }, - { - "id": 35 - }, - { - "id": 36 - }, - { - "id": 37 - }, - { - "id": 38 - }, - { - "id": 39 - }, - { - "id": 40 - }, - { - "id": 41 - }, - { - "id": 42 - }, - { - "id": 43 - }, - { - "id": 44 - }, - { - "id": 45 - }, - { - "id": 46 - }, - { - "id": 47 - }, - { - "id": 48 - }, - { - "id": 49 - }, - { - "id": 50 - }, - { - "id": 51 - }, - { - "id": 52 - }, - { - "id": 53 - }, - { - "id": 54 - }, - { - "id": 55 - }, - { - "id": 56 - }, - { - "id": 57 - }, - { - "id": 58 - }, - { - "id": 59 - }, - { - "id": 60 - }, - { - "id": 61 - }, - { - "id": 62 - }, - { - "id": 63 - }, - { - "id": 64 - }, - { - "id": 65 - }, - { - "id": 66 - }, - { - "id": 67 - }, - { - "id": 68 - }, - { - "id": 69 - }, - { - "id": 70 - }, - { - "id": 71 - }, - { - "id": 72 - }, - { - "id": 73 - }, - { - "id": 74 - }, - { - "id": 75 - }, - { - "id": 76 - }, - { - "id": 77 - }, - { - "id": 78 - }, - { - "id": 79 - }, - { - "id": 80 - }, - { - "id": 81 - }, - { - "id": 82 - }, - { - "id": 83 - }, - { - "id": 84 - }, - { - "id": 85 - }, - { - "id": 86 - }, - { - "id": 87 - }, - { - "id": 88 - }, - { - "id": 89 - }, - { - "id": 90 - }, - { - "id": 91 - }, - { - "id": 92 - }, - { - "id": 93 - }, - { - "id": 94 - }, - { - "id": 95 - }, - { - "id": 96 - }, - { - "id": 97 - }, - { - "id": 98 - }, - { - "id": 99 - }, - { - "id": 100 - }, - { - "id": 101 - }, - { - "id": 102 - }, - { - "id": 103 - }, - { - "id": 104 - }, - { - "id": 105 - }, - { - "id": 106 - }, - { - "id": 107 - }, - { - "id": 108 - }, - { - "id": 109 - }, - { - "id": 110 - }, - { - "id": 111 - }, - { - "id": 112 - }, - { - "id": 113 - }, - { - "id": 114 - }, - { - "id": 115 - }, - { - "id": 116 - }, - { - "id": 117 - }, - { - "id": 118 - }, - { - "id": 119 - }, - { - "id": 120 - }, - { - "id": 121 - }, - { - "id": 122 - }, - { - "id": 123 - }, - { - "id": 124 - }, - { - "id": 125 - }, - { - "id": 126 - }, - { - "id": 127 - }, - { - "id": 128 - }, - { - "id": 129 - }, - { - "id": 130 - }, - { - "id": 131 - }, - { - "id": 132 - }, - { - "id": 133 - }, - { - "id": 134 - }, - { - "id": 135 - }, - { - "id": 136 - }, - { - "id": 137 - }, - { - "id": 138 - }, - { - "id": 139 - }, - { - "id": 140 - }, - { - "id": 141 - }, - { - "id": 142 - }, - { - "id": 143 - }, - { - "id": 144 - }, - { - "id": 145 - }, - { - "id": 146 - }, - { - "id": 147 - }, - { - "id": 148 - }, - { - "id": 149 - }, - { - "id": 150 - }, - { - "id": 151 - }, - { - "id": 152 - }, - { - "id": 153 - }, - { - "id": 154 - }, - { - "id": 155 - }, - { - "id": 156 - }, - { - "id": 157 - }, - { - "id": 158 - }, - { - "id": 159 - }, - { - "id": 160 - }, - { - "id": 161 - }, - { - "id": 162 - }, - { - "id": 163 - }, - { - "id": 164 - }, - { - "id": 165 - }, - { - "id": 166 - }, - { - "id": 167 - }, - { - "id": 168 - }, - { - "id": 169 - }, - { - "id": 170 - }, - { - "id": 171 - }, - { - "id": 172 - }, - { - "id": 173 - }, - { - "id": 174 - }, - { - "id": 175 - }, - { - "id": 176 - }, - { - "id": 177 - }, - { - "id": 178 - }, - { - "id": 179 - }, - { - "id": 180 - }, - { - "id": 181 - }, - { - "id": 182 - }, - { - "id": 183 - }, - { - "id": 184 - }, - { - "id": 185 - }, - { - "id": 186 - }, - { - "id": 187 - }, - { - "id": 188 - }, - { - "id": 189 - }, - { - "id": 190 - }, - { - "id": 191 - }, - { - "id": 192 - }, - { - "id": 193 - }, - { - "id": 194 - }, - { - "id": 195 - }, - { - "id": 196 - }, - { - "id": 197 - }, - { - "id": 198 - }, - { - "id": 199 - }, - { - "id": 200 - }, - { - "id": 201 - }, - { - "id": 202 - }, - { - "id": 203 - }, - { - "id": 204 - }, - { - "id": 205 - }, - { - "id": 206 - }, - { - "id": 207 - }, - { - "id": 208 - }, - { - "id": 209 - }, - { - "id": 210 - }, - { - "id": 211 - }, - { - "id": 212 - }, - { - "id": 213 - }, - { - "id": 214 - }, - { - "id": 215 - }, - { - "id": 216 - }, - { - "id": 217 - }, - { - "id": 218 - }, - { - "id": 219 - }, - { - "id": 220 - }, - { - "id": 221 - }, - { - "id": 222 - }, - { - "id": 223 - }, - { - "id": 224 - }, - { - "id": 225 - }, - { - "id": 226 - }, - { - "id": 227 - }, - { - "id": 228 - }, - { - "id": 229 - }, - { - "id": 230 - }, - { - "id": 231 - }, - { - "id": 232 - }, - { - "id": 233 - }, - { - "id": 234 - }, - { - "id": 235 - }, - { - "id": 236 - }, - { - "id": 237 - }, - { - "id": 238 - }, - { - "id": 239 - }, - { - "id": 240 - }, - { - "id": 241 - }, - { - "id": 242 - }, - { - "id": 243 - }, - { - "id": 244 - }, - { - "id": 245 - }, - { - "id": 246 - }, - { - "id": 247 - }, - { - "id": 248 - }, - { - "id": 249 - }, - { - "id": 250 - }, - { - "id": 251 - }, - { - "id": 252 - }, - { - "id": 253 - }, - { - "id": 254 - }, - { - "id": 255 - }, - { - "id": 256 - }, - { - "id": 257 - }, - { - "id": 258 - }, - { - "id": 259 - }, - { - "id": 260 - }, - { - "id": 261 - }, - { - "id": 262 - }, - { - "id": 263 - }, - { - "id": 264 - }, - { - "id": 265 - }, - { - "id": 266 - }, - { - "id": 267 - }, - { - "id": 268 - }, - { - "id": 269 - }, - { - "id": 270 - }, - { - "id": 271 - }, - { - "id": 272 - }, - { - "id": 273 - }, - { - "id": 274 - }, - { - "id": 275 - }, - { - "id": 276 - }, - { - "id": 277 - }, - { - "id": 278 - }, - { - "id": 279 - }, - { - "id": 280 - }, - { - "id": 281 - }, - { - "id": 282 - }, - { - "id": 283 - }, - { - "id": 284 - }, - { - "id": 285 - }, - { - "id": 286 - }, - { - "id": 287 - }, - { - "id": 288 - }, - { - "id": 289 - }, - { - "id": 290 - }, - { - "id": 291 - }, - { - "id": 292 - }, - { - "id": 293 - }, - { - "id": 294 - }, - { - "id": 295 - }, - { - "id": 296 - }, - { - "id": 297 - }, - { - "id": 298 - }, - { - "id": 299 - }, - { - "id": 300 - }, - { - "id": 301 - }, - { - "id": 302 - }, - { - "id": 303 - }, - { - "id": 304 - }, - { - "id": 305 - }, - { - "id": 306 - }, - { - "id": 307 - }, - { - "id": 308 - }, - { - "id": 309 - }, - { - "id": 310 - }, - { - "id": 311 - }, - { - "id": 312 - }, - { - "id": 313 - }, - { - "id": 314 - }, - { - "id": 315 - }, - { - "id": 316 - }, - { - "id": 317 - }, - { - "id": 318 - }, - { - "id": 319 - }, - { - "id": 320 - }, - { - "id": 321 - }, - { - "id": 322 - }, - { - "id": 323 - }, - { - "id": 324 - }, - { - "id": 325 - }, - { - "id": 326 - }, - { - "id": 327 - }, - { - "id": 328 - }, - { - "id": 329 - }, - { - "id": 330 - }, - { - "id": 331 - }, - { - "id": 332 - }, - { - "id": 333 - }, - { - "id": 334 - }, - { - "id": 335 - }, - { - "id": 336 - }, - { - "id": 337 - }, - { - "id": 338 - }, - { - "id": 339 - }, - { - "id": 340 - }, - { - "id": 341 - }, - { - "id": 342 - }, - { - "id": 343 - }, - { - "id": 344 - }, - { - "id": 345 - }, - { - "id": 346 - }, - { - "id": 347 - }, - { - "id": 348 - }, - { - "id": 349 - }, - { - "id": 350 - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "DELETE", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=0&id=1&id=2&id=3&id=4&id=5&id=6&id=7&id=8&id=9&id=10&id=11&id=12&id=13&id=14&id=15&id=16&id=17&id=18&id=19&id=20&id=21&id=22&id=23&id=24&id=25&id=26&id=27&id=28&id=29&id=30&id=31&id=32&id=33&id=34&id=35&id=36&id=37&id=38&id=39&id=40&id=41&id=42&id=43&id=44&id=45&id=46&id=47&id=48&id=49&id=50&id=51&id=52&id=53&id=54&id=55&id=56&id=57&id=58&id=59&id=60&id=61&id=62&id=63&id=64&id=65&id=66&id=67&id=68&id=69&id=70&id=71&id=72&id=73&id=74&id=75&id=76&id=77&id=78&id=79&id=80&id=81&id=82&id=83&id=84&id=85&id=86&id=87&id=88&id=89&id=90&id=91&id=92&id=93&id=94&id=95&id=96&id=97&id=98&id=99&id=100&id=101&id=102&id=103&id=104&id=105&id=106&id=107&id=108&id=109&id=110&id=111&id=112&id=113&id=114&id=115&id=116&id=117&id=118&id=119&id=120&id=121&id=122&id=123&id=124&id=125&id=126&id=127&id=128&id=129&id=130&id=131&id=132&id=133&id=134&id=135&id=136&id=137&id=138&id=139&id=140&id=141&id=142&id=143&id=144&id=145&id=146&id=147&id=148&id=149&id=150&id=151&id=152&id=153&id=154&id=155&id=156&id=157&id=158&id=159&id=160&id=161&id=162&id=163&id=164&id=165&id=166&id=167&id=168&id=169&id=170&id=171&id=172&id=173&id=174&id=175&id=176&id=177&id=178&id=179&id=180&id=181&id=182&id=183&id=184&id=185&id=186&id=187&id=188&id=189&id=190&id=191&id=192&id=193&id=194&id=195&id=196&id=197&id=198&id=199&id=200&id=201&id=202&id=203&id=204&id=205&id=206&id=207&id=208&id=209&id=210&id=211&id=212&id=213&id=214&id=215&id=216&id=217&id=218&id=219&id=220&id=221&id=222&id=223&id=224&id=225&id=226&id=227&id=228&id=229&id=230&id=231&id=232&id=233&id=234&id=235&id=236&id=237&id=238&id=239&id=240&id=241&id=242&id=243&id=244&id=245&id=246&id=247&id=248&id=249&id=250&id=251&id=252&id=253&id=254&id=255&id=256&id=257&id=258&id=259&id=260&id=261&id=262&id=263&id=264&id=265&id=266&id=267&id=268&id=269&id=270&id=271&id=272&id=273&id=274&id=275&id=276&id=277&id=278&id=279&id=280&id=281&id=282&id=283&id=284&id=285&id=286&id=287&id=288&id=289&id=290&id=291&id=292&id=293&id=294&id=295&id=296&id=297&id=298&id=299", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "DELETE", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=300&id=301&id=302&id=303&id=304&id=305&id=306&id=307&id=308&id=309&id=310&id=311&id=312&id=313&id=314&id=315&id=316&id=317&id=318&id=319&id=320&id=321&id=322&id=323&id=324&id=325&id=326&id=327&id=328&id=329&id=330&id=331&id=332&id=333&id=334&id=335&id=336&id=337&id=338&id=339&id=340&id=341&id=342&id=343&id=344&id=345&id=346&id=347&id=348&id=349&id=350", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "unsupported message Type", - "input": { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "track", - "properties": { - "listData": { - "remove": [1] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - "output": { - "error": "Event type track is not supported" - } - }, - { - "description": "Invalid leadIds format ", - "input": { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "remove": 1 - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - "output": { - "error": "Invalid leadIds format or no leadIds found neither to add nor to remove" - } - }, - { - "description": "Only adding with remove not an array", - "input": { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [{ "id": 1 }], - "remove": 2 - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - } -] diff --git a/test/__tests__/data/marketo_static_list_router_input.json b/test/__tests__/data/marketo_static_list_router_input.json deleted file mode 100644 index ed3a7591e6..0000000000 --- a/test/__tests__/data/marketo_static_list_router_input.json +++ /dev/null @@ -1,1209 +0,0 @@ -[ - { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "id": 1 - }, - { - "id": 2 - }, - { - "id": 3 - } - ], - "remove": [ - { - "id": 4 - }, - { - "id": 5 - }, - { - "id": 6 - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "jobId": 1 - } - }, - { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "id": 0 - }, - { - "id": 1 - }, - { - "id": 2 - }, - { - "id": 3 - }, - { - "id": 4 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 7 - }, - { - "id": 8 - }, - { - "id": 9 - }, - { - "id": 10 - }, - { - "id": 11 - }, - { - "id": 12 - }, - { - "id": 13 - }, - { - "id": 14 - }, - { - "id": 15 - }, - { - "id": 16 - }, - { - "id": 17 - }, - { - "id": 18 - }, - { - "id": 19 - }, - { - "id": 20 - }, - { - "id": 21 - }, - { - "id": 22 - }, - { - "id": 23 - }, - { - "id": 24 - }, - { - "id": 25 - }, - { - "id": 26 - }, - { - "id": 27 - }, - { - "id": 28 - }, - { - "id": 29 - }, - { - "id": 30 - }, - { - "id": 31 - }, - { - "id": 32 - }, - { - "id": 33 - }, - { - "id": 34 - }, - { - "id": 35 - }, - { - "id": 36 - }, - { - "id": 37 - }, - { - "id": 38 - }, - { - "id": 39 - }, - { - "id": 40 - }, - { - "id": 41 - }, - { - "id": 42 - }, - { - "id": 43 - }, - { - "id": 44 - }, - { - "id": 45 - }, - { - "id": 46 - }, - { - "id": 47 - }, - { - "id": 48 - }, - { - "id": 49 - }, - { - "id": 50 - }, - { - "id": 51 - }, - { - "id": 52 - }, - { - "id": 53 - }, - { - "id": 54 - }, - { - "id": 55 - }, - { - "id": 56 - }, - { - "id": 57 - }, - { - "id": 58 - }, - { - "id": 59 - }, - { - "id": 60 - }, - { - "id": 61 - }, - { - "id": 62 - }, - { - "id": 63 - }, - { - "id": 64 - }, - { - "id": 65 - }, - { - "id": 66 - }, - { - "id": 67 - }, - { - "id": 68 - }, - { - "id": 69 - }, - { - "id": 70 - }, - { - "id": 71 - }, - { - "id": 72 - }, - { - "id": 73 - }, - { - "id": 74 - }, - { - "id": 75 - }, - { - "id": 76 - }, - { - "id": 77 - }, - { - "id": 78 - }, - { - "id": 79 - }, - { - "id": 80 - }, - { - "id": 81 - }, - { - "id": 82 - }, - { - "id": 83 - }, - { - "id": 84 - }, - { - "id": 85 - }, - { - "id": 86 - }, - { - "id": 87 - }, - { - "id": 88 - }, - { - "id": 89 - }, - { - "id": 90 - }, - { - "id": 91 - }, - { - "id": 92 - }, - { - "id": 93 - }, - { - "id": 94 - }, - { - "id": 95 - }, - { - "id": 96 - }, - { - "id": 97 - }, - { - "id": 98 - }, - { - "id": 99 - }, - { - "id": 100 - }, - { - "id": 101 - }, - { - "id": 102 - }, - { - "id": 103 - }, - { - "id": 104 - }, - { - "id": 105 - }, - { - "id": 106 - }, - { - "id": 107 - }, - { - "id": 108 - }, - { - "id": 109 - }, - { - "id": 110 - }, - { - "id": 111 - }, - { - "id": 112 - }, - { - "id": 113 - }, - { - "id": 114 - }, - { - "id": 115 - }, - { - "id": 116 - }, - { - "id": 117 - }, - { - "id": 118 - }, - { - "id": 119 - }, - { - "id": 120 - }, - { - "id": 121 - }, - { - "id": 122 - }, - { - "id": 123 - }, - { - "id": 124 - }, - { - "id": 125 - }, - { - "id": 126 - }, - { - "id": 127 - }, - { - "id": 128 - }, - { - "id": 129 - }, - { - "id": 130 - }, - { - "id": 131 - }, - { - "id": 132 - }, - { - "id": 133 - }, - { - "id": 134 - }, - { - "id": 135 - }, - { - "id": 136 - }, - { - "id": 137 - }, - { - "id": 138 - }, - { - "id": 139 - }, - { - "id": 140 - }, - { - "id": 141 - }, - { - "id": 142 - }, - { - "id": 143 - }, - { - "id": 144 - }, - { - "id": 145 - }, - { - "id": 146 - }, - { - "id": 147 - }, - { - "id": 148 - }, - { - "id": 149 - }, - { - "id": 150 - }, - { - "id": 151 - }, - { - "id": 152 - }, - { - "id": 153 - }, - { - "id": 154 - }, - { - "id": 155 - }, - { - "id": 156 - }, - { - "id": 157 - }, - { - "id": 158 - }, - { - "id": 159 - }, - { - "id": 160 - }, - { - "id": 161 - }, - { - "id": 162 - }, - { - "id": 163 - }, - { - "id": 164 - }, - { - "id": 165 - }, - { - "id": 166 - }, - { - "id": 167 - }, - { - "id": 168 - }, - { - "id": 169 - }, - { - "id": 170 - }, - { - "id": 171 - }, - { - "id": 172 - }, - { - "id": 173 - }, - { - "id": 174 - }, - { - "id": 175 - }, - { - "id": 176 - }, - { - "id": 177 - }, - { - "id": 178 - }, - { - "id": 179 - }, - { - "id": 180 - }, - { - "id": 181 - }, - { - "id": 182 - }, - { - "id": 183 - }, - { - "id": 184 - }, - { - "id": 185 - }, - { - "id": 186 - }, - { - "id": 187 - }, - { - "id": 188 - }, - { - "id": 189 - }, - { - "id": 190 - }, - { - "id": 191 - }, - { - "id": 192 - }, - { - "id": 193 - }, - { - "id": 194 - }, - { - "id": 195 - }, - { - "id": 196 - }, - { - "id": 197 - }, - { - "id": 198 - }, - { - "id": 199 - }, - { - "id": 200 - }, - { - "id": 201 - }, - { - "id": 202 - }, - { - "id": 203 - }, - { - "id": 204 - }, - { - "id": 205 - }, - { - "id": 206 - }, - { - "id": 207 - }, - { - "id": 208 - }, - { - "id": 209 - }, - { - "id": 210 - }, - { - "id": 211 - }, - { - "id": 212 - }, - { - "id": 213 - }, - { - "id": 214 - }, - { - "id": 215 - }, - { - "id": 216 - }, - { - "id": 217 - }, - { - "id": 218 - }, - { - "id": 219 - }, - { - "id": 220 - }, - { - "id": 221 - }, - { - "id": 222 - }, - { - "id": 223 - }, - { - "id": 224 - }, - { - "id": 225 - }, - { - "id": 226 - }, - { - "id": 227 - }, - { - "id": 228 - }, - { - "id": 229 - }, - { - "id": 230 - }, - { - "id": 231 - }, - { - "id": 232 - }, - { - "id": 233 - }, - { - "id": 234 - }, - { - "id": 235 - }, - { - "id": 236 - }, - { - "id": 237 - }, - { - "id": 238 - }, - { - "id": 239 - }, - { - "id": 240 - }, - { - "id": 241 - }, - { - "id": 242 - }, - { - "id": 243 - }, - { - "id": 244 - }, - { - "id": 245 - }, - { - "id": 246 - }, - { - "id": 247 - }, - { - "id": 248 - }, - { - "id": 249 - }, - { - "id": 250 - }, - { - "id": 251 - }, - { - "id": 252 - }, - { - "id": 253 - }, - { - "id": 254 - }, - { - "id": 255 - }, - { - "id": 256 - }, - { - "id": 257 - }, - { - "id": 258 - }, - { - "id": 259 - }, - { - "id": 260 - }, - { - "id": 261 - }, - { - "id": 262 - }, - { - "id": 263 - }, - { - "id": 264 - }, - { - "id": 265 - }, - { - "id": 266 - }, - { - "id": 267 - }, - { - "id": 268 - }, - { - "id": 269 - }, - { - "id": 270 - }, - { - "id": 271 - }, - { - "id": 272 - }, - { - "id": 273 - }, - { - "id": 274 - }, - { - "id": 275 - }, - { - "id": 276 - }, - { - "id": 277 - }, - { - "id": 278 - }, - { - "id": 279 - }, - { - "id": 280 - }, - { - "id": 281 - }, - { - "id": 282 - }, - { - "id": 283 - }, - { - "id": 284 - }, - { - "id": 285 - }, - { - "id": 286 - }, - { - "id": 287 - }, - { - "id": 288 - }, - { - "id": 289 - }, - { - "id": 290 - }, - { - "id": 291 - }, - { - "id": 292 - }, - { - "id": 293 - }, - { - "id": 294 - }, - { - "id": 295 - }, - { - "id": 296 - }, - { - "id": 297 - }, - { - "id": 298 - }, - { - "id": 299 - }, - { - "id": 300 - }, - { - "id": 301 - }, - { - "id": 302 - }, - { - "id": 303 - }, - { - "id": 304 - }, - { - "id": 305 - }, - { - "id": 306 - }, - { - "id": 307 - }, - { - "id": 308 - }, - { - "id": 309 - }, - { - "id": 310 - }, - { - "id": 311 - }, - { - "id": 312 - }, - { - "id": 313 - }, - { - "id": 314 - }, - { - "id": 315 - }, - { - "id": 316 - }, - { - "id": 317 - }, - { - "id": 318 - }, - { - "id": 319 - }, - { - "id": 320 - }, - { - "id": 321 - }, - { - "id": 322 - }, - { - "id": 323 - }, - { - "id": 324 - }, - { - "id": 325 - }, - { - "id": 326 - }, - { - "id": 327 - }, - { - "id": 328 - }, - { - "id": 329 - }, - { - "id": 330 - }, - { - "id": 331 - }, - { - "id": 332 - }, - { - "id": 333 - }, - { - "id": 334 - }, - { - "id": 335 - }, - { - "id": 336 - }, - { - "id": 337 - }, - { - "id": 338 - }, - { - "id": 339 - }, - { - "id": 340 - }, - { - "id": 341 - }, - { - "id": 342 - }, - { - "id": 343 - }, - { - "id": 344 - }, - { - "id": 345 - }, - { - "id": 346 - }, - { - "id": 347 - }, - { - "id": 348 - }, - { - "id": 349 - }, - { - "id": 350 - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "jobId": 2 - } - }, - { - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "track", - "properties": { - "listData": { - "remove": [1] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "jobId": 3 - } - } -] diff --git a/test/__tests__/data/marketo_static_list_router_metadata_input.json b/test/__tests__/data/marketo_static_list_router_metadata_input.json deleted file mode 100644 index d006aa184b..0000000000 --- a/test/__tests__/data/marketo_static_list_router_metadata_input.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer access_token_success" - }, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - }, - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "accountId": "marketo_acct_id_success", - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "staticListId": 3027 - }, - "secretConfig": {}, - "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", - "name": "Marketo Static List", - "enabled": true, - "workspaceId": "1TSN08muJTZwH8iCDmnnRt1pmLd", - "deleted": false, - "createdAt": "2020-12-30T08:39:32.005Z", - "updatedAt": "2021-02-03T16:22:31.374Z", - "destinationDefinition": { - "config": { - "destConfig": { - "defaultConfig": ["accountId", "clientId", "clientSecret", "staticListId"] - }, - "secretKeys": ["clientSecret"], - "excludeKeys": [], - "includeKeys": [], - "routerTransform": true, - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - }, - "id": "1aIXqM806xAVm92nx07YwKbRrO9", - "name": "MARKETO_STATIC_LIST", - "displayName": "Marketo Static List", - "createdAt": "2020-04-09T09:24:31.794Z", - "updatedAt": "2021-01-11T11:03:28.103Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true - } -} diff --git a/test/__tests__/data/marketo_static_list_router_metadata_output.json b/test/__tests__/data/marketo_static_list_router_metadata_output.json deleted file mode 100644 index bc560d73a7..0000000000 --- a/test/__tests__/data/marketo_static_list_router_metadata_output.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "destInfo": { - "authKey": "1mMy5cqbtfuaKZv1IhVQKnBdVwe" - }, - "jobId": 1 - }, - { - "destInfo": { - "authKey": "1mMy5cqbtfuaKZv1IhVQKnBdVwe" - }, - "jobId": 2 - }, - { - "destInfo": { - "authKey": "1mMy5cqbtfuaKZv1IhVQKnBdVwe" - }, - "jobId": 3 - } -] diff --git a/test/__tests__/data/marketo_static_list_router_output.json b/test/__tests__/data/marketo_static_list_router_output.json deleted file mode 100644 index 9c096b84c6..0000000000 --- a/test/__tests__/data/marketo_static_list_router_output.json +++ /dev/null @@ -1,170 +0,0 @@ -[ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "DELETE", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=4&id=5&id=6", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=0&id=1&id=2&id=3&id=4&id=5&id=6&id=7&id=8&id=9&id=10&id=11&id=12&id=13&id=14&id=15&id=16&id=17&id=18&id=19&id=20&id=21&id=22&id=23&id=24&id=25&id=26&id=27&id=28&id=29&id=30&id=31&id=32&id=33&id=34&id=35&id=36&id=37&id=38&id=39&id=40&id=41&id=42&id=43&id=44&id=45&id=46&id=47&id=48&id=49&id=50&id=51&id=52&id=53&id=54&id=55&id=56&id=57&id=58&id=59&id=60&id=61&id=62&id=63&id=64&id=65&id=66&id=67&id=68&id=69&id=70&id=71&id=72&id=73&id=74&id=75&id=76&id=77&id=78&id=79&id=80&id=81&id=82&id=83&id=84&id=85&id=86&id=87&id=88&id=89&id=90&id=91&id=92&id=93&id=94&id=95&id=96&id=97&id=98&id=99&id=100&id=101&id=102&id=103&id=104&id=105&id=106&id=107&id=108&id=109&id=110&id=111&id=112&id=113&id=114&id=115&id=116&id=117&id=118&id=119&id=120&id=121&id=122&id=123&id=124&id=125&id=126&id=127&id=128&id=129&id=130&id=131&id=132&id=133&id=134&id=135&id=136&id=137&id=138&id=139&id=140&id=141&id=142&id=143&id=144&id=145&id=146&id=147&id=148&id=149&id=150&id=151&id=152&id=153&id=154&id=155&id=156&id=157&id=158&id=159&id=160&id=161&id=162&id=163&id=164&id=165&id=166&id=167&id=168&id=169&id=170&id=171&id=172&id=173&id=174&id=175&id=176&id=177&id=178&id=179&id=180&id=181&id=182&id=183&id=184&id=185&id=186&id=187&id=188&id=189&id=190&id=191&id=192&id=193&id=194&id=195&id=196&id=197&id=198&id=199&id=200&id=201&id=202&id=203&id=204&id=205&id=206&id=207&id=208&id=209&id=210&id=211&id=212&id=213&id=214&id=215&id=216&id=217&id=218&id=219&id=220&id=221&id=222&id=223&id=224&id=225&id=226&id=227&id=228&id=229&id=230&id=231&id=232&id=233&id=234&id=235&id=236&id=237&id=238&id=239&id=240&id=241&id=242&id=243&id=244&id=245&id=246&id=247&id=248&id=249&id=250&id=251&id=252&id=253&id=254&id=255&id=256&id=257&id=258&id=259&id=260&id=261&id=262&id=263&id=264&id=265&id=266&id=267&id=268&id=269&id=270&id=271&id=272&id=273&id=274&id=275&id=276&id=277&id=278&id=279&id=280&id=281&id=282&id=283&id=284&id=285&id=286&id=287&id=288&id=289&id=290&id=291&id=292&id=293&id=294&id=295&id=296&id=297&id=298&id=299", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=300&id=301&id=302&id=303&id=304&id=305&id=306&id=307&id=308&id=309&id=310&id=311&id=312&id=313&id=314&id=315&id=316&id=317&id=318&id=319&id=320&id=321&id=322&id=323&id=324&id=325&id=326&id=327&id=328&id=329&id=330&id=331&id=332&id=333&id=334&id=335&id=336&id=337&id=338&id=339&id=340&id=341&id=342&id=343&id=344&id=345&id=346&id=347&id=348&id=349&id=350", - "headers": { - "Authorization": "Bearer access_token_success", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "metadata": [ - { - "jobId": 3 - } - ], - "destination": { - "ID": "1zia9wKshXt80YksLmUdJnr7IHI", - "Name": "test_marketo", - "DestinationDefinition": { - "ID": "1iVQvTRMsPPyJzwol0ifH93QTQ6", - "Name": "MARKETO", - "DisplayName": "Marketo", - "transformAt": "processor", - "transformAtV1": "processor" - }, - "Config": { - "clientId": "marketo_client_id_success", - "clientSecret": "marketo_client_secret_success", - "accountId": "marketo_acct_id_success", - "staticListId": 1234 - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "batched": false, - "statusCode": 400, - "error": "Event type track is not supported", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - } -] diff --git a/test/__tests__/data/moengage_input.json b/test/__tests__/data/moengage_input.json deleted file mode 100644 index 290d19565c..0000000000 --- a/test/__tests__/data/moengage_input.json +++ /dev/null @@ -1,1661 +0,0 @@ -[ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "timezone": "Asia/Tokyo", - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "originalTimestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "category": "some category", - "originalArray": [ - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - } - ], - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "timestamp": "2020-10-16T13:40:12.791+05:30", - "type": "track", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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", - "originalTimestamp": "2020-10-16T08:26:14.938Z", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:26:14.939Z", - "timestamp": "2020-10-16T13:56:14.944+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "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 - }, - "traits": { - "CID": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "RC_DATE": "2021-03-22T12:36:34Z", - "RC_NO_OF_SKUS": 1, - "RC_PN_SKU_LIST": "9317" - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "originalTimestamp": "2020-10-16T08:26:14.938Z", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:26:14.939Z", - "timestamp": "2020-10-16T13:56:14.944+05:30", - "type": "identify" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "token": "desuhere", - "type": "android" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "531e3507-1ef5-4a06-b83c-cb521ff34f0c", - "originalTimestamp": "2020-10-16T08:53:29.386Z", - "receivedAt": "2020-10-16T14:23:29.402+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:53:29.387Z", - "timestamp": "2020-10-16T14:23:29.401+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "a61357dd-e29e-4033-b1af-029625947fec", - "originalTimestamp": "2020-10-16T09:05:11.001Z", - "receivedAt": "2020-10-16T14:35:11.014+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:05:11.002Z", - "timestamp": "2020-10-16T14:35:11.013+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "EU" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "9eb2f7c0-d896-494e-b105-60f604ce2906", - "originalTimestamp": "2020-10-16T09:09:31.465Z", - "receivedAt": "2020-10-16T14:39:31.468+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:09:31.466Z", - "timestamp": "2020-10-16T14:39:31.467+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "IND" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "9eb2f7c0-d896-494e-b105-60f604ce2906", - "originalTimestamp": "2020-10-16T09:09:31.465Z", - "receivedAt": "2020-10-16T14:39:31.468+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:09:31.466Z", - "timestamp": "2020-10-16T14:39:31.467+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "AMA" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "9eb2f7c0-d896-494e-b105-60f604ce2906", - "originalTimestamp": "2020-10-16T09:09:31.465Z", - "receivedAt": "2020-10-16T14:39:31.468+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:09:31.466Z", - "timestamp": "2020-10-16T14:39:31.467+05:30", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "IND" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "9eb2f7c0-d896-494e-b105-60f604ce2906", - "originalTimestamp": "2020-10-16T09:09:31.465Z", - "receivedAt": "2020-10-16T14:39:31.468+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T09:09:31.466Z", - "timestamp": "2020-10-16T14:39:31.467+05:30", - "type": "gone", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "IND" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "timezone": "Asia/Kolkata", - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "originalTimestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "category": "some category", - "originalArray": [ - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3", "tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3", "tag_1", "tag_2", "tag_3"] - } - ], - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "timestamp": "2020-10-16T13:40:12.791+05:30", - "type": "track", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "timezone": "Wrong/Timezone", - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "originalTimestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "timestamp": "2020-10-16T13:40:12.791+05:30", - "type": "track", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "token": "desuhere", - "type": "ipados" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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": "531e3507-1ef5-4a06-b83c-cb521ff34f0c", - "originalTimestamp": "2020-10-16T08:53:29.386Z", - "receivedAt": "2020-10-16T14:23:29.402+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:53:29.387Z", - "timestamp": "2020-10-16T14:23:29.401+05:30", - "type": "identify", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "timezone": "Wrong/Timezone", - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "token": "desuhere", - "type": "ipados" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "originalTimestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "category": "some category", - "originalArray": [ - { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"] - }, - { - "nested_field": "nested value", - "tags": ["tag_1"] - }, - { - "nested_field": "nested value" - } - ], - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "timestamp": "2020-10-16T13:40:12.791+05:30", - "type": "track", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "timezone": "Wrong/Timezone", - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "token": "desuhere", - "type": "ipados" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "originalTimestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "category": "some category", - "originalArray": { - "nested_field": "nested value", - "tags": ["tag_1", "tag_2", "tag_3"], - "key1": { - "nested_field": "nested value", - "key11": "val11", - "key12": "val12", - "key13": { - "k1": "v1", - "k2": "v2" - }, - "key2": {}, - "key3": [] - } - }, - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "timestamp": "2020-10-16T13:40:12.791+05:30", - "type": "track", - "userId": "rudder123" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "messageId": "adc7c2d0-0ebf-4593-b878-a0eb75932820", - "originalTimestamp": "2023-03-09T00:09:53.235+05:30", - "previousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "receivedAt": "2023-03-09T00:09:51.292+05:30", - "request_ip": "[::1]", - "rudderId": "1703da0d-2472-459c-9bf0-4e7b66b4673a", - "sentAt": "2023-03-09T00:09:53.235+05:30", - "timestamp": "2023-03-09T00:09:51.291+05:30", - "type": "alias", - "userId": "12345" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "messageId": "adc7c2d0-0ebf-4593-b878-a0eb75932820", - "originalTimestamp": "2023-03-09T00:09:53.235+05:30", - "receivedAt": "2023-03-09T00:09:51.292+05:30", - "request_ip": "[::1]", - "rudderId": "1703da0d-2472-459c-9bf0-4e7b66b4673a", - "sentAt": "2023-03-09T00:09:53.235+05:30", - "timestamp": "2023-03-09T00:09:51.291+05:30", - "type": "alias", - "userId": "12345" - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/moengage_output.json b/test/__tests__/data/moengage_output.json deleted file mode 100644 index 87559e5e6c..0000000000 --- a/test/__tests__/data/moengage_output.json +++ /dev/null @@ -1,810 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api-01.moengage.com/v1/event/W0ZHNMPI2O4KHJ48ZILZACRA", - "headers": { - "Content-Type": "application/json", - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "rudder123", - "type": "event", - "actions": [ - { - "action": "Order Completed", - "attributes": { - "category": "some category", - "originalArray[0].nested_field": "nested value", - "originalArray[0].tags[0]": "tag_1", - "originalArray[0].tags[1]": "tag_2", - "originalArray[0].tags[2]": "tag_3", - "originalArray[1].nested_field": "nested value", - "originalArray[1].tags[0]": "tag_1", - "originalArray[1].tags[1]": "tag_2", - "originalArray[1].tags[2]": "tag_3", - "originalArray[2].nested_field": "nested value", - "originalArray[2].tags[0]": "tag_1", - "originalArray[2].tags[1]": "tag_2", - "originalArray[2].tags[2]": "tag_3", - "originalArray[3].nested_field": "nested value", - "originalArray[3].tags[0]": "tag_1", - "originalArray[3].tags[1]": "tag_2", - "originalArray[3].tags[2]": "tag_3", - "originalArray[4].nested_field": "nested value", - "originalArray[4].tags[0]": "tag_1", - "originalArray[4].tags[1]": "tag_2", - "originalArray[4].tags[2]": "tag_3", - "originalArray[5].nested_field": "nested value", - "originalArray[5].tags[0]": "tag_1", - "originalArray[5].tags[1]": "tag_2", - "originalArray[5].tags[2]": "tag_3", - "originalArray[6].nested_field": "nested value", - "originalArray[6].tags[0]": "tag_1", - "originalArray[6].tags[1]": "tag_2", - "originalArray[6].tags[2]": "tag_3", - "originalArray[7].nested_field": "nested value", - "originalArray[7].tags[0]": "tag_1", - "originalArray[7].tags[1]": "tag_2", - "originalArray[7].tags[2]": "tag_3", - "originalArray[8].nested_field": "nested value", - "originalArray[8].tags[0]": "tag_1", - "originalArray[8].tags[1]": "tag_2", - "originalArray[8].tags[2]": "tag_3", - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "app_version": "1.1.6", - "current_time": "2020-10-16T13:40:12.791+05:30", - "user_timezone_offset": 32400, - "platform": "web" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "customer", - "attributes": { - "name": "Rudder Test", - "plan": "Enterprise", - "email": "rudderTest@gmail.com", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "company.id": "abc123", - "created_time": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)" - }, - "customer_id": "rudder123" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "headers": { - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-01.moengage.com/v1/customer/W0ZHNMPI2O4KHJ48ZILZACRA" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "customer", - "attributes": { - "CID": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "RC_DATE": "2021-03-22T12:36:34Z", - "RC_NO_OF_SKUS": 1, - "RC_PN_SKU_LIST": "9317" - }, - "customer_id": "4eb021e9-a2af-4926-ae82-fe996d12f3c5" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "headers": { - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-01.moengage.com/v1/customer/W0ZHNMPI2O4KHJ48ZILZACRA" - }, - [ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "customer", - "attributes": { - "name": "Rudder Test", - "plan": "Enterprise", - "email": "rudderTest@gmail.com", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "company.id": "abc123", - "created_time": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)" - }, - "customer_id": "rudder123" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "headers": { - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-01.moengage.com/v1/customer/W0ZHNMPI2O4KHJ48ZILZACRA" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "device", - "device_id": "7e32188a4dab669f", - "attributes": { - "model": "Android SDK built for x86", - "push_id": "desuhere", - "platform": "android", - "app_version": "1.1.6" - }, - "customer_id": "rudder123" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "headers": { - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-01.moengage.com/v1/device/W0ZHNMPI2O4KHJ48ZILZACRA" - } - ], - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "customer", - "attributes": { - "name": "Rudder Test", - "plan": "Enterprise", - "email": "rudderTest@gmail.com", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "company.id": "abc123", - "created_time": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)" - }, - "customer_id": "rudder123" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "headers": { - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-02.moengage.com/v1/customer/W0ZHNMPI2O4KHJ48ZILZACRA" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "customer", - "attributes": { - "name": "Rudder Test", - "plan": "Enterprise", - "email": "rudderTest@gmail.com", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "company.id": "abc123", - "created_time": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)" - }, - "customer_id": "rudder123" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "headers": { - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-03.moengage.com/v1/customer/W0ZHNMPI2O4KHJ48ZILZACRA" - }, - { - "statusCode": 400, - "error": "The region is not valid" - }, - { - "statusCode": 400, - "error": "Event type is required" - }, - { - "statusCode": 400, - "error": "Event type gone is not supported" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api-01.moengage.com/v1/event/W0ZHNMPI2O4KHJ48ZILZACRA", - "headers": { - "Content-Type": "application/json", - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "rudder123", - "type": "event", - "actions": [ - { - "action": "Order Completed", - "attributes": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "category": "some category", - "originalArray[0].nested_field": "nested value", - "originalArray[0].tags[0]": "tag_1", - "originalArray[0].tags[1]": "tag_2", - "originalArray[0].tags[2]": "tag_3", - "originalArray[1].nested_field": "nested value", - "originalArray[1].tags[0]": "tag_1", - "originalArray[1].tags[1]": "tag_2", - "originalArray[1].tags[2]": "tag_3", - "originalArray[2].nested_field": "nested value", - "originalArray[2].tags[0]": "tag_1", - "originalArray[2].tags[1]": "tag_2", - "originalArray[2].tags[2]": "tag_3", - "originalArray[3].nested_field": "nested value", - "originalArray[3].tags[0]": "tag_1", - "originalArray[3].tags[1]": "tag_2", - "originalArray[3].tags[2]": "tag_3", - "originalArray[4].nested_field": "nested value", - "originalArray[4].tags[0]": "tag_1", - "originalArray[4].tags[1]": "tag_2", - "originalArray[4].tags[2]": "tag_3", - "originalArray[5].nested_field": "nested value", - "originalArray[5].tags[0]": "tag_1", - "originalArray[5].tags[1]": "tag_2", - "originalArray[5].tags[2]": "tag_3", - "originalArray[6].nested_field": "nested value", - "originalArray[6].tags[0]": "tag_1", - "originalArray[6].tags[1]": "tag_2", - "originalArray[6].tags[2]": "tag_3", - "originalArray[7].nested_field": "nested value", - "originalArray[7].tags[0]": "tag_1", - "originalArray[7].tags[1]": "tag_2", - "originalArray[7].tags[2]": "tag_3", - "originalArray[7].tags[3]": "tag_1", - "originalArray[7].tags[4]": "tag_2", - "originalArray[7].tags[5]": "tag_3", - "originalArray[8].nested_field": "nested value", - "originalArray[8].tags[0]": "tag_1", - "originalArray[8].tags[1]": "tag_2", - "originalArray[8].tags[2]": "tag_3", - "originalArray[8].tags[3]": "tag_1", - "originalArray[8].tags[4]": "tag_2", - "originalArray[8].tags[5]": "tag_3", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "app_version": "1.1.6", - "current_time": "2020-10-16T13:40:12.791+05:30", - "user_timezone_offset": 19800, - "platform": "web" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "rudder123" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api-01.moengage.com/v1/event/W0ZHNMPI2O4KHJ48ZILZACRA", - "headers": { - "Content-Type": "application/json", - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "rudder123", - "type": "event", - "actions": [ - { - "action": "Order Completed", - "attributes": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "app_version": "1.1.6", - "current_time": "2020-10-16T13:40:12.791+05:30", - "platform": "web" - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5" - }, - [ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "customer", - "attributes": { - "name": "Rudder Test", - "plan": "Enterprise", - "email": "rudderTest@gmail.com", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "company.id": "abc123", - "created_time": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)" - }, - "customer_id": "rudder123" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "headers": { - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-01.moengage.com/v1/customer/W0ZHNMPI2O4KHJ48ZILZACRA" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "type": "device", - "device_id": "7e32188a4dab669f", - "attributes": { - "model": "AOSP on IA Emulator", - "push_id": "desuhere", - "platform": "iOS", - "app_version": "1.1.6" - }, - "customer_id": "rudder123" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "headers": { - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-01.moengage.com/v1/device/W0ZHNMPI2O4KHJ48ZILZACRA" - } - ], - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api-01.moengage.com/v1/event/W0ZHNMPI2O4KHJ48ZILZACRA", - "headers": { - "Content-Type": "application/json", - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "rudder123", - "device_id": "7e32188a4dab669f", - "type": "event", - "actions": [ - { - "action": "Order Completed", - "attributes": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98, - "originalArray[0].nested_field": "nested value", - "originalArray[0].tags[0]": "tag_1", - "originalArray[0].tags[1]": "tag_2", - "originalArray[0].tags[2]": "tag_3", - "originalArray[1].nested_field": "nested value", - "originalArray[1].tags[0]": "tag_1", - "originalArray[2].nested_field": "nested value", - "category": "some category" - }, - "platform": "iOS", - "app_version": "1.1.6", - "current_time": "2020-10-16T13:40:12.791+05:30" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api-01.moengage.com/v1/event/W0ZHNMPI2O4KHJ48ZILZACRA", - "headers": { - "Content-Type": "application/json", - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "rudder123", - "device_id": "7e32188a4dab669f", - "type": "event", - "actions": [ - { - "action": "Order Completed", - "attributes": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98, - "originalArray.key1.key11": "val11", - "originalArray.key1.key12": "val12", - "originalArray.key1.key13.k1": "v1", - "originalArray.key1.key13.k2": "v2", - "originalArray.key1.nested_field": "nested value", - "originalArray.nested_field": "nested value", - "originalArray.tags[0]": "tag_1", - "originalArray.tags[1]": "tag_2", - "originalArray.tags[2]": "tag_3", - "originalArray.key1.key2": {}, - "originalArray.key1.key3": [], - "category": "some category" - }, - "platform": "iOS", - "app_version": "1.1.6", - "current_time": "2020-10-16T13:40:12.791+05:30" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5" - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "merge_data": [ - { - "merged_user": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "retained_user": "12345" - } - ] - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "userId": "12345", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "version": "1", - "endpoint": "https://api-01.moengage.com/v1/customer/merge?app_id=W0ZHNMPI2O4KHJ48ZILZACRA" - }, - { - "error": "Missing required value from \"previousId\"" - } -] diff --git a/test/__tests__/data/moengage_router_input.json b/test/__tests__/data/moengage_router_input.json deleted file mode 100644 index 5adcf68eae..0000000000 --- a/test/__tests__/data/moengage_router_input.json +++ /dev/null @@ -1,232 +0,0 @@ -[ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "timezone": "Asia/Tokyo", - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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" - }, - "event": "Order Completed", - "integrations": { - "All": true - }, - "messageId": "a0adfab9-baf7-4e09-a2ce-bbe2844c324a", - "originalTimestamp": "2020-10-16T08:10:12.782Z", - "properties": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products": [ - { - "brand": "", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/bacon-jam.jpg", - "name": "Food/Drink", - "position": 1, - "price": 3, - "product_id": "product-bacon-jam", - "quantity": 2, - "sku": "sku-1", - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "value": 6, - "variant": "Extra topped" - }, - { - "brand": "Levis", - "category": "Merch", - "currency": "GBP", - "image_url": "https://www.example.com/product/t-shirt.jpg", - "name": "T-Shirt", - "position": 2, - "price": 12.99, - "product_id": "product-t-shirt", - "quantity": 1, - "sku": "sku-2", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/t-shirt", - "value": 12.99, - "variant": "White" - }, - { - "brand": "Levis", - "category": "Merch", - "coupon": "APPARELSALE", - "currency": "GBP", - "image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "name": "T-Shirt-on-offer", - "position": 1, - "price": 12.99, - "product_id": "offer-t-shirt", - "quantity": 1, - "sku": "sku-3", - "typeOfProduct": "Shirt", - "url": "https://www.example.com/product/offer-t-shirt", - "value": 12.99, - "variant": "Black" - } - ], - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "receivedAt": "2020-10-16T13:40:12.792+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:10:12.783Z", - "timestamp": "2020-10-16T13:40:12.791+05:30", - "type": "track", - "userId": "rudder123" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.6" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.6" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:3243/testing/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "rudderTest@gmail.com", - "name": "Rudder Test", - "plan": "Enterprise" - }, - "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", - "originalTimestamp": "2020-10-16T08:26:14.938Z", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "request_ip": "[::1]", - "sentAt": "2020-10-16T08:26:14.939Z", - "timestamp": "2020-10-16T13:56:14.944+05:30", - "type": "identify", - "userId": "rudder123" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/moengage_router_output.json b/test/__tests__/data/moengage_router_output.json deleted file mode 100644 index 75874804eb..0000000000 --- a/test/__tests__/data/moengage_router_output.json +++ /dev/null @@ -1,189 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api-01.moengage.com/v1/event/W0ZHNMPI2O4KHJ48ZILZACRA", - "headers": { - "Content-Type": "application/json", - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "rudder123", - "type": "event", - "actions": [ - { - "action": "Order Completed", - "attributes": { - "checkout_id": "what is checkout id here??", - "coupon": "APPARELSALE", - "currency": "GBP", - "order_id": "transactionId", - "products[0].brand": "", - "products[0].category": "Merch", - "products[0].currency": "GBP", - "products[0].image_url": "https://www.example.com/product/bacon-jam.jpg", - "products[0].name": "Food/Drink", - "products[0].position": 1, - "products[0].price": 3, - "products[0].product_id": "product-bacon-jam", - "products[0].quantity": 2, - "products[0].sku": "sku-1", - "products[0].typeOfProduct": "Food", - "products[0].url": "https://www.example.com/product/bacon-jam", - "products[0].value": 6, - "products[0].variant": "Extra topped", - "products[1].brand": "Levis", - "products[1].category": "Merch", - "products[1].currency": "GBP", - "products[1].image_url": "https://www.example.com/product/t-shirt.jpg", - "products[1].name": "T-Shirt", - "products[1].position": 2, - "products[1].price": 12.99, - "products[1].product_id": "product-t-shirt", - "products[1].quantity": 1, - "products[1].sku": "sku-2", - "products[1].typeOfProduct": "Shirt", - "products[1].url": "https://www.example.com/product/t-shirt", - "products[1].value": 12.99, - "products[1].variant": "White", - "products[2].brand": "Levis", - "products[2].category": "Merch", - "products[2].coupon": "APPARELSALE", - "products[2].currency": "GBP", - "products[2].image_url": "https://www.example.com/product/offer-t-shirt.jpg", - "products[2].name": "T-Shirt-on-offer", - "products[2].position": 1, - "products[2].price": 12.99, - "products[2].product_id": "offer-t-shirt", - "products[2].quantity": 1, - "products[2].sku": "sku-3", - "products[2].typeOfProduct": "Shirt", - "products[2].url": "https://www.example.com/product/offer-t-shirt", - "products[2].value": 12.99, - "products[2].variant": "Black", - "revenue": 31.98, - "shipping": 4, - "value": 31.98 - }, - "platform": "web", - "app_version": "1.1.6", - "current_time": "2020-10-16T13:40:12.791+05:30", - "user_timezone_offset": 32400 - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api-01.moengage.com/v1/customer/W0ZHNMPI2O4KHJ48ZILZACRA", - "headers": { - "Content-Type": "application/json", - "MOE-APPKEY": "W0ZHNMPI2O4KHJ48ZILZACRA", - "Authorization": "Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "rudder123", - "type": "customer", - "attributes": { - "name": "Rudder Test", - "email": "rudderTest@gmail.com", - "created_time": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "company.id": "abc123", - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "plan": "Enterprise" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1iuTZs6eEZVMm6GjRBe6bNShaL3", - "Name": "MoEngage Testing", - "DestinationDefinition": { - "ID": "1iu4802Tx27kNC4KNYYou6D8jzL", - "Name": "MOENGAGE", - "DisplayName": "MoEngage", - "Config": { - "destConfig": { - "defaultConfig": ["apiId", "apiKey", "region"] - }, - "excludeKeys": [], - "includeKeys": [], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"] - } - }, - "Config": { - "apiId": "W0ZHNMPI2O4KHJ48ZILZACRA", - "apiKey": "dummyApiKey", - "eventDelivery": false, - "eventDeliveryTS": 1602757086384, - "region": "US" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/monday.json b/test/__tests__/data/monday.json deleted file mode 100644 index cec99959da..0000000000 --- a/test/__tests__/data/monday.json +++ /dev/null @@ -1,1023 +0,0 @@ -[ - { - "description": "Track call with empty columnToPropertyMapping", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "", - "columnToPropertyMapping": [], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1" - }, - "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": { - "body": { - "FORM": {}, - "JSON": { - "query": "mutation { create_item (board_id: 339283933, item_name: \"Task 1\", column_values: \"{}\") {id}}" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.monday.com/v2", - "files": {}, - "headers": { - "Authorization": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Track call with undefined columnToPropertyMapping", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "", - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1" - }, - "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": { - "body": { - "FORM": {}, - "JSON": { - "query": "mutation { create_item (board_id: 339283933, item_name: \"Task 1\", column_values: \"{}\") {id}}" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.monday.com/v2", - "files": {}, - "headers": { - "Authorization": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Check Unsupported message type", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "", - "columnToPropertyMapping": [], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1" - }, - "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": "Event type identify is not supported" - } - }, - { - "description": "Check for empty message type", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "", - "columnToPropertyMapping": [], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1" - }, - "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": "Event type is required" - } - }, - { - "description": "Check for empty API Token", - "input": { - "destination": { - "Config": { - "apiToken": "", - "boardId": "339283933", - "groupTitle": "", - "columnToPropertyMapping": [], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1" - }, - "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": "ApiToken is a required field" - } - }, - { - "description": "Check for empty board Id", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "", - "groupTitle": "", - "columnToPropertyMapping": [], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1" - }, - "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": "boardId is a required field" - } - }, - { - "description": "Check for event name", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "", - "columnToPropertyMapping": [], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1" - }, - "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": "Event is a required field and should be a string" - } - }, - { - "description": "Track call with columnToPropertyMapping and with empty groupTitle", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { - "from": "Email", - "to": "emailId" - } - ], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1", - "status": "Done", - "emailId": "abc@email.com", - "emailText": "emailId" - }, - "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": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.monday.com/v2", - "headers": { - "Content-Type": "application/json", - "Authorization": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih" - }, - "params": {}, - "body": { - "JSON": { - "query": "mutation { create_item (board_id: 339283933, item_name: \"Task 1\", column_values: \"{\\\"status\\\":{\\\"label\\\":\\\"Done\\\"},\\\"email\\\":{\\\"email\\\":\\\"abc@email.com\\\",\\\"text\\\":\\\"emailId\\\"}}\") {id}}" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with columnToPropertyMapping and with groupTitle", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "Next month", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { - "from": "Email", - "to": "emailId" - } - ], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1", - "status": "Done", - "emailId": "abc@email.com", - "emailText": "emailId" - }, - "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": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.monday.com/v2", - "headers": { - "Content-Type": "application/json", - "Authorization": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih" - }, - "params": {}, - "body": { - "JSON": { - "query": "mutation { create_item (board_id: 339283933, group_id: group_title item_name: \"Task 1\", column_values: \"{\\\"status\\\":{\\\"label\\\":\\\"Done\\\"},\\\"email\\\":{\\\"email\\\":\\\"abc@email.com\\\",\\\"text\\\":\\\"emailId\\\"}}\") {id}}" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Non-existing group title check", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "Next year", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { - "from": "Email", - "to": "emailId" - } - ], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1", - "status": "Done", - "emailId": "abc@email.com", - "emailText": "emailId" - }, - "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": "Group Next year doesn't exist in the board" - } - }, - { - "description": "check for item name", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "Next month", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { - "from": "Email", - "to": "emailId" - } - ], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "", - "status": "Done", - "emailId": "abc@email.com", - "emailText": "emailId" - }, - "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": "Item name is required to create an item" - } - }, - { - "description": "Track call with columnToPropertyMapping and with groupTitle with all supported columns", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "Next month", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { - "from": "Email", - "to": "emailId" - }, - { - "from": "Checkbox", - "to": "checked" - }, - { - "from": "Numbers", - "to": "number" - }, - { - "from": "Name", - "to": "textKey" - }, - { - "from": "Country", - "to": "countryName" - }, - { - "from": "Location", - "to": "address" - }, - { - "from": "Phone", - "to": "phone" - }, - { - "from": "Rating", - "to": "rating" - }, - { - "from": "Link", - "to": "url" - }, - { - "from": "Long Text", - "to": "description" - }, - { - "from": "World Clock", - "to": "timezone" - } - ], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1", - "status": "Done", - "emailId": "abc@email.com", - "emailText": "emailId", - "countryCode": "US", - "latitude": "51.23", - "longitude": "35.3", - "rating": "3", - "linkText": "websiteLink", - "checked": "true", - "number": "45", - "textKey": "texting", - "countryName": "Unites States", - "countryShortName": "US", - "address": "New York", - "phone": "2626277272", - "url": "demo.com", - "description": "property description", - "timezone": "America/New_York" - }, - "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": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.monday.com/v2", - "headers": { - "Content-Type": "application/json", - "Authorization": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih" - }, - "params": {}, - "body": { - "JSON": { - "query": "mutation { create_item (board_id: 339283933, group_id: group_title item_name: \"Task 1\", column_values: \"{\\\"status\\\":{\\\"label\\\":\\\"Done\\\"},\\\"email\\\":{\\\"email\\\":\\\"abc@email.com\\\",\\\"text\\\":\\\"emailId\\\"},\\\"checkbox\\\":{\\\"checked\\\":true},\\\"numbers\\\":\\\"45\\\",\\\"text\\\":\\\"texting\\\",\\\"country\\\":{\\\"countryName\\\":\\\"Unites States\\\",\\\"countryCode\\\":\\\"US\\\"},\\\"location\\\":{\\\"address\\\":\\\"New York\\\",\\\"lat\\\":\\\"51.23\\\",\\\"lng\\\":\\\"35.3\\\"},\\\"phone\\\":{\\\"phone\\\":\\\"2626277272\\\",\\\"countryShortName\\\":\\\"US\\\"},\\\"rating\\\":3,\\\"link\\\":{\\\"url\\\":\\\"demo.com\\\",\\\"text\\\":\\\"websiteLink\\\"},\\\"long_text\\\":{\\\"text\\\":\\\"property description\\\"},\\\"world_clock\\\":{\\\"timezone\\\":\\\"America/New_York\\\"}}\") {id}}" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "check for allowed event name from UI", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "Next month", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { - "from": "Email", - "to": "emailId" - } - ], - "whitelistedEvents": [ - { - "eventName": "" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "", - "status": "Done", - "emailId": "abc@email.com", - "emailText": "emailId" - }, - "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": "Event Discarded. To allow this event, add this in Allowlist" - } - }, - { - "description": "check for deleted boards (configured boards are deleted)", - "input": { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283934", - "groupTitle": "Next year", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { - "from": "Email", - "to": "emailId" - } - ], - "whitelistedEvents": [ - { - "eventName": "create an item" - } - ] - } - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1", - "status": "Done", - "emailId": "abc@email.com", - "emailText": "emailId" - }, - "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": "The board with boardId 339283934 does not exist" - } - } -] diff --git a/test/__tests__/data/monday_router_input.json b/test/__tests__/data/monday_router_input.json deleted file mode 100644 index 2770d23cb2..0000000000 --- a/test/__tests__/data/monday_router_input.json +++ /dev/null @@ -1,111 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "", - "columnToPropertyMapping": [], - "whitelistedEvents": [{ "eventName": "create an item" }] - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1" - }, - "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" - } - }, - { - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "Next month", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { "from": "Email", "to": "emailId" } - ], - "whitelistedEvents": [{ "eventName": "create an item" }] - } - }, - "metadata": { - "jobId": 2 - }, - "message": { - "event": "create an item", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "name": "Task 1", - "status": "Done", - "emailId": "abc@email.com", - "emailText": "emailId" - }, - "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" - } - } -] diff --git a/test/__tests__/data/monday_router_output.json b/test/__tests__/data/monday_router_output.json deleted file mode 100644 index b0beb35a10..0000000000 --- a/test/__tests__/data/monday_router_output.json +++ /dev/null @@ -1,84 +0,0 @@ -[ - { - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "query": "mutation { create_item (board_id: 339283933, item_name: \"Task 1\", column_values: \"{}\") {id}}" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.monday.com/v2", - "files": {}, - "headers": { - "Authorization": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "", - "columnToPropertyMapping": [], - "whitelistedEvents": [{ "eventName": "create an item" }] - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.monday.com/v2", - "headers": { - "Content-Type": "application/json", - "Authorization": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih" - }, - "params": {}, - "body": { - "JSON": { - "query": "mutation { create_item (board_id: 339283933, group_id: group_title item_name: \"Task 1\", column_values: \"{\\\"status\\\":{\\\"label\\\":\\\"Done\\\"},\\\"email\\\":{\\\"email\\\":\\\"abc@email.com\\\",\\\"text\\\":\\\"emailId\\\"}}\") {id}}" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiToken": "eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih", - "boardId": "339283933", - "groupTitle": "Next month", - "columnToPropertyMapping": [ - { - "from": "Status", - "to": "status" - }, - { "from": "Email", "to": "emailId" } - ], - "whitelistedEvents": [{ "eventName": "create an item" }] - } - } - } -] diff --git a/test/__tests__/data/monetate_input.json b/test/__tests__/data/monetate_input.json deleted file mode 100644 index 2b784e98ca..0000000000 --- a/test/__tests__/data/monetate_input.json +++ /dev/null @@ -1,1860 +0,0 @@ -[ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product Viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234", - "product_id": "prodId" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product Viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product List Viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234", - "products": [ - { - "product_id": 1 - }, - { - "product_id": 2 - } - ] - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product Added", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234", - "currency": "INR", - "product_id": 1, - "quantity": 1, - "cart_value": 250, - "sku": "sku" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Signed Up", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "plan": "trial", - "source": "social" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "name": "Homepage", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "page": { - "url": "https://example.com/homepage", - "path": "/homepage", - "referrer": "https://google.com" - } - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "screen", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "name": "Homepage", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "page": { - "url": "https://example.com/homepage", - "path": "/homepage", - "referrer": "https://google.com", - "category": "category" - } - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "page", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "page": { - "url": "https://example.com/homepage", - "referrer": "https://google.com" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "name": "Homepage", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "path": "/homepage", - "referrer": "https://google.com", - "url": "https://example.com/homepage" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "page", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product Added", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "currency": "INR", - "product_id": 1, - "quantity": 1, - "cart_value": 250, - "page": { - "url": "url", - "path": "path", - "category": "category", - "breadcrumbs": "breadcrumbs" - } - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2020-09-03T05:48:50.813Z", - "userId": "user101", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Bangalore", - "name": "Manashi", - "country": "India" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "ab1bb13b-037e-4269-b7ce-79262fbfd964", - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.813Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "track", - "event": "Product Added", - "sentAt": "2020-09-03T05:48:50.815Z", - "userId": "user101", - "channel": "web", - "context": { - "ip": "11.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Bangalore", - "name": "Manashi", - "country": "India" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "0189ef26-5b64-47af-bd4a-f369155b74b0", - "properties": { - "cart_value": 30, - "product_id": "pp10001900011", - "user_actual_id": 12345 - }, - "anonymousId": "anony11111111", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.814Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "name": "Home Page", - "type": "page", - "sentAt": "2020-09-03T05:48:50.816Z", - "userId": "user101", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://google.com", - "path": "https://google.com", - "title": "MIxpanel Test", - "search": "", - "referrer": "google" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Bangalore", - "name": "Manashi", - "country": "India" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "1d263f9b-d5e9-4a3b-ae4a-403129ef9b7c", - "properties": { - "url": "https://google.com", - "name": "Home Page", - "path": "https://google.com", - "title": "MIxpanel Test", - "search": "", - "referrer": "google" - }, - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.816Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "name": "Login Page Name", - "type": "page", - "sentAt": "2020-09-03T05:48:50.820Z", - "userId": "user202", - "channel": "web", - "context": { - "ip": "22.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://geeks.com", - "path": "https://geeks.com", - "title": "LOGIN PAGE OF GEEKSFORGEEKS", - "search": "", - "referrer": "geeksforgeeks" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "userId": "user202", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "category": "Login Category", - "messageId": "8073f133-14cc-4b6b-8043-9e5bb8d17698", - "properties": { - "url": "https://geeks.com", - "name": "Login Page Name", - "path": "https://geeks.com", - "title": "LOGIN PAGE OF GEEKSFORGEEKS", - "search": "", - "category": "Login Category", - "referrer": "geeksforgeeks" - }, - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.819Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "track", - "event": "Cart Viewed", - "sentAt": "2020-09-03T05:48:50.820Z", - "userId": "user202", - "channel": "web", - "context": { - "ip": "22.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "21e78620-748a-4c1c-8570-385206fc61d6", - "properties": { - "products": [ - { - "details": "Apple iphone 7", - "currency": "INR", - "quantity": "1", - "product_id": "p2022222" - }, - { - "price": "90", - "details": "Apple iphone 8", - "quantity": "2", - "product_id": "p201111" - } - ] - }, - "anonymousId": "anony222222222", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.820Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "track", - "event": "cutom event track call", - "sentAt": "2020-09-03T05:48:50.821Z", - "userId": "user202", - "channel": "web", - "context": { - "ip": "11.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "userId": "user101", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "be896347-8e93-4e11-8d0a-67f08b33d969", - "properties": { - "details": "this is custom trackl call" - }, - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.821Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "name": "My orders Page Name", - "type": "page", - "sentAt": "2020-09-03T05:48:50.822Z", - "userId": "user202", - "channel": "web", - "context": { - "ip": "33.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "https://geeks.com", - "title": "MIxpanel Test", - "search": "", - "referrer": "geeksforgeeks" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "e142299a-e819-4590-b99f-9f74d30d6354", - "properties": { - "url": "http://localhost:1111/monetateRudder.html", - "name": "My orders Page Name", - "path": "https://geeks.com", - "title": "MIxpanel Test", - "search": "", - "referrer": "geeksforgeeks" - }, - "anonymousId": "anony33333333", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.821Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "track", - "event": "Product Viewed", - "sentAt": "2020-09-03T05:48:50.823Z", - "userId": "user202", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "userId": "user101", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "5fc62a0d-835b-45c9-bfea-f2f5e57340db", - "properties": { - "sku": "123", - "products": [ - { - "product_id": "p1234678" - } - ], - "product_id": "P303333333" - }, - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.822Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "name": "ONly page name", - "type": "page", - "sentAt": "2020-09-03T05:48:50.823Z", - "userId": "user202", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "1aca7c68-148e-4ef3-a828-d89daf403632", - "properties": { - "url": "http://localhost:1111/monetateRudder.html", - "name": "ONly page name", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.823Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-09-03T05:48:50.824Z", - "userId": "user202", - "channel": "web", - "context": { - "ip": "11.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "moneateId": "Monetate10111111", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "19ef9a4e-fb49-42f2-8eba-b0bb7c934289", - "properties": { - "order_id": "orderCompleted101", - "products": [ - { - "sku": "sku 1 for order completed", - "price": 8900, - "currency": "INR", - "quantity": 1, - "product_id": "p2022222" - }, - { - "sku": "sku 2 for order completed", - "price": 90, - "quantity": 2, - "product_id": "p201111" - } - ] - }, - "anonymousId": "anony11111111", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.824Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-09-03T05:48:50.824Z", - "channel": "web", - "context": { - "ip": "11.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "moneateId": "Monetate10111111", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "19ef9a4e-fb49-42f2-8eba-b0bb7c934289", - "properties": { - "order_id": "orderCompleted101", - "products": [ - { - "sku": "sku 1 for order completed", - "price": 8900, - "currency": "INR", - "quantity": 1, - "product_id": "p2022222" - }, - { - "sku": "sku 2 for order completed", - "price": 90, - "quantity": 2, - "product_id": "p201111" - } - ] - }, - "anonymousId": "anony11111111", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.824Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "name": "ip check page name", - "type": "page", - "sentAt": "2020-09-03T05:48:50.825Z", - "userId": "user202", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://facebook.com", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Sydney", - "phone": "909077777", - "country": "Australia" - }, - "userId": "user606", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "category": "ip check page category", - "messageId": "d6aeaf93-d28b-4a60-b8af-2376bebc4094", - "properties": { - "url": "https://facebook.com", - "name": "ip check page name", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "category": "ip check page category", - "referrer": "http://localhost:1111/" - }, - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.825Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2020-09-04T08:59:41.568Z", - "userId": "user202", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Bangalore", - "name": "Manashi", - "email": "rudder@mysite.com", - "country": "India" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "6debe993-9b1e-40ca-b2de-9054e86bcdd0", - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-04T08:59:41.567Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "sentAt": "2020-09-04T08:59:41.568Z", - "userId": "user202", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "city": "Bangalore", - "name": "Manashi", - "email": "rudder@mysite.com", - "country": "India" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "6debe993-9b1e-40ca-b2de-9054e86bcdd0", - "anonymousId": "RudderEncrypt:U2FsdGVkX19Iqki3tnJjjeUzFWOegZjPY3iYQOPJJSQaTUxTWedGBeEOyFE/hfddGtmaZJnf/HBtc/EDoRjKEA==", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-04T08:59:41.567Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "density": 2 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "name": "Homepage", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "page": { - "url": "https://example.com/homepage", - "path": "/homepage", - "referrer": "https://google.com" - } - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "screen", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "track", - "event": "Order Completed", - "sentAt": "2020-09-03T05:48:50.824Z", - "userId": "user202", - "channel": "web", - "context": { - "ip": "11.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "moneateId": "Monetate10111111", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "19ef9a4e-fb49-42f2-8eba-b0bb7c934289", - "properties": { - "order_id": "orderCompleted101", - "products": [ - { - "sku": "sku 1 for order completed", - "price": "8900", - "currency": "INR", - "quantity": "1" - }, - { - "sku": "sku 2 for order completed", - "price": "90", - "quantity": "2", - "product_id": "p201111" - } - ] - }, - "anonymousId": "anony11111111", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.824Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "type": "track", - "event": "Cart Viewed", - "sentAt": "2020-09-03T05:48:50.820Z", - "userId": "user202", - "channel": "web", - "context": { - "ip": "22.0.0.0", - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.3", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html", - "title": "MIxpanel Test", - "search": "", - "referrer": "http://localhost:1111/" - }, - "locale": "en-GB", - "screen": { - "density": 2.5 - }, - "traits": { - "email": "rudder@mysite.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.3" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - "messageId": "21e78620-748a-4c1c-8570-385206fc61d6", - "properties": { - "products": [ - { - "details": "Apple iphone 7", - "currency": "INR", - "quantity": 1, - "price": 2345, - "product_id": "p2022222" - }, - { - "price": 90, - "details": "Apple iphone 8", - "quantity": 2, - "product_id": "p201111" - } - ] - }, - "anonymousId": "anony222222222", - "integrations": { - "All": true - }, - "originalTimestamp": "2020-09-03T05:48:50.820Z" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product Added", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234", - "currency": "INR", - "quantity": 1, - "cart_value": 250, - "sku": "sku" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product List Viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234", - "products": [ - {}, - { - "product_id": 2 - } - ] - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product Viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product List Viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234", - "products": { - "product_id": "1" - } - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - } -] diff --git a/test/__tests__/data/monetate_output.json b/test/__tests__/data/monetate_output.json deleted file mode 100644 index 82d5f8de22..0000000000 --- a/test/__tests__/data/monetate_output.json +++ /dev/null @@ -1,741 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "monetateId": "1234", - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "0.0.0.0" - }, - { - "eventType": "monetate:context:ScreenSize", - "height": 22, - "width": 11 - }, - { - "eventType": "monetate:context:ProductDetailView", - "products": [ - { - "productId": "prodId", - "sku": "" - } - ] - } - ], - "customerId": "newUser", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "'product_id' is a required field for Product Viewed" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "monetateId": "1234", - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "0.0.0.0" - }, - { - "eventType": "monetate:context:ScreenSize", - "height": 22, - "width": 11 - }, - { - "eventType": "monetate:context:ProductThumbnailView", - "products": ["1", "2"] - } - ], - "customerId": "newUser", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "monetateId": "1234", - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "0.0.0.0" - }, - { - "eventType": "monetate:context:ScreenSize", - "height": 22, - "width": 11 - }, - { - "eventType": "monetate:context:Cart", - "cartLines": [ - { - "pid": "1", - "sku": "sku", - "quantity": 1, - "value": "250", - "currency": "INR" - } - ] - } - ], - "customerId": "newUser", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "0.0.0.0" - }, - { - "eventType": "monetate:context:ScreenSize", - "height": 22, - "width": 11 - } - ], - "customerId": "newUser", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:ScreenSize", - "height": 22, - "width": 11 - } - ], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:PageView", - "url": "https://example.com/homepage", - "path": "/homepage", - "categories": ["category"] - }, - { - "eventType": "monetate:context:Referrer", - "referrer": "https://google.com" - } - ], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:PageView", - "url": "https://example.com/homepage" - }, - { - "eventType": "monetate:context:Referrer", - "referrer": "https://google.com" - } - ], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "0.0.0.0" - }, - { - "eventType": "monetate:context:PageView", - "url": "url", - "path": "path", - "categories": ["category"], - "breadcrumbs": ["breadcrumbs"] - }, - { - "eventType": "monetate:context:ScreenSize", - "height": 22, - "width": 11 - }, - { - "eventType": "monetate:context:Cart", - "cartLines": [ - { - "pid": "1", - "sku": "", - "quantity": 1, - "value": "250", - "currency": "INR" - } - ] - } - ], - "customerId": "newUser" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Event type identify is not supported" - }, - { - "statusCode": 400, - "error": "'product_id', 'quantity', 'cart_value' are required fields and 'quantity' should be a number for Product Added" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:PageView", - "url": "https://google.com", - "path": "https://google.com" - }, - { - "eventType": "monetate:context:Referrer", - "referrer": "google" - } - ], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:PageView", - "url": "https://geeks.com", - "path": "https://geeks.com" - }, - { - "eventType": "monetate:context:Referrer", - "referrer": "geeksforgeeks" - } - ], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "'quantity', 'price' and 'product_id' are required fields and 'quantity' and 'price' should be a number for all products for Cart Viewed" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "11.0.0.0" - }, - { - "eventType": "monetate:context:PageView", - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html" - }, - { - "eventType": "monetate:context:UserAgent", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - } - ], - "customerId": "user202", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:PageView", - "url": "http://localhost:1111/monetateRudder.html", - "path": "https://geeks.com" - }, - { - "eventType": "monetate:context:Referrer", - "referrer": "geeksforgeeks" - } - ], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:PageView", - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html" - }, - { - "eventType": "monetate:context:UserAgent", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - { - "eventType": "monetate:context:ProductDetailView", - "products": [ - { - "productId": "P303333333", - "sku": "123" - } - ] - } - ], - "customerId": "user202", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:PageView", - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html" - }, - { - "eventType": "monetate:context:Referrer", - "referrer": "http://localhost:1111/" - } - ], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "11.0.0.0" - }, - { - "eventType": "monetate:context:PageView", - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html" - }, - { - "eventType": "monetate:context:UserAgent", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - { - "eventType": "monetate:context:Purchase", - "purchaseId": "orderCompleted101", - "purchaseLines": [ - { - "pid": "p2022222", - "sku": "sku 1 for order completed", - "quantity": 1, - "value": "8900.00", - "currency": "INR" - }, - { - "pid": "p201111", - "sku": "sku 2 for order completed", - "quantity": 2, - "value": "180.00", - "currency": "USD" - } - ] - } - ], - "customerId": "user202", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "11.0.0.0" - }, - { - "eventType": "monetate:context:PageView", - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html" - }, - { - "eventType": "monetate:context:UserAgent", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - { - "eventType": "monetate:context:Purchase", - "purchaseId": "orderCompleted101", - "purchaseLines": [ - { - "pid": "p2022222", - "sku": "sku 1 for order completed", - "quantity": 1, - "value": "8900.00", - "currency": "INR" - }, - { - "pid": "p201111", - "sku": "sku 2 for order completed", - "quantity": 2, - "value": "180.00", - "currency": "USD" - } - ] - } - ], - "deviceId": "anony11111111", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:PageView", - "url": "https://facebook.com", - "path": "/monetateRudder.html" - }, - { - "eventType": "monetate:context:Referrer", - "referrer": "http://localhost:1111/" - } - ], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Event type identify is not supported" - }, - { - "error": "Event type is required" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [], - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "'quantity', 'price' and 'product_id' are required fields and 'quantity' and 'price' should be a number for all products for Order Completed" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "22.0.0.0" - }, - { - "eventType": "monetate:context:PageView", - "url": "http://localhost:1111/monetateRudder.html", - "path": "/monetateRudder.html" - }, - { - "eventType": "monetate:context:UserAgent", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" - }, - { - "eventType": "monetate:context:Cart", - "cartLines": [ - { - "pid": "p2022222", - "sku": "", - "quantity": 1, - "value": "2345.00", - "currency": "INR" - }, - { - "pid": "p201111", - "sku": "", - "quantity": 2, - "value": "180.00", - "currency": "USD" - } - ] - } - ], - "customerId": "user202", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "'product_id', 'quantity', 'cart_value' are required fields and 'quantity' should be a number for Product Added" - }, - { - "statusCode": 400, - "error": "'product_id' is a required field for all products for Product List Viewed" - }, - { - "statusCode": 400, - "error": "'product_id' is a required field for Product Viewed" - }, - { - "statusCode": 400, - "error": "'products' missing or not array in Product List Viewed" - } -] diff --git a/test/__tests__/data/monetate_router_input.json b/test/__tests__/data/monetate_router_input.json deleted file mode 100644 index 0571fac96f..0000000000 --- a/test/__tests__/data/monetate_router_input.json +++ /dev/null @@ -1,129 +0,0 @@ -[ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product Viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234", - "product_id": "prodId" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "screen": { - "height": 22, - "width": 11 - }, - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "0.0.0.0" - }, - "traits": { - "address": { - "city": "Kol", - "country": "Ind" - } - }, - "event": "Product List Viewed", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "monetateId": "1234", - "products": [ - { - "product_id": 1 - }, - { - "product_id": 2 - } - ] - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "userId": "newUser" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - } -] diff --git a/test/__tests__/data/monetate_router_output.json b/test/__tests__/data/monetate_router_output.json deleted file mode 100644 index 14018aafc5..0000000000 --- a/test/__tests__/data/monetate_router_output.json +++ /dev/null @@ -1,111 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "monetateId": "1234", - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "0.0.0.0" - }, - { - "eventType": "monetate:context:ScreenSize", - "height": 22, - "width": 11 - }, - { - "eventType": "monetate:context:ProductDetailView", - "products": [ - { - "productId": "prodId", - "sku": "" - } - ] - } - ], - "customerId": "newUser", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://engine.monetate.net/api/engine/v1/decide/retailer", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "monetateId": "1234", - "events": [ - { - "eventType": "monetate:context:IpAddress", - "ipAddress": "0.0.0.0" - }, - { - "eventType": "monetate:context:ScreenSize", - "height": 22, - "width": 11 - }, - { - "eventType": "monetate:context:ProductThumbnailView", - "products": ["1", "2"] - } - ], - "customerId": "newUser", - "channel": "channel" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "monetateChannel": "channel", - "retailerShortName": "retailer", - "apiKey": "api-key" - } - } - } -] diff --git a/test/__tests__/data/new_relic_cdk_output.json b/test/__tests__/data/new_relic_cdk_output.json deleted file mode 100644 index 9789b7d48e..0000000000 --- a/test/__tests__/data/new_relic_cdk_output.json +++ /dev/null @@ -1,204 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.newrelic.com/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "first", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "eventType": "rudderstack", - "traits.trait1": "new-val", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "ip": "14.5.67.21", - "library.name": "http" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.newrelic.com/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "second", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": "test", - "eventType": "rudderstack" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.newrelic.com/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "test", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "eventType": "rudder-testing" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.eu01.nr-data.net/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "first", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "eventType": "rudderstack", - "traits.trait1": "new-val", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "ip": "14.5.67.21", - "library.name": "http" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.eu01.nr-data.net/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "second", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": "test", - "eventType": "rudderstack" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.eu01.nr-data.net/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "test", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "userId": "identified user id", - "anonymousId": "anon-id-new", - "eventType": "rudder-testing" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.newrelic.com/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "test", - "timestamp": 1580602989, - "abc": "123", - "anonymousId": "anon-id-new", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "eventType": "rudderstack", - "traits.trait1": "new-val", - "ip": "14.5.67.21", - "library.name": "http" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "message type identify is not supported" - } -] diff --git a/test/__tests__/data/new_relic_input.json b/test/__tests__/data/new_relic_input.json deleted file mode 100644 index 16bd601816..0000000000 --- a/test/__tests__/data/new_relic_input.json +++ /dev/null @@ -1,418 +0,0 @@ -[ - { - "message": { - "event": "first", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "sentAt": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "accountId": "12345", - "insertKey": "11111122702j2a2U2K2C7H", - "customEventType": "", - "sendDeviceContext": true, - "sendUserIdanonymousId": true, - "dataCenter": "us" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "second", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": "test" - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "sentAt": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "accountId": "12345", - "insertKey": "11111122702j2a2U2K2C7H", - "customEventType": "", - "sendDeviceContext": false, - "sendUserIdanonymousId": false, - "dataCenter": "us" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "test", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "sentAt": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "accountId": "12345", - "insertKey": "11111122702j2a2U2K2C7H", - "customEventType": "rudder-testing", - "sendDeviceContext": false, - "sendUserIdanonymousId": false, - "dataCenter": "us" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "first", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "sentAt": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "accountId": "12345", - "insertKey": "11111122702j2a2U2K2C7H", - "customEventType": "", - "sendDeviceContext": true, - "sendUserIdanonymousId": true, - "dataCenter": "eu" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "second", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": "test" - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "sentAt": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "accountId": "12345", - "insertKey": "11111122702j2a2U2K2C7H", - "customEventType": "", - "sendDeviceContext": false, - "sendUserIdanonymousId": false, - - "dataCenter": "eu" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "test", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "sentAt": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "accountId": "12345", - "insertKey": "11111122702j2a2U2K2C7H", - "customEventType": "rudder-testing", - "sendDeviceContext": false, - "sendUserIdanonymousId": true, - "dataCenter": "eu" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "test", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "sentAt": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "accountId": "12345", - "insertKey": "11111122702j2a2U2K2C7H", - "customEventType": "", - "sendDeviceContext": true, - "sendUserIdanonymousId": true, - "dataCenter": "us" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "first", - "userId": "identified user id", - "type": "identify", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "traits": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "sentAt": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "accountId": "12345", - "insertKey": "11111122702j2a2U2K2C7H", - "customEventType": "", - "sendDeviceContext": true, - "sendUserIdanonymousId": true, - "dataCenter": "us" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/new_relic_output.json b/test/__tests__/data/new_relic_output.json deleted file mode 100644 index 0ca0a6bdbd..0000000000 --- a/test/__tests__/data/new_relic_output.json +++ /dev/null @@ -1,204 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.newrelic.com/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "first", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "eventType": "rudderstack", - "traits.trait1": "new-val", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "ip": "14.5.67.21", - "library.name": "http" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.newrelic.com/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "second", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": "test", - "eventType": "rudderstack" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.newrelic.com/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "test", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "eventType": "rudder-testing" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.eu01.nr-data.net/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "first", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "eventType": "rudderstack", - "traits.trait1": "new-val", - "userId": "identified user id", - "anonymousId": "anon-id-new", - "ip": "14.5.67.21", - "library.name": "http" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.eu01.nr-data.net/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "second", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": "test", - "eventType": "rudderstack" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.eu01.nr-data.net/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "test", - "timestamp": 1580602989, - "abc": "123", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "userId": "identified user id", - "anonymousId": "anon-id-new", - "eventType": "rudder-testing" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights-collector.newrelic.com/v1/accounts/12345/events", - "headers": { - "Api-Key": "11111122702j2a2U2K2C7H", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "test", - "timestamp": 1580602989, - "abc": "123", - "anonymousId": "anon-id-new", - "key.abc": 123, - "array[0].abc": 123, - "array[1].def": 123, - "eventType": "rudderstack", - "traits.trait1": "new-val", - "ip": "14.5.67.21", - "library.name": "http" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "message type \"identify\" not supported for \"new_relic\"" - } -] diff --git a/test/__tests__/data/ometria_batch_input.json b/test/__tests__/data/ometria_batch_input.json deleted file mode 100644 index 982b50607b..0000000000 --- a/test/__tests__/data/ometria_batch_input.json +++ /dev/null @@ -1,219 +0,0 @@ -[ - { - "message": { - "type": "identify", - "sentAt": "2021-10-25T09:40:08.880Z", - "userId": "userId1", - "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": { - "listingId": "test1", - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one", - "field1": "val1", - "ip": "0.0.0.0" - }, - "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", - "receivedAt": "2021-10-25T15:10:08.889+05:30", - "request_ip": "[::1]", - "anonymousId": "7138f7d9-5dd2-4337-805d-ca17be59dc8e", - "integrations": { - "Ometria": { - "listingId": "test1" - } - }, - "originalTimestamp": "2021-10-25T09:40:08.879Z" - }, - "metadata": { "jobId": 1 }, - "destination": { - "ID": "1zzHtStW2ZPlullmz6L7DGnmk9V", - "Name": "ometria-dev", - "DestinationDefinition": { - "ID": "1zgVZhcj1Tij4qlKg7B1Jp16IrH", - "Name": "OMETRIA", - "DisplayName": "Ometria", - "Config": { - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "supportedMessageTypes": ["identify", "track"], - "destConfig": { - "defaultConfig": ["apiKey", "marketingOptin", "allowMarketing", "allowTransactional"] - }, - "secretKeys": ["apiKey"] - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "dummyApiKey", - "allowMarketing": false, - "allowTransactional": false, - "marketingOptin": "EXPLICITLY_OPTEDOUT" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "type": "identify", - "sentAt": "2021-10-25T09:40:08.880Z", - "anonymousId": "123456", - "userId": "userId1", - "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": { - "listingId": "test1", - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one", - "field1": "val1", - "ip": "0.0.0.0" - }, - "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", - "receivedAt": "2021-10-25T15:10:08.889+05:30", - "request_ip": "[::1]", - "integrations": { - "Ometria": { - "listingId": "updatedId1", - "allowMarketing": true - } - }, - "originalTimestamp": "2021-10-25T09:40:08.879Z" - }, - "metadata": { "jobId": 2 }, - "destination": { - "ID": "1zzHtStW2ZPlullmz6L7DGnmk9V", - "Name": "ometria-dev", - "DestinationDefinition": { - "ID": "1zgVZhcj1Tij4qlKg7B1Jp16IrH", - "Name": "OMETRIA", - "DisplayName": "Ometria", - "Config": { - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "supportedMessageTypes": ["identify", "track"], - "destConfig": { - "defaultConfig": ["apiKey", "marketingOptin", "allowMarketing", "allowTransactional"] - }, - "secretKeys": ["apiKey"] - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "dummyApiKey", - "allowMarketing": false, - "allowTransactional": false, - "marketingOptin": "EXPLICITLY_OPTEDOUT" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/ometria_batch_output.json b/test/__tests__/data/ometria_batch_output.json deleted file mode 100644 index f93e662d26..0000000000 --- a/test/__tests__/data/ometria_batch_output.json +++ /dev/null @@ -1,75 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { - "X-Ometria-Auth": "dummyApiKey" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"email\":\"testone@gmail.com\",\"id\":\"test1\",\"customer_id\":\"userId1\",\"firstname\":\"test\",\"lastname\":\"one\",\"@type\":\"contact\",\"properties\":{\"field1\":\"val1\",\"ip\":\"0.0.0.0\"},\"marketing_optin\":\"EXPLICITLY_OPTEDOUT\",\"channels\":{\"sms\":{\"allow_marketing\":false,\"allow_transactional\":false}}},{\"email\":\"testone@gmail.com\",\"id\":\"updatedId1\",\"customer_id\":\"userId1\",\"firstname\":\"test\",\"lastname\":\"one\",\"@type\":\"contact\",\"properties\":{\"field1\":\"val1\",\"ip\":\"0.0.0.0\"},\"marketing_optin\":\"EXPLICITLY_OPTEDOUT\",\"channels\":{\"sms\":{\"allow_marketing\":true,\"allow_transactional\":false}}}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "1zzHtStW2ZPlullmz6L7DGnmk9V", - "Name": "ometria-dev", - "DestinationDefinition": { - "ID": "1zgVZhcj1Tij4qlKg7B1Jp16IrH", - "Name": "OMETRIA", - "DisplayName": "Ometria", - "Config": { - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "supportedMessageTypes": ["identify", "track"], - "destConfig": { - "defaultConfig": ["apiKey", "marketingOptin", "allowMarketing", "allowTransactional"] - }, - "secretKeys": ["apiKey"] - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "dummyApiKey", - "allowMarketing": false, - "allowTransactional": false, - "marketingOptin": "EXPLICITLY_OPTEDOUT" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/ometria_input.json b/test/__tests__/data/ometria_input.json deleted file mode 100644 index de03a585f8..0000000000 --- a/test/__tests__/data/ometria_input.json +++ /dev/null @@ -1,780 +0,0 @@ -[ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "listingId": "test1", - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one", - "field1": "val1", - "ip": "0.0.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 - }, - "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": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "userId1", - "integrations": { - "Ometria": { - "listingId": "test1" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "allowMarketing": false, - "allowTransactional": false, - "marketingOptin": "EXPLICITLY_OPTEDOUT" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "listingId": "test1", - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one", - "field1": "val1", - "ip": "0.0.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 - }, - "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": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "userId1", - "integrations": { - "Ometria": { - "listingId": "updatedId1", - "allowMarketing": true - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "allowMarketing": false, - "allowTransactional": false, - "marketingOptin": "EXPLICITLY_OPTEDOUT" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "listingId": "test1", - "email": "testone@gmail.com", - "name": "test one two", - "field1": "val1", - "ip": "0.0.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 - }, - "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": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "userId1", - "integrations": { - "Ometria": { - "listingId": "test1" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "allowMarketing": false, - "allowTransactional": false, - "marketingOptin": "EXPLICITLY_OPTEDOUT" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "listingId": "test1", - "email": "testone@gmail.com", - "name": "test one", - "field1": "val1", - "marketinOptin": "NOT_SPECIFIED", - "phoneNumber": "+911234567890", - "channels": { - "sms": {} - } - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "userId1", - "integrations": { - "Ometria": { - "listingId": "test1" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "allowMarketing": false, - "allowTransactional": false, - "marketingOptin": "NOT_SPECIFIED" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "listingId": "test1", - "email": "testone@gmail.com", - "name": "test one", - "field1": "val1", - "marketinOptin": "NOT_SPECIFIED", - "phoneNumber": "+911234567890", - "channels": { - "sms": {} - } - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "userId1", - "integrations": { - "Ometria": { - "listingId": "test1", - "allowMarketing": true, - "allowTransactional": true - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "allowMarketing": false, - "allowTransactional": false, - "marketingOptin": "NOT_SPECIFIED" - } - } - }, - { - "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": "userId1", - "event": "event name", - "properties": { - "event_id": "eventId1", - "timestamp": "2017-05-01T14:00:00Z", - "field1": "val1" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "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": "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": "userId1", - "event": "order completed", - "properties": { - "order_id": "orderId1", - "timestamp": "2017-05-01T14:00:00Z", - "grand_total": 1000, - "currency": "INR", - "field1": "val1" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "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": "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": "userId1", - "event": "order completed", - "properties": { - "order_id": "orderId1", - "timestamp": "2017-05-01T14:00:00Z", - "grand_total": 1000, - "currency": "INR", - "field1": "val1", - "products": [ - { - "product_id": "prod123", - "quantity": 4, - "subtotal": 10 - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "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": "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": "userId1", - "event": "order completed", - "properties": { - "order_id": "orderId1", - "timestamp": "2017-05-01T14:00:00Z", - "grand_total": 1000, - "currency": "INR", - "field1": "val1", - "products": [ - { - "product_id": "prod123", - "quantity": 4, - "subtotal": 10, - "variant_options": [ - { - "type": "size", - "id": "newid", - "label": "5" - } - ] - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "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": "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": "userId1", - "event": "order completed", - "properties": { - "order_id": "orderId1", - "timestamp": "2017-05-01T14:00:00Z", - "grand_total": 1000, - "currency": "INR", - "field1": "val1", - "billing_address": "Ba", - "shipping_address": "Sa", - "products": [ - { - "product_id": "prod123", - "quantity": 4, - "subtotal": 10, - "variant_options": [ - { - "type": "size", - "id": "newid", - "label": "5" - } - ] - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "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": "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": "userId1", - "event": "order completed", - "properties": { - "order_id": "orderId1", - "timestamp": "2017-05-01T14:00:00Z", - "grand_total": 1000, - "currency": "INR", - "field1": "val1", - "shipping_address": { - "city": "Kolkata", - "state": "West Bengal", - "postcode": "700001", - "country_code": "IN" - }, - "products": [ - { - "product_id": "prod123", - "quantity": 4, - "subtotal": 10, - "variant_options": [ - { - "type": "size", - "id": "newid", - "label": "5" - } - ] - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - } -] diff --git a/test/__tests__/data/ometria_output.json b/test/__tests__/data/ometria_output.json deleted file mode 100644 index cd41f44d24..0000000000 --- a/test/__tests__/data/ometria_output.json +++ /dev/null @@ -1,189 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"email\":\"testone@gmail.com\",\"id\":\"test1\",\"customer_id\":\"userId1\",\"firstname\":\"test\",\"lastname\":\"one\",\"@type\":\"contact\",\"properties\":{\"field1\":\"val1\",\"ip\":\"0.0.0.0\"},\"marketing_optin\":\"EXPLICITLY_OPTEDOUT\",\"channels\":{\"sms\":{\"allow_marketing\":false,\"allow_transactional\":false}}}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"email\":\"testone@gmail.com\",\"id\":\"updatedId1\",\"customer_id\":\"userId1\",\"firstname\":\"test\",\"lastname\":\"one\",\"@type\":\"contact\",\"properties\":{\"field1\":\"val1\",\"ip\":\"0.0.0.0\"},\"marketing_optin\":\"EXPLICITLY_OPTEDOUT\",\"channels\":{\"sms\":{\"allow_marketing\":true,\"allow_transactional\":false}}}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"email\":\"testone@gmail.com\",\"id\":\"test1\",\"customer_id\":\"userId1\",\"@type\":\"contact\",\"properties\":{\"field1\":\"val1\",\"ip\":\"0.0.0.0\"},\"marketing_optin\":\"EXPLICITLY_OPTEDOUT\",\"channels\":{\"sms\":{\"allow_marketing\":false,\"allow_transactional\":false}},\"firstname\":\"test\",\"middlename\":\"one\",\"lastname\":\"two\"}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"email\":\"testone@gmail.com\",\"id\":\"test1\",\"phone_number\":\"+911234567890\",\"customer_id\":\"userId1\",\"@type\":\"contact\",\"properties\":{\"field1\":\"val1\"},\"marketing_optin\":\"NOT_SPECIFIED\",\"channels\":{\"sms\":{\"allow_marketing\":false,\"allow_transactional\":false}},\"firstname\":\"test\",\"lastname\":\"one\"}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"email\":\"testone@gmail.com\",\"id\":\"test1\",\"phone_number\":\"+911234567890\",\"customer_id\":\"userId1\",\"@type\":\"contact\",\"properties\":{\"field1\":\"val1\"},\"marketing_optin\":\"NOT_SPECIFIED\",\"channels\":{\"sms\":{\"allow_marketing\":true,\"allow_transactional\":true}},\"firstname\":\"test\",\"lastname\":\"one\"}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"id\":\"eventId1\",\"timestamp\":\"2017-05-01T14:00:00Z\",\"identity_email\":\"testone@gmail.com\",\"identity_account_id\":\"userId1\",\"@type\":\"custom_event\",\"event_type\":\"event name\",\"properties\":{\"field1\":\"val1\"}}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"id\":\"orderId1\",\"timestamp\":\"2017-05-01T14:00:00Z\",\"grand_total\":1000,\"currency\":\"INR\",\"ip_address\":\"0.0.0.0\",\"customer\":{\"id\":\"userId1\",\"email\":\"testone@gmail.com\",\"firstname\":\"test\",\"lastname\":\"one\"},\"@type\":\"order\",\"status\":\"complete\",\"is_valid\":true,\"properties\":{\"field1\":\"val1\"}}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"id\":\"orderId1\",\"timestamp\":\"2017-05-01T14:00:00Z\",\"grand_total\":1000,\"currency\":\"INR\",\"ip_address\":\"0.0.0.0\",\"customer\":{\"id\":\"userId1\",\"email\":\"testone@gmail.com\",\"firstname\":\"test\",\"lastname\":\"one\"},\"@type\":\"order\",\"status\":\"complete\",\"is_valid\":true,\"properties\":{\"field1\":\"val1\"},\"lineitems\":[{\"product_id\":\"prod123\",\"quantity\":4,\"subtotal\":10}]}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"id\":\"orderId1\",\"timestamp\":\"2017-05-01T14:00:00Z\",\"grand_total\":1000,\"currency\":\"INR\",\"ip_address\":\"0.0.0.0\",\"customer\":{\"id\":\"userId1\",\"email\":\"testone@gmail.com\",\"firstname\":\"test\",\"lastname\":\"one\"},\"@type\":\"order\",\"status\":\"complete\",\"is_valid\":true,\"properties\":{\"field1\":\"val1\"},\"lineitems\":[{\"product_id\":\"prod123\",\"quantity\":4,\"subtotal\":10,\"variant_options\":[{\"id\":\"newid\",\"type\":\"size\",\"label\":\"5\"}]}]}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"id\":\"orderId1\",\"timestamp\":\"2017-05-01T14:00:00Z\",\"grand_total\":1000,\"currency\":\"INR\",\"ip_address\":\"0.0.0.0\",\"customer\":{\"id\":\"userId1\",\"email\":\"testone@gmail.com\",\"firstname\":\"test\",\"lastname\":\"one\"},\"@type\":\"order\",\"status\":\"complete\",\"is_valid\":true,\"properties\":{\"field1\":\"val1\"},\"lineitems\":[{\"product_id\":\"prod123\",\"quantity\":4,\"subtotal\":10,\"variant_options\":[{\"id\":\"newid\",\"type\":\"size\",\"label\":\"5\"}]}]}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.ometria.com/v2/push", - "headers": { "X-Ometria-Auth": "dummyApiKey" }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": { - "batch": "[{\"id\":\"orderId1\",\"timestamp\":\"2017-05-01T14:00:00Z\",\"grand_total\":1000,\"currency\":\"INR\",\"ip_address\":\"0.0.0.0\",\"shipping_address\":{\"city\":\"Kolkata\",\"state\":\"West Bengal\",\"country_code\":\"IN\",\"postcode\":\"700001\"},\"customer\":{\"id\":\"userId1\",\"email\":\"testone@gmail.com\",\"firstname\":\"test\",\"lastname\":\"one\"},\"@type\":\"order\",\"status\":\"complete\",\"is_valid\":true,\"properties\":{\"field1\":\"val1\"},\"lineitems\":[{\"product_id\":\"prod123\",\"quantity\":4,\"subtotal\":10,\"variant_options\":[{\"id\":\"newid\",\"type\":\"size\",\"label\":\"5\"}]}]}]" - }, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/one_signal.json b/test/__tests__/data/one_signal.json deleted file mode 100644 index da699ec0ef..0000000000 --- a/test/__tests__/data/one_signal.json +++ /dev/null @@ -1,1431 +0,0 @@ -[ - { - "description": "Identify call for creating new device (phone and playerId is not available in the payload). Integrations object is also not available.", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": true, - "smsDeviceType": true, - "eventAsTags": false, - "allowedProperties": [] - } - }, - "message": { - "type": "identify", - "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": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 11, - "identifier": "test@rudderstack.com", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 8, - "identifier": "97c46c81-3140-456d-b2a9-690d70aaca35", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Identify call for creating new device (playerId is not available in the payload). Integrations object is also not available. Email and phone both are available in the payload.", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": true, - "smsDeviceType": true, - "eventAsTags": false, - "allowedProperties": [] - } - }, - "message": { - "type": "identify", - "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", - "phone": "+917836362334", - "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": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 11, - "identifier": "test@rudderstack.com", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "phone": "+917836362334", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 14, - "identifier": "+917836362334", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "phone": "+917836362334", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 8, - "identifier": "97c46c81-3140-456d-b2a9-690d70aaca35", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "phone": "+917836362334", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Identify call for creating a new device(deviceType and identifier is present in the integrations object, playerId not present)", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [] - } - }, - "message": { - "type": "identify", - "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", - "phone": "+917836362334", - "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" - }, - "integrations": { - "one_signal": { - "deviceType": "5", - "identifier": "random_id" - } - }, - "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": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 5, - "identifier": "random_id", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "phone": "+917836362334", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Identify call for creating a new device(channel is mobile and integrations object is not present, playerId not present)", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [] - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "mobile", - "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", - "phone": "+917836362334", - "userId": "user@27" - }, - "locale": "en-US", - "device": { - "token": "token", - "id": "id", - "type": "android" - }, - "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": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 1, - "identifier": "token", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "phone": "+917836362334", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Identify call for Editing a device using playerId", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [] - } - }, - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "mobile", - "context": { - "externalId": [ - { - "type": "playerId", - "id": "85be324d-6dab-4293-ad1f-42199d4c455b" - } - ], - "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": "Raymonds", - "price": "14000", - "firstName": "Test", - "email": "test@rudderstack.com", - "phone": "+917836362334", - "userId": "user@27" - }, - "locale": "en-US", - "device": { - "token": "token", - "id": "id", - "type": "android" - }, - "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": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://onesignal.com/api/v1/players/85be324d-6dab-4293-ad1f-42199d4c455b", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "tags": { - "brand": "Raymonds", - "price": "14000", - "firstName": "Test", - "email": "test@rudderstack.com", - "phone": "+917836362334", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call for updating tags using external_user_id", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "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": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "tags": { - "brand": "Zara", - "price": "12000", - "add_to_Cart": true - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://onesignal.com/api/v1/apps/random-818c-4a28-b98e-6cd8a994eb22/users/user@27" - } - }, - { - "description": "Track call for updating tags using external_user_id (with concatenated event name)", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": true, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "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": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "tags": { - "add_to_Cart": true, - "add_to_Cart_brand": "Zara", - "add_to_Cart_price": "12000" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://onesignal.com/api/v1/apps/random-818c-4a28-b98e-6cd8a994eb22/users/user@27" - } - }, - { - "description": "Track call with tags key having empty value( Output Behaviour: Those keys will be deleted)", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": true, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "message": { - "event": "add_to_Cart", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "brand": "", - "price": "" - }, - "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": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "tags": { - "add_to_Cart": true, - "add_to_Cart_brand": "", - "add_to_Cart_price": "" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://onesignal.com/api/v1/apps/random-818c-4a28-b98e-6cd8a994eb22/users/user@27" - } - }, - { - "description": "Track call having no allowed properties)", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [] - } - }, - "message": { - "event": "add_to_Cart", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "brand": "zara", - "price": "10000" - }, - "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": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "tags": { - "add_to_Cart": true - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://onesignal.com/api/v1/apps/random-818c-4a28-b98e-6cd8a994eb22/users/user@27" - } - }, - { - "description": "Group call ", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": true, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "message": { - "type": "group", - "groupId": "players111", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "brand": "", - "price": "10000" - }, - "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": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "tags": { - "brand": "", - "price": "10000", - "groupId": "players111" - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://onesignal.com/api/v1/apps/random-818c-4a28-b98e-6cd8a994eb22/users/user@27" - } - }, - { - "description": "Check for appId", - "input": { - "destination": { - "Config": { - "appId": "", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": true, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "message": { - "type": "group", - "groupId": "players111", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "brand": "", - "price": "10000" - }, - "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": "appId is a required field" - } - }, - { - "description": "Check for message type", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": true, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "message": { - "type": "page", - "groupId": "players111", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "brand": "", - "price": "10000" - }, - "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 page is not supported" - } - }, - { - "description": "Validating deviceType", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [] - } - }, - "message": { - "type": "identify", - "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", - "phone": "+917836362334", - "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" - }, - "integrations": { - "one_signal": { - "deviceType": "15", - "identifier": "random_id" - } - }, - "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": "device_type 15 is not a valid device_type" - } - }, - { - "description": "check for Message type not present", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "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": "Event type is required" - } - }, - { - "description": "Check for event name in the track call", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "message": { - "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": "Event is not present in the input payloads" - } - }, - { - "description": "Check for groupId ", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": true, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "message": { - "type": "group", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "brand": "", - "price": "10000" - }, - "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": "groupId is required for group events" - } - }, - { - "description": "Check for user Id (required field to update the device) for track call", - "input": { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "message": { - "event": "add_to_Cart", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "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": "userId is required for track events/updating a device" - } - } -] diff --git a/test/__tests__/data/one_signal_router_input.json b/test/__tests__/data/one_signal_router_input.json deleted file mode 100644 index 3b69aaadd7..0000000000 --- a/test/__tests__/data/one_signal_router_input.json +++ /dev/null @@ -1,118 +0,0 @@ -[ - { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": true, - "smsDeviceType": true, - "eventAsTags": false, - "allowedProperties": [] - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "type": "identify", - "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" - } - }, - { - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - }, - "metadata": { - "jobId": 2 - }, - "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" - } - } -] diff --git a/test/__tests__/data/one_signal_router_output.json b/test/__tests__/data/one_signal_router_output.json deleted file mode 100644 index bda0c36336..0000000000 --- a/test/__tests__/data/one_signal_router_output.json +++ /dev/null @@ -1,141 +0,0 @@ -[ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 11, - "identifier": "test@rudderstack.com", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://onesignal.com/api/v1/players", - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "device_os": "1.12.3", - "laguage": "en-US", - "created_at": 1609693373, - "last_active": 1609693373, - "external_user_id": "user@27", - "app_id": "random-818c-4a28-b98e-6cd8a994eb22", - "device_type": 8, - "identifier": "97c46c81-3140-456d-b2a9-690d70aaca35", - "tags": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "userId": "user@27", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": true, - "smsDeviceType": true, - "eventAsTags": false, - "allowedProperties": [] - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "tags": { - "brand": "Zara", - "price": "12000", - "add_to_Cart": true - } - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Accept": "application/json", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://onesignal.com/api/v1/apps/random-818c-4a28-b98e-6cd8a994eb22/users/user@27" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "appId": "random-818c-4a28-b98e-6cd8a994eb22", - "emailDeviceType": false, - "smsDeviceType": false, - "eventAsTags": false, - "allowedProperties": [ - { - "propertyName": "brand" - }, - { - "propertyName": "price" - } - ] - } - } - } -] diff --git a/test/__tests__/data/pagerduty.json b/test/__tests__/data/pagerduty.json deleted file mode 100644 index fdc97ea317..0000000000 --- a/test/__tests__/data/pagerduty.json +++ /dev/null @@ -1,569 +0,0 @@ -[ - { - "description": "No Message type", - "input": { - "message": { - "sentAt": "2022-10-11T13:10:54.877+05:30", - "userId": "user@45", - "rudderId": "caae04c5-959f-467b-a293-86f6c62d59e6", - "messageId": "b6ce7f31-5d76-4240-94d2-3eea020ef791", - "timestamp": "2022-10-11T13:10:52.137+05:30", - "receivedAt": "2022-10-11T13:10:52.138+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-10-11T13:10:54.877+05:30" - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac" - } - } - }, - "output": { - "error": "Event type is required" - } - }, - { - "description": "Routing Key is not present", - "input": { - "message": { - "sentAt": "2022-10-11T13:10:54.877+05:30", - "userId": "user@45", - "context": {}, - "rudderId": "caae04c5-959f-467b-a293-86f6c62d59e6", - "messageId": "b6ce7f31-5d76-4240-94d2-3eea020ef791", - "timestamp": "2022-10-11T13:10:52.137+05:30", - "receivedAt": "2022-10-11T13:10:52.138+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-10-11T13:10:54.877+05:30" - }, - "destination": { - "Config": {} - } - }, - "output": { - "error": "Routing Key Is Required" - } - }, - { - "description": "Unsupported Event type", - "input": { - "message": { - "type": "alias", - "sentAt": "2022-10-11T13:10:54.877+05:30", - "userId": "user@45", - "context": {}, - "rudderId": "caae04c5-959f-467b-a293-86f6c62d59e6", - "messageId": "b6ce7f31-5d76-4240-94d2-3eea020ef791", - "timestamp": "2022-10-11T13:10:52.137+05:30", - "receivedAt": "2022-10-11T13:10:52.138+05:30", - "request_ip": "[::1]", - "originalTimestamp": "2022-10-11T13:10:54.877+05:30" - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac" - } - } - }, - "output": { - "error": "Event type alias is not supported" - } - }, - { - "description": "event name is not present", - "input": { - "message": { - "channel": "web", - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": {} - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac" - } - } - }, - "output": { - "error": "Event name is required" - } - }, - { - "description": "Parameter source is not present", - "input": { - "message": { - "channel": "web", - "type": "track", - "event": "Event name is required", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": { - "dedupKey": "9116b734-7e6b-4497-ab51-c16744d4487e" - } - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac" - } - } - }, - "output": { - "error": "Missing required value from \"properties.source\"" - } - }, - { - "description": "dedup_key is not present", - "input": { - "message": { - "channel": "web", - "type": "track", - "event": "Event name is required", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": { - "action": "resolve" - } - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - }, - "output": { - "error": "dedup_key required for resolve events" - } - }, - { - "description": "Timestamp older then 90 days", - "input": { - "message": { - "channel": "web", - "type": "track", - "event": "apiSecret is not present", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "originalTimestamp": "2021-12-20T10:26:33.451Z", - "properties": { - "action": "trigger", - "dedupKey": "9116b734-7e6b-4497-ab51-c16744d4487e", - "severity": "critical", - "component": "ui", - "source": "rudder-webapp", - "group": "destination", - "class": "connection settings", - "customDetails": { - "ping time": "1500ms", - "load avg": 0.75 - }, - "imageURLs": [ - { - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg", - "alt": "first image" - }, - { - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1", - "alt": "second image" - }, - { - "alt": "third image" - } - ], - "linkURLs": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - }, - { - "text": "Destructure Error" - } - ] - } - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - }, - "output": { - "error": "Events must be sent within ninety days of their occurrence" - } - }, - { - "description": "Trigger event", - "input": { - "message": { - "channel": "web", - "type": "track", - "event": "apiSecret is not present", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": { - "action": "trigger", - "dedupKey": "9116b734-7e6b-4497-ab51-c16744d4487e", - "severity": "critical", - "component": "ui", - "source": "rudder-webapp", - "group": "destination", - "class": "connection settings", - "customDetails": { - "ping time": "1500ms", - "load avg": 0.75 - }, - "imageURLs": [ - { - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg", - "alt": "first image" - }, - { - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1", - "alt": "second image" - }, - { - "alt": "third image" - } - ], - "linkURLs": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - }, - { - "text": "Destructure Error" - } - ] - } - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "links": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - } - ], - "images": [ - { - "alt": "first image", - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg" - }, - { - "alt": "second image", - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1" - } - ], - "payload": { - "class": "connection settings", - "group": "destination", - "source": "rudder-webapp", - "summary": "apiSecret is not present", - "severity": "critical", - "component": "ui", - "custom_details": { - "ping time": "1500ms", - "load avg": 0.75 - } - }, - "dedup_key": "9116b734-7e6b-4497-ab51-c16744d4487e", - "routing_key": "9552b56325dc490bd0139be85f7b8fac", - "event_action": "trigger" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://events.pagerduty.com/v2/enqueue" - } - }, - { - "description": "Acknowledge event", - "input": { - "message": { - "channel": "web", - "type": "track", - "event": "apiSecret is not present", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": { - "action": "acknowledge", - "dedupKey": "9116b734-7e6b-4497-ab51-c16744d4487e", - "severity": "critical", - "component": "ui", - "source": "rudder-webapp", - "group": "destination", - "class": "connection settings", - "customDetails": { - "ping time": "1500ms", - "load avg": 0.75 - }, - "imageURLs": [ - { - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg", - "alt": "first image" - }, - { - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1", - "alt": "second image" - }, - { - "alt": "third image" - } - ], - "linkURLs": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - }, - { - "text": "Destructure Error" - } - ] - } - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "dedup_key": "9116b734-7e6b-4497-ab51-c16744d4487e", - "routing_key": "9552b56325dc490bd0139be85f7b8fac", - "event_action": "acknowledge" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://events.pagerduty.com/v2/enqueue" - } - }, - { - "description": "Resolve event", - "input": { - "message": { - "channel": "web", - "type": "track", - "event": "apiSecret is not present", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": { - "action": "resolve", - "dedupKey": "9116b734-7e6b-4497-ab51-c16744d4487e", - "severity": "critical", - "component": "ui", - "source": "rudder-webapp", - "group": "destination", - "class": "connection settings", - "customDetails": { - "ping time": "1500ms", - "load avg": 0.75 - }, - "imageURLs": [ - { - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg", - "alt": "first image" - }, - { - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1", - "alt": "second image" - }, - { - "alt": "third image" - } - ], - "linkURLs": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - }, - { - "text": "Destructure Error" - } - ] - } - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "dedup_key": "9116b734-7e6b-4497-ab51-c16744d4487e", - "routing_key": "9552b56325dc490bd0139be85f7b8fac", - "event_action": "resolve" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://events.pagerduty.com/v2/enqueue" - } - }, - { - "description": "Change event", - "input": { - "message": { - "channel": "web", - "type": "track", - "event": "Github CI/CD Triggered", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": { - "source": "rudder-webapp", - "customDetails": { - "ping time": "1500ms", - "load avg": 0.75 - }, - "imageURLs": [ - { - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg", - "alt": "first image" - }, - { - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1", - "alt": "second image" - }, - { - "alt": "third image" - } - ], - "linkURLs": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - }, - { - "text": "Destructure Error" - } - ] - }, - "integrations": { - "pagerduty": { - "type": "changeEvent" - } - } - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "links": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - } - ], - "images": [ - { - "alt": "first image", - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg" - }, - { - "alt": "second image", - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1" - } - ], - "payload": { - "source": "rudder-webapp", - "summary": "Github CI/CD Triggered", - "custom_details": { - "load avg": 0.75, - "ping time": "1500ms" - } - }, - "routing_key": "9552b56325dc490bd0139be85f7b8fac" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://events.pagerduty.com/v2/change/enqueue" - } - } -] diff --git a/test/__tests__/data/pagerduty_router.json b/test/__tests__/data/pagerduty_router.json deleted file mode 100644 index bec666beff..0000000000 --- a/test/__tests__/data/pagerduty_router.json +++ /dev/null @@ -1,286 +0,0 @@ -[ - { - "description": "Router Test Case", - "input": [ - { - "message": { - "channel": "web", - "type": "track", - "event": "Github CI/CD Triggered", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": { - "source": "rudder-webapp", - "customDetails": { - "ping time": "1500ms", - "load avg": 0.75 - }, - "imageURLs": [ - { - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg", - "alt": "first image" - }, - { - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1", - "alt": "second image" - }, - { - "alt": "third image" - } - ], - "linkURLs": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - }, - { - "text": "Destructure Error" - } - ] - }, - "integrations": { - "pagerduty": { - "type": "changeEvent" - } - } - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - }, - { - "message": { - "channel": "web", - "type": "track", - "event": "apiSecret is not present", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "properties": { - "action": "acknowledge", - "dedupKey": "9116b734-7e6b-4497-ab51-c16744d4487e", - "severity": "critical", - "component": "ui", - "source": "rudder-webapp", - "group": "destination", - "class": "connection settings", - "customDetails": { - "ping time": "1500ms", - "load avg": 0.75 - }, - "imageURLs": [ - { - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg", - "alt": "first image" - }, - { - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1", - "alt": "second image" - }, - { - "alt": "third image" - } - ], - "linkURLs": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - }, - { - "text": "Destructure Error" - } - ] - } - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - }, - { - "message": { - "channel": "web", - "type": "track", - "event": "apiSecret is not present", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "userId": "user@45", - "originalTimestamp": "2021-12-20T10:26:33.451Z", - "properties": { - "action": "trigger", - "dedupKey": "9116b734-7e6b-4497-ab51-c16744d4487e", - "severity": "critical", - "component": "ui", - "source": "rudder-webapp", - "group": "destination", - "class": "connection settings", - "customDetails": { - "ping time": "1500ms", - "load avg": 0.75 - }, - "imageURLs": [ - { - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg", - "alt": "first image" - }, - { - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1", - "alt": "second image" - }, - { - "alt": "third image" - } - ], - "linkURLs": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - }, - { - "text": "Destructure Error" - } - ] - } - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - } - ], - "output": [ - { - "batched": false, - "batchedRequest": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "links": [ - { - "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "text": "Js Object Error" - }, - { - "href": "https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack", - "text": "Stack Overflow Error" - } - ], - "images": [ - { - "alt": "first image", - "src": "https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg" - }, - { - "alt": "second image", - "src": "https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1" - } - ], - "payload": { - "source": "rudder-webapp", - "summary": "Github CI/CD Triggered", - "custom_details": { - "load avg": 0.75, - "ping time": "1500ms" - } - }, - "routing_key": "9552b56325dc490bd0139be85f7b8fac" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://events.pagerduty.com/v2/change/enqueue" - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - }, - "metadata": [{ "jobId": 1 }], - "statusCode": 200 - }, - { - "batched": false, - "batchedRequest": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "dedup_key": "9116b734-7e6b-4497-ab51-c16744d4487e", - "routing_key": "9552b56325dc490bd0139be85f7b8fac", - "event_action": "acknowledge" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://events.pagerduty.com/v2/enqueue" - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - }, - "metadata": [{ "jobId": 2 }], - "statusCode": 200 - }, - { - "batched": false, - "error": "Events must be sent within ninety days of their occurrence", - "metadata": [{ "jobId": 3 }], - "statusCode": 400, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "destination": { - "Config": { - "routingKey": "9552b56325dc490bd0139be85f7b8fac", - "dedupKeyFieldIdentifier": "properties.dedupKey" - } - } - } - ] - } -] diff --git a/test/__tests__/data/pardot_router_input.json b/test/__tests__/data/pardot_router_input.json deleted file mode 100644 index 5db25245a7..0000000000 --- a/test/__tests__/data/pardot_router_input.json +++ /dev/null @@ -1,596 +0,0 @@ -[ - { - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - }, - "metadata": { - "jobId": 1, - "secret": { - "access_token": "myToken", - "refresh_token": "myRefreshToken" - } - }, - "message": { - "type": "identify", - "event": "navigated user", - "sentAt": "2021-09-08T11:10:45.466Z", - "userId": "user12345", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/index.html", - "path": "/index.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:5500/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1536, - "height": 960, - "density": 2, - "innerWidth": 1536, - "innerHeight": 776 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36", - "externalId": [ - { - "type": "pardotId", - "id": 123435 - } - ] - }, - "rudderId": "fa2994a5-2a81-45fd-9919-fcf5596ad380", - "messageId": "e2d1a383-d9a2-4e03-a9dc-131d153c4d95", - "timestamp": "2021-11-15T14:06:42.497+05:30", - "properties": {}, - "receivedAt": "2021-11-15T14:06:42.497+05:30", - "request_ip": "[::1]", - "anonymousId": "d8b2ed61-7fa5-4ef8-bd92-6a506157c0cf", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-09-08T11:10:45.466Z", - "traits": { - "email": "Roger12@waltair.io", - "active_seats": 4, - "firstName": "Roger12", - "lastName": "Federer12", - "website": "https://rudderstack.com", - "score": 14 - } - } - }, - { - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - }, - "metadata": { - "jobId": 2, - "secret": { - "access_token": "myToken", - "refresh_token": "myRefreshToken" - } - }, - "message": { - "type": "identify", - "event": "insert product", - "sentAt": "2021-09-08T11:10:45.466Z", - "userId": "user12345", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/index.html", - "path": "/index.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:5500/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1536, - "height": 960, - "density": 2, - "innerWidth": 1536, - "innerHeight": 776 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" - }, - "rudderId": "fa2994a5-2a81-45fd-9919-fcf5596ad380", - "messageId": "e2d1a383-d9a2-4e03-a9dc-131d153c4d95", - "timestamp": "2021-11-15T14:06:42.497+05:30", - "properties": {}, - "receivedAt": "2021-11-15T14:06:42.497+05:30", - "request_ip": "[::1]", - "anonymousId": "d8b2ed61-7fa5-4ef8-bd92-6a506157c0cf", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-09-08T11:10:45.466Z", - "traits": { - "email": "Roger_12@waltair.io", - "active_seats": 4, - "firstName": "Roger_12", - "lastName": "Federer_12", - "website": "https://rudderstack.com", - "score": 14 - } - } - }, - { - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - }, - "metadata": { - "jobId": 3, - "secret": { - "access_token": "myToken", - "refresh_token": "myRefreshToken" - } - }, - "message": { - "type": "identify", - "event": "insert product", - "sentAt": "2021-09-08T11:10:45.466Z", - "userId": "user12345", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/index.html", - "path": "/index.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:5500/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1536, - "height": 960, - "density": 2, - "innerWidth": 1536, - "innerHeight": 776 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36", - "externalId": [ - { - "type": "crmfid", - "id": "00Q6r000002LKhTPVR" - } - ] - }, - "rudderId": "fa2994a5-2a81-45fd-9919-fcf5596ad380", - "messageId": "e2d1a383-d9a2-4e03-a9dc-131d153c4d95", - "timestamp": "2021-11-15T14:06:42.497+05:30", - "properties": {}, - "receivedAt": "2021-11-15T14:06:42.497+05:30", - "request_ip": "[::1]", - "anonymousId": "d8b2ed61-7fa5-4ef8-bd92-6a506157c0cf", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-09-08T11:10:45.466Z", - "traits": { - "email": "nick_kyrgios@waltair.io", - "active_seats": 4, - "firstName": "Nick", - "lastName": "Kyrgios", - "website": "https://rudderstack.com", - "score": 12 - } - } - }, - { - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - }, - "metadata": { - "jobId": 4, - "secret": { - "access_token": "myExpiredToken", - "refresh_token": "myRefreshToken" - } - }, - "message": { - "type": "identify", - "event": "navigated user", - "sentAt": "2021-09-08T11:10:45.466Z", - "userId": "user12345", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/index.html", - "path": "/index.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:5500/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1536, - "height": 960, - "density": 2, - "innerWidth": 1536, - "innerHeight": 776 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" - }, - "rudderId": "fa2994a5-2a81-45fd-9919-fcf5596ad380", - "messageId": "e2d1a383-d9a2-4e03-a9dc-131d153c4d95", - "timestamp": "2021-11-15T14:06:42.497+05:30", - "properties": {}, - "receivedAt": "2021-11-15T14:06:42.497+05:30", - "request_ip": "[::1]", - "anonymousId": "d8b2ed61-7fa5-4ef8-bd92-6a506157c0cf", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-09-08T11:10:45.466Z", - "traits": { - "email": "rolex_waltair@mywebsite.io", - "active_seats": 4, - "firstName": "Rolex", - "lastName": "Waltair", - "website": "https://rudderstack.com", - "score": 15 - } - } - }, - { - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - }, - "metadata": { - "jobId": 5, - "secret": null - }, - "message": { - "type": "identify", - "event": "navigated user", - "sentAt": "2021-09-08T11:10:45.466Z", - "userId": "user12345", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.18", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/index.html", - "path": "/index.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:5500/index.html", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1536, - "height": 960, - "density": 2, - "innerWidth": 1536, - "innerHeight": 776 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.18" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" - }, - "rudderId": "fa2994a5-2a81-45fd-9919-fcf5596ad380", - "messageId": "e2d1a383-d9a2-4e03-a9dc-131d153c4d95", - "timestamp": "2021-11-15T14:06:42.497+05:30", - "properties": {}, - "receivedAt": "2021-11-15T14:06:42.497+05:30", - "request_ip": "[::1]", - "anonymousId": "d8b2ed61-7fa5-4ef8-bd92-6a506157c0cf", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-09-08T11:10:45.466Z", - "traits": { - "email": "rolex_waltair@mywebsite.io", - "active_seats": 4, - "firstName": "Rolex", - "lastName": "Waltair", - "website": "https://rudderstack.com", - "score": 15 - } - } - } -] diff --git a/test/__tests__/data/pardot_router_output.json b/test/__tests__/data/pardot_router_output.json deleted file mode 100644 index 889cc8fd96..0000000000 --- a/test/__tests__/data/pardot_router_output.json +++ /dev/null @@ -1,385 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://pi.pardot.com/api/prospect/version/4/do/upsert/id/123435", - "headers": { - "Authorization": "Bearer myToken", - "Pardot-Business-Unit-Id": "0Uv2v000000k9tHCAQ" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "first_name": "Roger12", - "last_name": "Federer12", - "website": "https://rudderstack.com", - "score": 14, - "campaign_id": 42213 - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1, - "secret": { - "access_token": "myToken", - "refresh_token": "myRefreshToken" - } - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://pi.pardot.com/api/prospect/version/4/do/upsert/email/Roger_12@waltair.io", - "headers": { - "Authorization": "Bearer myToken", - "Pardot-Business-Unit-Id": "0Uv2v000000k9tHCAQ" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "first_name": "Roger_12", - "last_name": "Federer_12", - "website": "https://rudderstack.com", - "score": 14, - "campaign_id": 42213 - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2, - "secret": { - "access_token": "myToken", - "refresh_token": "myRefreshToken" - } - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://pi.pardot.com/api/prospect/version/4/do/upsert/fid/00Q6r000002LKhTPVR", - "headers": { - "Authorization": "Bearer myToken", - "Pardot-Business-Unit-Id": "0Uv2v000000k9tHCAQ" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "first_name": "Nick", - "last_name": "Kyrgios", - "website": "https://rudderstack.com", - "score": 12, - "campaign_id": 42213 - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3, - "secret": { - "access_token": "myToken", - "refresh_token": "myRefreshToken" - } - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://pi.pardot.com/api/prospect/version/4/do/upsert/email/rolex_waltair@mywebsite.io", - "headers": { - "Authorization": "Bearer myExpiredToken", - "Pardot-Business-Unit-Id": "0Uv2v000000k9tHCAQ" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "first_name": "Rolex", - "last_name": "Waltair", - "website": "https://rudderstack.com", - "score": 15, - "campaign_id": 42213 - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 4, - "secret": { - "access_token": "myExpiredToken", - "refresh_token": "myRefreshToken" - } - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - } - }, - { - "destination": { - "Config": { - "rudderAccountId": "1z8LpaSAuFR9TPWL6fECZfjmRa-", - "businessUnitId": "0Uv2v000000k9tHCAQ", - "campaignId": 42213, - "authStatus": "active", - "eventDelivery": true, - "eventDeliveryTS": 1636965406397 - }, - "DestinationDefinition": { - "name": "PARDOT", - "displayName": "Pardot", - "config": { - "auth": { - "type": "OAuth" - }, - "transformAt": "router", - "transformAtV1": "router", - "saveDestinationResponse": true, - "includeKeys": [], - "excludeKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "destConfig": { - "defaultConfig": ["rudderAccountId", "businessUnitId", "campaignId"] - }, - "secretKeys": ["businessUnitId"] - } - }, - "Enabled": true, - "ID": "1WXjIHpu7ETXgjfiGPW3kCUgZFR", - "Name": "test destination", - "Transformations": [] - }, - "metadata": [ - { - "jobId": 5, - "secret": null - } - ], - "batched": false, - "statusCode": 500, - "error": "OAuth - access token not found", - "statTags": { - "errorCategory": "platform", - "errorType": "oAuthSecret" - } - } -] diff --git a/test/__tests__/data/personalize_input.json b/test/__tests__/data/personalize_input.json deleted file mode 100644 index 6fd6e052f3..0000000000 --- a/test/__tests__/data/personalize_input.json +++ /dev/null @@ -1,2918 +0,0 @@ -[ - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "movieWatched": 2, - "eventValue": 7.06 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "MOVIE_WATCHED", - "to": "movieWatched" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "region": "us-east-1", - "datasetARN": "", - "eventChoice": "PutEvents", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "itemId" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "itemId" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "USER_ID", - "to": "userId" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1", - "userId": "user 1" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "USER_ID", - "to": "userId" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1", - "userId": "user 1" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1", - "userId": "user 1", - "impressions": "abc" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "IMPRESSION", - "to": "impressions" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1", - "userId": "user 1", - "impressions": "abc", - "eventValue": "3.4abc" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "IMPRESSION", - "to": "impressions" - }, - { - "from": "EVENT_VALUE", - "to": "eventValue" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1", - "userId": "user 1", - "impressions": [2, 3], - "eventValue": "3.4abc" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "IMPRESSION", - "to": "impressions" - }, - { - "from": "EVENT_VALUE", - "to": "eventValue" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT DELETED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "itemId": "item 1", - "userId": "user 1", - "impressions": [2, 3], - "eventValue": "3.4abc" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "IMPRESSION", - "to": "impressions" - }, - { - "from": "EVENT_VALUE", - "to": "eventValue" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "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", - "userId": "123456", - "type": "identify", - "traits": { - "anonymousId": "anon_id", - "typeOfMovie": "art film", - "numberOfRatings": "13", - "lastName": "Doe", - "phone": "92374162212" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/USERS", - "eventChoice": "PutUsers" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": 1 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/ITEMS", - "eventChoice": "PutItems" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": 1 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/ITEMS", - "eventChoice": "PutItems" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "eventValue": 7.06, - "itemId": 1 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/ITEMS", - "eventChoice": "PutItems" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": 1 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup", - "eventChoice": "PutItems" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": 1 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "", - "eventChoice": "PutItems" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": 1 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "", - "eventChoice": "PutUsers" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": 1 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/ITEMS", - "eventChoice": "PutEvents" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": "" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/ITEMS", - "eventChoice": "PutItems" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": "" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/ITEMS", - "eventChoice": "PutEvents" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "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", - "userId": "123456", - "type": "identify", - "traits": { - "anonymousId": "anon_id", - "typeOfMovie": "art film", - "numberOfRatings": "DDLJ", - "lastName": "Doe", - "phone": "92374162212" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/USERS", - "eventChoice": "PutItems" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "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", - "userId": "123456", - "type": "identify", - "traits": { - "anonymousId": "anon_id", - "typeOfMovie": "art film", - "numberOfRatings": "DDLJ", - "lastName": "Doe", - "phone": "92374162212" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "", - "datasetARN": "", - "eventChoice": "PutUsers" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "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", - "userId": "123456", - "type": "identify", - "traits": { - "anonymousId": "anon_id", - "typeOfMovie": "art film", - "numberOfRatings": "DDLJ", - "lastName": "Doe", - "phone": "92374162212" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup", - "eventChoice": "PutUsers" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "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", - "userId": "123456", - "type": "identify", - "traits": { - "anonymousId": "anon_id", - "typeOfMovie": "art film", - "lastName": "Doe", - "phone": "92374162212" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/USERS", - "eventChoice": "PutUsers" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "typeOfMovie": "Art Film", - "eventValue": 7.06, - "itemId": "" - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "screen", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "TYPE_OF_MOVIE", - "to": "typeOfMovie" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - }, - { - "from": "ITEM_ID", - "to": "properties.itemId" - } - ], - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60", - "datasetARN": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/ITEMS", - "eventChoice": "PutEvents" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "movieWatched": 2, - "eventValue": 7.06 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "MOVIE_WATCHED", - "to": "movieWatched" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "stringifyProperty": true, - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "movieWatched": 2, - "eventValue": 7.06 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "MOVIE_WATCHED", - "to": "movieWatched" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "disableStringify": true, - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "anon-id-new", - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2021-03-13T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "movieWatched": 2, - "eventValue": 7.06 - }, - "receivedAt": "2021-03-13T01:56:44.340+05:30", - "request_ip": "[::1]", - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "sentAt": "2021-03-13T01:56:46.896+05:30", - "timestamp": "2020-02-02T00:23:09.544Z", - "type": "track", - "userId": "identified user id" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968", - "receivedAt": "2021-03-13T01:56:44.340+05:30" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "MOVIE_WATCHED", - "to": "movieWatched" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "disableStringify": false, - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - }, - "sessionId": "4bb69e26-b5a6-446a-a140-dbb6263369c9" - }, - "event": "PRODUCT ADDED", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "originalTimestamp": "2023-01-10T01:56:46.896+05:30", - "properties": { - "numberOfRatings": "checking with webapp change", - "movieWatched": 2, - "eventValue": 7.06 - }, - "type": "track" - }, - "metadata": { - "sourceId": "1pe7ty3hMMQCnrfZ0Mn2QG48884", - "destinationId": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "jobId": 1, - "destinationType": "PERSONALIZE", - "messageId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "messageIds": null, - "rudderId": "daf823fb-e8d3-413a-8313-d34cd756f968" - }, - "destination": { - "ID": "1pe9WgFOuFHOSIfmUkkhVTD1Rsd", - "Name": "personalize Dev Testing", - "DestinationDefinition": { - "ID": "1pdthjPnz8gQhSTE2QTbm2LUMGM", - "Name": "PERSONALIZE", - "DisplayName": "AWS Personalize", - "Config": { - "destConfig": { - "defaultConfig": [ - "accessKeyId", - "secretAccessKey", - "region", - "trackingId", - "eventName", - "customMappings" - ] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["accessKeyId", "secretAccessKey"], - "supportedSourceTypes": ["android", "ios", "web", "unity", "amp", "cloud", "reactnative"], - "transformAt": "processor" - } - }, - "Config": { - "accessKeyId": "ABC", - "customMappings": [ - { - "from": "MOVIE_WATCHED", - "to": "movieWatched" - }, - { - "from": "NUMBER_OF_RATINGS", - "to": "numberOfRatings" - } - ], - "datasetARN": "", - "eventChoice": "PutEvents", - "disableStringify": false, - "region": "us-east-1", - "secretAccessKey": "DEF", - "trackingId": "c60" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - } -] diff --git a/test/__tests__/data/personalize_output.json b/test/__tests__/data/personalize_output.json deleted file mode 100644 index 8f4802fe8d..0000000000 --- a/test/__tests__/data/personalize_output.json +++ /dev/null @@ -1,334 +0,0 @@ -[ - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT ADDED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "movieWatched": "2", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "item 1", - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "user 1", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "userId": "identified user id", - "sessionId": "anon-id-new", - "trackingId": "c60", - "eventList": [ - { - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - }, - "impression": ["abc"], - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9" - } - ] - }, - { - "userId": "identified user id", - "sessionId": "anon-id-new", - "trackingId": "c60", - "eventList": [ - { - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - }, - "impression": ["abc"], - "eventValue": 3.4, - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9" - } - ] - }, - { - "userId": "identified user id", - "sessionId": "anon-id-new", - "trackingId": "c60", - "eventList": [ - { - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - }, - "impression": ["2", "3"], - "eventValue": 3.4, - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9" - } - ] - }, - { - "userId": "identified user id", - "sessionId": "identified user id", - "trackingId": "c60", - "eventList": [ - { - "eventType": "PRODUCT DELETED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - }, - "impression": ["2", "3"], - "eventValue": 3.4, - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9" - } - ] - }, - { - "payload": { - "datasetArn": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/USERS", - "users": [ - { - "userId": "123456", - "properties": { - "typeOfMovie": "art film", - "numberOfRatings": "13" - } - } - ] - }, - "choice": "PutUsers" - }, - { - "payload": { - "datasetArn": "arn:aws:personalize:us-east-1:454531037350:dataset/putTest_DataSetGroup/ITEMS", - "items": [ - { - "properties": { - "typeOfMovie": "Art Film", - "numberOfRatings": "checking with webapp change" - }, - "itemId": "1" - } - ] - }, - "choice": "PutItems" - }, - { - "error": "Event type is required" - }, - { - "error": "Mapped property typeOfMovie not found" - }, - { - "error": "Either Dataset ARN is not correctly entered or invalid" - }, - { - "error": "Dataset ARN is a mandatory information to use putItems" - }, - { - "error": "PutUsers is not supported for Track Calls" - }, - { - "error": "Tracking Id is a mandatory information to use putEvents" - }, - { - "error": "itemId is a mandatory property for using PutItems" - }, - { - "error": "Cannot process if no event name specified" - }, - { - "error": "This Message Type does not support PutItems. Aborting message" - }, - { - "error": "Dataset ARN is a mandatory information to use putUsers" - }, - { - "error": "Either Dataset ARN is not correctly entered or invalid" - }, - { - "error": "Mapped property numberOfRatings not found" - }, - { - "error": "Event type screen is not supported" - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT ADDED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "movieWatched": "2", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT ADDED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "movieWatched": 2, - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "anon-id-new", - "trackingId": "c60", - "userId": "identified user id", - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT ADDED", - "sentAt": "2020-02-02T00:23:09.544Z", - "properties": { - "movieWatched": "2", - "numberOfRatings": "checking with webapp change" - } - } - ] - }, - { - "sessionId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "trackingId": "c60", - "userId": null, - "eventList": [ - { - "itemId": "4bb69e26-b5a6-446a-a140-dbb6263369c9", - "eventType": "PRODUCT ADDED", - "sentAt": "2023-01-10T01:56:46.896+05:30", - "properties": { - "movieWatched": "2", - "numberOfRatings": "checking with webapp change" - } - } - ] - } -] diff --git a/test/__tests__/data/pinterest_tag_router_batch_output.json b/test/__tests__/data/pinterest_tag_router_batch_output.json index 6fceb08278..995d68428a 100644 --- a/test/__tests__/data/pinterest_tag_router_batch_output.json +++ b/test/__tests__/data/pinterest_tag_router_batch_output.json @@ -142,10 +142,12 @@ }, "metadata": [ { - "jobId": 1 + "jobId": 1, + "userId": "u1" }, { - "jobId": 2 + "jobId": 2, + "userId": "u1" } ], "batched": true, @@ -329,13 +331,16 @@ }, "metadata": [ { - "jobId": 3 + "jobId": 3, + "userId": "u1" }, { - "jobId": 4 + "jobId": 4, + "userId": "u1" }, { - "jobId": 6 + "jobId": 6, + "userId": "u1" } ], "batched": true, @@ -445,7 +450,8 @@ }, "metadata": [ { - "jobId": 7 + "jobId": 7, + "userId": "u1" } ], "batched": true, @@ -496,7 +502,8 @@ { "metadata": [ { - "jobId": 5 + "jobId": 5, + "userId": "u1" } ], "batched": false, @@ -736,10 +743,12 @@ }, "metadata": [ { - "jobId": 8 + "jobId": 8, + "userId": "u1" }, { - "jobId": 9 + "jobId": 9, + "userId": "u1" } ], "statusCode": 200 @@ -852,7 +861,8 @@ }, "metadata": [ { - "jobId": 10 + "jobId": 10, + "userId": "u1" } ], "statusCode": 200 diff --git a/test/__tests__/data/pinterest_tag_router_error_input.json b/test/__tests__/data/pinterest_tag_router_error_input.json index e241ffb864..ce188c7335 100644 --- a/test/__tests__/data/pinterest_tag_router_error_input.json +++ b/test/__tests__/data/pinterest_tag_router_error_input.json @@ -75,7 +75,8 @@ } }, "metadata": { - "jobId": 5 + "jobId": 5, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", diff --git a/test/__tests__/data/pinterest_tag_router_error_output.json b/test/__tests__/data/pinterest_tag_router_error_output.json index c4f0f4768d..4cd4e6966c 100644 --- a/test/__tests__/data/pinterest_tag_router_error_output.json +++ b/test/__tests__/data/pinterest_tag_router_error_output.json @@ -2,7 +2,8 @@ { "metadata": [ { - "jobId": 5 + "jobId": 5, + "userId": "u1" } ], "batched": false, diff --git a/test/__tests__/data/pinterest_tag_router_input.json b/test/__tests__/data/pinterest_tag_router_input.json index 4b966f948f..26febec456 100644 --- a/test/__tests__/data/pinterest_tag_router_input.json +++ b/test/__tests__/data/pinterest_tag_router_input.json @@ -77,7 +77,8 @@ } }, "metadata": { - "jobId": 1 + "jobId": 1, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -198,7 +199,8 @@ } }, "metadata": { - "jobId": 2 + "jobId": 2, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -300,7 +302,8 @@ } }, "metadata": { - "jobId": 3 + "jobId": 3, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -421,7 +424,8 @@ } }, "metadata": { - "jobId": 4 + "jobId": 4, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -542,7 +546,8 @@ } }, "metadata": { - "jobId": 5 + "jobId": 5, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -663,7 +668,8 @@ } }, "metadata": { - "jobId": 6 + "jobId": 6, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -764,7 +770,8 @@ "files": {} }, "metadata": { - "jobId": 7 + "jobId": 7, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -888,7 +895,8 @@ } }, "metadata": { - "jobId": 8 + "jobId": 8, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -1011,7 +1019,8 @@ } }, "metadata": { - "jobId": 9 + "jobId": 9, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", @@ -1134,7 +1143,8 @@ } }, "metadata": { - "jobId": 10 + "jobId": 10, + "userId": "u1" }, "destination": { "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", diff --git a/test/__tests__/data/pinterest_tag_router_output.json b/test/__tests__/data/pinterest_tag_router_output.json index 0e128575ee..2bfc7c3cf5 100644 --- a/test/__tests__/data/pinterest_tag_router_output.json +++ b/test/__tests__/data/pinterest_tag_router_output.json @@ -294,22 +294,28 @@ }, "metadata": [ { - "jobId": 1 + "jobId": 1, + "userId": "u1" }, { - "jobId": 2 + "jobId": 2, + "userId": "u1" }, { - "jobId": 3 + "jobId": 3, + "userId": "u1" }, { - "jobId": 4 + "jobId": 4, + "userId": "u1" }, { - "jobId": 6 + "jobId": 6, + "userId": "u1" }, { - "jobId": 7 + "jobId": 7, + "userId": "u1" } ], "batched": true, @@ -360,7 +366,8 @@ { "metadata": [ { - "jobId": 5 + "jobId": 5, + "userId": "u1" } ], "statTags": { @@ -593,13 +600,16 @@ }, "metadata": [ { - "jobId": 8 + "jobId": 8, + "userId": "u1" }, { - "jobId": 9 + "jobId": 9, + "userId": "u1" }, { - "jobId": 10 + "jobId": 10, + "userId": "u1" } ], "batched": true, diff --git a/test/__tests__/data/profitwell_input.json b/test/__tests__/data/profitwell_input.json deleted file mode 100644 index e73a17ad37..0000000000 --- a/test/__tests__/data/profitwell_input.json +++ /dev/null @@ -1,719 +0,0 @@ -[ - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "type": "profitwellUserId", - "id": "23453" - } - ], - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "status": "active" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "profitwellUserId", - "id": "1234" - } - ], - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "profitwellUserId", - "id": "pwu_Oea7HXV3bnTP" - } - ], - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "profitwellUserId", - "id": "pwu_Oea7HXV3bnTP" - }, - { - "type": "profitwellSubscriptionId", - "id": "pws_FecTCEyo17rV" - } - ], - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "profitwellUserId", - "id": "pwu_Oea7HXV3bnTP" - }, - { - "type": "profitwellSubscriptionId", - "id": "pws_FecTCEyo17rV" - } - ], - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active", - "effectiveDate": "1609748705" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "profitwellUserId", - "id": "pwu_Oea7HXV3bnTP" - }, - { - "type": "profitwellSubscriptionId", - "id": "pws_FecTCEyo17rV" - } - ], - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "monthly", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active", - "effectiveDate": "1609748705" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "profitwellUserId", - "id": "pwu_Oea7HXV3bnTP" - }, - { - "type": "profitwellSubscriptionId", - "id": "pws_FecTCEyo17rV" - } - ], - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "activate", - "effectiveDate": "1609748705" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": {} - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "profitwellUserId", - "id": "pwu_Oea7HXV3bnTP" - }, - { - "type": "profitwellSubscriptionId", - "id": "pws_FecTCEyo17rV" - } - ], - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active", - "effectiveDate": "1609748705" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "profitwellUserId", - "id": "pwu_Oea7HXV3bnTP" - }, - { - "type": "profitwellSubscriptionId", - "id": "pws_FecTCEyo17" - } - ], - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active", - "effectiveDate": "1609748705" - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - }, - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "message": { - "channel": "web", - "userId": "sp_245", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active", - "effectiveDate": 1609748705 - }, - "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" - }, - "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-09-06T14:15:06.798+05:30", - "type": "identify" - } - } -] diff --git a/test/__tests__/data/profitwell_output.json b/test/__tests__/data/profitwell_output.json deleted file mode 100644 index 04be6d990f..0000000000 --- a/test/__tests__/data/profitwell_output.json +++ /dev/null @@ -1,166 +0,0 @@ -[ - { - "statusCode": 400, - "error": "userId or userAlias is required for identify" - }, - { - "statusCode": 400, - "error": "No user found for profitwell user_id" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.profitwell.com/v2/subscriptions/", - "headers": { - "Content-Type": "application/json", - "Authorization": "9270161a8e5abaa0e56efddfd9dbcb62" - }, - "params": {}, - "body": { - "JSON": { - "subscription_alias": "samual", - "email": "sample@sample.com", - "plan_id": "23", - "plan_interval": "month", - "plan_currency": "usd", - "status": "active", - "value": "23", - "user_alias": "sp_245", - "effective_date": 1630917906 - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "subscriptionId or subscriptionAlias is required for identify" - }, - { - "statusCode": 400, - "error": "No user found for profitwell user_id" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.profitwell.com/v2/subscriptions/", - "headers": { - "Content-Type": "application/json", - "Authorization": "9270161a8e5abaa0e56efddfd9dbcb62" - }, - "params": {}, - "body": { - "JSON": { - "subscription_alias": "samual", - "email": "sample@sample.com", - "plan_id": "23", - "plan_interval": "month", - "plan_currency": "usd", - "status": "active", - "value": "23", - "user_id": "pwu_Oea7HXV3bnTP", - "user_alias": "sp_245", - "effective_date": 1630917906 - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Missing required value from [\"traits.effectiveDate\",\"context.traits.effectiveDate\"]" - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.profitwell.com/v2/subscriptions/pws_FecTCEyo17rV/", - "headers": { - "Content-Type": "application/json", - "Authorization": "9270161a8e5abaa0e56efddfd9dbcb62" - }, - "params": {}, - "body": { - "JSON": { - "plan_id": "23", - "plan_interval": "month", - "value": "23", - "status": "active", - "effective_date": 1609748705 - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "invalid format for planInterval. Aborting" - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.profitwell.com/v2/subscriptions/pws_FecTCEyo17rV/", - "headers": { - "Content-Type": "application/json", - "Authorization": "9270161a8e5abaa0e56efddfd9dbcb62" - }, - "params": {}, - "body": { - "JSON": { - "plan_id": "23", - "plan_interval": "month", - "value": "23", - "effective_date": 1609748705 - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Private API Key not found. Aborting." - }, - { - "statusCode": 400, - "error": "Profitwell subscription_id not found" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.profitwell.com/v2/subscriptions/", - "headers": { - "Content-Type": "application/json", - "Authorization": "9270161a8e5abaa0e56efddfd9dbcb62" - }, - "params": {}, - "body": { - "JSON": { - "subscription_alias": "samual", - "email": "sample@sample.com", - "plan_id": "23", - "plan_interval": "month", - "plan_currency": "usd", - "status": "active", - "value": "23", - "effective_date": 1609748705, - "user_alias": "sp_245" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/profitwell_router_input.json b/test/__tests__/data/profitwell_router_input.json deleted file mode 100644 index 50903283a7..0000000000 --- a/test/__tests__/data/profitwell_router_input.json +++ /dev/null @@ -1,45 +0,0 @@ -[ - { - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - }, - "metadata": { - "jobId": 2 - }, - "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", - "type": "identify", - "userId": "samual", - "traits": { - "email": "sample@sample.com", - "planId": "23", - "planInterval": "month", - "planCurrency": "usd", - "value": "23", - "subscriptionAlias": "samual", - "status": "active" - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - } -] diff --git a/test/__tests__/data/profitwell_router_output.json b/test/__tests__/data/profitwell_router_output.json deleted file mode 100644 index ca98903838..0000000000 --- a/test/__tests__/data/profitwell_router_output.json +++ /dev/null @@ -1,44 +0,0 @@ -[ - { - "batchedRequest": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "subscription_alias": "samual", - "email": "sample@sample.com", - "plan_id": "23", - "plan_interval": "month", - "plan_currency": "usd", - "status": "active", - "value": "23", - "user_alias": "samual", - "effective_date": 1571043797 - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "9270161a8e5abaa0e56efddfd9dbcb62" - }, - "version": "1", - "endpoint": "https://api.profitwell.com/v2/subscriptions/" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "privateApiKey": "9270161a8e5abaa0e56efddfd9dbcb62" - } - } - } -] diff --git a/test/__tests__/data/rockerbox.json b/test/__tests__/data/rockerbox.json deleted file mode 100644 index 6e90e20241..0000000000 --- a/test/__tests__/data/rockerbox.json +++ /dev/null @@ -1,598 +0,0 @@ -[ - { - "description": "Error flow - Message type not supported", - "input": { - "destination": { - "Config": { - "advertiserId": "KDH4JNDHCFJHJ57SJOWJE490W01JFNHGDSSFHDKDSDF" - } - }, - "message": { - "context": { - "traits": { - "homwTown": "kanpur", - "age": "24" - } - }, - "type": "Identify", - "userId": "yash001", - "originalTimestamp": "2019-10-14T09:03:17.562Z" - } - }, - "output": { - "statusCode": 400, - "error": "Message type identify is not supported", - "statTags": { - "destination": "rockerbox", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Error flow - Unassociated Event Type", - "input": { - "destination": { - "Config": { - "advertiserId": "test id", - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eventsMap": [ - { - "from": "Product Added To Cart", - "to": "conv.add_to_cart" - } - ], - "useNativeSDK": { - "web": false - }, - "clientAuthId": { - "web": "test-client-auth-id" - }, - "oneTrustCookieCategories": { - "web": [ - { - "oneTrustCookieCategory": "Marketing Sample" - } - ] - }, - "customDomain": { - "web": "https://cookiedomain.com" - }, - "enableCookieSync": { - "web": true - } - } - }, - "message": { - "type": "track", - "event": "Product Added", - "sentAt": "2022-08-07T20:02:19.352Z", - "userId": "userSampleX138", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "locale": "en-IN", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 584, - "innerHeight": 789 - }, - "traits": { - "email": "userSampleX120@gmail.com", - "phone": "9878764736", - "last_name": "Stack", - "first_name": "Rudder", - "subscription": "youtube" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" - }, - "rudderId": "4a47e99b-2afc-45c6-b902-ed69282ca805", - "messageId": "1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93", - "properties": { - "checkout_id": "12345", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "product_name": "Red T-shirt" - }, - "anonymousId": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-08-07T20:02:19.347Z" - }, - "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA", - "requestIP": "[::1]", - "receivedAt": "2022-08-08T01:32:19.369+05:30" - }, - "output": { - "statusCode": 400, - "error": "The event is not associated to a RockerBox event. Aborting!", - "statTags": { - "destination": "rockerbox", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track Call with a userId", - "input": { - "destination": { - "Config": { - "advertiserId": "test id", - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eventsMap": [ - { - "from": "Product Added", - "to": "conv.add_to_cart" - } - ], - "useNativeSDK": { - "web": false - }, - "clientAuthId": { - "web": "test-client-auth-id" - }, - "oneTrustCookieCategories": { - "web": [ - { - "oneTrustCookieCategory": "Marketing Sample" - } - ] - }, - "customDomain": { - "web": "https://cookiedomain.com" - }, - "enableCookieSync": { - "web": true - } - } - }, - "message": { - "type": "track", - "event": "Product Added", - "sentAt": "2022-08-07T20:02:19.352Z", - "userId": "userSampleX138", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "locale": "en-IN", - "traits": { - "email": "userSampleX120@gmail.com", - "phone": "9878764736", - "last_name": "Stack", - "first_name": "Rudder" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" - }, - "rudderId": "4a47e99b-2afc-45c6-b902-ed69282ca805", - "messageId": "1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93", - "properties": { - "checkout_id": "12345", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "product_name": "Red T-shirt" - }, - "anonymousId": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-08-07T20:02:19.347Z" - }, - "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA", - "requestIP": "[::1]", - "receivedAt": "2022-08-08T01:32:19.369+05:30" - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "action": "conv.add_to_cart", - "checkout_id": "12345", - "email": "userSampleX120@gmail.com", - "conversion_source": "RudderStack", - "customer_id": "userSampleX138", - "anonymous_id": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "phone": "9878764736", - "product_name": "Red T-shirt", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "timestamp": 1659902539 - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://webhooks.getrockerbox.com/rudderstack", - "files": {}, - "headers": {}, - "method": "POST", - "params": { - "advertiser": "test id" - }, - "type": "REST", - "version": "1" - } - }, - { - "description": "Track Call with all properties", - "input": { - "destination": { - "Config": { - "advertiserId": "test id", - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eventsMap": [ - { - "from": "Product Added", - "to": "conv.add_to_cart" - } - ], - "useNativeSDK": { - "web": false - }, - "clientAuthId": { - "web": "test-client-auth-id" - }, - "oneTrustCookieCategories": { - "web": [ - { - "oneTrustCookieCategory": "Marketing Sample" - } - ] - }, - "customDomain": { - "web": "https://cookiedomain.com" - }, - "enableCookieSync": { - "web": true - } - } - }, - "message": { - "type": "track", - "event": "Product Added", - "sentAt": "2022-08-07T20:02:19.352Z", - "userId": "userSampleX138", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "locale": "en-IN", - "traits": { - "email": "userSampleX120@gmail.com", - "phone": "9878764736", - "last_name": "Stack", - "first_name": "Rudder" - }, - "externalId": [ - { - "type": "rockerboxExternalId", - "id": "rbUid" - } - ], - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" - }, - "rudderId": "4a47e99b-2afc-45c6-b902-ed69282ca805", - "messageId": "1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93", - "properties": { - "checkout_id": "12345", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "product_name": "Red T-shirt", - "externalId": "rbUid", - "countryCode": "IN", - "listingId": "10101" - }, - "anonymousId": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-08-07T20:02:19.347Z" - }, - "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA", - "requestIP": "[::1]", - "receivedAt": "2022-08-08T01:32:19.369+05:30" - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://webhooks.getrockerbox.com/rudderstack", - "headers": {}, - "params": { - "advertiser": "test id" - }, - "body": { - "JSON": { - "customer_id": "userSampleX138", - "anonymous_id": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "email": "userSampleX120@gmail.com", - "externalId": "rbUid", - "phone": "9878764736", - "product_name": "Red T-shirt", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "timestamp": 1659902539, - "country_code": "IN", - "listing_id": "10101", - "conversion_source": "RudderStack", - "action": "conv.add_to_cart", - "checkout_id": "12345" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with all properties along-with custom properties", - "input": { - "destination": { - "Config": { - "advertiserId": "hdowhfiqhfwaiwhrdafshbfacicolsa", - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eventsMap": [ - { - "from": "Product Added", - "to": "conv.add_to_cart" - } - ], - "customPropsMapping": [ - { - "from": "unit_id", - "to": "unitID" - }, - { - "from": "merch_id", - "to": "merch_id" - }, - { - "from": "bounce_id", - "to": "bounceID" - } - ], - "useNativeSDK": { - "web": false - }, - "useNativeSDKToSend": { - "web": false - }, - "clientAuthId": { - "web": "" - }, - "oneTrustCookieCategories": { - "web": [ - { - "oneTrustCookieCategory": "" - } - ] - }, - "customDomain": { - "web": "" - }, - "enableCookieSync": { - "web": false - } - } - }, - "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": "track", - "traits": { - "userId": "anon_id", - "email": "jamesDoe@gmail.com", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "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": "" - } - }, - "properties": { - "unit_id": 123, - "merch_id": false, - "bounceiD": "fakefake", - "counce_id": "" - }, - "event": "Product Added", - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA", - "requestIP": "[::1]", - "receivedAt": "2022-08-08T01:32:19.369+05:30" - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "email": "jamesDoe@gmail.com", - "phone": "92374162212", - "action": "conv.add_to_cart", - "anonymous_id": "anon_id", - "bounceiD": "fakefake", - "merch_id": false, - "timestamp": 1571043797, - "unit_id": 123, - "customer_id": "anon_id", - "conversion_source": "RudderStack", - "counce_id": "" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": { - "advertiser": "hdowhfiqhfwaiwhrdafshbfacicolsa" - }, - "headers": {}, - "version": "1", - "endpoint": "https://webhooks.getrockerbox.com/rudderstack" - } - }, - { - "description": "userId/anonymousId check", - "input": { - "destination": { - "Config": { - "advertiserId": "KDH4JNDHCFJHJ57SJOWJE490W01JFNHGDSSFHDKDSDF" - } - }, - "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", - "type": "track", - "traits": { - "email": "jamesDoe@gmail.com", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "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": "" - } - }, - "properties": { - "unit_id": 123, - "merch_id": false, - "bounceiD": "fakefake", - "counce_id": "" - }, - "event": "Product Added", - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - "output": { - "statusCode": 400, - "error": "Anyone of userId or anonymousId is required to make the call", - "statTags": { - "destination": "rockerbox", - "stage": "transform", - "scope": "exception" - } - } - } -] diff --git a/test/__tests__/data/rockerbox_router_input.json b/test/__tests__/data/rockerbox_router_input.json deleted file mode 100644 index 7b03502663..0000000000 --- a/test/__tests__/data/rockerbox_router_input.json +++ /dev/null @@ -1,168 +0,0 @@ -[ - { - "destination": { - "Config": { - "advertiserId": "test id", - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eventsMap": [ - { - "from": "Product Added", - "to": "conv.add_to_cart" - } - ], - "useNativeSDK": { - "web": false - }, - "clientAuthId": { - "web": "test-client-auth-id" - }, - "oneTrustCookieCategories": { - "web": [ - { - "oneTrustCookieCategory": "Marketing Sample" - } - ] - }, - "customDomain": { - "web": "https://cookiedomain.com" - }, - "enableCookieSync": { - "web": true - } - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "type": "track", - "event": "Product Added", - "sentAt": "2022-08-07T20:02:19.352Z", - "userId": "userSampleX138", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "locale": "en-IN", - "traits": { - "email": "userSampleX120@gmail.com", - "phone": "9878764736", - "last_name": "Stack", - "first_name": "Rudder" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" - }, - "rudderId": "4a47e99b-2afc-45c6-b902-ed69282ca805", - "messageId": "1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93", - "properties": { - "checkout_id": "12345", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "product_name": "Red T-shirt" - }, - "anonymousId": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-08-07T20:02:19.347Z" - }, - "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA", - "requestIP": "[::1]", - "receivedAt": "2022-08-08T01:32:19.369+05:30" - }, - { - "destination": { - "Config": { - "advertiserId": "test id", - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eventsMap": [ - { - "from": "Product Viewed", - "to": "conv.add_to_cart" - } - ], - "useNativeSDK": { - "web": false - }, - "clientAuthId": { - "web": "test-client-auth-id" - }, - "oneTrustCookieCategories": { - "web": [ - { - "oneTrustCookieCategory": "Marketing Sample" - } - ] - }, - "customDomain": { - "web": "https://cookiedomain.com" - }, - "enableCookieSync": { - "web": true - } - } - }, - "metadata": { - "jobId": 2 - }, - "message": { - "type": "track", - "event": "Product Viewed", - "sentAt": "2022-08-07T20:02:19.352Z", - "userId": "userSampleX138", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "locale": "en-IN", - "traits": { - "email": "userSampleX120@gmail.com", - "phone": "9878764736", - "last_name": "Stack", - "first_name": "Rudder" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" - }, - "rudderId": "4a47e99b-2afc-45c6-b902-ed69282ca805", - "messageId": "1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93", - "properties": { - "checkout_id": "12345", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "product_name": "Red T-shirt" - }, - "anonymousId": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-08-07T20:02:19.347Z" - }, - "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA", - "requestIP": "[::1]", - "receivedAt": "2022-08-08T01:32:19.369+05:30" - } -] diff --git a/test/__tests__/data/rockerbox_router_output.json b/test/__tests__/data/rockerbox_router_output.json deleted file mode 100644 index 5394fcd220..0000000000 --- a/test/__tests__/data/rockerbox_router_output.json +++ /dev/null @@ -1,158 +0,0 @@ -[ - { - "batched": false, - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://webhooks.getrockerbox.com/rudderstack", - "headers": {}, - "params": { - "advertiser": "test id" - }, - "body": { - "JSON": { - "action": "conv.add_to_cart", - "checkout_id": "12345", - "anonymous_id": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "conversion_source": "RudderStack", - "customer_id": "userSampleX138", - "email": "userSampleX120@gmail.com", - "phone": "9878764736", - "product_name": "Red T-shirt", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "timestamp": 1659902539 - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "destination": { - "Config": { - "advertiserId": "test id", - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eventsMap": [ - { - "from": "Product Added", - "to": "conv.add_to_cart" - } - ], - "useNativeSDK": { - "web": false - }, - "clientAuthId": { - "web": "test-client-auth-id" - }, - "oneTrustCookieCategories": { - "web": [ - { - "oneTrustCookieCategory": "Marketing Sample" - } - ] - }, - "customDomain": { - "web": "https://cookiedomain.com" - }, - "enableCookieSync": { - "web": true - } - } - }, - "metadata": [ - { - "jobId": 1 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://webhooks.getrockerbox.com/rudderstack", - "headers": {}, - "params": { - "advertiser": "test id" - }, - "body": { - "JSON": { - "action": "conv.add_to_cart", - "checkout_id": "12345", - "conversion_source": "RudderStack", - "customer_id": "userSampleX138", - "email": "userSampleX120@gmail.com", - "anonymous_id": "5f093403-1457-4a2c-b4e4-c61ec3bacf56", - "phone": "9878764736", - "product_name": "Red T-shirt", - "product_url": "http://www.yourdomain.com/products/red-t-shirt", - "timestamp": 1659902539 - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "destination": { - "Config": { - "advertiserId": "test id", - "eventFilteringOption": "disable", - "whitelistedEvents": [ - { - "eventName": "" - } - ], - "blacklistedEvents": [ - { - "eventName": "" - } - ], - "eventsMap": [ - { - "from": "Product Viewed", - "to": "conv.add_to_cart" - } - ], - "useNativeSDK": { - "web": false - }, - "clientAuthId": { - "web": "test-client-auth-id" - }, - "oneTrustCookieCategories": { - "web": [ - { - "oneTrustCookieCategory": "Marketing Sample" - } - ] - }, - "customDomain": { - "web": "https://cookiedomain.com" - }, - "enableCookieSync": { - "web": true - } - } - }, - "metadata": [ - { - "jobId": 2 - } - ], - "statusCode": 200 - } -] diff --git a/test/__tests__/data/sendgrid.json b/test/__tests__/data/sendgrid.json deleted file mode 100644 index 1981e16cf1..0000000000 --- a/test/__tests__/data/sendgrid.json +++ /dev/null @@ -1,1301 +0,0 @@ -[ - { - "description": "Identify call without an email", - "input": { - "destination": { - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [ - { - "event": "open" - } - ], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [ - { - "groupId": "" - } - ], - "html": "", - "listId": "list111", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "type": "identify", - "userId": "user@1", - "context": { - "traits": { - "age": "25", - "city": "Surat", - "phone": "+91 9876543210", - "lastName": "test", - "firstName": "rudder", - "state": "Gujarat" - } - } - } - }, - "output": { - "error": "Parameter mail is required" - } - }, - { - "description": "Identify call with list_id configured from web-app", - "input": { - "destination": { - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [ - { - "event": "open" - } - ], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [ - { - "groupId": "" - } - ], - "html": "", - "listId": "list111", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "type": "identify", - "userId": "user@1", - "context": { - "traits": { - "age": "25", - "city": "Surat", - "email": "test@rudderstack.com", - "phone": "+91 9876543210", - "lastName": "test", - "firstName": "rudder", - "state": "Gujarat" - } - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contactDetails": { - "email": "test@rudderstack.com", - "last_name": "test", - "first_name": "rudder", - "phone_number": "+91 9876543210", - "custom_fields": {} - }, - "contactListIds": "list111" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apikey" - }, - "version": "1", - "endpoint": "https://api.sendgrid.com/v3/marketing/contacts" - } - }, - { - "description": "Identify call with no list-id given", - "input": { - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [ - { - "from": "name", - "to": "user_name" - } - ], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [ - { - "event": "open" - } - ], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [ - { - "groupId": "" - } - ], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "type": "identify", - "userId": "user@1", - "context": { - "traits": { - "age": "25", - "city": "Surat", - "name": "rudder test", - "email": "test@rudderstack.com", - "phone": "+91 9876543210", - "lastName": "test", - "firstName": "rudder", - "state": "Gujarat" - } - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "contactDetails": { - "email": "test@rudderstack.com", - "last_name": "test", - "first_name": "rudder", - "unique_name": "rudder test", - "phone_number": "+91 9876543210", - "custom_fields": { - "w1_T": "rudder test" - } - }, - "contactListIds": "" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apikey" - }, - "version": "1", - "endpoint": "https://api.sendgrid.com/v3/marketing/contacts" - } - }, - { - "description": "Track Call", - "input": { - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [ - { - "event": "testing" - }, - { - "event": "clicked" - } - ], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false, - "text": null, - "utmContent": null - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - }, - { - "name": "hello" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.sendgrid.com/v3/mail/send", - "headers": { - "Authorization": "Bearer apikey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - }, - "reply_to": { - "email": "ankit@rudderstack.com" - }, - "subject": "A sample subject", - "content": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ] - } - }, - "files": {} - } - }, - { - "description": "Track Call", - "input": { - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [ - { - "event": "testing" - }, - { - "event": "clicked" - } - ], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "footerText": "some text", - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "replyTo": { - "email": "testing@gmail.com" - }, - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - }, - { - "name": "hello" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.sendgrid.com/v3/mail/send", - "headers": { - "Authorization": "Bearer apikey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - }, - "reply_to": { - "email": "testing@gmail.com" - }, - "subject": "A sample subject", - "content": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ] - } - }, - "files": {} - } - }, - { - "description": "Track Call", - "input": { - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [ - { - "event": "testing" - }, - { - "event": "clicked" - } - ], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "footerText": "some text", - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false, - "group": "12345", - "groupsToDisplay": [ - { - "groupId": "12345" - }, - { - "groupId": "abc" - }, - { - "groupId": "12346" - } - ] - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "replyTo": { - "email": "testing@gmail.com" - }, - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - }, - { - "name": "hello" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - } - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.sendgrid.com/v3/mail/send", - "headers": { - "Authorization": "Bearer apikey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - }, - "reply_to": { - "email": "testing@gmail.com" - }, - "asm": { - "group_id": 12345, - "groups_to_display": [12345, 12346] - }, - "subject": "A sample subject", - "content": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ] - } - }, - "files": {} - } - }, - { - "description": "Track call without an event name", - "input": { - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [ - { - "event": "testing" - }, - { - "event": "clicked" - } - ], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "footerText": "some text", - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false, - "group": "12345", - "groupsToDisplay": [ - { - "groupId": "12345" - }, - { - "groupId": "abc" - }, - { - "groupId": "12346" - } - ] - } - }, - "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", - "type": "track", - "event": "new event", - "properties": { - "replyTo": { - "email": "testing@gmail.com" - }, - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - }, - { - "name": "hello" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - "output": { - "error": "Event not configured on dashboard" - } - }, - { - "description": "Track Call", - "input": { - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [ - { - "event": "testing" - }, - { - "event": "clicked" - } - ], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "footerText": "some text", - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false, - "group": "12345", - "groupsToDisplay": [ - { - "groupId": "12345" - }, - { - "groupId": "abc" - }, - { - "groupId": "12346" - } - ], - "attachments": [ - { - "content": "YXNkZ2FmZ3FlcmRxZ2Iua2puYWRrbGpuYWtqc2Rmbg==", - "filename": "index.html" - } - ] - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "replyTo": { - "email": "testing@gmail.com" - }, - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - }, - { - "name": "hello" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.sendgrid.com/v3/mail/send", - "headers": { - "Authorization": "Bearer apikey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - }, - "reply_to": { - "email": "testing@gmail.com" - }, - "asm": { - "group_id": 12345, - "groups_to_display": [12345, 12346] - }, - "subject": "A sample subject", - "content": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "attachments": [ - { - "content": "YXNkZ2FmZ3FlcmRxZ2Iua2puYWRrbGpuYWtqc2Rmbg==", - "filename": "index.html" - } - ] - } - }, - "files": {} - } - }, - { - "description": "Track Call", - "input": { - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [ - { - "event": "testing" - }, - { - "event": "clicked" - } - ], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "footerText": "some text", - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false, - "group": "12345", - "groupsToDisplay": [ - { - "groupId": "12345" - }, - { - "groupId": "abc" - }, - { - "groupId": "12346" - } - ], - "attachments": [ - { - "content": "YXNkZ21hcyxkLm1mO29xd2llbGpmbWwuYWRrbXMuLGFtZHM=", - "filename": "index.html" - }, - { - "content": "bGFqa3NtZGZrZ2hxaWVybmtsYSBmZGtvamx3bWVGTC5NQW5kcy5rbmtmYWtkZg==" - } - ] - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "replyTo": { - "email": "testing@gmail.com" - }, - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - }, - { - "name": "hello" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.sendgrid.com/v3/mail/send", - "headers": { - "Authorization": "Bearer apikey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - }, - "reply_to": { - "email": "testing@gmail.com" - }, - "asm": { - "group_id": 12345, - "groups_to_display": [12345, 12346] - }, - "subject": "A sample subject", - "content": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "attachments": [ - { - "content": "YXNkZ21hcyxkLm1mO29xd2llbGpmbWwuYWRrbXMuLGFtZHM=", - "filename": "index.html" - } - ] - } - }, - "files": {} - } - }, - { - "description": "Track Call", - "input": { - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [ - { - "event": "testing" - }, - { - "event": "clicked" - } - ], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "footerText": "some text", - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false, - "group": "12345", - "groupsToDisplay": [ - { - "groupId": "12345" - }, - { - "groupId": "abc" - }, - { - "groupId": "12346" - } - ], - "attachments": [ - { - "content": "YXNkZ21hcyxkLm1mO29xd2llbGpmbWwuYWRrbXMuLGFtZHM=", - "filename": "index.html" - }, - { - "content": "bGFqa3NtZGZrZ2hxaWVybmtsYSBmZGtvamx3bWVGTC5NQW5kcy5rbmtmYWtkZg==" - } - ] - } - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "replyTo": { - "email": "testing@gmail.com" - }, - "mailSettings": { - "bypassListManagement": true, - "footer": true - }, - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - }, - { - "name": "hello" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.sendgrid.com/v3/mail/send", - "headers": { - "Authorization": "Bearer apikey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - }, - "reply_to": { - "email": "testing@gmail.com" - }, - "asm": { - "group_id": 12345, - "groups_to_display": [12345, 12346] - }, - "subject": "A sample subject", - "content": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "attachments": [ - { - "content": "YXNkZ21hcyxkLm1mO29xd2llbGpmbWwuYWRrbXMuLGFtZHM=", - "filename": "index.html" - } - ], - "mail_settings": { - "bypass_list_management": { - "enable": true - }, - "footer": { - "enable": true, - "text": "some text" - } - } - } - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/sendgrid_batch.json b/test/__tests__/data/sendgrid_batch.json deleted file mode 100644 index 23c9c34f9c..0000000000 --- a/test/__tests__/data/sendgrid_batch.json +++ /dev/null @@ -1,941 +0,0 @@ -[ - { - "description": "Identify call batching with multiple listIds", - "input": [ - { - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "userId": "user@3", - "type": "identify", - "context": { - "traits": { - "age": "30", - "email": "user3@rudderlabs.com", - "phone": "+91 9876543210", - "city": "Ahmedabad", - "state": "Gujarat", - "lastName": "gupta", - "firstName": "aman", - "name": "aman gupta" - }, - "externalId": [ - { - "type": "listIds", - "id": ["476b736e-24a4-4089-8392-66a6bf6aa14d"] - } - ] - } - }, - "metadata": { - "jobId": 1 - } - }, - { - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "userId": "user@4", - "type": "identify", - "context": { - "traits": { - "email": "user4@rudderlabs.com", - "phone": "+91 9876543210", - "userId": "sajal", - "city": "Bombey", - "state": "Maharastra", - "lastName": "gupta", - "username": "suresh gupta", - "firstName": "suresh" - }, - "externalId": [ - { - "type": "listIds", - "id": "737ae8d4-25b4-496e-adff-2fded15fd0c6" - } - ] - } - }, - "metadata": { - "jobId": 2 - } - }, - { - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "userId": "user@5", - "type": "identify", - "context": { - "traits": { - "email": "user5@rudderlabs.com", - "phone": "+91 9876543210", - "city": "Banglore", - "lastName": "bhatt", - "username": "kiran bhatt", - "firstName": "kiran" - }, - "externalId": [ - { - "type": "listIds", - "id": [ - "737ae8d4-25b4-496e-adff-2fded15fd0c6", - "a4ac8a69-d8cb-4cf1-9d85-3d60e4007ab1" - ] - } - ] - } - }, - "metadata": { - "jobId": 3 - } - }, - { - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "userId": "user@6", - "type": "identify", - "context": { - "traits": { - "email": "user6@rudderlabs.com", - "phone": "+91 9876543210", - "city": "Los Angeles", - "lastName": "doe", - "name": "john doe", - "state": "California", - "firstName": "john" - }, - "externalId": [ - { - "type": "listIds", - "id": [ - "bc9b7ff4-f1d4-4c7c-b9a8-3051107c8d1e", - "cb7f13a1-b77b-4fb3-8440-56f6524716d3" - ] - } - ] - } - }, - "metadata": { - "jobId": 4 - } - }, - { - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "userId": "user@7", - "type": "identify", - "context": { - "traits": { - "email": "user7@rudderlabs.com", - "phone": "+91 9876543210", - "city": "Chicago", - "lastName": "patel", - "name": "reshma patel", - "state": "Illinois", - "firstName": "reshma" - } - } - }, - "metadata": { - "jobId": 5 - } - }, - { - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - }, - "message": { - "userId": "user@8", - "type": "identify", - "context": { - "traits": { - "email": "user8@rudderlabs.com", - "phone": "+91 9876543210", - "city": "Chicago", - "lastName": "patel", - "name": "karishma patel", - "state": "Illinois", - "firstName": "karishma" - }, - "externalId": [ - { - "type": "listIds", - "id": [ - "737ae8d4-25b4-496e-adff-2fded15fd0c6", - "a4ac8a69-d8cb-4cf1-9d85-3d60e4007ab1", - "bc9b7ff4-f1d4-4c7c-b9a8-3051107c8d1e", - "cb7f13a1-b77b-4fb3-8440-56f6524716d3" - ] - } - ] - } - }, - "metadata": { - "jobId": 6 - } - } - ], - "output": [ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.sendgrid.com/v3/marketing/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apikey" - }, - "params": {}, - "body": { - "JSON": { - "list_ids": ["476b736e-24a4-4089-8392-66a6bf6aa14d"], - "contacts": [ - { - "email": "user3@rudderlabs.com", - "phone_number": "+91 9876543210", - "first_name": "aman", - "last_name": "gupta", - "unique_name": "aman gupta", - "custom_fields": { "w1_T": "aman gupta" } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 1 }], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.sendgrid.com/v3/marketing/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apikey" - }, - "params": {}, - "body": { - "JSON": { - "list_ids": ["737ae8d4-25b4-496e-adff-2fded15fd0c6"], - "contacts": [ - { - "email": "user4@rudderlabs.com", - "phone_number": "+91 9876543210", - "first_name": "suresh", - "last_name": "gupta", - "custom_fields": {} - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 2 }], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.sendgrid.com/v3/marketing/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apikey" - }, - "params": {}, - "body": { - "JSON": { - "list_ids": [ - "737ae8d4-25b4-496e-adff-2fded15fd0c6", - "a4ac8a69-d8cb-4cf1-9d85-3d60e4007ab1" - ], - "contacts": [ - { - "email": "user5@rudderlabs.com", - "phone_number": "+91 9876543210", - "first_name": "kiran", - "last_name": "bhatt", - "custom_fields": {} - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 3 }], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.sendgrid.com/v3/marketing/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apikey" - }, - "params": {}, - "body": { - "JSON": { - "list_ids": [ - "bc9b7ff4-f1d4-4c7c-b9a8-3051107c8d1e", - "cb7f13a1-b77b-4fb3-8440-56f6524716d3" - ], - "contacts": [ - { - "email": "user6@rudderlabs.com", - "phone_number": "+91 9876543210", - "first_name": "john", - "last_name": "doe", - "unique_name": "john doe", - "custom_fields": { "w1_T": "john doe" } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 4 }], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.sendgrid.com/v3/marketing/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apikey" - }, - "params": {}, - "body": { - "JSON": { - "contacts": [ - { - "email": "user7@rudderlabs.com", - "phone_number": "+91 9876543210", - "first_name": "reshma", - "last_name": "patel", - "unique_name": "reshma patel", - "custom_fields": { "w1_T": "reshma patel" } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 5 }], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.sendgrid.com/v3/marketing/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer apikey" - }, - "params": {}, - "body": { - "JSON": { - "list_ids": [ - "737ae8d4-25b4-496e-adff-2fded15fd0c6", - "a4ac8a69-d8cb-4cf1-9d85-3d60e4007ab1", - "bc9b7ff4-f1d4-4c7c-b9a8-3051107c8d1e", - "cb7f13a1-b77b-4fb3-8440-56f6524716d3" - ], - "contacts": [ - { - "email": "user8@rudderlabs.com", - "phone_number": "+91 9876543210", - "first_name": "karishma", - "last_name": "patel", - "unique_name": "karishma patel", - "custom_fields": { "w1_T": "karishma patel" } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [{ "jobId": 6 }], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "2HOQOO6wWKaKjeQrEABXgiH6cmU", - "Config": { - "IPPoolName": "", - "apiKey": "apikey", - "attachments": [ - { - "content": "", - "contentId": "", - "disposition": "", - "filename": "", - "type": "" - } - ], - "clickTracking": true, - "clickTrackingEnableText": true, - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "customFieldsMapping": [{ "from": "name", "to": "user_name" }], - "eventDelivery": false, - "eventDeliveryTS": 1668424218224, - "eventNamesSettings": [{ "event": "open" }], - "footer": false, - "fromEmail": "a@g.com", - "fromName": "", - "ganalytics": false, - "group": "", - "groupsToDisplay": [{ "groupId": "" }], - "html": "", - "mailFromTraits": false, - "openTracking": false, - "openTrackingSubstitutionTag": "", - "replyToEmail": "", - "replyToName": "", - "sandboxMode": false, - "subject": "hello there from webflow", - "subscriptionTracking": false, - "substitutionTag": "", - "templateId": "", - "text": "" - } - } - } - ] - } -] diff --git a/test/__tests__/data/sendgrid_router.json b/test/__tests__/data/sendgrid_router.json deleted file mode 100644 index a9147d1ee7..0000000000 --- a/test/__tests__/data/sendgrid_router.json +++ /dev/null @@ -1,152 +0,0 @@ -[ - { - "description": "Router Test Case", - "input": [ - { - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [{ "event": "testing" }, { "event": "clicked" }], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false - } - }, - "metadata": { - "jobId": 2 - }, - "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", - "type": "track", - "event": "testing", - "properties": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - }, - { - "name": "hello" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - } - }, - "integrations": { "All": true }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - } - ], - "output": [ - { - "batchedRequest": { - "body": { - "XML": {}, - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "personalizations": [ - { - "to": [ - { - "email": "a@g.com" - } - ], - "subject": "hey there" - } - ], - "from": { - "email": "ankit@rudderstack.com" - }, - "reply_to": { "email": "ankit@rudderstack.com" }, - "subject": "A sample subject", - "content": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ] - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Authorization": "Bearer apikey", - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.sendgrid.com/v3/mail/send" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "apikey", - "eventNamesSettings": [{ "event": "testing" }, { "event": "clicked" }], - "subject": "A sample subject", - "replyToEmail": "ankit@rudderstack.com", - "contents": [ - { - "type": "text/html", - "value": "

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

" - } - ], - "footer": false, - "bypassListManagement": false, - "sandboxMode": false, - "clickTracking": false, - "openTracking": false, - "ganalytics": false, - "subscriptionTracking": false, - "clickTrackingEnableText": false - } - } - } - ] - } -] diff --git a/test/__tests__/data/sendinblue.json b/test/__tests__/data/sendinblue.json deleted file mode 100644 index 06b6df14d9..0000000000 --- a/test/__tests__/data/sendinblue.json +++ /dev/null @@ -1,1196 +0,0 @@ -[ - { - "description": "Page call without email or phone", - "input": { - "message": { - "type": "page", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "name": "New Page", - "properties": { - "url": "https://www.google.com/", - "title": "Google home" - }, - "context": { - "traits": {}, - "page": { - "url": "http://127.0.0.1:7307/Testing/test/ourSdk.html", - "path": "/Testing/test/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/test/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/test/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "error": "At least one of `email` or `phone` is required" - } - }, - { - "description": "Page call", - "input": { - "message": { - "type": "page", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "name": "New Page", - "properties": { - "url": "https://www.google.com/", - "title": "Google home" - }, - "context": { - "traits": { - "email": "john_doe@example.com" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/test/ourSdk.html", - "path": "/Testing/test/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/test/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/test/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": false, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "email": "john_doe@example.com", - "page": "https://www.google.com/", - "properties": { - "ma_path": "/Testing/test/ourSdk.html", - "ma_referrer": "http://127.0.0.1:7307/Testing/test/", - "ma_title": "Google home", - "sib_name": "New Page" - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://in-automate.sendinblue.com/api/v2/trackPage", - "files": {}, - "headers": { - "Content-Type": "application/json", - "ma-key": "clientKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Track call without email or phone", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "Order Completed", - "properties": {}, - "context": { - "traits": { - "first_name": "John", - "lastName": "Doe" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "error": "At least one of `email` or `phone` is required" - } - }, - { - "description": "Track call without event", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "properties": {}, - "context": {} - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "error": "Event name is required" - } - }, - { - "description": "Track events with sendTraitsInTrack flag set to true", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "Order Completed", - "properties": {}, - "context": { - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false, - "sendTraitsInTrack": true - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "email": "john_doe@example.com", - "event": "Order Completed", - "eventdata": {}, - "properties": { - "FIRSTNAME": "John", - "LASTNAME": "Doe", - "SMS": "+919876543210", - "age": 19, - "location": "Mumbai", - "role": "SDE" - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://in-automate.sendinblue.com/api/v2/trackEvent", - "files": {}, - "headers": { - "Content-Type": "application/json", - "ma-key": "clientKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Track events with contactAttributeMapping provided in webapp", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "Order Completed", - "properties": {}, - "context": { - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false, - "contactAttributeMapping": [ - { - "from": "location", - "to": "LOCATION" - } - ], - "sendTraitsInTrack": true - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "email": "john_doe@example.com", - "event": "Order Completed", - "eventdata": {}, - "properties": { - "FIRSTNAME": "John", - "LASTNAME": "Doe", - "LOCATION": "Mumbai", - "SMS": "+919876543210", - "age": 19, - "role": "SDE" - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://in-automate.sendinblue.com/api/v2/trackEvent", - "files": {}, - "headers": { - "Content-Type": "application/json", - "ma-key": "clientKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Track events with propertiesIdKey provided in integration object", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "Order Completed", - "properties": { - "orderId": "1341394-3812392190", - "products": [ - { - "product_id": 1234, - "product_name": "Track Pants", - "amount": 1, - "price": 220 - }, - { - "product_id": 5768, - "product_name": "T-Shirt", - "amount": 5, - "price": 1058 - } - ] - }, - "context": { - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - } - }, - "integrations": { - "All": true, - "sendinblue": { - "propertiesIdKey": "orderId" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false, - "contactAttributeMapping": [ - { - "from": "location", - "to": "LOCATION" - } - ], - "sendTraitsInTrack": true - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "email": "john_doe@example.com", - "event": "Order Completed", - "eventdata": { - "data": { - "orderId": "1341394-3812392190", - "products": [ - { - "amount": 1, - "price": 220, - "product_id": 1234, - "product_name": "Track Pants" - }, - { - "amount": 5, - "price": 1058, - "product_id": 5768, - "product_name": "T-Shirt" - } - ] - }, - "id": "1341394-3812392190" - }, - "properties": { - "FIRSTNAME": "John", - "LASTNAME": "Doe", - "LOCATION": "Mumbai", - "SMS": "+919876543210", - "age": 19, - "role": "SDE" - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://in-automate.sendinblue.com/api/v2/trackEvent", - "files": {}, - "headers": { - "Content-Type": "application/json", - "ma-key": "clientKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Track events with eventdata.id taken from messageId", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "Order Completed", - "properties": { - "orderId": "1341394-3812392190", - "products": [ - { - "product_id": 1234, - "product_name": "Track Pants", - "amount": 1, - "price": 220 - }, - { - "product_id": 5768, - "product_name": "T-Shirt", - "amount": 5, - "price": 1058 - } - ] - }, - "context": { - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false, - "contactAttributeMapping": [ - { - "from": "location", - "to": "LOCATION" - } - ], - "sendTraitsInTrack": true - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "email": "john_doe@example.com", - "event": "Order Completed", - "eventdata": { - "data": { - "orderId": "1341394-3812392190", - "products": [ - { - "amount": 1, - "price": 220, - "product_id": 1234, - "product_name": "Track Pants" - }, - { - "amount": 5, - "price": 1058, - "product_id": 5768, - "product_name": "T-Shirt" - } - ] - }, - "id": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff" - }, - "properties": { - "FIRSTNAME": "John", - "LASTNAME": "Doe", - "LOCATION": "Mumbai", - "SMS": "+919876543210", - "age": 19, - "role": "SDE" - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://in-automate.sendinblue.com/api/v2/trackEvent", - "files": {}, - "headers": { - "Content-Type": "application/json", - "ma-key": "clientKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Track link without email or phone", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "trackLink", - "properties": { - "link": "https://www.google.com/gmail/", - "emailCount": 19 - }, - "context": { - "traits": {} - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "error": "At least one of `email` or `phone` is required" - } - }, - { - "description": "Track link without link", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "trackLink", - "properties": {}, - "context": { - "traits": { - "phone": "+919507545089" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "error": "Missing required value from \"properties.link\"" - } - }, - { - "description": "Track link", - "input": { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "trackLink", - "properties": { - "link": "https://www.google.com/gmail/", - "emailCount": 19 - }, - "context": { - "traits": { - "phone": "+919507545089" - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "email": "919507545089@mailin-sms.com", - "link": "https://www.google.com/gmail/", - "properties": { - "emailCount": 19 - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://in-automate.sendinblue.com/api/v2/trackLink", - "files": {}, - "headers": { - "Content-Type": "application/json", - "ma-key": "clientKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Identify call with invalid email", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { "email": "abc.com" }, - "context": {}, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "error": "The provided email is invalid" - } - }, - { - "description": "Identify call with invalid phone number", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { "phone": "99999999" }, - "context": {}, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "error": "The provided phone number is invalid" - } - }, - { - "description": "Identify call to create or update a contact without email or phone", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "context": {}, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": { - "error": "At least one of `email` or `phone` is required" - } - }, - { - "description": "Identify call to create or update a contact", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "newEmail": "alex_root@example.com", - "role": "SDE" - }, - "context": { - "externalId": [ - { - "type": "sendinblueIncludeListIds", - "id": [1, 2] - } - ] - }, - "integrations": { - "All": true, - "sendinblue": { - "emailBlacklisted": true - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false, - "contactAttributeMapping": [ - { - "from": "location", - "to": "LOCATION" - } - ] - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "attributes": { - "FIRSTNAME": "John", - "LASTNAME": "Doe", - "LOCATION": "Mumbai", - "SMS": "+919876543210", - "EMAIL": "alex_root@example.com", - "age": 19, - "role": "SDE" - }, - "email": "john_doe@example.com", - "emailBlacklisted": true, - "listIds": [1, 2], - "updateEnabled": true - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.sendinblue.com/v3/contacts", - "files": {}, - "headers": { - "Content-Type": "application/json", - "api-key": "apiKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Identify call to create DOI contact with templatedId from externalId", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - }, - "context": { - "externalId": [ - { - "type": "sendinblueIncludeListIds", - "id": [1, 2] - }, - { - "type": "sendinblueUnlinkListIds", - "id": [5] - }, - { - "type": "sendinblueTemplateId", - "id": 2 - } - ] - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": true, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "attributes": { - "FIRSTNAME": "John", - "LASTNAME": "Doe", - "SMS": "+919876543210", - "age": 19, - "location": "Mumbai", - "role": "SDE" - }, - "email": "john_doe@example.com", - "includeListIds": [1, 2], - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard", - "templateId": 3 - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.sendinblue.com/v3/contacts/doubleOptinConfirmation", - "files": {}, - "headers": { - "Content-Type": "application/json", - "api-key": "apiKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Identify call to create DOI contact without include list Ids", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - }, - "context": {}, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": true, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - }, - "output": { - "error": "sendinblueIncludeListIds is required to create a contact using DOI" - } - }, - { - "description": "Identify call to create DOI contact without template Id", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - }, - "context": {}, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": true, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - }, - "output": { - "error": "templateId is required to create a contact using DOI" - } - }, - { - "description": "Identify call to update a DOI contact without an email or contact ID", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "first_name": "Gordon", - "lastName": "Pittman", - "age": 19, - "location": "Mumbai", - "role": "SDE" - }, - "context": {}, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": true, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - }, - "output": { - "error": "At least one of `email` or `contactId` is required to update the contact using DOI" - } - }, - { - "description": "Identify call to update a DOI contact using contactId as an Identifier and without include list Ids", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "age": 36, - "location": "Mumbai", - "role": "SDE 2" - }, - "context": { - "externalId": [ - { - "type": "sendinblueContactId", - "id": 42 - } - ] - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": true, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "attributes": { - "age": 36, - "location": "Mumbai", - "role": "SDE 2" - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.sendinblue.com/v3/contacts/42", - "files": {}, - "headers": { - "Content-Type": "application/json", - "api-key": "apiKey123" - }, - "method": "PUT", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Identify call to update a DOI contact using email as an Identifier and without include list Ids", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "age": 36, - "location": "Mumbai", - "role": "SDE 2", - "phone": "+918888888888", - "email": "gordon_pittman@example.com", - "newEmail": "gordon_pittman007@example.com" - }, - "context": { - "externalId": [ - { - "type": "sendinblueIncludeListIds", - "id": [1] - }, - { - "type": "sendinblueUnlinkListIds", - "id": [2] - } - ] - }, - "integrations": { - "All": true, - "sendinblue": { - "emailBlacklisted": true, - "smsBlacklisted": false - } - }, - "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" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": true, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "attributes": { - "age": 36, - "location": "Mumbai", - "role": "SDE 2", - "SMS": "+918888888888", - "EMAIL": "gordon_pittman007@example.com" - }, - "emailBlacklisted": true, - "smsBlacklisted": false, - "listIds": [1], - "unlinkListIds": [2] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.sendinblue.com/v3/contacts/gordon_pittman%40example.com", - "files": {}, - "headers": { - "Content-Type": "application/json", - "api-key": "apiKey123" - }, - "method": "PUT", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Identify call to unlink a contact from given lists", - "input": { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "email": "eric_kim@example.com" - }, - "context": { - "externalId": [ - { - "type": "sendinblueUnlinkListIds", - "id": [2, 5] - } - ] - } - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false - } - } - }, - "output": [ - { - "body": { - "FORM": {}, - "JSON": { - "emails": ["eric_kim@example.com"] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.sendinblue.com/v3/contacts/lists/2/contacts/remove", - "files": {}, - "headers": { - "Content-Type": "application/json", - "api-key": "apiKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - { - "body": { - "FORM": {}, - "JSON": { - "emails": ["eric_kim@example.com"] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.sendinblue.com/v3/contacts/lists/5/contacts/remove", - "files": {}, - "headers": { - "Content-Type": "application/json", - "api-key": "apiKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - ] - } -] diff --git a/test/__tests__/data/sendinblue_router_input.json b/test/__tests__/data/sendinblue_router_input.json deleted file mode 100644 index 1f2b8a1dc2..0000000000 --- a/test/__tests__/data/sendinblue_router_input.json +++ /dev/null @@ -1,187 +0,0 @@ -[ - { - "message": { - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "event": "Order Completed", - "properties": { - "orderId": "1341394-3812392190", - "products": [ - { - "product_id": 1234, - "product_name": "Track Pants", - "amount": 1, - "price": 220 - }, - { - "product_id": 5768, - "product_name": "T-Shirt", - "amount": 5, - "price": 1058 - } - ] - }, - "context": { - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - } - }, - "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" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false, - "contactAttributeMapping": [ - { - "from": "location", - "to": "LOCATION" - } - ], - "sendTraitsInTrack": true - } - } - }, - { - "message": { - "type": "page", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "name": "New Page", - "properties": { - "url": "https://www.google.com/", - "title": "Google home" - }, - "context": { - "traits": { - "email": "john_doe@example.com" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/test/ourSdk.html", - "path": "/Testing/test/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/test/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/test/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - } - }, - "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" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": false, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "newEmail": "alex_root@example.com", - "role": "SDE" - }, - "context": { - "externalId": [ - { - "type": "sendinblueIncludeListIds", - "id": [1, 2] - } - ] - }, - "integrations": { - "All": true, - "sendinblue": { - "emailBlacklisted": true - } - }, - "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" - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false, - "contactAttributeMapping": [ - { - "from": "location", - "to": "LOCATION" - } - ] - } - } - }, - { - "message": { - "type": "identify", - "sentAt": "2021-01-03T17:02:53.195Z", - "channel": "web", - "traits": { - "first_name": "John", - "lastName": "Doe", - "age": 19, - "email": "john_doe@example.com", - "phone": "+919876543210", - "location": "Mumbai", - "role": "SDE" - }, - "context": {}, - "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" - }, - "metadata": { - "jobId": 4 - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": true, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - } -] diff --git a/test/__tests__/data/sendinblue_router_output.json b/test/__tests__/data/sendinblue_router_output.json deleted file mode 100644 index c15c15205c..0000000000 --- a/test/__tests__/data/sendinblue_router_output.json +++ /dev/null @@ -1,196 +0,0 @@ -[ - { - "batched": false, - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "email": "john_doe@example.com", - "event": "Order Completed", - "eventdata": { - "data": { - "orderId": "1341394-3812392190", - "products": [ - { - "amount": 1, - "price": 220, - "product_id": 1234, - "product_name": "Track Pants" - }, - { - "amount": 5, - "price": 1058, - "product_id": 5768, - "product_name": "T-Shirt" - } - ] - }, - "id": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff" - }, - "properties": { - "FIRSTNAME": "John", - "LASTNAME": "Doe", - "LOCATION": "Mumbai", - "SMS": "+919876543210", - "age": 19, - "role": "SDE" - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://in-automate.sendinblue.com/api/v2/trackEvent", - "files": {}, - "headers": { - "Content-Type": "application/json", - "ma-key": "clientKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "contactAttributeMapping": [ - { - "from": "location", - "to": "LOCATION" - } - ], - "doi": false, - "sendTraitsInTrack": true - } - }, - "metadata": [ - { - "jobId": 1 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "email": "john_doe@example.com", - "page": "https://www.google.com/", - "properties": { - "ma_path": "/Testing/test/ourSdk.html", - "ma_referrer": "http://127.0.0.1:7307/Testing/test/", - "ma_title": "Google home", - "sib_name": "New Page" - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://in-automate.sendinblue.com/api/v2/trackPage", - "files": {}, - "headers": { - "Content-Type": "application/json", - "ma-key": "clientKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "doi": false, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard", - "templateId": 3 - } - }, - "metadata": [ - { - "jobId": 2 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "attributes": { - "EMAIL": "alex_root@example.com", - "FIRSTNAME": "John", - "LASTNAME": "Doe", - "LOCATION": "Mumbai", - "SMS": "+919876543210", - "age": 19, - "role": "SDE" - }, - "email": "john_doe@example.com", - "emailBlacklisted": true, - "listIds": [1, 2], - "updateEnabled": true - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.sendinblue.com/v3/contacts", - "files": {}, - "headers": { - "Content-Type": "application/json", - "api-key": "apiKey123" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "contactAttributeMapping": [ - { - "from": "location", - "to": "LOCATION" - } - ], - "doi": false - } - }, - "metadata": [ - { - "jobId": 3 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "error": "sendinblueIncludeListIds is required to create a contact using DOI", - "metadata": [ - { - "jobId": 4 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400, - "destination": { - "Config": { - "apiKey": "apiKey123", - "clientKey": "clientKey123", - "templateId": 3, - "doi": true, - "redirectionUrl": "https://app.sendinblue.com/marketing-dashboard" - } - } - } -] diff --git a/test/__tests__/data/sf_input.json b/test/__tests__/data/sf_input.json deleted file mode 100644 index a10caa8d12..0000000000 --- a/test/__tests__/data/sf_input.json +++ /dev/null @@ -1,152 +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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "trackingID": "abcd" - }, - "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", - "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": "/abc", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "abcd" - }, - "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", - "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": "00000000000000000000000000", - "userId": "12345", - "event": "test track event GA3", - "properties": { - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-149602794-1" - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/sf_output.json b/test/__tests__/data/sf_output.json deleted file mode 100644 index 9efe161599..0000000000 --- a/test/__tests__/data/sf_output.json +++ /dev/null @@ -1,43 +0,0 @@ -[ - { - "statusCode": 400, - "message": "message type not supported" - }, - { - "endpoint": "https://www.google-analytics.com/collect", - "requestConfig": { - "requestFormat": "PARAMS", - "requestMethod": "GET" - }, - "header": {}, - "userId": "00000000000000000000000000", - "payload": { - "v": "1", - "t": "pageview", - "tid": "abcd", - "cid": "00000000000000000000000000", - "dt": "", - "dl": "", - "dp": "/abc", - "dr": "" - }, - "statusCode": 200 - }, - { - "endpoint": "https://www.google-analytics.com/collect", - "requestConfig": { - "requestFormat": "PARAMS", - "requestMethod": "GET" - }, - "header": {}, - "userId": "00000000000000000000000000", - "payload": { - "v": "1", - "t": "event", - "tid": "UA-149602794-1", - "cid": "00000000000000000000000000", - "ea": "test track event GA3" - }, - "statusCode": 200 - } -] diff --git a/test/__tests__/data/sfmc_input.json b/test/__tests__/data/sfmc_input.json deleted file mode 100644 index ee6eccb154..0000000000 --- a/test/__tests__/data/sfmc_input.json +++ /dev/null @@ -1,997 +0,0 @@ -[ - { - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": true, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "userId": 12345, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "revenue", - "userId": 12345, - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "device": { - "adTrackingEnabled": true, - "type": "iOS", - "manufacturer": "Apple", - "model": "iPhone XR", - "name": "Apple iPhone XR" - }, - "network": { - "bluetooth": "off", - "wifi": "connceted", - "cellular": "active", - "carrier": "Verizon" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "event": "Event Name", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "track", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "properties": { - "Plan": "plan value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToExternalKey": [ - { "from": "Event Name", "to": "C500FD37-155C-49BD-A21B-AFCEF3D1A9CB" } - ], - "eventToPrimaryKey": [{ "from": "userId", "to": "Contact Key" }], - "eventToUUID": [{ "event": "", "uuid": false }], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "event": "Event Name", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "device": { - "adTrackingEnabled": true, - "type": "iOS", - "manufacturer": "Apple", - "model": "iPhone XR", - "name": "Apple iPhone XR" - }, - "network": { - "bluetooth": "off", - "wifi": "connceted", - "cellular": "active", - "carrier": "Verizon" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "track", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "properties": { - "Plan": "plan value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToExternalKey": [ - { "from": "Event Name", "to": "C500FD37-155C-49BD-A21B-AFCEF3D1A9CB" } - ], - "eventToPrimaryKey": [{ "from": "userId", "to": "Contact Key" }], - "eventToUUID": [{ "event": "Event Name", "uuid": true }], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "event": "Purchase Event", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "device": { - "adTrackingEnabled": true, - "type": "iOS", - "manufacturer": "Apple", - "model": "iPhone XR", - "name": "Apple iPhone XR" - }, - "network": { - "bluetooth": "off", - "wifi": "connceted", - "cellular": "active", - "carrier": "Verizon" - }, - "traits": { - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "track", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "properties": { - "Plan": "plan value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToExternalKey": [ - { "from": "Event Name", "to": "C500FD37-155C-49BD-A21B-AFCEF3D1A9CB" } - ], - "eventToPrimaryKey": [{ "from": "userId", "to": "Contact Key" }], - "eventToUUID": [{ "event": "Event Name", "uuid": true }], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "event": "Event Name", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "device": { - "adTrackingEnabled": true, - "type": "iOS", - "manufacturer": "Apple", - "model": "iPhone XR", - "name": "Apple iPhone XR" - }, - "network": { - "bluetooth": "off", - "wifi": "connceted", - "cellular": "active", - "carrier": "Verizon" - }, - "traits": { - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "track", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "properties": { - "Plan": "plan value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToExternalKey": [ - { "from": "Event Name", "to": "C500FD37-155C-49BD-A21B-AFCEF3D1A9CB" } - ], - "eventToPrimaryKey": [{ "from": "userId", "to": "Contact Key" }], - "eventToUUID": [{ "event": "Event Name", "uuid": true }], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "event": "Watch", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "track", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "properties": { - "Plan": "plan value", - "Price Key": 29.99, - "Guest Key": "2323-34343-3434" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToExternalKey": [ - { - "from": "Event Name", - "to": "C500FD37-155C-49BD-A21B-AFCEF3D1A9CB" - }, - { "from": "Watch", "to": "C500FD37-155C-49BD-A21B-AFCEF3D1A9CB" } - ], - "eventToPrimaryKey": [ - { "from": "userId", "to": "User Key" }, - { "from": "watch", "to": "Guest Key" } - ], - "eventToUUID": [{ "event": "Event Name", "uuid": true }], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "event": "Watch", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "track", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "properties": { - "Plan": "plan value", - "Price Key": 29.99, - "Contact Key": 12345, - "Guest Key": "2323-34343-3434" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToExternalKey": [ - { - "from": "Event Name", - "to": "C500FD37-155C-49BD-A21B-AFCEF3D1A9CB" - }, - { "from": "Watch", "to": "C500FD37-155C-49BD-A21B-AFCEF3D1A9CB" } - ], - "eventToPrimaryKey": [ - { "from": "userId", "to": "User Key" }, - { "from": "watch", "to": "Guest Key, Contact Key" } - ], - "eventToUUID": [{ "event": "Event Name", "uuid": true }], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - } -] diff --git a/test/__tests__/data/sfmc_output.json b/test/__tests__/data/sfmc_output.json deleted file mode 100644 index 0271475e4a..0000000000 --- a/test/__tests__/data/sfmc_output.json +++ /dev/null @@ -1,311 +0,0 @@ -[ - { - "error": "Creating or updating contacts is disabled" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/contacts/v1/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "params": {}, - "body": { - "JSON": { - "attributeSets": [], - "contactKey": "12345" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:f3ffa19b-e0b3-4967-829f-549b781080e6/rows/Contact Key:12345", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "params": {}, - "body": { - "JSON": { - "values": { - "Contact Key": "12345", - "App Name": "RudderLabs JavaScript SDK", - "App Version": "1.0.0", - "App Build": "1.0.0", - "UTM Campaign": "Demo Campaign", - "UTM Source": "facebook", - "UTM Medium": "online", - "UTM Term": "Demo terms", - "UTM Content": "Demo content", - "Locale": "en-GB", - "User Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "IP Address": "0.0.0.0", - "Screen Density": 2, - "Screen Height": 860, - "Screen Width": 1280, - "Email": "tonmoy@rudderstack.com", - "Name": "Tonmoy Labs" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - } - ], - { - "error": "Either userId or email is required" - }, - { - "error": "Event type is required" - }, - { - "error": "Event type revenue is not supported" - }, - [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/contacts/v1/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "params": {}, - "body": { - "JSON": { - "attributeSets": [], - "contactKey": "12345" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:f3ffa19b-e0b3-4967-829f-549b781080e6/rows/Contact Key:12345", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "params": {}, - "body": { - "JSON": { - "values": { - "Name": "Tonmoy Labs", - "Email": "tonmoy@rudderstack.com", - "Locale": "en-GB", - "App Name": "RudderLabs JavaScript SDK", - "UTM Term": "Demo terms", - "App Build": "1.0.0", - "IP Address": "0.0.0.0", - "UTM Medium": "online", - "UTM Source": "facebook", - "User Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "App Version": "1.0.0", - "Contact Key": "12345", - "Device Name": "Apple iPhone XR", - "Device Type": "iOS", - "UTM Content": "Demo content", - "Device-model": "iPhone XR", - "Screen Width": 1280, - "UTM Campaign": "Demo Campaign", - "Wifi Enabled": "connceted", - "Screen Height": 860, - "Screen Density": 2, - "Network Carrier": "Verizon", - "Cellular Enabled": "active", - "Bluetooth Enabled": "off", - "Ad Tracking Enabled": true, - "Device Manufacturer": "Apple" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - } - ], - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:C500FD37-155C-49BD-A21B-AFCEF3D1A9CB/rows/Contact Key:12345", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "params": {}, - "body": { - "JSON": { - "values": { - "Plan": "plan value", - "Locale": "en-GB", - "App Name": "RudderLabs JavaScript SDK", - "UTM Term": "Demo terms", - "App Build": "1.0.0", - "IP Address": "0.0.0.0", - "UTM Medium": "online", - "UTM Source": "facebook", - "User Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "App Version": "1.0.0", - "Contact Key": "12345", - "UTM Content": "Demo content", - "Screen Width": 1280, - "UTM Campaign": "Demo Campaign", - "Screen Height": 860, - "Screen Density": 2 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "values": { - "Plan": "plan value", - "Uuid": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "Locale": "en-GB", - "App Name": "RudderLabs JavaScript SDK", - "UTM Term": "Demo terms", - "App Build": "1.0.0", - "IP Address": "0.0.0.0", - "UTM Medium": "online", - "UTM Source": "facebook", - "User Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "App Version": "1.0.0", - "Device Name": "Apple iPhone XR", - "Device Type": "iOS", - "UTM Content": "Demo content", - "Device-model": "iPhone XR", - "Screen Width": 1280, - "UTM Campaign": "Demo Campaign", - "Wifi Enabled": "connceted", - "Screen Height": 860, - "Screen Density": 2, - "Network Carrier": "Verizon", - "Cellular Enabled": "active", - "Bluetooth Enabled": "off", - "Ad Tracking Enabled": true, - "Device Manufacturer": "Apple" - } - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "version": "1", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:C500FD37-155C-49BD-A21B-AFCEF3D1A9CB/rows/Uuid:50360b9c-ea8d-409c-b672-c9230f91cce5" - }, - { - "error": "Event not mapped for this track call" - }, - { - "error": "Either userId or email is required" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "values": { - "Plan": "plan value", - "Locale": "en-GB", - "App Name": "RudderLabs JavaScript SDK", - "UTM Term": "Demo terms", - "App Build": "1.0.0", - "Price Key": 29.99, - "Guest Key": "2323-34343-3434", - "IP Address": "0.0.0.0", - "UTM Medium": "online", - "UTM Source": "facebook", - "User Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "App Version": "1.0.0", - "UTM Content": "Demo content", - "Screen Width": 1280, - "UTM Campaign": "Demo Campaign", - "Screen Height": 860, - "Screen Density": 2 - } - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "version": "1", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:C500FD37-155C-49BD-A21B-AFCEF3D1A9CB/rows/Guest Key:2323-34343-3434" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "values": { - "Plan": "plan value", - "Locale": "en-GB", - "App Name": "RudderLabs JavaScript SDK", - "UTM Term": "Demo terms", - "App Build": "1.0.0", - "Price Key": 29.99, - "Contact Key": 12345, - "Guest Key": "2323-34343-3434", - "IP Address": "0.0.0.0", - "UTM Medium": "online", - "UTM Source": "facebook", - "User Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "App Version": "1.0.0", - "UTM Content": "Demo content", - "Screen Width": 1280, - "UTM Campaign": "Demo Campaign", - "Screen Height": 860, - "Screen Density": 2 - } - } - }, - "type": "REST", - "files": {}, - "method": "PUT", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "version": "1", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:C500FD37-155C-49BD-A21B-AFCEF3D1A9CB/rows/Guest Key:2323-34343-3434,Contact Key:12345" - } -] diff --git a/test/__tests__/data/sfmc_router_input.json b/test/__tests__/data/sfmc_router_input.json deleted file mode 100644 index ba925030eb..0000000000 --- a/test/__tests__/data/sfmc_router_input.json +++ /dev/null @@ -1,158 +0,0 @@ -[ - { - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": true, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - }, - { - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "campaign": { - "name": "Demo Campaign", - "source": "facebook", - "medium": "online", - "term": "Demo terms", - "content": "Demo content" - }, - "traits": { - "email": "tonmoy@rudderstack.com", - "name": "Tonmoy Labs" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-GB", - "ip": "0.0.0.0", - "screen": { - "density": 2, - "height": 860, - "width": 1280 - } - }, - "type": "identify", - "messageId": "50360b9c-ea8d-409c-b672-c9230f91cce5", - "originalTimestamp": "2019-10-15T09:35:31.288Z", - "userId": "12345", - "userProperties": { - "test_key": "test value" - }, - "sentAt": "2019-10-14T09:03:22.563Z", - "integrations": { - "All": true - } - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - } -] diff --git a/test/__tests__/data/sfmc_router_output.json b/test/__tests__/data/sfmc_router_output.json deleted file mode 100644 index d207b792ee..0000000000 --- a/test/__tests__/data/sfmc_router_output.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "metadata": [ - { - "jobId": 1 - } - ], - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": true, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - }, - "batched": false, - "statusCode": 400, - "error": "Creating or updating contacts is disabled", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - } - }, - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/contacts/v1/contacts", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "params": {}, - "body": { - "JSON": { - "attributeSets": [], - "contactKey": "12345" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:f3ffa19b-e0b3-4967-829f-549b781080e6/rows/Contact Key:12345", - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer undefined" - }, - "params": {}, - "body": { - "JSON": { - "values": { - "Contact Key": "12345", - "App Name": "RudderLabs JavaScript SDK", - "App Version": "1.0.0", - "App Build": "1.0.0", - "UTM Campaign": "Demo Campaign", - "UTM Source": "facebook", - "UTM Medium": "online", - "UTM Term": "Demo terms", - "UTM Content": "Demo content", - "Locale": "en-GB", - "User Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "IP Address": "0.0.0.0", - "Screen Density": 2, - "Screen Height": 860, - "Screen Width": 1280, - "Email": "tonmoy@rudderstack.com", - "Name": "Tonmoy Labs" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1pYpzzvcn7AQ2W9GGIAZSsN6Mfq", - "Name": "SFMC", - "DestinationDefinition": { - "ID": "1pYpYSeQd8OeN6xPdw6VGDzqUd1", - "Name": "SFMC", - "DisplayName": "Salesforce Marketing Cloud", - "Config": { - "destConfig": [], - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": false, - "supportedSourceTypes": [], - "transformAt": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "clientId": "vcn7AQ2W9GGIAZSsN6Mfq", - "clientSecret": "vcn7AQ2W9GGIAZSsN6Mfq", - "createOrUpdateContacts": false, - "eventDelivery": true, - "eventDeliveryTS": 1615371070621, - "eventToUUID": [], - "externalKey": "f3ffa19b-e0b3-4967-829f-549b781080e6", - "subDomain": "vcn7AQ2W9GGIAZSsN6Mfq" - }, - "Enabled": true, - "Transformations": [] - } - } -] diff --git a/test/__tests__/data/snapchat_custom_audience_proxy_input.json b/test/__tests__/data/snapchat_custom_audience_proxy_input.json deleted file mode 100644 index 89340810b4..0000000000 --- a/test/__tests__/data/snapchat_custom_audience_proxy_input.json +++ /dev/null @@ -1,102 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users", - "headers": { - "Authorization": "Bearer abcd123", - "Content-Type": "application/json" - }, - "body": { - "JSON": { - "users": [ - { - "schema": [ - "EMAIL_SHA256" - ], - "data": [ - [ - "938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c" - ] - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "snapchat_custom_audience" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://adsapi.snapchat.com/v1/segments/456/users", - "headers": { - "Authorization": "Bearer abcd123", - "Content-Type": "application/json" - }, - "body": { - "JSON": { - "users": [ - { - "schema": [ - "EMAIL_SHA256" - ], - "data": [ - [ - "938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c" - ] - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "snapchat_custom_audience" - } - }, - { - "version": "1", - "type": "REST", - "method": "DELETE", - "endpoint": "https://adsapi.snapchat.com/v1/segments/789/users", - "headers": { - "Authorization": "Bearer abcd123", - "Content-Type": "application/json" - }, - "body": { - "JSON": { - "users": [ - { - "id": "123456", - "schema": [ - "EMAIL_SHA256" - ], - "data": [ - [ - "938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c" - ] - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "snapchat_custom_audience" - } - } -] \ No newline at end of file diff --git a/test/__tests__/data/snapchat_custom_audience_proxy_output.json b/test/__tests__/data/snapchat_custom_audience_proxy_output.json deleted file mode 100644 index e5bcc4faa8..0000000000 --- a/test/__tests__/data/snapchat_custom_audience_proxy_output.json +++ /dev/null @@ -1,71 +0,0 @@ -[ - { - "output": { - "status": 200, - "message": "Request Processed Successfully", - "destinationResponse": { - "response": { - "request_status": "SUCCESS", - "request_id": "12345", - "users": [ - { - "sub_request_status": "SUCCESS", - "user": { - "number_uploaded_users": 1 - } - } - ] - }, - "status": 200 - } - } - }, - { - "output": { - "status": 500, - "destinationResponse": { - "response": "unauthorized", - "status": 401 - }, - "message": "Failed with unauthorized during snapchat_custom_audience response transformation", - "statTags": { - "destType": "SNAPCHAT_CUSTOM_AUDIENCE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - }, - "authErrorCategory": "REFRESH_TOKEN" - } - }, - { - "output": { - "authErrorCategory": "AUTH_STATUS_INACTIVE", - "status": 400, - "destinationResponse": { - "response": { - "request_status": "ERROR", - "request_id": "98e2a602-3cf4-4596-a8f9-7f034161f89a", - "debug_message": "Caller does not have permission", - "display_message": "We're sorry, but the requested resource is not available at this time", - "error_code": "E3002" - }, - "status": 403 - }, - "message": "undefined during snapchat_custom_audience response transformation", - "statTags": { - "destType": "SNAPCHAT_CUSTOM_AUDIENCE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } -] diff --git a/test/__tests__/data/stormly.json b/test/__tests__/data/stormly.json deleted file mode 100644 index 2f0bb7f4d6..0000000000 --- a/test/__tests__/data/stormly.json +++ /dev/null @@ -1,388 +0,0 @@ -[ - { - "description": "Identify call without userId", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "message": { - "type": "identify", - "context": { - "traits": { - "name": "John Doe", - "email": "johndoe@gmail.com", - "age": 25 - } - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "error": "Missing required value from \"userIdOnly\"" - } - }, - { - "description": "Identify call with userId, traits", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "channel": "web", - "userId": "5136633649", - "context": { - "traits": { - "name": "John Doe", - "email": "johndoe@gmail.com", - "age": 25 - } - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack.t.stormly.com/webhook/rudderstack/identify", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "userId": "5136633649", - "traits": { - "name": "John Doe", - "email": "johndoe@gmail.com", - "age": 25 - }, - "timestamp": "2022-01-20T13:39:21.032Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call without userId", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "message": { - "type": "track", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more.", - "groupId": "91Yb32830" - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "error": "Missing required value from \"userIdOnly\"" - } - }, - { - "description": "Track call without groupId", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "message": { - "type": "track", - "event": "Product Reviewed", - "userId": "5136633649", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more." - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack.t.stormly.com/webhook/rudderstack/track", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "userId": "5136633649", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3, - "review_body": "Average product, expected much more." - }, - "timestamp": "2022-01-20T13:39:21.032Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call without properties", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "message": { - "type": "track", - "event": "Product Reviewed", - "userId": "5136633649", - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack.t.stormly.com/webhook/rudderstack/track", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "userId": "5136633649", - "event": "Product Reviewed", - "timestamp": "2022-01-20T13:39:21.032Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with userId, groupId and properties", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "message": { - "type": "track", - "event": "Product Reviewed", - "userId": "5136633649", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more.", - "groupId": "91Yb32830" - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack.t.stormly.com/webhook/rudderstack/track", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "userId": "5136633649", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3, - "review_body": "Average product, expected much more." - }, - "timestamp": "2022-01-20T13:39:21.032Z", - "context": { - "groupId": "91Yb32830" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call with userId, groupId (from externalId) and properties", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "message": { - "type": "track", - "event": "Product Reviewed", - "userId": "5136633649", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more.", - "groupId": "test-12345" - }, - "context": { - "externalId": [ - { - "type": "stormlyGroupId", - "id": "91Yb32830" - } - ] - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack.t.stormly.com/webhook/rudderstack/track", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "userId": "5136633649", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3, - "review_body": "Average product, expected much more." - }, - "timestamp": "2022-01-20T13:39:21.032Z", - "context": { - "groupId": "91Yb32830" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Group call with userId, groupId and traits", - "input": { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "message": { - "type": "group", - "userId": "5136633649", - "traits": { - "name": "Initech", - "employees": 500, - "headquarters": "Redwood City, California, United States", - "ceo": "John Doe", - "revenue": 70000000, - "currency": "USD", - "groupId": "9230AUbd2138h" - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://rudderstack.t.stormly.com/webhook/rudderstack/group", - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic dummyApiKey" - }, - "params": {}, - "body": { - "JSON": { - "userId": "5136633649", - "groupId": "9230AUbd2138h", - "traits": { - "name": "Initech", - "employees": 500, - "headquarters": "Redwood City, California, United States", - "ceo": "John Doe", - "revenue": 70000000, - "currency": "USD" - }, - "timestamp": "2022-01-20T13:39:21.032Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/stormly_router_input.json b/test/__tests__/data/stormly_router_input.json deleted file mode 100644 index 3fa583ebc3..0000000000 --- a/test/__tests__/data/stormly_router_input.json +++ /dev/null @@ -1,55 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "metadata": { - "jobId": 1 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "channel": "web", - "userId": "5136633649", - "context": { - "traits": { - "name": "John Doe", - "email": "johndoe@gmail.com", - "age": 25 - } - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "metadata": { - "jobId": 2 - }, - "message": { - "type": "track", - "event": "Product Reviewed", - "properties": { - "review_id": "12345", - "product_id": "123", - "rating": 3.0, - "review_body": "Average product, expected much more.", - "groupId": "91Yb32830" - }, - "context": {}, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - } -] diff --git a/test/__tests__/data/stormly_router_output.json b/test/__tests__/data/stormly_router_output.json deleted file mode 100644 index 2a129dfbaf..0000000000 --- a/test/__tests__/data/stormly_router_output.json +++ /dev/null @@ -1,63 +0,0 @@ -[ - { - "batched": false, - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "timestamp": "2022-01-20T13:39:21.032Z", - "traits": { - "age": 25, - "email": "johndoe@gmail.com", - "name": "John Doe" - }, - "userId": "5136633649" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://rudderstack.t.stormly.com/webhook/rudderstack/identify", - "files": {}, - "headers": { - "Authorization": "Basic dummyApiKey", - "Content-Type": "application/json" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "statusCode": 200 - }, - { - "destination": { - "Config": { - "apiKey": "dummyApiKey" - }, - "ID": "stormly123" - }, - "batched": false, - "error": "Missing required value from \"userIdOnly\"", - "metadata": [ - { - "jobId": 2 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400 - } -] diff --git a/test/__tests__/data/tiktok_ads_offline_events_router_input.json b/test/__tests__/data/tiktok_ads_offline_events_router_input.json deleted file mode 100644 index 2986efa804..0000000000 --- a/test/__tests__/data/tiktok_ads_offline_events_router_input.json +++ /dev/null @@ -1,142 +0,0 @@ -[ - { - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "message": { - "event": "subscribe", - "context": { - "traits": { - "phone": "1234567890" - }, - "channel": "web" - }, - "properties": { - "eventSetId": "7181537436256731137", - "eventId": "1616318632825_352", - "order_id": "abc_xyz", - "shop_id": "123abc", - "currency": "USD", - "value": 46.0, - "price": 8, - "quantity": 2, - "content_type": "product1234", - "product_id": "1077218", - "name": "socks", - "category": "Men's cloth" - }, - "type": "track", - "userId": "eventIdn01", - "timestamp": "2023-01-03" - } - }, - { - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "message": { - "event": "subscribe", - "context": { - "traits": { - "phone": "1234567890", - "email": "random@mail.com" - }, - "channel": "web" - }, - "properties": { - "eventSetId": "7181537436256731137", - "eventId": "1616318632825_352", - "products": [ - { - "price": 8, - "quantity": 2, - "content_type": "product1", - "product_id": "1077218", - "name": "socks", - "category": "Men's cloth" - }, - { - "price": 18, - "quantity": 12, - "content_type": "product2", - "product_id": "1077219", - "name": "socks1", - "category": "Men's cloth1" - } - ] - }, - "type": "track", - "userId": "eventIdn01", - "timestamp": "2023-01-03" - } - }, - { - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "message": { - "event": "subscribe", - "context": { - "traits": { - "phone": "1234567890" - }, - "channel": "web" - }, - "properties": { - "eventSetId": "6071537445256731123", - "eventId": "1616318632825_352", - "currency": "USD", - "value": 46.0, - "price": 8, - "content_type": "product1234" - }, - "type": "track", - "userId": "eventIdn01", - "timestamp": "2023-01-03" - } - }, - { - "metadata": { - "jobId": 4 - }, - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "message": { - "context": { - "traits": { - "phone": "1234567890" - }, - "channel": "web" - }, - "properties": { - "eventSetId": "2345676543", - "eventId": "1616318632825_352" - }, - "type": "track", - "userId": "eventIdn01", - "timestamp": "2023-01-03" - } - } -] diff --git a/test/__tests__/data/tiktok_ads_offline_events_router_output.json b/test/__tests__/data/tiktok_ads_offline_events_router_output.json deleted file mode 100644 index 9fc45461be..0000000000 --- a/test/__tests__/data/tiktok_ads_offline_events_router_output.json +++ /dev/null @@ -1,193 +0,0 @@ -[ - { - "batched": true, - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/offline/batch/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event_set_id": "7181537436256731137", - "partner_name": "RudderStack", - "batch": [ - { - "event_set_id": "7181537436256731137", - "event": "Subscribe", - "event_id": "1616318632825_352", - "timestamp": "2023-01-03", - "partner_name": "RudderStack", - "context": { - "user": { - "phone_numbers": [ - "c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646" - ] - } - }, - "properties": { - "order_id": "abc_xyz", - "shop_id": "123abc", - "contents": [ - { - "price": 8, - "quantity": 2, - "content_type": "product1234", - "content_id": "1077218", - "content_name": "socks", - "content_category": "Men's cloth" - } - ], - "event_channel": "web", - "currency": "USD", - "value": 46.0 - } - }, - { - "event_set_id": "7181537436256731137", - "event": "Subscribe", - "event_id": "1616318632825_352", - "timestamp": "2023-01-03", - "partner_name": "RudderStack", - "context": { - "user": { - "phone_numbers": [ - "c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646" - ], - "emails": ["d9fcca64ec1b250da4261a3f89a8e0f7749c4e0f5a1a918e5397194c8b5a9f16"] - } - }, - "properties": { - "event_channel": "web", - "contents": [ - { - "price": 8, - "quantity": 2, - "content_type": "product1", - "content_id": "1077218", - "content_name": "socks", - "content_category": "Men's cloth" - }, - { - "price": 18, - "quantity": 12, - "content_type": "product2", - "content_id": "1077219", - "content_name": "socks1", - "content_category": "Men's cloth1" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - } - ], - "statusCode": 200 - }, - { - "batched": true, - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/offline/batch/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event_set_id": "6071537445256731123", - "partner_name": "RudderStack", - "batch": [ - { - "event_set_id": "6071537445256731123", - "event": "Subscribe", - "event_id": "1616318632825_352", - "timestamp": "2023-01-03", - "partner_name": "RudderStack", - "context": { - "user": { - "phone_numbers": [ - "c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646" - ] - } - }, - "properties": { - "contents": [ - { - "price": 8, - "content_type": "product1234" - } - ], - "event_channel": "web", - "currency": "USD", - "value": 46.0 - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "metadata": [ - { - "jobId": 3 - } - ], - "statusCode": 200 - }, - { - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "batched": false, - "error": "Event name is required", - "metadata": [ - { - "jobId": 4 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "statusCode": 400 - } -] diff --git a/test/__tests__/data/tiktok_ads_proxy_input.json b/test/__tests__/data/tiktok_ads_proxy_input.json deleted file mode 100644 index 6028fa1e4f..0000000000 --- a/test/__tests__/data/tiktok_ads_proxy_input.json +++ /dev/null @@ -1,368 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.2/pixel/batch/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json", - "test-dest-response-key": "successResponse" - }, - "body": { - "JSON": { - "pixel_code": "A1T8T4UYGVIQA8ORZMX9", - "partner_name": "RudderStack", - "event": "CompletePayment", - "event_id": "1616318632825_357", - "timestamp": "2020-09-17T19:49:27Z", - "properties": { - "contents": [ - { - "price": 8, - "quantity": 2, - "content_type": "socks", - "content_id": "1077218" - }, - { - "price": 30, - "quantity": 1, - "content_type": "dress", - "content_id": "1197218" - } - ], - "currency": "USD", - "value": 46 - }, - "context": { - "ad": { - "callback": "123ATXSfe" - }, - "page": { - "url": "http://demo.mywebsite.com/purchase", - "referrer": "http://demo.mywebsite.com" - }, - "user": { - "external_id": "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", - "phone_number": "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", - "email": "dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f" - }, - "ip": "13.57.97.131", - "user_agent": "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "tiktok_ads" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.2/pixel/batch/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json", - "test-dest-response-key": "invalidDataTypeResponse" - }, - "body": { - "JSON": { - "pixel_code": "A1T8T4UYGVIQA8ORZMX9", - "partner_name": "RudderStack", - "event": "CompletePayment", - "event_id": "1616318632825_357", - "timestamp": "2020-09-17T19:49:27Z", - "properties": { - "contents": [ - { - "price": 8, - "quantity": 2, - "content_type": "socks", - "content_id": 1077218 - }, - { - "price": 30, - "quantity": 1, - "content_type": "dress", - "content_id": 1197218 - } - ], - "currency": "USD", - "value": 46 - }, - "context": { - "ad": { - "callback": "123ATXSfe" - }, - "page": { - "url": "http://demo.mywebsite.com/purchase", - "referrer": "http://demo.mywebsite.com" - }, - "user": { - "external_id": "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", - "phone_number": "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", - "email": "dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f" - }, - "ip": "13.57.97.131", - "user_agent": "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "tiktok_ads" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.2/pixel/batch/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json", - "test-dest-response-key": "invalidPermissionsResponse" - }, - "body": { - "JSON": { - "pixel_code": "A1T8T4UYGVIQA8ORZMX9", - "partner_name": "RudderStack", - "event": "CompletePayment", - "event_id": "1616318632825_357", - "timestamp": "2020-09-17T19:49:27Z", - "properties": { - "contents": [ - { - "price": 8, - "quantity": 2, - "content_type": "socks", - "content_id": 1077218 - }, - { - "price": 30, - "quantity": 1, - "content_type": "dress", - "content_id": 1197218 - } - ], - "currency": "USD", - "value": 46 - }, - "context": { - "ad": { - "callback": "123ATXSfe" - }, - "page": { - "url": "http://demo.mywebsite.com/purchase", - "referrer": "http://demo.mywebsite.com" - }, - "user": { - "external_id": "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", - "phone_number": "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", - "email": "dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f" - }, - "ip": "13.57.97.131", - "user_agent": "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "tiktok_ads" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.2/pixel/batch/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json", - "test-dest-response-key": "tooManyRequests" - }, - "body": { - "JSON": { - "pixel_code": "A1T8T4UYGVIQA8ORZMX9", - "partner_name": "RudderStack", - "event": "CompletePayment", - "event_id": "1616318632825_357", - "timestamp": "2020-09-17T19:49:27Z", - "properties": { - "contents": [ - { - "price": 8, - "quantity": 2, - "content_type": "socks", - "content_id": 1077218 - }, - { - "price": 30, - "quantity": 1, - "content_type": "dress", - "content_id": 1197218 - } - ], - "currency": "USD", - "value": 46 - }, - "context": { - "ad": { - "callback": "123ATXSfe" - }, - "page": { - "url": "http://demo.mywebsite.com/purchase", - "referrer": "http://demo.mywebsite.com" - }, - "user": { - "external_id": "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", - "phone_number": "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", - "email": "dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f" - }, - "ip": "13.57.97.131", - "user_agent": "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "params": { - "destination": "tiktok_ads" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.2/pixel/batch/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json", - "test-dest-response-key": "502-BadGateway" - }, - "params": { - "destination": "tiktok_ads" - }, - "body": { - "JSON": { - "pixel_code": "A1T8T4UYGVIQA8ORZMX9", - "partner_name": "RudderStack", - "event": "CompletePayment", - "event_id": "1616318632825_357", - "timestamp": "2020-09-17T19:49:27Z", - "properties": { - "contents": [ - { - "price": 8, - "quantity": 2, - "content_type": "socks", - "content_id": 1077218 - }, - { - "price": 30, - "quantity": 1, - "content_type": "dress", - "content_id": 1197218 - } - ], - "currency": "USD", - "value": 46 - }, - "context": { - "ad": { - "callback": "123ATXSfe" - }, - "page": { - "url": "http://demo.mywebsite.com/purchase", - "referrer": "http://demo.mywebsite.com" - }, - "user": { - "external_id": "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", - "phone_number": "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", - "email": "dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f" - }, - "ip": "13.57.97.131", - "user_agent": "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.2/pixel/batch/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json", - "test-dest-response-key": "500-NoResponse" - }, - "params": { - "destination": "tiktok_ads" - }, - "body": { - "JSON": { - "pixel_code": "A1T8T4UYGVIQA8ORZMX9", - "partner_name": "RudderStack", - "event": "CompletePayment", - "event_id": "1616318632825_357", - "timestamp": "2020-09-17T19:49:27Z", - "properties": { - "contents": [ - { - "price": 8, - "quantity": 2, - "content_type": "socks", - "content_id": 1077218 - }, - { - "price": 30, - "quantity": 1, - "content_type": "dress", - "content_id": 1197218 - } - ], - "currency": "USD", - "value": 46 - }, - "context": { - "ad": { - "callback": "123ATXSfe" - }, - "page": { - "url": "http://demo.mywebsite.com/purchase", - "referrer": "http://demo.mywebsite.com" - }, - "user": { - "external_id": "f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc", - "phone_number": "2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea", - "email": "dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f" - }, - "ip": "13.57.97.131", - "user_agent": "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/tiktok_ads_proxy_output.json b/test/__tests__/data/tiktok_ads_proxy_output.json deleted file mode 100644 index 99cc79d5f2..0000000000 --- a/test/__tests__/data/tiktok_ads_proxy_output.json +++ /dev/null @@ -1,124 +0,0 @@ -[ - { - "output": { - "status": 200, - "message": "[TIKTOK_ADS Response Handler] - Request Processed Successfully", - "destinationResponse": { - "response": { - "code": 0, - "message": "OK" - }, - "status": 200 - } - } - }, - { - "output": { - "status": 400, - "message": "Request failed with status: 40002", - "destinationResponse": { - "response": { - "code": 40002, - "message": "Batch.0.properties.contents.0.content_id: Not a valid string" - }, - "status": 200 - }, - "statTags": { - "destType": "TIKTOK_ADS", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 400, - "message": "Request failed with status: 40001", - "destinationResponse": { - "response": { - "code": 40001, - "message": "No permission to operate pixel code: BU35TSQHT2A1QT375OMG. You must be an admin or operator of this advertiser account." - }, - "status": 200 - }, - "statTags": { - "destType": "TIKTOK_ADS", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 429, - "message": "Request failed with status: 40100", - "destinationResponse": { - "response": { - "code": 40100, - "message": "Too many requests. Please retry in some time." - }, - "status": 200 - }, - "statTags": { - "destType": "TIKTOK_ADS", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "throttled", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 502, - "message": "Request failed with status: 502", - "destinationResponse": { - "response": "\r\n502 Bad Gateway\r\n\r\n

502 Bad Gateway

\r\n
nginx
\r\n\r\n\r\n", - "status": 502 - }, - "statTags": { - "destType": "TIKTOK_ADS", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - }, - { - "output": { - "status": 500, - "message": "Request failed with status: 500", - "destinationResponse": { - "response": "[ECONNRESET] :: Connection reset by peer", - "status": 500 - }, - "statTags": { - "destType": "TIKTOK_ADS", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } -] \ No newline at end of file diff --git a/test/__tests__/data/userlist_cdk_output.json b/test/__tests__/data/userlist_cdk_output.json deleted file mode 100644 index 5de9e806d1..0000000000 --- a/test/__tests__/data/userlist_cdk_output.json +++ /dev/null @@ -1,248 +0,0 @@ -[ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "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" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://incoming.userlist.com/rudderstack/events", - "headers": { - "Authorization": "Push userlist-push-key", - "Content-Type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "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": "00000000000000000000000000", - "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" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://incoming.userlist.com/rudderstack/events", - "headers": { - "Authorization": "Push userlist-push-key", - "Content-Type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "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" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://incoming.userlist.com/rudderstack/events", - "headers": { - "Authorization": "Push userlist-push-key", - "Content-Type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "statusCode": 400, - "error": "userId is required" - }, - { - "statusCode": 400, - "error": "userId is required" - }, - { - "statusCode": 400, - "error": "userId is required" - }, - { - "statusCode": 400, - "error": "message type page is not supported" - }, - { - "statusCode": 400, - "error": "message type screen is not supported" - } -] diff --git a/test/__tests__/data/userlist_input.json b/test/__tests__/data/userlist_input.json deleted file mode 100644 index d8dcd4abb8..0000000000 --- a/test/__tests__/data/userlist_input.json +++ /dev/null @@ -1,537 +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", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "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": "00000000000000000000000000", - "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": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "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": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "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", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "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": "00000000000000000000000000", - "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": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "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", - "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": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "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" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "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": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/abc", - "referrer": "", - "search": "", - "title": "", - "url": "", - "category": "test-category" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - }, - "Config": { - "pushKey": "userlist-push-key" - } - } - } -] diff --git a/test/__tests__/data/userlist_output.json b/test/__tests__/data/userlist_output.json deleted file mode 100644 index 27eb9320f1..0000000000 --- a/test/__tests__/data/userlist_output.json +++ /dev/null @@ -1,251 +0,0 @@ -[ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "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" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://incoming.userlist.com/rudderstack/events", - "headers": { - "Authorization": "Push userlist-push-key", - "Content-Type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "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": "00000000000000000000000000", - "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" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://incoming.userlist.com/rudderstack/events", - "headers": { - "Authorization": "Push userlist-push-key", - "Content-Type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "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" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://incoming.userlist.com/rudderstack/events", - "headers": { - "Authorization": "Push userlist-push-key", - "Content-Type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "statusCode": 400, - "error": "Missing required value from \"userIdOnly\"" - }, - { - "statusCode": 400, - "error": "Missing required value from \"userIdOnly\"" - }, - { - "statusCode": 400, - "error": "Missing required value from \"userIdOnly\"" - }, - { - "statusCode": 400, - "error": "message type \"page\" not supported for \"userlist\"" - }, - { - "statusCode": 400, - "error": "message type \"screen\" not supported for \"userlist\"" - } -] diff --git a/test/__tests__/data/userlist_router_input.json b/test/__tests__/data/userlist_router_input.json deleted file mode 100644 index 4feb367454..0000000000 --- a/test/__tests__/data/userlist_router_input.json +++ /dev/null @@ -1,128 +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", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "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": "00000000000000000000000000", - "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" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "pushKey": "userlist-push-key" - } - } - } -] diff --git a/test/__tests__/data/userlist_router_output.json b/test/__tests__/data/userlist_router_output.json deleted file mode 100644 index 2c5ed6149b..0000000000 --- a/test/__tests__/data/userlist_router_output.json +++ /dev/null @@ -1,172 +0,0 @@ -[ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "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" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://incoming.userlist.com/rudderstack/events", - "headers": { - "Authorization": "Push userlist-push-key", - "Content-Type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "pushKey": "userlist-push-key" - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "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": "00000000000000000000000000", - "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" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://incoming.userlist.com/rudderstack/events", - "headers": { - "Authorization": "Push userlist-push-key", - "Content-Type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "pushKey": "userlist-push-key" - } - } - } -] diff --git a/test/__tests__/data/vitally_cdk_output.json b/test/__tests__/data/vitally_cdk_output.json deleted file mode 100644 index 1982d00665..0000000000 --- a/test/__tests__/data/vitally_cdk_output.json +++ /dev/null @@ -1,83 +0,0 @@ -[ - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "XML": {}, - "JSON": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "event": "this is a track event", - "type": "track", - "properties": { - "thing": "amazing!" - }, - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - } - }, - "endpoint": "https://api.vitally.io/rudderstack", - "files": {}, - "params": {}, - "type": "REST", - "version": "1", - "method": "POST", - "headers": { - "authorization": "Basic abc123", - "content-type": "application/json" - } - }, - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "XML": {}, - "JSON": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "type": "identify", - "traits": { - "name": "Johnny Appleseed" - }, - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - } - }, - "endpoint": "https://api.vitally.io/rudderstack", - "files": {}, - "params": {}, - "type": "REST", - "version": "1", - "method": "POST", - "headers": { - "authorization": "Basic abc123", - "content-type": "application/json" - } - }, - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "XML": {}, - "JSON": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "type": "group", - "groupId": "5de17322-934e-11ed-a1eb-0242ac120002", - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - } - }, - "endpoint": "https://api.vitally.io/rudderstack", - "files": {}, - "params": {}, - "type": "REST", - "version": "1", - "method": "POST", - "headers": { - "authorization": "Basic abc123", - "content-type": "application/json" - } - }, - { - "statusCode": 400, - "error": "message type page is not supported" - } -] diff --git a/test/__tests__/data/vitally_input.json b/test/__tests__/data/vitally_input.json deleted file mode 100644 index e971823e9c..0000000000 --- a/test/__tests__/data/vitally_input.json +++ /dev/null @@ -1,81 +0,0 @@ -[ - { - "message": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "event": "this is a track event", - "type": "track", - "properties": { - "thing": "amazing!" - }, - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - }, - "destination": { - "Config": { - "apiKeyVitally": "abc123" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - } - }, - { - "message": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "type": "identify", - "traits": { - "name": "Johnny Appleseed" - }, - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - }, - "destination": { - "Config": { - "apiKeyVitally": "abc123" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - } - }, - { - "message": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "type": "group", - "groupId": "5de17322-934e-11ed-a1eb-0242ac120002", - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - }, - "destination": { - "Config": { - "apiKeyVitally": "abc123" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - } - }, - { - "message": { - "type": "page", - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - }, - "destination": { - "Config": { - "apiKeyVitally": "abc123" - }, - "DestinationDefinition": { - "Config": { - "cdkEnabled": true - } - } - } - } -] diff --git a/test/__tests__/data/vitally_output.json b/test/__tests__/data/vitally_output.json deleted file mode 100644 index 5e7eb598c7..0000000000 --- a/test/__tests__/data/vitally_output.json +++ /dev/null @@ -1,83 +0,0 @@ -[ - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "XML": {}, - "JSON": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "event": "this is a track event", - "type": "track", - "properties": { - "thing": "amazing!" - }, - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - } - }, - "endpoint": "https://api.vitally.io/rudderstack", - "files": {}, - "params": {}, - "type": "REST", - "version": "1", - "method": "POST", - "headers": { - "authorization": "Basic abc123", - "content-type": "application/json" - } - }, - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "XML": {}, - "JSON": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "type": "identify", - "traits": { - "name": "Johnny Appleseed" - }, - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - } - }, - "endpoint": "https://api.vitally.io/rudderstack", - "files": {}, - "params": {}, - "type": "REST", - "version": "1", - "method": "POST", - "headers": { - "authorization": "Basic abc123", - "content-type": "application/json" - } - }, - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "XML": {}, - "JSON": { - "userId": "0220c056-934e-11ed-a1eb-0242ac120002", - "type": "group", - "groupId": "5de17322-934e-11ed-a1eb-0242ac120002", - "originalTimestamp": "2023-01-13T09:03:17.562Z", - "sentAt": "2023-01-13T09:03:17.562Z" - } - }, - "endpoint": "https://api.vitally.io/rudderstack", - "files": {}, - "params": {}, - "type": "REST", - "version": "1", - "method": "POST", - "headers": { - "authorization": "Basic abc123", - "content-type": "application/json" - } - }, - { - "statusCode": 400, - "error": "message type \"page\" not supported for \"vitally\"" - } -] diff --git a/test/__tests__/data/warehouse/events.js b/test/__tests__/data/warehouse/events.js index 20a6ce89b3..ef9cc21096 100644 --- a/test/__tests__/data/warehouse/events.js +++ b/test/__tests__/data/warehouse/events.js @@ -60,7 +60,17 @@ const sampleEvents = { originalTimestamp: "2020-01-24T06:29:02.364Z", properties: { currency: "USD", - revenue: 50 + revenue: 50, + stack: { + history: { + errorDetails: [ + { + "message": "Cannot set headers after they are sent to the client", + "toString": "[function]" + } + ] + } + } }, receivedAt: "2020-01-24T11:59:02.403+05:30", request_ip: "[::1]:53708", @@ -180,6 +190,12 @@ const sampleEvents = { data: { currency: "USD", revenue: 50, + stack_history_error_details: [ + { + "message": "Cannot set headers after they are sent to the client", + "toString": "[function]" + } + ], context_app_build: "1.0.0", context_app_name: "RudderLabs JavaScript SDK", context_app_namespace: "com.rudderlabs.javascript", @@ -314,6 +330,12 @@ const sampleEvents = { data: { CURRENCY: "USD", REVENUE: 50, + STACK_HISTORY_ERROR_DETAILS: [ + { + "message": "Cannot set headers after they are sent to the client", + "toString": "[function]" + } + ], CONTEXT_APP_BUILD: "1.0.0", CONTEXT_APP_NAME: "RudderLabs JavaScript SDK", CONTEXT_APP_NAMESPACE: "com.rudderlabs.javascript", @@ -340,7 +362,7 @@ const sampleEvents = { RECEIVED_AT: "2020-01-24T06:29:02.403Z", ORIGINAL_TIMESTAMP: "2020-01-24T06:29:02.364Z", CHANNEL: "web", - EVENT: "button_clicked" + EVENT: "button_clicked", } } ], @@ -448,6 +470,12 @@ const sampleEvents = { data: { currency: "USD", revenue: 50, + stack_history_error_details: [ + { + "message": "Cannot set headers after they are sent to the client", + "toString": "[function]" + } + ], context_app_build: "1.0.0", context_app_name: "RudderLabs JavaScript SDK", context_app_namespace: "com.rudderlabs.javascript", @@ -2053,7 +2081,6 @@ const sampleEvents = { id: "string", user_id: "string", received_at: "datetime", - event: "string" }, receivedAt: "2020-01-24T11:59:02.403+05:30" }, @@ -2121,7 +2148,6 @@ const sampleEvents = { id: "string", user_id: "string", received_at: "datetime", - event: "string", boolean_property: "boolean", }, receivedAt: "2020-01-24T11:59:02.403+05:30" diff --git a/test/__tests__/data/webhook_input.json b/test/__tests__/data/webhook_input.json deleted file mode 100644 index 9d34a0ace3..0000000000 --- a/test/__tests__/data/webhook_input.json +++ /dev/null @@ -1,1148 +0,0 @@ -[ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "headers": [ - { - "from": "", - "to": "" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "destination": { - "Config": { - "webhookUrl": "https://6b0e6a60.ngrok.io/n" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "destination": { - "Config": { - "webhookUrl": "https://6b0e6a60." - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "k1": "v1", - "k2": { - "k3": "c3", - "k4": { - "k5": "c5" - } - } - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "webhookUrl": "https://6b0e6a60.", - "webhookMethod": "GET", - "headers": [ - { - "from": "X-customHeader", - "to": "customHeaderVal" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "k1": "v1", - "k2": { - "k3": "c3", - "k4": { - "k5": "c5" - } - } - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "webhookUrl": "https://6b0e6a60.", - "webhookMethod": "GET" - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "request_ip": "127.0.0.1" - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "header": [ - { - "from": "test1", - "to": "value1" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "request_ip": "127.0.0.1" - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "headers": [ - { - "from": "Content-Type", - "to": "application/xml" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "headers": [ - { - "from": "Content-Type", - "to": "application/xml" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "header": { - "dynamic_header_key_string": "dynamic_header_value_string", - "dynamic_header_key_num": 10, - "dynamic_header_key_object": { - "k1": "v1" - } - }, - "appendPath": "/product/search?string=value" - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "headers": [ - { - "from": "", - "to": "" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "fullPath": "https://www.google.com" - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "headers": [ - { - "from": "", - "to": "" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "fullPath": "https://www.google.com/", - "appendPath": "?searchTerms=cats" - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "headers": [ - { - "from": "", - "to": "" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "fullPath": "https://www.google.com/", - "appendPath": "?searchTerms=cats" - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "webhookMethod": "PUT", - "headers": [ - { - "from": "", - "to": "" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "fullPath": "https://www.google.com/", - "appendPath": "?searchTerms=cats" - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "webhookMethod": "DELETE", - "headers": [ - { - "from": "", - "to": "" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "webhookMethod": "POST", - "headers": [ - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "webhookMethod": "PATCH", - "headers": [ - { - "from": "test2", - "to": "value2" - } - ] - } - } - } -] diff --git a/test/__tests__/data/webhook_output.json b/test/__tests__/data/webhook_output.json deleted file mode 100644 index 69a55ee348..0000000000 --- a/test/__tests__/data/webhook_output.json +++ /dev/null @@ -1,1075 +0,0 @@ -[ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "user_properties": { - "total_payments": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "level": 6, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "coin_balance": 9466052, - "player_total_shields": 0, - "isLowEndDevice": false, - "game_fps": 30, - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "graphicsQuality": "HD", - "current_module_name": "CasinoGameModule", - "player_total_battles": 0, - "lifetime_gem_balance": 0, - "gem_balance": 0, - "fb_profile": "0", - "start_date": "2019-08-01", - "versionSessionCount": 2, - "game_name": "FireEagleSlots" - }, - "integrations": { - "All": true - }, - "event": "spin_result", - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "device": { - "model": "Redmi 6", - "manufacturer": "Xiaomi", - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "name": "xiaomi" - }, - "traits": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "address": { - "city": "Dhaka", - "country": "Bangladesh" - } - }, - "os": { - "version": "8.1.0", - "name": "android" - }, - "network": { - "carrier": "Banglalink" - } - }, - "type": "track", - "properties": { - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "jackpot_win_type": "Silver", - "coin_balance": 9466052, - "bet_level": 1, - "ishighroller": "False", - "tournament_id": "T1561970819", - "battle_id": "N/A", - "bet_amount": 9, - "fb_profile": "0", - "player_total_shields": 0, - "is_turbo": "False", - "player_total_battles": 0, - "bet_multiplier": 1, - "start_date": "2019-08-01", - "versionSessionCount": 2, - "graphicsQuality": "HD", - "is_auto_spin": "False", - "days_in_game": 0, - "additional_bet_index": 0, - "isLowEndDevice": "False", - "game_fps": 30, - "extra_param": "N/A", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "current_module_name": "CasinoGameModule", - "game_id": "fireEagleBase", - "featureGameType": "N/A", - "gem_balance": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "total_payments": 0, - "level": 6, - "win_amount": 0, - "no_of_spin": 1, - "game_name": "FireEagleSlots", - "jackpot_win_amount": 90, - "lifetime_gem_balance": 0, - "isf": "False" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "http://6b0e6a60.ngrok.io", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json", - "test2": "value2" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "user_properties": { - "total_payments": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "level": 6, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "coin_balance": 9466052, - "player_total_shields": 0, - "isLowEndDevice": false, - "game_fps": 30, - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "graphicsQuality": "HD", - "current_module_name": "CasinoGameModule", - "player_total_battles": 0, - "lifetime_gem_balance": 0, - "gem_balance": 0, - "fb_profile": "0", - "start_date": "2019-08-01", - "versionSessionCount": 2, - "game_name": "FireEagleSlots" - }, - "integrations": { - "All": true - }, - "event": "spin_result", - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "device": { - "model": "Redmi 6", - "manufacturer": "Xiaomi", - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "name": "xiaomi" - }, - "traits": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "address": { - "city": "Dhaka", - "country": "Bangladesh" - } - }, - "os": { - "version": "8.1.0", - "name": "android" - }, - "network": { - "carrier": "Banglalink" - } - }, - "type": "track", - "properties": { - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "jackpot_win_type": "Silver", - "coin_balance": 9466052, - "bet_level": 1, - "ishighroller": "False", - "tournament_id": "T1561970819", - "battle_id": "N/A", - "bet_amount": 9, - "fb_profile": "0", - "player_total_shields": 0, - "is_turbo": "False", - "player_total_battles": 0, - "bet_multiplier": 1, - "start_date": "2019-08-01", - "versionSessionCount": 2, - "graphicsQuality": "HD", - "is_auto_spin": "False", - "days_in_game": 0, - "additional_bet_index": 0, - "isLowEndDevice": "False", - "game_fps": 30, - "extra_param": "N/A", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "current_module_name": "CasinoGameModule", - "game_id": "fireEagleBase", - "featureGameType": "N/A", - "gem_balance": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "total_payments": 0, - "level": 6, - "win_amount": 0, - "no_of_spin": 1, - "game_name": "FireEagleSlots", - "jackpot_win_amount": 90, - "lifetime_gem_balance": 0, - "isf": "False" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://6b0e6a60.ngrok.io/n", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "user_properties": { - "total_payments": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "level": 6, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "coin_balance": 9466052, - "player_total_shields": 0, - "isLowEndDevice": false, - "game_fps": 30, - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "graphicsQuality": "HD", - "current_module_name": "CasinoGameModule", - "player_total_battles": 0, - "lifetime_gem_balance": 0, - "gem_balance": 0, - "fb_profile": "0", - "start_date": "2019-08-01", - "versionSessionCount": 2, - "game_name": "FireEagleSlots" - }, - "integrations": { - "All": true - }, - "event": "spin_result", - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "device": { - "model": "Redmi 6", - "manufacturer": "Xiaomi", - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "name": "xiaomi" - }, - "traits": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "address": { - "city": "Dhaka", - "country": "Bangladesh" - } - }, - "os": { - "version": "8.1.0", - "name": "android" - }, - "network": { - "carrier": "Banglalink" - } - }, - "type": "track", - "properties": { - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "jackpot_win_type": "Silver", - "coin_balance": 9466052, - "bet_level": 1, - "ishighroller": "False", - "tournament_id": "T1561970819", - "battle_id": "N/A", - "bet_amount": 9, - "fb_profile": "0", - "player_total_shields": 0, - "is_turbo": "False", - "player_total_battles": 0, - "bet_multiplier": 1, - "start_date": "2019-08-01", - "versionSessionCount": 2, - "graphicsQuality": "HD", - "is_auto_spin": "False", - "days_in_game": 0, - "additional_bet_index": 0, - "isLowEndDevice": "False", - "game_fps": 30, - "extra_param": "N/A", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "current_module_name": "CasinoGameModule", - "game_id": "fireEagleBase", - "featureGameType": "N/A", - "gem_balance": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "total_payments": 0, - "level": 6, - "win_amount": 0, - "no_of_spin": 1, - "game_name": "FireEagleSlots", - "jackpot_win_amount": 90, - "lifetime_gem_balance": 0, - "isf": "False" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://6b0e6a60.", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://6b0e6a60.", - "headers": { - "x-customheader": "customHeaderVal" - }, - "params": { - "k1": "v1", - "k2.k3": "c3", - "k2.k4.k5": "c5" - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - { - "version": "1", - "type": "REST", - "method": "GET", - "endpoint": "https://6b0e6a60.", - "headers": {}, - "params": { - "k1": "v1", - "k2.k3": "c3", - "k2.k4.k5": "c5" - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "http://6b0e6a60.ngrok.io", - "headers": { - "content-type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "127.0.0.1" - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "request_ip": "127.0.0.1" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "http://6b0e6a60.ngrok.io", - "headers": { - "content-type": "application/xml", - "test2": "value2" - }, - "params": {}, - "body": { - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - "ip": "127.0.0.1" - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "request_ip": "127.0.0.1" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "http://6b0e6a60.ngrok.io", - "headers": { - "content-type": "application/xml", - "test2": "value2" - }, - "params": {}, - "body": { - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "http://6b0e6a60.ngrok.io/product/search?string=value", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json", - "test2": "value2", - "dynamic_header_key_string": "dynamic_header_value_string" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://www.google.com", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json", - "test2": "value2" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://www.google.com/?searchTerms=cats", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json", - "test2": "value2" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://www.google.com/?searchTerms=cats", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json", - "test2": "value2" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": {}, - "FORM": {} - }, - "files": {}, - "endpoint": "https://www.google.com/?searchTerms=cats", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "test2": "value2" - }, - "version": "1", - "params": { - "additional_bet_index": 0, - "battle_id": "N/A", - "featureGameType": "N/A", - "win_amount": 0 - }, - "type": "REST", - "method": "DELETE" - }, - { - "body": { - "FORM": {}, - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "http://6b0e6a60.ngrok.io", - "files": {}, - "headers": { - "content-type": "application/json", - "test2": "value2" - }, - "method": "POST", - "params": {}, - "type": "REST", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "version": "1" - }, - { - "body": { - "FORM": {}, - "JSON": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "http://6b0e6a60.ngrok.io", - "files": {}, - "headers": { - "content-type": "application/json", - "test2": "value2" - }, - "method": "PATCH", - "params": {}, - "type": "REST", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "version": "1" - } -] diff --git a/test/__tests__/data/webhook_router_input.json b/test/__tests__/data/webhook_router_input.json deleted file mode 100644 index c78f30a7cd..0000000000 --- a/test/__tests__/data/webhook_router_input.json +++ /dev/null @@ -1,214 +0,0 @@ -[ - [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "headers": [ - { - "from": "", - "to": "" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "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" - }, - "traits": { - "address": { - "city": "Dhaka", - "country": "Bangladesh" - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "additional_bet_index": 0, - "battle_id": "N/A", - "bet_amount": 9, - "bet_level": 1, - "bet_multiplier": 1, - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "days_in_game": 0, - "extra_param": "N/A", - "fb_profile": "0", - "featureGameType": "N/A", - "game_fps": 30, - "game_id": "fireEagleBase", - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": "False", - "is_auto_spin": "False", - "is_turbo": "False", - "isf": "False", - "ishighroller": "False", - "jackpot_win_amount": 90, - "jackpot_win_type": "Silver", - "level": 6, - "lifetime_gem_balance": 0, - "no_of_spin": 1, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "tournament_id": "T1561970819", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2, - "win_amount": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track", - "user_properties": { - "coin_balance": 9466052, - "current_module_name": "CasinoGameModule", - "fb_profile": "0", - "game_fps": 30, - "game_name": "FireEagleSlots", - "gem_balance": 0, - "graphicsQuality": "HD", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "internetReachability": "ReachableViaLocalAreaNetwork", - "isLowEndDevice": false, - "level": 6, - "lifetime_gem_balance": 0, - "player_total_battles": 0, - "player_total_shields": 0, - "start_date": "2019-08-01", - "total_payments": 0, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "versionSessionCount": 2 - } - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "webhookUrl": "https://6b0e6a60.ngrok.io/n" - } - } - } - ] -] diff --git a/test/__tests__/data/webhook_router_output.json b/test/__tests__/data/webhook_router_output.json deleted file mode 100644 index c398b28981..0000000000 --- a/test/__tests__/data/webhook_router_output.json +++ /dev/null @@ -1,257 +0,0 @@ -[ - [ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "user_properties": { - "total_payments": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "level": 6, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "coin_balance": 9466052, - "player_total_shields": 0, - "isLowEndDevice": false, - "game_fps": 30, - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "graphicsQuality": "HD", - "current_module_name": "CasinoGameModule", - "player_total_battles": 0, - "lifetime_gem_balance": 0, - "gem_balance": 0, - "fb_profile": "0", - "start_date": "2019-08-01", - "versionSessionCount": 2, - "game_name": "FireEagleSlots" - }, - "integrations": { - "All": true - }, - "event": "spin_result", - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "device": { - "model": "Redmi 6", - "manufacturer": "Xiaomi", - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "name": "xiaomi" - }, - "traits": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "address": { - "city": "Dhaka", - "country": "Bangladesh" - } - }, - "os": { - "version": "8.1.0", - "name": "android" - }, - "network": { - "carrier": "Banglalink" - } - }, - "type": "track", - "properties": { - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "jackpot_win_type": "Silver", - "coin_balance": 9466052, - "bet_level": 1, - "ishighroller": "False", - "tournament_id": "T1561970819", - "battle_id": "N/A", - "bet_amount": 9, - "fb_profile": "0", - "player_total_shields": 0, - "is_turbo": "False", - "player_total_battles": 0, - "bet_multiplier": 1, - "start_date": "2019-08-01", - "versionSessionCount": 2, - "graphicsQuality": "HD", - "is_auto_spin": "False", - "days_in_game": 0, - "additional_bet_index": 0, - "isLowEndDevice": "False", - "game_fps": 30, - "extra_param": "N/A", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "current_module_name": "CasinoGameModule", - "game_id": "fireEagleBase", - "featureGameType": "N/A", - "gem_balance": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "total_payments": 0, - "level": 6, - "win_amount": 0, - "no_of_spin": 1, - "game_name": "FireEagleSlots", - "jackpot_win_amount": 90, - "lifetime_gem_balance": 0, - "isf": "False" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "http://6b0e6a60.ngrok.io", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json", - "test2": "value2" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "webhookUrl": "http://6b0e6a60.ngrok.io", - "headers": [ - { - "from": "", - "to": "" - }, - { - "from": "test2", - "to": "value2" - } - ] - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "user_properties": { - "total_payments": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "level": 6, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "coin_balance": 9466052, - "player_total_shields": 0, - "isLowEndDevice": false, - "game_fps": 30, - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "graphicsQuality": "HD", - "current_module_name": "CasinoGameModule", - "player_total_battles": 0, - "lifetime_gem_balance": 0, - "gem_balance": 0, - "fb_profile": "0", - "start_date": "2019-08-01", - "versionSessionCount": 2, - "game_name": "FireEagleSlots" - }, - "integrations": { - "All": true - }, - "event": "spin_result", - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "context": { - "device": { - "model": "Redmi 6", - "manufacturer": "Xiaomi", - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "name": "xiaomi" - }, - "traits": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "address": { - "city": "Dhaka", - "country": "Bangladesh" - } - }, - "os": { - "version": "8.1.0", - "name": "android" - }, - "network": { - "carrier": "Banglalink" - } - }, - "type": "track", - "properties": { - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "jackpot_win_type": "Silver", - "coin_balance": 9466052, - "bet_level": 1, - "ishighroller": "False", - "tournament_id": "T1561970819", - "battle_id": "N/A", - "bet_amount": 9, - "fb_profile": "0", - "player_total_shields": 0, - "is_turbo": "False", - "player_total_battles": 0, - "bet_multiplier": 1, - "start_date": "2019-08-01", - "versionSessionCount": 2, - "graphicsQuality": "HD", - "is_auto_spin": "False", - "days_in_game": 0, - "additional_bet_index": 0, - "isLowEndDevice": "False", - "game_fps": 30, - "extra_param": "N/A", - "idfa": "2bf99787-33d2-4ae2-a76a-c49672f97252", - "current_module_name": "CasinoGameModule", - "game_id": "fireEagleBase", - "featureGameType": "N/A", - "gem_balance": 0, - "internetReachability": "ReachableViaLocalAreaNetwork", - "total_payments": 0, - "level": 6, - "win_amount": 0, - "no_of_spin": 1, - "game_name": "FireEagleSlots", - "jackpot_win_amount": 90, - "lifetime_gem_balance": 0, - "isf": "False" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://6b0e6a60.ngrok.io/n", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "content-type": "application/json" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "webhookUrl": "https://6b0e6a60.ngrok.io/n" - } - } - } - ] -] diff --git a/test/__tests__/data/woopra.json b/test/__tests__/data/woopra.json deleted file mode 100644 index 5819eba13a..0000000000 --- a/test/__tests__/data/woopra.json +++ /dev/null @@ -1,281 +0,0 @@ -[ - { - "description": "Create a new Visitor with projectName inside Integration Object and no externalId", - "input": { - "message": { - "anonymousId": "21e13f4bc7ceddad", - "context": { - "app": { - "build": "4", - "name": "RuddCDN" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "21e13f4bc7ceddad" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36" - }, - "event": "First Investment", - "integrations": { - "woopra": { - "projectName": "abc.com" - } - }, - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-28T19:53:31.900Z", - "traits": { - "name": "John Doe", - "email": "test@r.com", - "hasPurchased": "yes", - "address": "H.No. abc Street PQRS ", - "state": "Delhi", - "title": "Mr" - }, - "receivedAt": "2020-09-29T14:50:43.005+05:30", - "sentAt": "2020-09-28T19:53:44.998Z", - "timestamp": "2020-09-29T14:50:29.907+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "projectName": "int.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "GET", - "params": { - "os": "Android", - "app": "RuddCDN", - "browser": "Chrome86.0.4240.111", - "cookie": "21e13f4bc7ceddad", - "Project": "abc.com", - "cv_email": "test@r.com", - "cv_name": "John Doe", - "cv_state": "Delhi", - "cv_title": "Mr", - "cv_hasPurchased": "yes", - "timestamp": "1601371229907", - "cv_address": "H.No. abc Street PQRS " - }, - "headers": {}, - "version": "1", - "endpoint": "https://www.woopra.com/track/identify" - } - }, - { - "description": "Send track event with app name but no app build and woopraid inside externalid", - "input": { - "message": { - "anonymousId": "21e13f4bc7ceddad", - "channel": "mobile", - "context": { - "externalId": [ - { - "type": "woopraId", - "id": "abcd123451" - } - ], - "app": { - "build": "4" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "21e13f4bc7ceddad", - "customProp": "customValue" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "event": "First Investment", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-28T19:53:31.900Z", - "properties": { - "currency": "EUR", - "revenue": 20.37566 - }, - "receivedAt": "2020-09-29T14:50:43.005+05:30", - "sentAt": "2020-09-28T19:53:44.998Z", - "timestamp": "2020-09-29T14:50:29.907+05:30", - "type": "track" - }, - "destination": { - "Config": { - "projectName": "int.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "GET", - "params": { - "os": "Android", - "event": "First Investment", - "cookie": "abcd123451", - "Project": "int.com", - "timestamp": "1601371229907", - "ce_currency": "EUR", - "ce_revenue": 20.37566, - "cv_customProp": "customValue", - "cv_anonymousId": "21e13f4bc7ceddad" - }, - "headers": {}, - "version": "1", - "endpoint": "https://www.woopra.com/track/ce" - } - }, - { - "description": "Send Page event with projectName from Config and no cv_id sources", - "input": { - "message": { - "anonymousId": "21e13f4bc7ceddad", - "channel": "mobile", - "context": { - "app": { - "build": "4", - "name": "RuddCDN" - }, - "page": { - "referrer": "google.com" - }, - "device": { - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "name": "generic_x86_arm" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.6" - }, - "os": { - "name": "Android", - "version": "9" - }, - "timezone": "Asia/Kolkata", - "traits": { - "customProp": "customValue" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)" - }, - "name": "Home", - "messageId": "1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb", - "originalTimestamp": "2020-09-28T19:53:31.900Z", - "properties": { - "title": "Home | RudderStack", - "url": "http://www.rudderstack.com" - }, - "receivedAt": "2020-09-29T14:50:43.005+05:30", - "sentAt": "2020-09-28T19:53:44.998Z", - "timestamp": "2020-09-29T14:50:29.907+05:30", - "type": "page" - }, - "destination": { - "Config": { - "projectName": "abc.com" - } - } - }, - "output": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": {}, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "GET", - "params": { - "os": "Android", - "app": "RuddCDN", - "event": "Viewed Home Page", - "ce_url": "http://www.rudderstack.com", - "timestamp": "1601371229907", - "Project": "abc.com", - "ce_title": "Home | RudderStack", - "cv_customProp": "customValue", - "cookie": "21e13f4bc7ceddad", - "ce_referrer": "google.com" - }, - "headers": {}, - "version": "1", - "endpoint": "https://www.woopra.com/track/ce" - } - }, - { - "description": "Unsupported Message Type", - "input": { - "message": { - "anonymousId": "21e13f4bc7ceddad", - "channel": "mobile", - "event": "First Investment", - "integrations": { - "woopra": "int.com" - }, - "type": "group" - }, - "destination": { - "Config": { - "projectName": "int.com" - } - } - }, - "output": { - "error": "Message type group is not supported" - } - }, - { - "description": "Event Name Not Provided ", - "input": { - "message": { - "anonymousId": "21e13f4bc7ceddad", - "channel": "mobile", - "integrations": { - "woopra": "int.com" - }, - "type": "track" - }, - "destination": { - "Config": { - "projectName": "int.com" - } - } - }, - "output": { - "error": "Event Name can not be empty" - } - } -] diff --git a/test/__tests__/data/wootric.json b/test/__tests__/data/wootric.json deleted file mode 100644 index c7c63694f1..0000000000 --- a/test/__tests__/data/wootric.json +++ /dev/null @@ -1,1467 +0,0 @@ -[ - { - "description": "Wrong Account Token Passed", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken12" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "channel": "web", - "context": {}, - "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": { - "statusCode": 400, - "error": "Access token could not be generated due to {\"error\":\"Not found\",\"status\":404}" - } - }, - { - "description": "Identify call for creating user", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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": "Bangalore", - "name": "Dummy User 2", - "email": "dummyUser2@gmail.com", - "phone": "+19123456777", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "email": "dummyUser2@gmail.com", - "phone_number": "+19123456777", - "last_surveyed": "1642685961", - "external_created_at": "1611149961", - "external_id": "dummyId2", - "properties[city]": "Bangalore", - "properties[name]": "Dummy User 2", - "properties[title]": "SDE", - "properties[gender]": "Male", - "properties[company]": "Rudderstack" - } - }, - "files": {} - } - }, - { - "description": "Identify call for creating user without-sending email and sending phone number", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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": "Bangalore", - "name": "Dummy User 2", - "phone": "+19123456777", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "phone_number": "+19123456777", - "last_surveyed": "1642685961", - "external_created_at": "1611149961", - "external_id": "dummyId2", - "properties[city]": "Bangalore", - "properties[name]": "Dummy User 2", - "properties[title]": "SDE", - "properties[gender]": "Male", - "properties[company]": "Rudderstack" - } - }, - "files": {} - } - }, - { - "description": "Identify call for creating user without-sending phone number and sending email", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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": { - "email": "dummyUser2@gmail.com", - "city": "Bangalore", - "name": "Dummy User 2", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "email": "dummyUser2@gmail.com", - "last_surveyed": "1642685961", - "external_created_at": "1611149961", - "external_id": "dummyId2", - "properties[city]": "Bangalore", - "properties[name]": "Dummy User 2", - "properties[title]": "SDE", - "properties[gender]": "Male", - "properties[company]": "Rudderstack" - } - }, - "files": {} - } - }, - { - "description": "Identify call for creating user without sending traits", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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 - }, - "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": { - "statusCode": 400, - "error": "email/phone number are missing. At least one parameter must be provided", - "statTags": { - "destination": "wootric", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Identify call for creating user without-sending (email and phone number)", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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": "Mumbai", - "name": "Dummy User 1", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "statusCode": 400, - "error": "email/phone number are missing. At least one parameter must be provided", - "statTags": { - "destination": "wootric", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Identify call for updating existing user with wootric end user id", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "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": { - "title": "VP", - "gender": "Male" - }, - "externalId": [ - { - "type": "wootricEndUserId", - "id": "490635419" - } - ], - "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": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.wootric.com/v1/end_users/490635419", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "last_surveyed": "1642685961", - "properties[Department]": "Marketing", - "properties[product_plan]": "Web", - "properties[revenue amount]": "5000", - "properties[title]": "VP", - "properties[gender]": "Male" - } - }, - "files": {} - } - }, - { - "description": "Identify call for updating existing user with (wootric externalId/ rudderstack userId)", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "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": { - "title": "VP", - "gender": "Male" - }, - "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": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.wootric.com/v1/end_users/486438462", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "last_surveyed": "1642685961", - "properties[title]": "VP", - "properties[gender]": "Male", - "properties[city]": "Mumbai", - "properties[name]": "Dummy User 1", - "properties[company]": "Rudderstack" - } - }, - "files": {} - } - }, - { - "description": "Identify call for updating user traits/properties", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "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": "Udaipur", - "name": "Dummy User 1 New", - "title": "SDE-2", - "gender": "Male", - "company": "Rudderstack" - }, - "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": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.wootric.com/v1/end_users/486438462", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "last_surveyed": "1642685961", - "properties[city]": "Udaipur", - "properties[name]": "Dummy User 1 New", - "properties[title]": "SDE-2", - "properties[gender]": "Male", - "properties[company]": "Rudderstack" - } - }, - "files": {} - } - }, - { - "description": "Track call with existing userId and event type as create response", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 7, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Mumbai", - "name": "Dummy User 1", - "email": "dummyUser1@gmail.com", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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, - "Wootric": { - "eventType": "create response" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users/486438462/responses", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "score": 7, - "ip_address": "0.0.0.0", - "origin_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "text": "Simple, Easy to use, Reliable, Affordable Product", - "created_at": "1611149961", - "end_user[properties][city]": "Mumbai", - "end_user[properties][name]": "Dummy User 1", - "end_user[properties][title]": "SDE", - "end_user[properties][gender]": "Male", - "end_user[properties][company]": "Rudderstack" - } - }, - "files": {} - } - }, - { - "description": "Track call with non-existing userId", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "channel": "web", - "properties": { - "feedbackScore": 7, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "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, - "Wootric": { - "eventType": "create response" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "statusCode": 400, - "error": "No user found with userId : dummyId2", - "statTags": { - "destination": "wootric", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track call with non-existing wootricEndUserId", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "channel": "web", - "properties": { - "feedbackScore": 7, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "externalId": [{ "type": "wootricEndUserId", "id": "12345" }], - "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, - "Wootric": { - "eventType": "create response" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "statusCode": 400, - "error": "No user found with wootric end user Id : 12345", - "statTags": { - "destination": "wootric", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track call with existing userId and event type as create response and score out of bound", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 12, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "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, - "Wootric": { - "eventType": "create response" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "statusCode": 400, - "error": "Invalid Score", - "statTags": { - "destination": "wootric", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track call with existing userId and event type as create decline", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 9, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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 - }, - "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, - "Wootric": { - "eventType": "create decline" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users/486438462/declines", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "origin_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html" - } - }, - "files": {} - } - }, - { - "description": "Track call with non-existing userId and event type as create decline", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "channel": "web", - "properties": { - "feedbackScore": 9, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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 - }, - "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, - "Wootric": { - "eventType": "create decline" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "statusCode": 400, - "error": "No user found with userId : dummyId2", - "statTags": { - "destination": "wootric", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track call with event type other than create response or decline", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 7, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Mumbai", - "name": "Dummy User 1", - "email": "dummyUser1@gmail.com", - "phone": "+19123456789", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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, - "Wootric": { - "eventType": "random" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - "output": { - "statusCode": 400, - "error": "Event Type not supported", - "statTags": { - "destination": "wootric", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track call with missing event type in integration object", - "input": { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "wootric-1234" - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 3, - "feedbackText": "Too Slow!!!" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Mumbai", - "name": "Dummy User 1", - "email": "dummyUser1@gmail.com", - "phone": "+19123456789", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "statusCode": 400, - "error": "Event Type is missing from Integration object", - "statTags": { - "destination": "wootric", - "stage": "transform", - "scope": "exception" - } - } - } -] diff --git a/test/__tests__/data/wootric_router_input.json b/test/__tests__/data/wootric_router_input.json deleted file mode 100644 index 360c07afa5..0000000000 --- a/test/__tests__/data/wootric_router_input.json +++ /dev/null @@ -1,1076 +0,0 @@ -[ - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 1 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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": "Bangalore", - "name": "Dummy User 2", - "email": "dummyUser2@gmail.com", - "phone": "+19123456777", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 2 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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": "Bangalore", - "name": "Dummy User 2", - "phone": "+19123456777", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 3 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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": { - "email": "dummyUser2@gmail.com", - "city": "Bangalore", - "name": "Dummy User 2", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 5 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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 - }, - "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": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 6 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "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": "Mumbai", - "name": "Dummy User 1", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 7 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "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": { - "email": "dummyuser1_01@gmail.com" - }, - "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": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 8 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "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": { - "phone": "+19777777778" - }, - "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": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 9 - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "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": "Udaipur", - "name": "Dummy User 1 New", - "title": "SDE-2", - "gender": "Male", - "company": "Rudderstack" - }, - "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": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 10 - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 7, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Mumbai", - "name": "Dummy User 1", - "email": "dummyUser1@gmail.com", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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, - "Wootric": { - "eventType": "create response" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 11 - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "channel": "web", - "properties": { - "feedbackScore": 7, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "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, - "Wootric": { - "eventType": "create response" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 12 - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 12, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "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, - "Wootric": { - "eventType": "create response" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 13 - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 9, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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 - }, - "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, - "Wootric": { - "eventType": "create decline" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 14 - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId2", - "channel": "web", - "properties": { - "feedbackScore": 9, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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 - }, - "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, - "Wootric": { - "eventType": "create decline" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 15 - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 7, - "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Mumbai", - "name": "Dummy User 1", - "email": "dummyUser1@gmail.com", - "phone": "+19123456789", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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, - "Wootric": { - "eventType": "random" - } - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": { - "jobId": 16 - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "dummyId1", - "channel": "web", - "properties": { - "feedbackScore": 3, - "feedbackText": "Too Slow!!!" - }, - "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", - "ip": "0.0.0.0", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Mumbai", - "name": "Dummy User 1", - "email": "dummyUser1@gmail.com", - "phone": "+19123456789", - "title": "SDE", - "gender": "Male", - "company": "Rudderstack", - "createdAt": "2021-01-20T13:39:21.032Z" - }, - "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" - } - } -] diff --git a/test/__tests__/data/wootric_router_output.json b/test/__tests__/data/wootric_router_output.json deleted file mode 100644 index 4d23a783c8..0000000000 --- a/test/__tests__/data/wootric_router_output.json +++ /dev/null @@ -1,493 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "email": "dummyUser2@gmail.com", - "phone_number": "+19123456777", - "last_surveyed": "1642685961", - "external_created_at": "1611149961", - "external_id": "dummyId2", - "properties[city]": "Bangalore", - "properties[name]": "Dummy User 2", - "properties[title]": "SDE", - "properties[gender]": "Male", - "properties[company]": "Rudderstack" - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG", - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "phone_number": "+19123456777", - "last_surveyed": "1642685961", - "external_created_at": "1611149961", - "external_id": "dummyId2", - "properties[city]": "Bangalore", - "properties[name]": "Dummy User 2", - "properties[title]": "SDE", - "properties[gender]": "Male", - "properties[company]": "Rudderstack" - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG", - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "email": "dummyUser2@gmail.com", - "last_surveyed": "1642685961", - "external_created_at": "1611149961", - "external_id": "dummyId2", - "properties[city]": "Bangalore", - "properties[name]": "Dummy User 2", - "properties[title]": "SDE", - "properties[gender]": "Male", - "properties[company]": "Rudderstack" - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG", - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - } - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": [ - { - "jobId": 5 - } - ], - "batched": false, - "statusCode": 400, - "error": "email/phone number are missing. At least one parameter must be provided", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": [ - { - "jobId": 6 - } - ], - "batched": false, - "statusCode": 400, - "error": "email/phone number are missing. At least one parameter must be provided", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.wootric.com/v1/end_users/486438462", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "email": "dummyuser1_01@gmail.com", - "last_surveyed": "1642685961" - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 7 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG", - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.wootric.com/v1/end_users/486438462", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "phone_number": "+19777777778", - "last_surveyed": "1642685961" - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 8 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG", - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://api.wootric.com/v1/end_users/486438462", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "last_surveyed": "1642685961", - "properties[city]": "Udaipur", - "properties[name]": "Dummy User 1 New", - "properties[title]": "SDE-2", - "properties[gender]": "Male", - "properties[company]": "Rudderstack" - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 9 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG", - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users/486438462/responses", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "score": 7, - "ip_address": "0.0.0.0", - "origin_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "text": "Simple, Easy to use, Reliable, Affordable Product", - "created_at": "1611149961", - "end_user[properties][city]": "Mumbai", - "end_user[properties][name]": "Dummy User 1", - "end_user[properties][title]": "SDE", - "end_user[properties][gender]": "Male", - "end_user[properties][company]": "Rudderstack" - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 10 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG", - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - } - } - }, - { - "metadata": [ - { - "jobId": 11 - } - ], - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "batched": false, - "statusCode": 400, - "error": "No user found with userId : dummyId2", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": [ - { - "jobId": 12 - } - ], - "batched": false, - "statusCode": 400, - "error": "Invalid Score", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.wootric.com/v1/end_users/486438462/declines", - "headers": { - "Content-Type": "application/x-www-form-urlencoded", - "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "origin_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html" - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 13 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG", - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - } - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": [ - { - "jobId": 14 - } - ], - "batched": false, - "statusCode": 400, - "error": "No user found with userId : dummyId2", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "metadata": [ - { - "jobId": 15 - } - ], - "batched": false, - "statusCode": 400, - "error": "Event Type not supported", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "metadata": [ - { - "jobId": 16 - } - ], - "destination": { - "Config": { - "username": "wootricfakeuser@example.com", - "password": "password@123", - "accountToken": "NPS-dummyToken" - }, - "ID": "2D7TqLto9tnkBuR1ciMrbiA4cbG" - }, - "batched": false, - "statusCode": 400, - "error": "Event Type is missing from Integration object", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - } -] diff --git a/test/__tests__/data/zapier_cdk_output.json b/test/__tests__/data/zapier_cdk_output.json deleted file mode 100644 index 13b4e3d761..0000000000 --- a/test/__tests__/data/zapier_cdk_output.json +++ /dev/null @@ -1,242 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "abcd.zap-hook", - "headers": { - "content-type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "first", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "def.zap-hook", - "headers": { - "content-type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "def", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "page.zap-hook", - "headers": { - "content-type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "name": "page_test", - "userId": "identified user id", - "type": "page", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "screen.zap-hook", - "headers": { - "content-type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "name": "screen_test", - "userId": "identified user id", - "type": "screen", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "ghi.zap-hook", - "headers": { - "content-type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "def", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { - "trait1": "new-val" - }, - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "properties": { - "abc": "123", - "key": { - "abc": 123 - }, - "array": [ - { - "abc": 123 - }, - { - "def": 123 - } - ] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/zapier_input.json b/test/__tests__/data/zapier_input.json deleted file mode 100644 index 82ae2e11ac..0000000000 --- a/test/__tests__/data/zapier_input.json +++ /dev/null @@ -1,176 +0,0 @@ -[ - { - "message": { - "event": "first", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { "trait1": "new-val" }, - "ip": "14.5.67.21", - "library": { "name": "http" } - }, - "properties": { - "abc": "123", - "key": { "abc": 123 }, - "array": [{ "abc": 123 }, { "def": 123 }] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "destination": { - "DestinationDefinition": { "Config": { "cdkEnabled": true } }, - "Config": { "zapUrl": "abcd.zap-hook", "trackEventsToZap": {}, "pageScreenEventsToZap": {} }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "def", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { "trait1": "new-val" }, - "ip": "14.5.67.21", - "library": { "name": "http" } - }, - "properties": { - "abc": "123", - "key": { "abc": 123 }, - "array": [{ "abc": 123 }, { "def": 123 }] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "destination": { - "DestinationDefinition": { "Config": { "cdkEnabled": true } }, - "Config": { - "zapUrl": "abcd.zap-hook", - "trackEventsToZap": [ - { "from": "def", "to": "def.zap-hook" }, - { "from": "ghi", "to": "ghi.zap-hook" } - ], - "pageScreenEventsToZap": {} - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "name": "page_test", - "userId": "identified user id", - "type": "page", - "anonymousId": "anon-id-new", - "context": { - "traits": { "trait1": "new-val" }, - "ip": "14.5.67.21", - "library": { "name": "http" } - }, - "properties": { - "abc": "123", - "key": { "abc": 123 }, - "array": [{ "abc": 123 }, { "def": 123 }] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "destination": { - "DestinationDefinition": { "Config": { "cdkEnabled": true } }, - "Config": { - "zapUrl": "abcd.zap-hook", - "trackEventsToZap": [ - { "from": "def", "to": "def.zap-hook" }, - { "from": "ghi", "to": "ghi.zap-hook" } - ], - "pageScreenEventsToZap": [ - { "from": "page_test", "to": "page.zap-hook" }, - { "from": "ghi", "to": "ghi.zap-hook" } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "name": "screen_test", - "userId": "identified user id", - "type": "screen", - "anonymousId": "anon-id-new", - "context": { - "traits": { "trait1": "new-val" }, - "ip": "14.5.67.21", - "library": { "name": "http" } - }, - "properties": { - "abc": "123", - "key": { "abc": 123 }, - "array": [{ "abc": 123 }, { "def": 123 }] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "destination": { - "DestinationDefinition": { "Config": { "cdkEnabled": true } }, - "Config": { - "zapUrl": "abcd.zap-hook", - "trackEventsToZap": [ - { "from": "def", "to": "def.zap-hook" }, - { "from": "ghi", "to": "ghi.zap-hook" } - ], - "pageScreenEventsToZap": [ - { "from": "page_test", "to": "page.zap-hook" }, - { "from": "screen_test", "to": "screen.zap-hook" } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "event": "def", - "userId": "identified user id", - "type": "track", - "anonymousId": "anon-id-new", - "context": { - "traits": { "trait1": "new-val" }, - "ip": "14.5.67.21", - "library": { "name": "http" } - }, - "properties": { - "abc": "123", - "key": { "abc": 123 }, - "array": [{ "abc": 123 }, { "def": 123 }] - }, - "timestamp": "2020-02-02T00:23:09.544Z", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "sentAt": "2020-04-17T14:42:44.724Z" - }, - "destination": { - "DestinationDefinition": { "Config": { "cdkEnabled": true } }, - "Config": { - "zapUrl": "abcd.zap-hook", - "trackEventsToZap": [ - { "from": "def", "to": "def.zap-hook" }, - { "from": "def", "to": "ghi.zap-hook" } - ], - "pageScreenEventsToZap": [{}] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/dcm_floodlight-cdk.test.ts b/test/__tests__/dcm_floodlight-cdk.test.ts deleted file mode 100644 index 373117ca1b..0000000000 --- a/test/__tests__/dcm_floodlight-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 = 'dcm_floodlight'; -const destName = 'DCM Floodlight'; - -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__/dcm_floodlight.test.js b/test/__tests__/dcm_floodlight.test.js deleted file mode 100644 index 85ece5aa42..0000000000 --- a/test/__tests__/dcm_floodlight.test.js +++ /dev/null @@ -1,6 +0,0 @@ -const { - getDestFromTestFile, - executeTransformationTest -} = require("./utilities/test-utils"); - -executeTransformationTest(getDestFromTestFile(__filename), "processor"); diff --git a/test/__tests__/delighted.test.js b/test/__tests__/delighted.test.js deleted file mode 100644 index 9b5cdefb07..0000000000 --- a/test/__tests__/delighted.test.js +++ /dev/null @@ -1,48 +0,0 @@ -const integration = "delighted"; -const name = "delighted"; - -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); - -//for router test -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__/drip.test.js b/test/__tests__/drip.test.js deleted file mode 100644 index 3f5b34c7eb..0000000000 --- a/test/__tests__/drip.test.js +++ /dev/null @@ -1,47 +0,0 @@ -const integration = "drip"; -const name = "drip"; - -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); - -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__/dynamic_yield-cdk.test.ts b/test/__tests__/dynamic_yield-cdk.test.ts deleted file mode 100644 index 525603fd48..0000000000 --- a/test/__tests__/dynamic_yield-cdk.test.ts +++ /dev/null @@ -1,32 +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 = 'dynamic_yield'; -const destName = 'Dynamic Yield'; - -// Processor Test files -const testDataFile = fs.readFileSync(path.resolve(__dirname, `./data/${integration}.json`), { - encoding: 'utf8', -}); -const testData = JSON.parse(testDataFile); - -describe(`${destName} Tests`, () => { - describe('Processor Tests', () => { - testData.forEach((dataPoint, index) => { - it(`${destName} - payload: ${index}`, async () => { - try { - const output = await processCdkV2Workflow( - integration, - dataPoint.input, - tags.FEATURES.PROCESSOR, - ); - expect(output).toEqual(dataPoint.output); - } catch (error: any) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); -}); diff --git a/test/__tests__/eloqua-cdk.test.ts b/test/__tests__/eloqua-cdk.test.ts deleted file mode 100644 index 455e738b26..0000000000 --- a/test/__tests__/eloqua-cdk.test.ts +++ /dev/null @@ -1,35 +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 = 'eloqua'; -const destName = 'Eloqua'; - -// Processor Test files -const processorTestDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}.json`), - { - encoding: 'utf8', - }, -); -const processorTestData = JSON.parse(processorTestDataFile); - -describe(`${destName} Tests`, () => { - describe('Processor Tests', () => { - processorTestData.forEach((dataPoint, index) => { - it(`${destName} processor payload: ${index}`, async () => { - try { - const output = await processCdkV2Workflow( - integration, - dataPoint.input, - tags.FEATURES.PROCESSOR, - ); - expect(output).toEqual(dataPoint.output); - } catch (error: any) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); -}); diff --git a/test/__tests__/facebook_conversions.test.js b/test/__tests__/facebook_conversions.test.js deleted file mode 100644 index a450952efe..0000000000 --- a/test/__tests__/facebook_conversions.test.js +++ /dev/null @@ -1,46 +0,0 @@ -const integration = "facebook_conversions"; -const name = "facebook_conversions"; - -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 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); - }); - }); -}); diff --git a/test/__tests__/freshmarketer.test.js b/test/__tests__/freshmarketer.test.js deleted file mode 100644 index 5938938b6e..0000000000 --- a/test/__tests__/freshmarketer.test.js +++ /dev/null @@ -1,46 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "freshmarketer"; -const name = "Freshmarketer"; -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 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); - }); - }); -}); diff --git a/test/__tests__/freshsales.test.js b/test/__tests__/freshsales.test.js deleted file mode 100644 index 2a9234133a..0000000000 --- a/test/__tests__/freshsales.test.js +++ /dev/null @@ -1,45 +0,0 @@ -const integration = "freshsales"; -const name = "Freshsales"; - -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 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); - }); - }); -}); diff --git a/test/__tests__/fullstory-cdk.test.ts b/test/__tests__/fullstory-cdk.test.ts deleted file mode 100644 index f7e0491aac..0000000000 --- a/test/__tests__/fullstory-cdk.test.ts +++ /dev/null @@ -1,32 +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 = 'fullstory'; -const destName = 'Fullstory'; - -// Processor Test files -const testDataFile = fs.readFileSync(path.resolve(__dirname, `./data/${integration}.json`), { - encoding: 'utf8', -}); -const testData = JSON.parse(testDataFile); - -describe(`${destName} Tests`, () => { - describe('Processor Tests', () => { - testData.forEach((dataPoint, index) => { - it(`${destName} - payload: ${index}`, async () => { - try { - const output = await processCdkV2Workflow( - integration, - dataPoint.input, - tags.FEATURES.PROCESSOR, - ); - expect(output).toEqual(dataPoint.output); - } catch (error: any) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); -}); diff --git a/test/__tests__/ga4.test.js b/test/__tests__/ga4.test.js deleted file mode 100644 index e685c5e432..0000000000 --- a/test/__tests__/ga4.test.js +++ /dev/null @@ -1,31 +0,0 @@ -const integration = "ga4"; -const name = "Google Analytics 4"; - -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); - -Date.now = jest.fn(() => new Date("2022-04-29T05:17:09Z")); - -describe(`${name} Tests`, () => { - describe("Processor", () => { - testData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, () => { - try { - const output = transformer.process(dataPoint.input); - expect(output).toEqual(dataPoint.output); - } catch (error) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); -}); diff --git a/test/__tests__/gainsight.test.js b/test/__tests__/gainsight.test.js deleted file mode 100644 index b0ff8d27b7..0000000000 --- a/test/__tests__/gainsight.test.js +++ /dev/null @@ -1,48 +0,0 @@ -const integration = "gainsight"; -const name = "Gainsight CS"; - -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__/gainsight_px.test.js b/test/__tests__/gainsight_px.test.js deleted file mode 100644 index 24b96d008d..0000000000 --- a/test/__tests__/gainsight_px.test.js +++ /dev/null @@ -1,48 +0,0 @@ -const integration = "gainsight_px"; -const name = "Gainsight PX"; - -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__/hubspot.test.js b/test/__tests__/hubspot.test.js deleted file mode 100644 index 83f02f5a14..0000000000 --- a/test/__tests__/hubspot.test.js +++ /dev/null @@ -1,139 +0,0 @@ -jest.mock("axios"); - -const integration = "hs"; -const name = "Hubspot"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -// Processor Test files -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 Legacy Test files -const inputLegacyRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input_legacy.json`) -); -const outputLegacyRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output_legacy.json`) -); -const inputLegacyRouterData = JSON.parse(inputLegacyRouterDataFile); -const expectedLegacyRouterData = JSON.parse(outputLegacyRouterDataFile); - -// Router Test files (New API) -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); - -// Router Test files for rETL sources -const inputRouterDataFilerETL = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_rETL_input.json`) -); -const outputRouterDataFilerETL = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_rETL_output.json`) -); -const inputRouterDatarETL = JSON.parse(inputRouterDataFilerETL); -const expectedRouterDatarETL = JSON.parse(outputRouterDataFilerETL); - -// Router Test files for rETL sources (legacy) -const inputRouterDataFilerETLLegacy = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_legacy_rETL_input.json`) -); -const outputRouterDataFilerETLLegacy = fs.readFileSync( - path.resolve( - __dirname, - `./data/${integration}_router_legacy_rETL_output.json` - ) -); -const inputRouterDatarETLLegacy = JSON.parse(inputRouterDataFilerETLLegacy); -const expectedRouterDatarETLLegacy = JSON.parse(outputRouterDataFilerETLLegacy); - -describe(`${name} Tests`, () => { - describe("Processor", () => { - inputData.forEach(async (input, index) => { - it(`Payload - ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - } - }); - }); - }); - - // Legacy API - // It has different test cases as this (NEW API) destination config can - // change in the middle of legacy batching causing issue with the existing flow - describe("Router Tests (Legacy API)", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest( - inputLegacyRouterData - ); - expect(routerOutput).toEqual(expectedLegacyRouterData); - }); - }); - - // New API - describe("Router Tests (New API)", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); - - describe("Router Tests for rETL sources", () => { - it("Payload", async () => { - const routerOutputrETL = await transformer.processRouterDest( - inputRouterDatarETL - ); - expect(routerOutputrETL).toEqual(expectedRouterDatarETL); - }); - - it("should transform association events", async () => { - const assocInput = JSON.parse( - fs.readFileSync( - path.resolve( - __dirname, - `data/${integration}_router_associations_rEtl_input.json` - ) - ) - ); - const assocExpectedOutput = JSON.parse( - fs.readFileSync( - path.resolve( - __dirname, - `data/${integration}_router_associations_rEtl_output.json` - ) - ) - ); - const actualOutput = await transformer.processRouterDest(assocInput); - - expect(actualOutput).toEqual(assocExpectedOutput); - }); - }); - // rETL Sources - describe("Router Tests for rETL sources (Legacy)", () => { - it("Payload", async () => { - const routerOutputrETLLegacy = await transformer.processRouterDest( - inputRouterDatarETLLegacy - ); - expect(routerOutputrETLLegacy).toEqual(expectedRouterDatarETLLegacy); - }); - }); -}); diff --git a/test/__tests__/intercom.test.js b/test/__tests__/intercom.test.js deleted file mode 100644 index 973b3e8a60..0000000000 --- a/test/__tests__/intercom.test.js +++ /dev/null @@ -1,49 +0,0 @@ -const integration = "intercom"; -const name = "Intercom"; - -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__/klaviyo.test.js b/test/__tests__/klaviyo.test.js deleted file mode 100644 index 209811b007..0000000000 --- a/test/__tests__/klaviyo.test.js +++ /dev/null @@ -1,47 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "klaviyo"; -const name = "Klaviyo"; -const version = "v0"; - -const { FEATURE_FILTER_CODE } = require('../../src/v0/util/constant'); -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 Data -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 () => { - try { - const output = await transformer.process(dataPoint.input); - expect(output).toEqual(dataPoint.output); - } catch (error) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); - - describe("Router", () => { - routerTestData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, async () => { - const oldTransformerOutput = await transformer.processRouterDest(dataPoint.input); - const newTransformerOutput = await transformer.processRouterDest(dataPoint.input, { features: { [FEATURE_FILTER_CODE]: true } }); - expect(oldTransformerOutput).toEqual(dataPoint.oldTransformerOutput); - expect(newTransformerOutput).toEqual(dataPoint.newTransformerOutput); - }); - }); - }); -}); diff --git a/test/__tests__/kochava-cdk.test.ts b/test/__tests__/kochava-cdk.test.ts deleted file mode 100644 index f87bca5828..0000000000 --- a/test/__tests__/kochava-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 = 'kochava'; -const destName = 'Kochava'; - -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__/kochava.test.js b/test/__tests__/kochava.test.js deleted file mode 100644 index 85ece5aa42..0000000000 --- a/test/__tests__/kochava.test.js +++ /dev/null @@ -1,6 +0,0 @@ -const { - getDestFromTestFile, - executeTransformationTest -} = require("./utilities/test-utils"); - -executeTransformationTest(getDestFromTestFile(__filename), "processor"); diff --git a/test/__tests__/kustomer.test.js b/test/__tests__/kustomer.test.js deleted file mode 100644 index 89c5e844a9..0000000000 --- a/test/__tests__/kustomer.test.js +++ /dev/null @@ -1,49 +0,0 @@ -const integration = "kustomer"; -const name = "Kustomer"; - -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 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", () => { - inputData.forEach(async (input, index) => { - it(`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__/lambda.test.js b/test/__tests__/lambda.test.js deleted file mode 100644 index 9fd656b103..0000000000 --- a/test/__tests__/lambda.test.js +++ /dev/null @@ -1,46 +0,0 @@ -const integration = "lambda"; -const name = "lambda"; - -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 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); - }); - }); -}); diff --git a/test/__tests__/launchdarkly_audience-cdk.test.ts b/test/__tests__/launchdarkly_audience-cdk.test.ts deleted file mode 100644 index 419b59fbd1..0000000000 --- a/test/__tests__/launchdarkly_audience-cdk.test.ts +++ /dev/null @@ -1,42 +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 = 'launchdarkly_audience'; -const destName = 'LaunchDarkly Audience'; - -// Processor Test files -const testDataFile = fs.readFileSync(path.resolve(__dirname, `./data/${integration}.json`), { - encoding: 'utf8', -}); -const testData = JSON.parse(testDataFile); - -jest.mock(`../../src/cdk/v2/destinations/launchdarkly_audience/config`, () => { - const originalConfig = jest.requireActual( - `../../src/cdk/v2/destinations/launchdarkly_audience/config`, - ); - return { - ...originalConfig, - MAX_IDENTIFIERS: 2, - }; -}); - -describe(`${destName} Tests`, () => { - describe('Processor Tests', () => { - testData.forEach((dataPoint, index) => { - it(`${destName} - payload: ${index}`, async () => { - try { - const output = await processCdkV2Workflow( - integration, - dataPoint.input, - tags.FEATURES.PROCESSOR, - ); - expect(output).toEqual(dataPoint.output); - } catch (error: any) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); -}); diff --git a/test/__tests__/leanplum.test.js b/test/__tests__/leanplum.test.js deleted file mode 100644 index eb55df54fe..0000000000 --- a/test/__tests__/leanplum.test.js +++ /dev/null @@ -1,49 +0,0 @@ -const integration = "leanplum"; -const name = "LeanPlum"; - -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__/lemniskMarketingAutomation.test.js b/test/__tests__/lemniskMarketingAutomation.test.js deleted file mode 100644 index 55c09ba63e..0000000000 --- a/test/__tests__/lemniskMarketingAutomation.test.js +++ /dev/null @@ -1,44 +0,0 @@ -const integration = "lemnisk"; -const name = "lemniskMarketingAutomation"; -const version = "v0"; - -const fs = require("fs"); -const path = require("path"); - -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 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 () => { - 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__/lytics-cdk.test.ts b/test/__tests__/lytics-cdk.test.ts deleted file mode 100644 index f218fa27ea..0000000000 --- a/test/__tests__/lytics-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 = 'lytics'; -const destName = 'Lytics'; - -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__/lytics.test.js b/test/__tests__/lytics.test.js deleted file mode 100644 index d2b226aea3..0000000000 --- a/test/__tests__/lytics.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__/mailchimp.test.js b/test/__tests__/mailchimp.test.js deleted file mode 100644 index 5da9d572f7..0000000000 --- a/test/__tests__/mailchimp.test.js +++ /dev/null @@ -1,67 +0,0 @@ -const integration = "mailchimp"; -const name = "Mailchimp"; - -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); - -const batchInputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_batch_input.json`) -); -const batchOutputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_batch_output.json`) -); - -const batchInputData = JSON.parse(batchInputDataFile); -const batchExpectedData = JSON.parse(batchOutputDataFile); - -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); - }); - }); - - describe("Batching", () => { - it("Payload", async () => { - const output = await transformer.processRouterDest(batchInputData); - expect(Array.isArray(output)).toEqual(true); - expect(output).toEqual(batchExpectedData); - }); - }); -}); diff --git a/test/__tests__/mailjet.test.js b/test/__tests__/mailjet.test.js deleted file mode 100644 index a732b9ca82..0000000000 --- a/test/__tests__/mailjet.test.js +++ /dev/null @@ -1,57 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "mailjet"; -const name = "mailjet"; -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); - -const batchDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_batch.json`) -); -const batchData = JSON.parse(batchDataFile); - -describe(`${name} Tests`, () => { - describe("Processor", () => { - testData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, () => { - try { - const output = 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", () => { - const output = transformer.processRouterDest(dataPoint.input); - expect(output).toEqual(dataPoint.output); - }); - }); - }); - - describe("Batching", () => { - batchData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, () => { - const output = transformer.processRouterDest(dataPoint.input); - expect(output).toEqual(dataPoint.output); - }); - }); - }); -}); diff --git a/test/__tests__/mailjet_source.test.js b/test/__tests__/mailjet_source.test.js index 9081d21122..7a778e7b4e 100644 --- a/test/__tests__/mailjet_source.test.js +++ b/test/__tests__/mailjet_source.test.js @@ -18,7 +18,7 @@ testData.forEach((data, index) => { it(`${name} Tests: payload: ${index}`, () => { try { const output = transformer.process(data.input); - expect(output).toEqual(data.output.Message); + expect(output).toEqual(data.output); } catch (error) { expect(error.message).toEqual(data.output); } diff --git a/test/__tests__/mailmodo.test.js b/test/__tests__/mailmodo.test.js deleted file mode 100644 index d49049f5db..0000000000 --- a/test/__tests__/mailmodo.test.js +++ /dev/null @@ -1,52 +0,0 @@ -const integration = "mailmodo"; -const name = "Mailmodo"; - -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 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}`, () => { - try { - const output = transformer.process(dataPoint.input); - expect(output).toEqual(dataPoint.output); - } catch (error) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); - describe("Router", () => { - it("Payload", async () => { - try { - const routerOutput = await transformer.processRouterDest( - inputRouterData - ); - expect(routerOutput).toEqual(expectedRouterData); - } catch (error) { - expect(error.message).toEqual(expectedRouterData.error); - } - }); - }); -}); diff --git a/test/__tests__/marketo.test.js b/test/__tests__/marketo.test.js deleted file mode 100644 index b300b20f10..0000000000 --- a/test/__tests__/marketo.test.js +++ /dev/null @@ -1,71 +0,0 @@ -jest.mock("axios"); - -const integration = "marketo"; -const name = "Marketo"; -const version = "v0"; - -const fs = require("fs"); -const path = require("path"); - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -// Processor Test files -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 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); - -// Router Metadata Test files -const inputRouterMetadataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_metadata_input.json`) -); -const outputRouterMetadataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_metadata_output.json`) -); -const inputRouterMetadata = JSON.parse(inputRouterMetadataFile); -const expectedRouterMetadata = JSON.parse(outputRouterMetadataFile); - -describe(`${name} Tests`, () => { - describe("Processor", () => { - inputData.forEach(async (input, index) => { - it(`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); - }); - }); - - describe("Router Metadata Tests", () => { - it("Payload", async () => { - const routerMetadataOutput = await transformer.processMetadataForRouter( - inputRouterMetadata - ); - expect(routerMetadataOutput).toEqual(expectedRouterMetadata); - }); - }); -}); diff --git a/test/__tests__/marketo_bulk_upload.test.js b/test/__tests__/marketo_bulk_upload.test.js index be4efa14e2..6cf4d559b9 100644 --- a/test/__tests__/marketo_bulk_upload.test.js +++ b/test/__tests__/marketo_bulk_upload.test.js @@ -93,9 +93,6 @@ describe(`${integration} Tests`, () => { const output = await vRouter.pollStatus(input); expect(output).toEqual(respPollBody[index]); } catch (error) { - console.log("CHEEECKKKK"); - console.log(error); - console.log(respPollBody[index].error); expect(error.message).toEqual(respPollBody[index].error); } }); diff --git a/test/__tests__/marketo_static_list.test.js b/test/__tests__/marketo_static_list.test.js deleted file mode 100644 index 43300f243a..0000000000 --- a/test/__tests__/marketo_static_list.test.js +++ /dev/null @@ -1,64 +0,0 @@ -const integration = "marketo_static_list"; -const name = "marketo_static_list"; -const version = "v0"; - -const fs = require("fs"); -const path = require("path"); - -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 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); - -// Router Metadata Test files -const inputRouterMetadataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_metadata_input.json`) -); -const outputRouterMetadataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_metadata_output.json`) -); -const inputRouterMetadata = JSON.parse(inputRouterMetadataFile); -const expectedRouterMetadata = JSON.parse(outputRouterMetadataFile); - -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 Metadata Tests", () => { - it("Payload", async () => { - const routerMetadataOutput = await transformer.processMetadataForRouter( - inputRouterMetadata - ); - expect(routerMetadataOutput).toEqual(expectedRouterMetadata); - }); - }); -}); diff --git a/test/__tests__/moengage.test.js b/test/__tests__/moengage.test.js deleted file mode 100644 index 6f9ad38afc..0000000000 --- a/test/__tests__/moengage.test.js +++ /dev/null @@ -1,48 +0,0 @@ -const integration = "moengage"; -const name = "Moengage"; - -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__/monday.test.js b/test/__tests__/monday.test.js deleted file mode 100644 index 0344cfcf75..0000000000 --- a/test/__tests__/monday.test.js +++ /dev/null @@ -1,46 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "monday"; -const name = "Monday"; -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 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); - }); - }); -}); diff --git a/test/__tests__/monetate.test.js b/test/__tests__/monetate.test.js deleted file mode 100644 index 2b5c39db64..0000000000 --- a/test/__tests__/monetate.test.js +++ /dev/null @@ -1,49 +0,0 @@ -const integration = "monetate"; -const name = "Monetate"; - -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__/new_relic-cdk.test.ts b/test/__tests__/new_relic-cdk.test.ts deleted file mode 100644 index 79b38ecf70..0000000000 --- a/test/__tests__/new_relic-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 = 'new_relic'; -const destName = 'New Relic'; - -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__/new_relic.test.js b/test/__tests__/new_relic.test.js deleted file mode 100644 index 85ece5aa42..0000000000 --- a/test/__tests__/new_relic.test.js +++ /dev/null @@ -1,6 +0,0 @@ -const { - getDestFromTestFile, - executeTransformationTest -} = require("./utilities/test-utils"); - -executeTransformationTest(getDestFromTestFile(__filename), "processor"); diff --git a/test/__tests__/ometria.test.js b/test/__tests__/ometria.test.js deleted file mode 100644 index 6d397c5ee4..0000000000 --- a/test/__tests__/ometria.test.js +++ /dev/null @@ -1,52 +0,0 @@ -const path = require("path"); -const fs = require("fs"); - -const integration = "ometria"; -const name = "Ometria"; - -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; - expected = expectedData[index].message; - } - //console.log(output.body); - expect(output).toEqual(expected); - }); -}); - -const batchInputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_batch_input.json`) -); -const batchOutputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_batch_output.json`) -); - -const batchInputData = JSON.parse(batchInputDataFile); -const batchExpectedData = JSON.parse(batchOutputDataFile); - -test("Batching", async () => { - const batchInputData = JSON.parse(batchInputDataFile); - const batchExpectedData = JSON.parse(batchOutputDataFile); - const output = await transformer.processRouterDest(batchInputData); - // console.log(JSON.stringify(batchInputData)); - // console.log(JSON.stringify(output)); - expect(Array.isArray(output)).toEqual(true); - expect(output).toEqual(batchExpectedData); -}); diff --git a/test/__tests__/one_signal.test.js b/test/__tests__/one_signal.test.js deleted file mode 100644 index 393d3c7657..0000000000 --- a/test/__tests__/one_signal.test.js +++ /dev/null @@ -1,46 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "one_signal"; -const name = "OneSignal"; -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 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); - }); - }); -}); diff --git a/test/__tests__/pagerduty.test.js b/test/__tests__/pagerduty.test.js deleted file mode 100644 index b5bd4cf4b3..0000000000 --- a/test/__tests__/pagerduty.test.js +++ /dev/null @@ -1,43 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "pagerduty"; -const name = "PagerDuty"; -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}`, () => { - try { - const output = 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__/personalize.test.js b/test/__tests__/personalize.test.js deleted file mode 100644 index b46dc7df4e..0000000000 --- a/test/__tests__/personalize.test.js +++ /dev/null @@ -1,28 +0,0 @@ -const integration = "personalize"; -const name = "Personalize"; - -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} - payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - } - }); -}); diff --git a/test/__tests__/pinterestConversion.test.js b/test/__tests__/pinterestConversion.test.js index 351551753d..4c145f0383 100644 --- a/test/__tests__/pinterestConversion.test.js +++ b/test/__tests__/pinterestConversion.test.js @@ -7,6 +7,8 @@ const path = require("path"); const version = "v0"; const transformer = require(`../../src/${version}/destinations/${integration}/transform`); +const { assertRouterOutput } = require('../testHelper'); + const inputDataFile = fs.readFileSync( path.resolve(__dirname, `./data/${integration}_input.json`) ); @@ -44,6 +46,7 @@ describe(`${name} Tests`, () => { inputRouterData.forEach((input, index) => { it(`Payload: ${index}`, async () => { let output = await transformer.processRouterDest(input); + assertRouterOutput(output, input); expect(output).toEqual(expectedRouterData[index]); }); }); diff --git a/test/__tests__/profitwell.test.js b/test/__tests__/profitwell.test.js deleted file mode 100644 index 99ed1a4c43..0000000000 --- a/test/__tests__/profitwell.test.js +++ /dev/null @@ -1,62 +0,0 @@ -const fs = require("fs"); -const path = require("path"); -const { mockaxios } = require("../__mocks__/network"); - -const integration = "profitwell"; -const name = "profitwell"; -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -// Processor Test files -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); - -jest.mock("../../src/adapters/network", () => { - const originalModule = jest.requireActual("../../src/adapters/network"); - - //Mock the default export and named export 'send' - return { - __esModule: true, - ...originalModule, - send: jest.fn(mockaxios) - }; -}); - -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__/rockerbox.test.js b/test/__tests__/rockerbox.test.js deleted file mode 100644 index 092b4b2806..0000000000 --- a/test/__tests__/rockerbox.test.js +++ /dev/null @@ -1,45 +0,0 @@ -const integration = "rockerbox"; -const name = "rockerbox"; - -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 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}`, () => { - try { - const output = 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); - }); - }); -}); diff --git a/test/__tests__/sendgrid.test.js b/test/__tests__/sendgrid.test.js deleted file mode 100644 index 20b0ebc5ae..0000000000 --- a/test/__tests__/sendgrid.test.js +++ /dev/null @@ -1,58 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "sendgrid"; -const name = "SendGrid"; -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); - -// Batch test files -const batchDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_batch.json`) -); -const batchData = JSON.parse(batchDataFile); - -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", () => { - routerTestData.forEach(dataPoint => { - it("SendGrid router test case", async () => { - const output = await transformer.processRouterDest(dataPoint.input); - expect(output).toEqual(dataPoint.output); - }); - }); - }); - - describe("Batching", () => { - batchData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, async () => { - const output = await transformer.processRouterDest(dataPoint.input); - expect(output).toEqual(dataPoint.output); - }); - }); - }); -}); diff --git a/test/__tests__/sendinblue.test.js b/test/__tests__/sendinblue.test.js deleted file mode 100644 index 063f5bf282..0000000000 --- a/test/__tests__/sendinblue.test.js +++ /dev/null @@ -1,47 +0,0 @@ -const integration = "sendinblue"; -const name = "Sendinblue"; - -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 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(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", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/sfmc.test.js b/test/__tests__/sfmc.test.js deleted file mode 100644 index 69d67625b1..0000000000 --- a/test/__tests__/sfmc.test.js +++ /dev/null @@ -1,49 +0,0 @@ -jest.mock("axios"); -const integration = "sfmc"; -const name = "Salesforce Marketing Cloud"; -const version = "v0"; - -const fs = require("fs"); -const path = require("path"); - -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__/stormly.test.js b/test/__tests__/stormly.test.js deleted file mode 100644 index 2640440b3f..0000000000 --- a/test/__tests__/stormly.test.js +++ /dev/null @@ -1,47 +0,0 @@ -const integration = "stormly"; -const name = "STORMLY"; - -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 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(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", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/user_transformation_errors.test.js b/test/__tests__/user_transformation_errors.test.js index 62bf4db3ce..c2a99ce09d 100644 --- a/test/__tests__/user_transformation_errors.test.js +++ b/test/__tests__/user_transformation_errors.test.js @@ -163,7 +163,6 @@ describe("JS Transformation Error Tests", () => { true, ); - console.log('XTE: ', result.transformedEvents) expect(result.transformedEvents.length).toBe(1); result.transformedEvents.forEach(ev => { expect(ev.error).toEqual( `ReferenceError: x is not defined diff --git a/test/__tests__/userlist-cdk.test.ts b/test/__tests__/userlist-cdk.test.ts deleted file mode 100644 index 6c8dcc257f..0000000000 --- a/test/__tests__/userlist-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 = 'userlist'; -const destName = 'Userlist'; - -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__/userlist.test.js b/test/__tests__/userlist.test.js deleted file mode 100644 index d2b226aea3..0000000000 --- a/test/__tests__/userlist.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__/utilities/test-utils.js b/test/__tests__/utilities/test-utils.js index 73353f1ded..4d5d7fc909 100644 --- a/test/__tests__/utilities/test-utils.js +++ b/test/__tests__/utilities/test-utils.js @@ -2,6 +2,7 @@ const fs = require("fs"); const _ = require("lodash"); const path = require("path"); const { ConfigFactory, Executor } = require("rudder-transformer-cdk"); +const { assertRouterOutput } = require('../../testHelper'); // TODO: separate this out later as the list grows const cdkEnabledDestinations = { @@ -95,7 +96,9 @@ function executeTransformationTest(dest, transformAt) { if (transformAt == "processor") { actualData = await transformer.process(tcInput); } else { - actualData = (await transformer.processRouterDest([tcInput]))[0]; + actual = await transformer.processRouterDest([tcInput]) + assertRouterOutput(actual, [tcInput]); + actualData = (actual)[0]; } } // Compare actual and expected data @@ -115,6 +118,7 @@ function executeTransformationTest(dest, transformAt) { const version = "v0"; const transformer = require(`../../../src/${version}/destinations/${dest}/transform`); actualData = await transformer.processRouterDest(commonInput); + assertRouterOutput(actualData, commonInput); const cloneActual = _.cloneDeep(actualData); cloneActual[0].statTags = "undefined"; // Compare actual and expected data diff --git a/test/__tests__/vitally-cdk.test.ts b/test/__tests__/vitally-cdk.test.ts deleted file mode 100644 index 851461b4ab..0000000000 --- a/test/__tests__/vitally-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 = 'vitally'; -const destName = 'Vitally'; - -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__/vitally.test.js b/test/__tests__/vitally.test.js deleted file mode 100644 index 88ccc9a964..0000000000 --- a/test/__tests__/vitally.test.js +++ /dev/null @@ -1,6 +0,0 @@ -const { - getDestFromTestFile, - executeTransformationTest -} = require("./utilities/test-utils"); - -executeTransformationTest(getDestFromTestFile(__filename), "processor"); \ No newline at end of file diff --git a/test/__tests__/warehouse.test.js b/test/__tests__/warehouse.test.js index 045bab35a6..772e59e65a 100644 --- a/test/__tests__/warehouse.test.js +++ b/test/__tests__/warehouse.test.js @@ -20,6 +20,7 @@ const { const { validTimestamp } = require("../../src/warehouse/util.js"); +const {isBlank} = require("../../src/warehouse/config/helpers.js"); const version = "v0"; const integrations = [ @@ -1096,54 +1097,117 @@ describe("Integration options", () => { describe("validTimestamp", () => { const testCases = [ { + name: "undefined input should return false", input: undefined, expected: false, }, { + name: "negative year and time input should return false #1", input: '-0001-11-30T00:00:00+0000', expected: false, }, { + name: "negative year and time input should return false #2", input: '-2023-06-14T05:23:59.244Z', expected: false, }, { + name: "negative year and time input should return false #3", + input: '-1900-06-14T05:23:59.244Z', + expected: false, + }, + { + name: "positive year and time input should return false", input: '+2023-06-14T05:23:59.244Z', expected: false, }, { + name: "valid timestamp input should return true", input: '2023-06-14T05:23:59.244Z', expected: true, }, { - input: '-1900-06-14T05:23:59.244Z', - expected: false, - }, - { + name: "non-date string input should return false", input: 'abc', expected: false, }, { - input: '%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216Windows%u2216win%u002ein', + name: "malicious string input should return false", + input: '%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216%u002e%u002e%u2216Windows%u2216win%u002ein', expected: false, }, { + name: "empty string input should return false", input: '', expected: false, }, { + name: "valid date input should return true", input: '2023-06-14', expected: true, }, { + name: "time-only input should return false", input: '05:23:59.244Z', expected: false, - } - ] + }, + { + name: "non-string input should return false", + input: { abc: 123 }, + expected: false, + }, + { + name: "object with toString method input should return false", + input: { + toString: '2023-06-14T05:23:59.244Z' + }, + expected: false, + }, + ]; for (const testCase of testCases) { - it(`should return ${testCase.expected} for ${testCase.input}`, () => { + it(`should return ${testCase.expected} for ${testCase.name}`, () => { expect(validTimestamp(testCase.input)).toEqual(testCase.expected); }); } }); + + + +describe("isBlank", () => { + const testCases = [ + { + name: "null", + input: null, + expected: true + }, + { + name: "empty string", + input: "", + expected: true + }, + { + name: "non-empty string", + input: "test", + expected: false + }, + { + name: "numeric value", + input: 1634762544, + expected: false + }, + { + name: "object with toString property", + input: { + toString: '2023-06-14T05:23:59.244Z' + }, + expected: false + }, + ]; + + for (const testCase of testCases) { + it(`should return ${testCase.expected} for ${testCase.name}`, () => { + expect(isBlank(testCase.input)).toEqual(testCase.expected); + }); + } +}); \ No newline at end of file diff --git a/test/__tests__/webhook-cdk.test.ts b/test/__tests__/webhook-cdk.test.ts deleted file mode 100644 index aa519f72cf..0000000000 --- a/test/__tests__/webhook-cdk.test.ts +++ /dev/null @@ -1,58 +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 = 'webhook'; -const destName = 'Webhook'; - -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) { - expect(error.message).toEqual(expected.message); - } - }); - }); - }); -}); diff --git a/test/__tests__/wootric.test.js b/test/__tests__/wootric.test.js deleted file mode 100644 index 7e7e81cd49..0000000000 --- a/test/__tests__/wootric.test.js +++ /dev/null @@ -1,46 +0,0 @@ -const integration = "wootric"; -const name = "Wootric"; - -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 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(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", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/zapier-cdk.test.ts b/test/__tests__/zapier-cdk.test.ts deleted file mode 100644 index 33e71bd1f8..0000000000 --- a/test/__tests__/zapier-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 = 'zapier'; -const destName = 'Zapier'; - -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/apitests/service.api.test.ts b/test/apitests/service.api.test.ts index ee534d7b37..cbc2abb3b2 100644 --- a/test/apitests/service.api.test.ts +++ b/test/apitests/service.api.test.ts @@ -35,7 +35,7 @@ const getDataFromPath = (pathInput) => { return JSON.parse(testDataFile.toString()); }; -describe('Basic route tests', () => { +describe('features tests', () => { test('successful features response', async () => { const expectedData = JSON.parse( fs.readFileSync(path.resolve(__dirname, '../../src/features.json'), 'utf8'), @@ -44,6 +44,36 @@ describe('Basic route tests', () => { expect(response.status).toEqual(200); expect(JSON.parse(response.text)).toEqual(expectedData); }); + + test('features regulations should be array', async () => { + const response = await request(server).get('/features'); + expect(response.status).toEqual(200); + const regulations = JSON.parse(response.text).regulations; + expect(Array.isArray(regulations)).toBeTruthy(); + }); + + test('features routerTransform should be object', async () => { + const response = await request(server).get('/features'); + expect(response.status).toEqual(200); + const routerTransform = JSON.parse(response.text).routerTransform; + expect(Array.isArray(routerTransform)).toBeFalsy(); + expect(typeof routerTransform).toBe('object'); + expect(Object.keys(routerTransform).length).toBeGreaterThan(0); + }); + + test('features supportSourceTransformV1 to be boolean', async () => { + const response = await request(server).get('/features'); + expect(response.status).toEqual(200); + const supportSourceTransformV1 = JSON.parse(response.text).supportSourceTransformV1; + expect(typeof supportSourceTransformV1).toBe('boolean'); + }); + + test('features supportTransformerProxyV1 to be boolean', async () => { + const response = await request(server).get('/features'); + expect(response.status).toEqual(200); + const supportTransformerProxyV1 = JSON.parse(response.text).supportTransformerProxyV1; + expect(typeof supportTransformerProxyV1).toBe('boolean'); + }); }); describe('Destination api tests', () => { diff --git a/test/controllerUtility/ctrl-utility.test.ts b/test/controllerUtility/ctrl-utility.test.ts deleted file mode 100644 index bf9eef1846..0000000000 --- a/test/controllerUtility/ctrl-utility.test.ts +++ /dev/null @@ -1,1446 +0,0 @@ -import { ProcessorTransformationRequest, RouterTransformationRequestData } from '../../src/types'; -import { ControllerUtility } from '../../src/controllers/util'; - -type timestampTestCases = { - caseName: string; - expectedOutputEvents: Array; - inputEvents: Array; -}; - -const timestampEventsCases: timestampTestCases[] = [ - { - caseName: 'when events(all track), timestamp should be taken from properties.timestamp', - expectedOutputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - timestamp: '2023-01-23T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2023-01-23T00:29:12.117+05:30', - type: 'track', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - inputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - timestamp: '2023-01-23T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-12-23T00:29:10.188+05:30', - type: 'track', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - }, - { - caseName: - 'when events(all track) without properties.timestamp, timestamp should be taken from timestamp', - expectedOutputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - someTime: '2023-01-23T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'track', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - inputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - someTime: '2023-01-23T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'track', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - }, - { - caseName: - 'when events(all identify) without context.timestamp, timestamp should be taken from timestamp', - expectedOutputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - timestamp: '2023-01-12T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2023-01-12T00:29:12.117+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - inputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - timestamp: '2023-01-12T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - }, - { - caseName: - 'when proc events(identify, track, group) are mixed, timestamp should be taken from relevant places for identify & track, skipped for group', - expectedOutputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - traits: { - timestamp: '2023-01-22T00:29:12.117+05:30', - }, - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2023-01-22T00:29:12.117+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073231', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - traits: { - timestamp: '2023-01-11T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2023-01-11T00:29:12.117+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073232', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - timestamp: '2023-01-13T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2023-01-13T00:29:12.117+05:30', - type: 'track', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073232', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - timestamp: '2023-01-13T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'group', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - inputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - traits: { - timestamp: '2023-01-22T00:29:12.117+05:30', - }, - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073231', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - traits: { - timestamp: '2023-01-11T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073232', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - timestamp: '2023-01-13T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'track', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073232', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - timestamp: '2023-01-13T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'group', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - }, - { - caseName: - 'when a mix of VDM enabled & non-VDM destinations are available, the timestamp will be applied to only non-VDM destination', - expectedOutputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - traits: { - timestamp: '2023-01-22T00:29:12.117+05:30', - }, - mappedToDestination: true, - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073231', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - traits: { - timestamp: '2023-01-11T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2023-01-11T00:29:12.117+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPy', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string-2', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073232', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - mappedToDestination: true, - }, - properties: { - timestamp: '2023-01-13T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'track', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073232', - event: 'Test', - context: { - mappedToDestination: true, - }, - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - properties: { - timestamp: '2023-01-13T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'group', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - inputEvents: [ - { - message: { - anonymousId: '2073230', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - traits: { - timestamp: '2023-01-22T00:29:12.117+05:30', - }, - mappedToDestination: true, - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073231', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - traits: { - timestamp: '2023-01-11T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'identify', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPy', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string-2', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073232', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - mappedToDestination: true, - }, - properties: { - timestamp: '2023-01-13T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'track', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - { - message: { - anonymousId: '2073232', - event: 'Test', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - originalTimestamp: '2022-12-23T00:29:12.117+05:30', - channel: 'sources', - context: { - mappedToDestination: true, - }, - properties: { - timestamp: '2023-01-13T00:29:12.117+05:30', - }, - sentAt: '2022-12-23T00:29:12.117+05:30', - timestamp: '2022-11-22T00:29:10.188+05:30', - type: 'group', - userId: '2564871', - }, - metadata: { - sourceId: '27O0bmEEx3GgfmEhZHUcPwJQVWC', - workspaceId: '27O0bhB6p5ehfOWeeZlOSsSDTLg', - namespace: '', - instanceId: '1', - sourceType: 'HTTP', - sourceCategory: '', - trackingPlanId: '', - trackingPlanVersion: 0, - sourceTpConfig: {}, - mergedTpConfig: {}, - destinationId: '2JH9GMQf2YFJFaTw7rz1pxHAJPx', - jobRunId: '', - jobId: 1, - sourceBatchId: '', - sourceJobId: '', - sourceJobRunId: '', - sourceTaskId: '', - sourceTaskRunId: '', - recordId: {}, - destinationType: 'WEBHOOK', - messageId: 'e3a51e9a-6313-4389-ae73-07e487c8d9d0', - oauthAccessToken: '', - messageIds: [], - rudderId: '<<>>2073230<<>>2564871', - receivedAt: '2022-12-23T00:29:10.189+05:30', - eventName: 'Test', - eventType: 'track', - sourceDefinitionId: '1b6gJdqOPOCadT3cddw8eidV591', - destinationDefinitionId: '', - transformationId: '', - }, - destination: { - ID: 'string', - Name: 'string', - DestinationDefinition: { - ID: 'defid1', - Name: 'INTERCOM', - DisplayName: 'intercom', - Config: {}, - }, - Config: {}, - Enabled: true, - WorkspaceID: 'wspId', - Transformations: [], - }, - }, - ], - }, -]; - -describe('controller utility tests -- handleTimestampInEvents', () => { - test.each(timestampEventsCases)( - '$caseName', - ({ inputEvents, expectedOutputEvents: outputEvents }) => { - const actualEvents = ControllerUtility.handleTimestampInEvents(inputEvents); - expect(actualEvents).toStrictEqual(outputEvents); - }, - ); -}); diff --git a/test/deleteUsers/data/iterable/handler_input.json b/test/deleteUsers/data/iterable/handler_input.json deleted file mode 100644 index 8ebc859089..0000000000 --- a/test/deleteUsers/data/iterable/handler_input.json +++ /dev/null @@ -1,93 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder1" - } - ] - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder2" - } - ], - "config": { - "apiToken": "dummyApiKey" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder1" - }, - { - "userId": "rudder2" - } - ], - "config": { - "apiKey": "dummyApiKey" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder3" - }, - { - "userId": "rudder4" - } - ], - "config": { - "apiKey": "invalidKey" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder5" - }, - { - "userId": "rudder6" - } - ], - "config": { - "apiKey": "dummyApiKey" - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/iterable/handler_output.json b/test/deleteUsers/data/iterable/handler_output.json deleted file mode 100644 index b053d04df4..0000000000 --- a/test/deleteUsers/data/iterable/handler_output.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "Config for deletion not present" - } - ], - [ - { - "statusCode": 400, - "error": "api key for deletion not present" - } - ], - [ - { - "statusCode": 400, - "error": "User deletion request failed for userIds : [{\"userId\":\"rudder2\",\"Reason\":\"User does not exist. Email: UserId: rudder2\"}]" - } - ], - [ - { - "error": "User deletion request failed : Invalid API key", - "statusCode": 401 - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ] -] diff --git a/test/deleteUsers/data/iterable/nw_client_data.json b/test/deleteUsers/data/iterable/nw_client_data.json deleted file mode 100644 index 159c301b11..0000000000 --- a/test/deleteUsers/data/iterable/nw_client_data.json +++ /dev/null @@ -1,138 +0,0 @@ -[ - [ - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder1", - {}, - { - "Accept": "application/json", - "api_key": "dummyApiKey" - } - ], - "response": { - "response": { - "data": { - "msg": "All users associated with rudder1 were successfully deleted", - "code": "Success", - "params": null - }, - "status": 200 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder2", - {}, - { - "Accept": "application/json", - "api_key": "dummyApiKey" - } - ], - "response": { - "response": { - "data": { - "msg": "User does not exist. Email: UserId: rudder2", - "code": "BadParams", - "params": null - }, - "status": 400 - } - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder3", - {}, - { - "Accept": "application/json", - "api_key": "invalidKey" - } - ], - "response": { - "response": { - "data": { - "msg": "Invalid API key", - "code": "Success", - "params": { - "endpoint": "/api/users/byUserId/rudder3" - } - }, - "status": 401 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder4", - {}, - { - "Accept": "application/json", - "api_key": "invalidKey" - } - ], - "response": { - "response": { - "data": { - "msg": "Invalid API key", - "code": "Success", - "params": { - "endpoint": "/api/users/byUserId/rudder3" - } - }, - "status": 401 - } - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder5", - {}, - { - "Accept": "application/json", - "api_key": "dummyApiKey" - } - ], - "response": { - "response": { - "data": { - "msg": "All users associated with rudder5 were successfully deleted", - "code": "Success", - "params": null - }, - "status": 200 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder6", - {}, - { - "Accept": "application/json", - "api_key": "dummyApiKey" - } - ], - "response": { - "response": { - "data": { - "msg": "All users associated with rudder6 were successfully deleted", - "code": "Success", - "params": null - }, - "status": 200 - } - } - } - ] -] diff --git a/test/integrations/component.test.ts b/test/integrations/component.test.ts index 847dd4c91f..ec4fb02dc1 100644 --- a/test/integrations/component.test.ts +++ b/test/integrations/component.test.ts @@ -20,7 +20,9 @@ import { import tags from '../../src/v0/util/tags'; import { Server } from 'http'; import { appendFileSync } from 'fs'; -import { responses } from '../testHelper'; +import { assertRouterOutput, responses } from '../testHelper'; +import { generateTestReport, initaliseReport } from '../test_reporter/reporter'; +import _ from 'lodash'; // To run single destination test cases // npm run test:ts -- component --destination=adobe_analytics @@ -37,6 +39,7 @@ command .option('-f, --feature ', 'Enter Feature Name(processor, router)') .option('-i, --index ', 'Enter Test index') .option('-g, --generate ', 'Enter "true" If you want to generate network file') + .option('-id, --id ', 'Enter unique "Id" of the test case you want to run') .parse(); const opts = command.opts(); @@ -50,7 +53,10 @@ if (opts.generate === 'true') { let server: Server; +const REPORT_COMPATIBLE_INTEGRATION = ['klaviyo']; + beforeAll(async () => { + initaliseReport(); const app = new Koa(); app.use( bodyParser({ @@ -122,8 +128,35 @@ const testRoute = async (route, tcData: TestCaseData) => { .query(params || {}) .send(body); const outputResp = tcData.output.response || ({} as any); + + if (tcData.feature === tags.FEATURES.BATCH || tcData.feature === tags.FEATURES.ROUTER) { + //TODO get rid of these skipped destinations after they are fixed + if ( + tcData.name != 'marketo_static_list' && + tcData.name != 'mailmodo' && + tcData.name != 'hs' && + tcData.name != 'iterable' && + tcData.name != 'klaviyo' && + tcData.name != 'tiktok_ads' && + tcData.name != 'mailjet' && + tcData.name != 'google_adwords_offline_conversions' + ) { + assertRouterOutput(response.body.output, tcData.input.request.body.input); + } + } + expect(response.status).toEqual(outputResp.status); + if (REPORT_COMPATIBLE_INTEGRATION.includes(tcData.name?.toLocaleLowerCase())) { + const bodyMatched = _.isEqual(response.body, outputResp.body); + const statusMatched = response.status === outputResp.status; + if (bodyMatched && statusMatched) { + generateTestReport(tcData, response.body, 'passed'); + } else { + generateTestReport(tcData, response.body, 'failed'); + } + } + if (outputResp?.body) { expect(response.body).toEqual(outputResp.body); } @@ -181,6 +214,14 @@ describe.each(allTestDataFilePaths)('%s Tests', (testDataPath) => { if (opts.index !== undefined) { testData = [testData[parseInt(opts.index)]]; } + if (opts.id) { + testData = testData.filter((data) => { + if (data['id'] === opts.id) { + return true; + } + return false; + }); + } describe(`${testData[0].name} ${testData[0].module}`, () => { test.each(testData)('$feature -> $description', async (tcData) => { tcData?.mockFns?.(mockAdapter); diff --git a/test/integrations/destinations/active_campaign/processor/data.ts b/test/integrations/destinations/active_campaign/processor/data.ts index 09499a9eee..cef8c2a3a8 100644 --- a/test/integrations/destinations/active_campaign/processor/data.ts +++ b/test/integrations/destinations/active_campaign/processor/data.ts @@ -1,3 +1,6 @@ +import MockAdapter from 'axios-mock-adapter'; +import { isMatch } from 'lodash'; + export const data = [ { name: 'active_campaign', @@ -765,4 +768,389 @@ export const data = [ }, }, }, + + { + name: 'active_campaign', + description: + 'Test 7: node error(ECONNABORTED) where there is no response coming from dest. server', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiUrl: 'https://active.campaigns.dumber.com', + actid: '476550467', + eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03', + }, + }, + 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', + userId: '123456', + type: 'identify', + traits: { + anonymousId: 'anon_id', + email: 'patjane@gmail.com', + phone: '92374162213', + tags: ['Test_User', 'Interested_User', 'DIY_Hobby'], + fieldInfo: { + Office: 'Trastkiv', + Country: 'Russia', + Likes: ['Potato', 'Onion'], + Random: 'random', + }, + lists: [ + { id: 2, status: 'subscribe' }, + { id: 3, status: 'unsubscribe' }, + { id: 3, status: 'unsubscribexyz' }, + ], + address: { + city: 'kolkata', + country: 'India', + postalCode: 789223, + state: 'WB', + street: '', + }, + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + '{"message":"Failed to create new contact (undefined,\\"[ECONNABORTED] :: Connection aborted\\")","destinationResponse":"[ECONNABORTED] :: Connection aborted"}', + statTags: { + destType: 'ACTIVE_CAMPAIGN', + errorCategory: 'network', + errorType: 'retryable', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 500, + }, + ], + }, + }, + mockFns: (mockAdapter: MockAdapter) => { + mockAdapter + .onPost( + 'https://active.campaigns.dumber.com/api/3/contact/sync', + { + asymmetricMatch: (actual) => { + return isMatch(actual, { + contact: { + email: 'patjane@gmail.com', + phone: '92374162213', + }, + }); + }, + }, + { + asymmetricMatch: (actual) => { + return isMatch(actual, { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }); + }, + }, + ) + .abortRequest(); + }, + }, + { + name: 'active_campaign', + description: 'Test 8: erreneous response from active_campaign server(5xx)', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiUrl: 'https://active.campaigns.dumber2.com', + actid: '476550467', + eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03', + }, + }, + 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', + userId: '123456', + type: 'identify', + traits: { + anonymousId: 'anon_id', + email: 'patjane1@gmail.com', + phone: '92374162213', + tags: ['Test_User', 'Interested_User', 'DIY_Hobby'], + fieldInfo: { + Office: 'Trastkiv', + Country: 'Russia', + Likes: ['Potato', 'Onion'], + Random: 'random', + }, + lists: [ + { id: 2, status: 'subscribe' }, + { id: 3, status: 'unsubscribe' }, + { id: 3, status: 'unsubscribexyz' }, + ], + address: { + city: 'kolkata', + country: 'India', + postalCode: 789223, + state: 'WB', + street: '', + }, + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + '{"message":"Failed to create new contact (undefined,\\"\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n \\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\naccurx.api-us1.com | 504: Gateway time-out\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n

\\\\\\\\n Gateway time-out\\\\\\\\n Error code 504\\\\\\\\n

\\\\\\\\n
\\\\\\\\n Visit cloudflare.com for more information.\\\\\\\\n
\\\\\\\\n
2023-12-06 10:33:27 UTC
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n \\\\\\\\n
\\\\\\\\n
\\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n
\\\\\\\\n You\\\\\\\\n

\\\\\\\\n \\\\\\\\n Browser\\\\\\\\n \\\\\\\\n

\\\\\\\\n Working\\\\\\\\n
\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n
\\\\\\\\n Frankfurt\\\\\\\\n

\\\\\\\\n \\\\\\\\n Cloudflare\\\\\\\\n \\\\\\\\n

\\\\\\\\n Working\\\\\\\\n
\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n
\\\\\\\\n accurx.api-us1.com\\\\\\\\n

\\\\\\\\n \\\\\\\\n Host\\\\\\\\n \\\\\\\\n

\\\\\\\\n Error\\\\\\\\n
\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n

What happened?

\\\\\\\\n

The web server reported a gateway time-out error.

\\\\\\\\n
\\\\\\\\n
\\\\\\\\n

What can I do?

\\\\\\\\n

Please try again in a few minutes.

\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n\\\\\\\\n \\\\\\\\n\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\")\\")","destinationResponse":"\\\\n\\\\n\\\\n\\\\n \\\\n\\\\n\\\\n\\\\naccurx.api-us1.com | 504: Gateway time-out\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n
\\\\n
\\\\n
\\\\n

\\\\n Gateway time-out\\\\n Error code 504\\\\n

\\\\n
\\\\n Visit cloudflare.com for more information.\\\\n
\\\\n
2023-12-06 10:33:27 UTC
\\\\n
\\\\n
\\\\n
\\\\n
\\\\n \\\\n
\\\\n
\\\\n \\\\n \\\\n \\\\n \\\\n
\\\\n You\\\\n

\\\\n \\\\n Browser\\\\n \\\\n

\\\\n Working\\\\n
\\\\n\\\\n
\\\\n
\\\\n \\\\n \\\\n \\\\n \\\\n
\\\\n Frankfurt\\\\n

\\\\n \\\\n Cloudflare\\\\n \\\\n

\\\\n Working\\\\n
\\\\n\\\\n
\\\\n
\\\\n \\\\n \\\\n \\\\n \\\\n
\\\\n accurx.api-us1.com\\\\n

\\\\n \\\\n Host\\\\n \\\\n

\\\\n Error\\\\n
\\\\n\\\\n
\\\\n
\\\\n
\\\\n\\\\n
\\\\n
\\\\n
\\\\n

What happened?

\\\\n

The web server reported a gateway time-out error.

\\\\n
\\\\n
\\\\n

What can I do?

\\\\n

Please try again in a few minutes.

\\\\n
\\\\n
\\\\n
\\\\n\\\\n \\\\n\\\\n\\\\n
\\\\n
\\\\n\\\\n\\\\n\\")"}', + statTags: { + destType: 'ACTIVE_CAMPAIGN', + errorCategory: 'network', + errorType: 'retryable', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 504, + }, + ], + }, + }, + mockFns: (mockAdapter: MockAdapter) => { + mockAdapter + .onPost( + 'https://active.campaigns.dumber2.com/api/3/contact/sync', + { + asymmetricMatch: (actual) => { + return isMatch(actual, { + contact: { + email: 'patjane1@gmail.com', + phone: '92374162213', + }, + }); + }, + }, + { + asymmetricMatch: (actual) => { + return isMatch(actual, { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }); + }, + }, + ) + .replyOnce( + 504, + '\\n\\n\\n\\n \\n\\n\\n\\naccurx.api-us1.com | 504: Gateway time-out\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n
\\n
\\n
\\n

\\n Gateway time-out\\n Error code 504\\n

\\n
\\n Visit cloudflare.com for more information.\\n
\\n
2023-12-06 10:33:27 UTC
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n \\n \\n \\n \\n
\\n You\\n

\\n \\n Browser\\n \\n

\\n Working\\n
\\n\\n
\\n
\\n \\n \\n \\n \\n
\\n Frankfurt\\n

\\n \\n Cloudflare\\n \\n

\\n Working\\n
\\n\\n
\\n
\\n \\n \\n \\n \\n
\\n accurx.api-us1.com\\n

\\n \\n Host\\n \\n

\\n Error\\n
\\n\\n
\\n
\\n
\\n\\n
\\n
\\n
\\n

What happened?

\\n

The web server reported a gateway time-out error.

\\n
\\n
\\n

What can I do?

\\n

Please try again in a few minutes.

\\n
\\n
\\n
\\n\\n \\n\\n\\n
\\n
\\n\\n\\n")', + { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + }, + ); + }, + }, + { + name: 'active_campaign', + description: 'Test 9: erreneous response from active_campaign server(4xx)', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiUrl: 'https://active.campaigns.dumber2.com', + actid: '476550467', + eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03', + }, + }, + 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', + userId: '123456', + type: 'identify', + traits: { + anonymousId: 'anon_id', + email: 'patjane2@gmail.com', + phone: '92374162213', + tags: ['Test_User', 'Interested_User', 'DIY_Hobby'], + fieldInfo: { + Office: 'Trastkiv', + Country: 'Russia', + Likes: ['Potato', 'Onion'], + Random: 'random', + }, + lists: [ + { id: 2, status: 'subscribe' }, + { id: 3, status: 'unsubscribe' }, + { id: 3, status: 'unsubscribexyz' }, + ], + address: { + city: 'kolkata', + country: 'India', + postalCode: 789223, + state: 'WB', + street: '', + }, + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + '{"message":"Failed to create new contact (undefined,{\\"errors\\":[{\\"title\\":\\"Contact Email Address is not valid.\\",\\"detail\\":\\"\\",\\"code\\":\\"email_invalid\\",\\"error\\":\\"must_be_valid_email_address\\",\\"source\\":{\\"pointer\\":\\"/data/attributes/email\\"}}]})","destinationResponse":{"errors":[{"title":"Contact Email Address is not valid.","detail":"","code":"email_invalid","error":"must_be_valid_email_address","source":{"pointer":"/data/attributes/email"}}]}}', + statTags: { + destType: 'ACTIVE_CAMPAIGN', + errorCategory: 'network', + errorType: 'aborted', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 422, + }, + ], + }, + }, + mockFns: (mockAdapter: MockAdapter) => { + mockAdapter + .onPost( + 'https://active.campaigns.dumber2.com/api/3/contact/sync', + { + asymmetricMatch: (actual) => { + return isMatch(actual, { + contact: { + email: 'patjane2@gmail.com', + phone: '92374162213', + }, + }); + }, + }, + { + asymmetricMatch: (actual) => { + return isMatch(actual, { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }); + }, + }, + ) + .replyOnce( + 422, + { + errors: [ + { + title: 'Contact Email Address is not valid.', + detail: '', + code: 'email_invalid', + error: 'must_be_valid_email_address', + source: { + pointer: '/data/attributes/email', + }, + }, + ], + }, + { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + }, + ); + }, + }, ]; diff --git a/test/integrations/destinations/active_campaign/router/data.ts b/test/integrations/destinations/active_campaign/router/data.ts index 782d1e3379..f65a65d9bc 100644 --- a/test/integrations/destinations/active_campaign/router/data.ts +++ b/test/integrations/destinations/active_campaign/router/data.ts @@ -18,9 +18,7 @@ export const data = [ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03', }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { channel: 'web', context: { @@ -30,21 +28,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -66,18 +56,9 @@ export const data = [ Random: 'random', }, lists: [ - { - id: 2, - status: 'subscribe', - }, - { - id: 3, - status: 'unsubscribe', - }, - { - id: 3, - status: 'unsubscribexyz', - }, + { id: 2, status: 'subscribe' }, + { id: 3, status: 'unsubscribe' }, + { id: 3, status: 'unsubscribexyz' }, ], address: { city: 'kolkata', @@ -87,9 +68,7 @@ export const data = [ street: '', }, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -117,22 +96,10 @@ export const data = [ lastName: 'Doe', phone: '92374162212', fieldValues: [ - { - field: '0', - value: 'Trastkiv', - }, - { - field: '1', - value: 'Russia', - }, - { - field: '3', - value: '||Potato||Onion||', - }, - { - field: '4', - value: 'random', - }, + { field: '0', value: 'Trastkiv' }, + { field: '1', value: 'Russia' }, + { field: '3', value: '||Potato||Onion||' }, + { field: '4', value: 'random' }, ], }, }, @@ -141,18 +108,11 @@ export const data = [ files: {}, method: 'POST', params: {}, - headers: { - 'Api-Token': 'dummyApiToken', - 'Content-Type': 'application/json', - }, + headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://active.campaigns.rudder.com/api/3/contact/sync', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -188,9 +148,7 @@ export const data = [ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03', }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { channel: 'web', context: { @@ -200,24 +158,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - traits: { - email: 'jamesDoe@gmail.com', - anonymousId: '12345', - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + traits: { email: 'jamesDoe@gmail.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', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, request_ip: '1.1.1.1', type: 'page', @@ -234,9 +181,7 @@ export const data = [ title: 'Test Page', url: 'https://www.rudderlabs.com', }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T11:15:53.296Z', }, }, @@ -257,28 +202,17 @@ export const data = [ XML: {}, FORM: {}, JSON_ARRAY: {}, - JSON: { - siteTrackingDomain: { - name: 'rudderlabs.com', - }, - }, + JSON: { siteTrackingDomain: { name: 'rudderlabs.com' } }, }, type: 'REST', files: {}, method: 'POST', params: {}, - headers: { - 'Api-Token': 'dummyApiToken', - 'Content-Type': 'application/json', - }, + headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://active.campaigns.rudder.com/api/3/siteTrackingDomains', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -312,10 +246,7 @@ export const data = [ sentAt: '2023-01-10T22:31:10.954Z', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -342,10 +273,7 @@ export const data = [ innerHeight: 782, }, traits: {}, - library: { - name: 'RudderLabs JavaScript SDK', - version: '2.20.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '2.20.0' }, campaign: {}, sessionId: 1673389635049, userAgent: @@ -369,9 +297,7 @@ export const data = [ receivedAt: '2023-01-10T22:31:11.612Z', request_ip: '0.0.0.20', anonymousId: '878e8f5f-9b6c-4aef-b5d3-1b970a13f17a', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2023-01-10T22:31:10.943Z', }, destination: { @@ -382,9 +308,7 @@ export const data = [ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03', }, }, - metadata: { - jobId: 5, - }, + metadata: { jobId: 5, userId: 'u1' }, }, ], destType: 'active_campaign', @@ -408,11 +332,7 @@ export const data = [ module: 'destination', }, statusCode: 400, - metadata: [ - { - jobId: 5, - }, - ], + metadata: [{ jobId: 5, userId: 'u1' }], batched: false, destination: { Config: { diff --git a/test/integrations/destinations/adj/router/data.ts b/test/integrations/destinations/adj/router/data.ts index c662d7b557..22c4e899d2 100644 --- a/test/integrations/destinations/adj/router/data.ts +++ b/test/integrations/destinations/adj/router/data.ts @@ -30,57 +30,26 @@ export const data = [ type: 'Android', attTrackingStatus: 3, }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.6', - }, + library: { name: 'com.rudderstack.android.sdk.core', version: '1.0.6' }, locale: 'en-US', - network: { - bluetooth: false, - carrier: 'Android', - cellular: true, - wifi: true, - }, - os: { - name: 'Android', - version: '9', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + network: { bluetooth: false, carrier: 'Android', cellular: true, wifi: true }, + os: { name: 'Android', version: '9' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Kolkata', - traits: { - anonymousId: '21e13f4bc7ceddad', - }, + traits: { anonymousId: '21e13f4bc7ceddad' }, userAgent: 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', }, event: 'First Investment', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb', originalTimestamp: '2020-09-28T19:53:31.900Z', properties: { currency: 'EUR', key1: 'value1', key2: 'value2', - key3: { - k4: 'v4', - k5: { - k6: 'v6', - }, - }, - key5: [ - { - k: 'v1', - }, - { - k: 'v2', - }, - ], + key3: { k4: 'v4', k5: { k6: 'v6' } }, + key5: [{ k: 'v1' }, { k: 'v2' }], revenue: 20.37566, }, receivedAt: '2020-09-29T14:50:43.005+05:30', @@ -89,9 +58,7 @@ export const data = [ timestamp: '2020-09-29T14:50:29.907+05:30', type: 'track', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { ID: '1i3Em7GMU9xVEiDlZUN8c88BMS9', Name: 'ADJ', @@ -114,14 +81,8 @@ export const data = [ Config: { appToken: 'testAppToken', customMappings: [ - { - from: 'Application Installed', - to: '3fdmll', - }, - { - from: 'First Investment', - to: 'testEventToken', - }, + { from: 'Application Installed', to: '3fdmll' }, + { from: 'First Investment', to: 'testEventToken' }, ], environment: true, }, @@ -147,9 +108,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://s2s.adjust.com/event', - headers: { - Accept: '*/*', - }, + headers: { Accept: '*/*' }, params: { callback_params: '{"key1":"value1","key2":"value2","key3.k4":"v4","key3.k5.k6":"v6","key5[0].k":"v1","key5[1].k":"v2"}', @@ -165,20 +124,11 @@ export const data = [ event_token: 'testEventToken', environment: 'production', }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, files: {}, userId: '21e13f4bc7ceddad', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -203,14 +153,8 @@ export const data = [ Config: { appToken: 'testAppToken', customMappings: [ - { - from: 'Application Installed', - to: '3fdmll', - }, - { - from: 'First Investment', - to: 'testEventToken', - }, + { from: 'Application Installed', to: '3fdmll' }, + { from: 'First Investment', to: 'testEventToken' }, ], environment: true, }, @@ -255,57 +199,26 @@ export const data = [ type: 'ios', attTrackingStatus: 3, }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.6', - }, + library: { name: 'com.rudderstack.android.sdk.core', version: '1.0.6' }, locale: 'en-US', - network: { - bluetooth: false, - carrier: 'Android', - cellular: true, - wifi: true, - }, - os: { - name: 'Android', - version: '9', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + network: { bluetooth: false, carrier: 'Android', cellular: true, wifi: true }, + os: { name: 'Android', version: '9' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Kolkata', - traits: { - anonymousId: '21e13f4bc7ceddad', - }, + traits: { anonymousId: '21e13f4bc7ceddad' }, userAgent: 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', }, event: 'First Investment', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb', originalTimestamp: '2020-09-28T19:53:31.900Z', properties: { currency: 'EUR', key1: 'value1', key2: 'value2', - key3: { - k4: 'v4', - k5: { - k6: 'v6', - }, - }, - key5: [ - { - k: 'v1', - }, - { - k: 'v2', - }, - ], + key3: { k4: 'v4', k5: { k6: 'v6' } }, + key5: [{ k: 'v1' }, { k: 'v2' }], revenue: 20.37566, }, receivedAt: '2020-09-29T14:50:43.005+05:30', @@ -314,9 +227,7 @@ export const data = [ timestamp: '2020-09-29T14:50:29.907+05:30', type: 'track', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { ID: '1i3Em7GMU9xVEiDlZUN8c88BMS9', Name: 'ADJ', @@ -339,14 +250,8 @@ export const data = [ Config: { appToken: 'testAppToken', customMappings: [ - { - from: 'Application Installed', - to: '3fdmll', - }, - { - from: 'First Investment', - to: 'testEventToken', - }, + { from: 'Application Installed', to: '3fdmll' }, + { from: 'First Investment', to: 'testEventToken' }, ], environment: true, }, @@ -372,9 +277,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://s2s.adjust.com/event', - headers: { - Accept: '*/*', - }, + headers: { Accept: '*/*' }, params: { callback_params: '{"key1":"value1","key2":"value2","key3.k4":"v4","key3.k5.k6":"v6","key5[0].k":"v1","key5[1].k":"v2"}', @@ -390,20 +293,11 @@ export const data = [ event_token: 'testEventToken', environment: 'production', }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, files: {}, userId: '21e13f4bc7ceddad', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -428,14 +322,8 @@ export const data = [ Config: { appToken: 'testAppToken', customMappings: [ - { - from: 'Application Installed', - to: '3fdmll', - }, - { - from: 'First Investment', - to: 'testEventToken', - }, + { from: 'Application Installed', to: '3fdmll' }, + { from: 'First Investment', to: 'testEventToken' }, ], environment: true, }, diff --git a/test/integrations/destinations/adobe_analytics/dataDelivery/data.ts b/test/integrations/destinations/adobe_analytics/dataDelivery/data.ts new file mode 100644 index 0000000000..182969da73 --- /dev/null +++ b/test/integrations/destinations/adobe_analytics/dataDelivery/data.ts @@ -0,0 +1,142 @@ +export const data = [ + { + name: 'adobe_analytics', + description: 'Test 0: Failure response from Adobe Analytics with reason', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://adobe.failure.omtrdc.net/b/ss//6', + headers: { + 'Content-type': 'application/xml', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: { + payload: + '17941080sales campaignwebUSD127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerprodViewGames;;11;148.39failureReport', + }, + FORM: {}, + }, + files: {}, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 400, + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'ADOBE_ANALYTICS', + module: 'destination', + implementation: 'native', + feature: 'dataDelivery', + destinationId: '2S3s0dXXXXXX7m0UfBwyblDrzs', + workspaceId: '1pKWrE6GXXXXXKBikka1SbRgrSN', + }, + destinationResponse: '', + authErrorCategory: '', + message: + '[ADOBE_ANALYTICS Response Handler] Request failed for destination adobe_analytics : NO pagename OR pageurl', + }, + }, + }, + { + name: 'adobe_analytics', + description: 'Test 1: Failure response from Adobe Analytics without reason (Generic error)', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://adobe.failure2.omtrdc.net/b/ss//6', + headers: { + 'Content-type': 'application/xml', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: { + payload: + '17941080sales campaignwebUSD127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerprodViewGames;;11;148.39failureReportgeneric', + }, + FORM: {}, + }, + files: {}, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 400, + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'ADOBE_ANALYTICS', + module: 'destination', + implementation: 'native', + feature: 'dataDelivery', + destinationId: '2S3s0dXXXXXX7m0UfBwyblDrzs', + workspaceId: '1pKWrE6GXXXXXKBikka1SbRgrSN', + }, + destinationResponse: '', + authErrorCategory: '', + message: + '[ADOBE_ANALYTICS Response Handler] Request failed for destination adobe_analytics with a general error', + }, + }, + }, + { + name: 'adobe_analytics', + description: 'Test 2: Success response from Adobe Analytics', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://adobe.success.omtrdc.net/b/ss//6', + headers: { + 'Content-type': 'application/xml', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: { + payload: + '127.0.1.0www.google.co.inGoogleid1110011prodViewGames;Monopoly;1;14.00,Games;UNO;2;6.90successreport', + }, + FORM: {}, + }, + files: {}, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + destinationResponse: 'SUCCESS', + }, + }, + }, +]; diff --git a/test/integrations/destinations/adobe_analytics/network.ts b/test/integrations/destinations/adobe_analytics/network.ts new file mode 100644 index 0000000000..2fe4f0204e --- /dev/null +++ b/test/integrations/destinations/adobe_analytics/network.ts @@ -0,0 +1,47 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://adobe.failure.omtrdc.net/b/ss//6', + data: '17941080sales campaignwebUSD127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerprodViewGames;;11;148.39failureReport', + params: {}, + headers: { + 'Content-Type': 'application/xml', + }, + method: 'POST', + }, + httpRes: { + status: 200, + data: 'FAILURENO pagename OR pageurl', + }, + }, + { + httpReq: { + url: 'https://adobe.failure2.omtrdc.net/b/ss//6', + data: '17941080sales campaignwebUSD127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerprodViewGames;;11;148.39failureReportgeneric', + params: {}, + headers: { + 'Content-Type': 'application/xml', + }, + method: 'POST', + }, + httpRes: { + status: 200, + data: 'FAILURE', + }, + }, + { + httpReq: { + url: 'https://adobe.success.omtrdc.net/b/ss//6', + data: '127.0.1.0www.google.co.inGoogleid1110011prodViewGames;Monopoly;1;14.00,Games;UNO;2;6.90successreport', + params: {}, + headers: { + 'Content-Type': 'application/xml', + }, + method: 'POST', + }, + httpRes: { + status: 200, + data: 'SUCCESS', + }, + }, +]; diff --git a/test/integrations/destinations/adobe_analytics/processor/data.ts b/test/integrations/destinations/adobe_analytics/processor/data.ts index 378523ac3c..fa050897c9 100644 --- a/test/integrations/destinations/adobe_analytics/processor/data.ts +++ b/test/integrations/destinations/adobe_analytics/processor/data.ts @@ -1,7 +1,7 @@ export const data = [ { name: 'adobe_analytics', - description: 'Test 0', + description: 'Test 0: [ECom]: Product Viewed', feature: 'processor', module: 'destination', version: 'v0', @@ -31,7 +31,7 @@ export const data = [ referring_domain: 'google.com', search: 'estore bestseller', title: 'The best sellers offered by EStore', - url: 'https://www.estore.com/best-seller/1', + url: 'https://www.estore.com/best-seller/News & Sports?ik=123&ij=456', name: 'Best Seller', }, screen: { @@ -61,7 +61,7 @@ export const data = [ coupon: 'DISC21', currency: 'USD', position: 1, - url: 'https://www.website.com/product/path', + url: 'https://www.website.com/product/path?ik=123&ij=456', image_url: 'https://www.website.com/product/path.png', currencyMerch: 25, addressMerch: 'Delhi', @@ -170,7 +170,7 @@ export const data = [ JSON_ARRAY: {}, XML: { payload: - '17941080sales campaignwebUSD127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellert01t02roottval001Kolkata9935400932RudderLabs JavaScript SDKr15,faze90Rciaz,hummer,tharhttps://www.estore.com/best-seller/1Best Sellercustompropval1custompropval22020-01-09T10:01:53.558Zmktcloudid001prodViewGames;Game;11;148.39footlockerrudderstackpoc', + '17941080sales campaignwebUSD127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellert01t02roottval001Kolkata9935400932RudderLabs JavaScript SDKr15,faze90Rciaz,hummer,tharhttps://www.estore.com/best-seller/News%20&%20Sports?ik=123&ij=456Best Sellercustompropval1custompropval22020-01-09T10:01:53.558Zmktcloudid001prodViewGames;Game;11;148.39footlockerrudderstackpoc', }, FORM: {}, }, @@ -185,7 +185,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 1', + description: 'Test 1: [ECom]: Product Added', feature: 'processor', module: 'destination', version: 'v0', @@ -356,7 +356,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 2', + description: 'Test 2: [ECom]: Product Removed', feature: 'processor', module: 'destination', version: 'v0', @@ -527,7 +527,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 3', + description: 'Test 3: [ECom]: Cart Viewed', feature: 'processor', module: 'destination', version: 'v0', @@ -708,7 +708,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 4', + description: 'Test 4: [ECom]: Checkout started', feature: 'processor', module: 'destination', version: 'v0', @@ -896,7 +896,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 5', + description: 'Test 5: [ECom]: Order Completed', feature: 'processor', module: 'destination', version: 'v0', @@ -1085,7 +1085,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 6', + description: 'Test 6: Cart Opened', feature: 'processor', module: 'destination', version: 'v0', @@ -1265,7 +1265,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 7', + description: 'Test 7: [Custom] Watched Video', feature: 'processor', module: 'destination', version: 'v0', @@ -1285,7 +1285,7 @@ export const data = [ term: 'event data', content: 'Make sense of the modern data stack', }, - library: { name: 'RudderLabs JavaScript SDK', version: '2.9.1' }, + library: { name: 'RudderLabs JavaScript SDK ', version: '2.9.1' }, locale: 'en-US', page: { path: '/best-seller/1', @@ -1311,7 +1311,7 @@ export const data = [ traits: { roott01: 'roottval001' }, event: 'Watched Video', integrations: { All: true }, - properties: { plan: 'growth', video: 'TEDxGROWTH' }, + properties: { plan: 'growth', video: 'TEDxGROWTH&MARKETING' }, originalTimestamp: '2020-01-09T10:01:53.558Z', type: 'track', sentAt: '2020-01-09T10:02:03.257Z', @@ -1412,7 +1412,7 @@ export const data = [ JSON_ARRAY: {}, XML: { payload: - '17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001RudderLabs JavaScript SDKTEDxGROWTHoWatched Videohttps://www.estore.com/best-seller/1growth2020-01-09T10:01:53.558Zmktcloudid001event1footlockerrudderstackpoc', + '17941080sales campaignweb127.0.0.1en-USDalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)https://www.google.com/search?q=estore+bestsellerroottval001RudderLabs JavaScript SDK <Custom>TEDxGROWTH&MARKETINGoWatched Videohttps://www.estore.com/best-seller/1growth2020-01-09T10:01:53.558Zmktcloudid001event1footlockerrudderstackpoc', }, FORM: {}, }, @@ -1427,7 +1427,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 8', + description: 'Test 8: Common Page Call', feature: 'processor', module: 'destination', version: 'v0', @@ -1597,7 +1597,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 9', + description: 'Test 9: Currency test event', feature: 'processor', module: 'destination', version: 'v0', @@ -1789,7 +1789,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 10', + description: 'Test 10: Override feature test', feature: 'processor', module: 'destination', version: 'v0', @@ -1988,7 +1988,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 11', + description: 'Test 11: Override hiers test', feature: 'processor', module: 'destination', version: 'v0', @@ -2188,7 +2188,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 12', + description: 'Test 12: product level eVaR', feature: 'processor', module: 'destination', version: 'v0', @@ -2390,7 +2390,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 13', + description: 'Test 13: [ERROR]: Invalid message type: Identify', feature: 'processor', module: 'destination', version: 'v0', @@ -2523,7 +2523,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 14', + description: 'Test 14: [ERROR]: Message Type is not present.', feature: 'processor', module: 'destination', version: 'v0', @@ -2697,7 +2697,8 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 15', + description: + 'Test 15: [ERROR]: The event is not a supported ECOM event or a mapped custom event.', feature: 'processor', module: 'destination', version: 'v0', @@ -2872,7 +2873,7 @@ export const data = [ }, { name: 'adobe_analytics', - description: 'Test 16', + description: 'Test 16: Test overrideEventName property', feature: 'processor', module: 'destination', version: 'v0', @@ -3056,4 +3057,49 @@ export const data = [ }, }, }, + { + name: 'adobe_analytics', + description: 'Test 17: Event is missing for track', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '78c53c15-32a1-4b65-adac-bec2d7bb8fab', + channel: 'web', + originalTimestamp: '2020-01-09T10:01:53.558Z', + type: 'track', + sentAt: '2020-01-09T10:02:03.257Z', + }, + destination: { + Config: {}, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event name is not present. Aborting message.', + statTags: { + destType: 'ADOBE_ANALYTICS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, ]; diff --git a/test/integrations/destinations/af/router/data.ts b/test/integrations/destinations/af/router/data.ts index 46f30fef81..b6dca3a75e 100644 --- a/test/integrations/destinations/af/router/data.ts +++ b/test/integrations/destinations/af/router/data.ts @@ -43,7 +43,7 @@ export const data = [ sentAt: '2019-10-14T11:15:53.296Z', integrations: { AF: { af_uid: 'afUid' } }, }, - metadata: { jobId: 2 }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { devKey: 'ef1d42390426e3f7c90ac78272e74344', @@ -85,7 +85,7 @@ export const data = [ sentAt: '2019-10-14T11:15:53.296Z', integrations: { AF: { af_uid: 'afUid' } }, }, - metadata: { jobId: 2 }, + metadata: { jobId: 3, userId: 'u1' }, destination: { Config: { devKey: 'ef1d42390426e3f7c90ac78272e74344', @@ -128,7 +128,7 @@ export const data = [ sentAt: '2019-10-14T11:15:53.296Z', integrations: { AF: { af_uid: 'afUid' } }, }, - metadata: { jobId: 2 }, + metadata: { jobId: 4, userId: 'u1' }, destination: { Config: { devKey: 'ef1d42390426e3f7c90ac78272e74344', @@ -177,7 +177,7 @@ export const data = [ }, files: {}, }, - metadata: [{ jobId: 2 }], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -217,7 +217,7 @@ export const data = [ }, files: {}, }, - metadata: [{ jobId: 2 }], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -257,7 +257,7 @@ export const data = [ }, files: {}, }, - metadata: [{ jobId: 2 }], + metadata: [{ jobId: 4, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/airship/router/data.ts b/test/integrations/destinations/airship/router/data.ts index bc11bc2cfc..8ed6f57a42 100644 --- a/test/integrations/destinations/airship/router/data.ts +++ b/test/integrations/destinations/airship/router/data.ts @@ -11,15 +11,9 @@ export const data = [ input: [ { destination: { - Config: { - apiKey: 'dummyApiKey', - appKey: 'O2YARRI15I', - dataCenter: false, - }, - }, - metadata: { - jobId: 1, + Config: { apiKey: 'dummyApiKey', appKey: 'O2YARRI15I', dataCenter: false }, }, + metadata: { jobId: 1, userId: 'u1' }, message: { channel: 'web', context: { @@ -29,26 +23,14 @@ export const data = [ 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', - }, + 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, type: 'track', messageId: '84e26acc-56a5-4835-8233-591137fca468', @@ -62,28 +44,14 @@ export const data = [ 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', - }, + { 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', - }, - }, - integrations: { - All: true, + userLocation: { state: 'CO', zip: '80202' }, }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -114,9 +82,7 @@ export const data = [ body: { JSON: { occured: '2019-10-14T09:03:17.562Z', - user: { - named_user_id: 'testuserId1', - }, + user: { named_user_id: 'testuserId1' }, body: { name: 'product_clicked', properties: { @@ -124,24 +90,12 @@ export const data = [ 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', - }, + { 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', - }, + userLocation: { state: 'CO', zip: '80202' }, }, }, }, @@ -151,19 +105,11 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - apiKey: 'dummyApiKey', - appKey: 'O2YARRI15I', - dataCenter: false, - }, + Config: { apiKey: 'dummyApiKey', appKey: 'O2YARRI15I', dataCenter: false }, }, }, ], @@ -183,15 +129,9 @@ export const data = [ input: [ { destination: { - Config: { - apiKey: 'dummyApiKey', - appKey: 'O2YARRI15I', - dataCenter: false, - }, - }, - metadata: { - jobId: 2, + Config: { apiKey: 'dummyApiKey', appKey: 'O2YARRI15I', dataCenter: false }, }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: '507f191e810c19729de860ea', channel: 'browser', @@ -200,9 +140,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '022bb90c-bbac-11e4-8dfc-aa07a5b093db', receivedAt: '2015-02-23T22:28:55.387Z', sentAt: '2015-02-23T22:28:55.111Z', @@ -255,15 +193,9 @@ export const data = [ params: {}, body: { JSON: { - audience: { - named_user_id: '97980cfea0067', - }, - add: { - rudderstack_integration: ['firstname', 'favcolor'], - }, - remove: { - rudderstack_integration: ['lastname'], - }, + audience: { named_user_id: '97980cfea0067' }, + add: { rudderstack_integration: ['firstname', 'favcolor'] }, + remove: { rudderstack_integration: ['lastname'] }, }, JSON_ARRAY: {}, XML: {}, @@ -291,12 +223,7 @@ export const data = [ value: 'Peter Gibbons', timestamp: '2015-02-23T22:28:55Z', }, - { - action: 'set', - key: 'age', - value: 34, - timestamp: '2015-02-23T22:28:55Z', - }, + { action: 'set', key: 'age', value: 34, timestamp: '2015-02-23T22:28:55Z' }, { action: 'set', key: 'email', @@ -354,19 +281,11 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - apiKey: 'dummyApiKey', - appKey: 'O2YARRI15I', - dataCenter: false, - }, + Config: { apiKey: 'dummyApiKey', appKey: 'O2YARRI15I', dataCenter: false }, }, }, ], @@ -385,15 +304,8 @@ export const data = [ body: { input: [ { - destination: { - Config: { - apiKey: 'dummyApiKey', - dataCenter: false, - }, - }, - metadata: { - jobId: 3, - }, + destination: { Config: { apiKey: 'dummyApiKey', dataCenter: false } }, + metadata: { jobId: 3, userId: 'u1' }, message: { anonymousId: '507f191e810c19729de860ea', channel: 'browser', @@ -402,9 +314,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '022bb90c-bbac-11e4-8dfc-aa07a5b093db', receivedAt: '2015-02-23T22:28:55.387Z', sentAt: '2015-02-23T22:28:55.111Z', @@ -457,15 +367,9 @@ export const data = [ params: {}, body: { JSON: { - audience: { - named_user_id: '97980cfea0067', - }, - add: { - rudderstack_integration_group: ['firstname', 'favcolor'], - }, - remove: { - rudderstack_integration_group: ['lastname'], - }, + audience: { named_user_id: '97980cfea0067' }, + add: { rudderstack_integration_group: ['firstname', 'favcolor'] }, + remove: { rudderstack_integration_group: ['lastname'] }, }, JSON_ARRAY: {}, XML: {}, @@ -493,12 +397,7 @@ export const data = [ value: 'Peter Gibbons', timestamp: '2015-02-23T22:28:55Z', }, - { - action: 'set', - key: 'age', - value: 34, - timestamp: '2015-02-23T22:28:55Z', - }, + { action: 'set', key: 'age', value: 34, timestamp: '2015-02-23T22:28:55Z' }, { action: 'set', key: 'email', @@ -556,19 +455,10 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, - destination: { - Config: { - apiKey: 'dummyApiKey', - dataCenter: false, - }, - }, + destination: { Config: { apiKey: 'dummyApiKey', dataCenter: false } }, }, ], }, diff --git a/test/integrations/destinations/algolia/router/data.ts b/test/integrations/destinations/algolia/router/data.ts index aaf3e224e3..65c74342dc 100644 --- a/test/integrations/destinations/algolia/router/data.ts +++ b/test/integrations/destinations/algolia/router/data.ts @@ -17,10 +17,7 @@ export const data = [ userId: 'test-user-id1', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -56,10 +53,7 @@ export const data = [ custom_date1: '2019-10-14T11:15:53.296Z', custom_flavor: 'chocolate', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.2.1', - }, + 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', @@ -71,27 +65,17 @@ export const data = [ index: 'products', queryId: '43b15df305339e827f0ac0bdc5ebcaa7', products: [ - { - objectId: 'ecommerce-sample-data-919', - position: 7, - }, - { - objectId: '9780439784542', - position: 8, - }, + { 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, - }, + integrations: { All: true }, originalTimestamp: '2021-10-25T09:40:08.879Z', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { ID: '1zzHtStW2ZPlullmz6L7DGnmk9V', Name: 'algolia-dev', @@ -100,9 +84,7 @@ export const data = [ Name: 'ALGOLIA', DisplayName: 'Algolia', Config: { - destConfig: { - defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'], - }, + destConfig: { defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'] }, excludeKeys: [], includeKeys: [], saveDestinationResponse: true, @@ -128,14 +110,8 @@ export const data = [ apiKey: 'apiKey', applicationId: 'appId', eventTypeSettings: [ - { - from: 'product clicked', - to: 'click', - }, - { - from: 'product list viewed', - to: 'view', - }, + { from: 'product clicked', to: 'click' }, + { from: 'product list viewed', to: 'view' }, ], }, Enabled: true, @@ -151,10 +127,7 @@ export const data = [ userId: 'test-user-id1', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -190,10 +163,7 @@ export const data = [ custom_date1: '2019-10-14T11:15:53.296Z', custom_flavor: 'chocolate', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.2.1', - }, + 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', @@ -201,21 +171,14 @@ export const data = [ 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'], - }, + 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, - }, + integrations: { All: true }, originalTimestamp: '2021-10-25T09:40:08.886Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { ID: '1zzHtStW2ZPlullmz6L7DGnmk9V', Name: 'algolia-dev', @@ -224,9 +187,7 @@ export const data = [ Name: 'ALGOLIA', DisplayName: 'Algolia', Config: { - destConfig: { - defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'], - }, + destConfig: { defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'] }, excludeKeys: [], includeKeys: [], saveDestinationResponse: true, @@ -252,14 +213,8 @@ export const data = [ apiKey: 'apiKey-2', applicationId: 'appId-2', eventTypeSettings: [ - { - from: 'product clicked', - to: 'click', - }, - { - from: 'product list viewed', - to: 'view', - }, + { from: 'product clicked', to: 'click' }, + { from: 'product list viewed', to: 'view' }, ], }, Enabled: true, @@ -277,26 +232,14 @@ export const data = [ 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', - }, + 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, page: { path: '/destinations/ometria', referrer: '', @@ -315,27 +258,16 @@ export const data = [ anonymousId: '123456', event: 'product clicked', userId: 'testuserId1', - properties: { - filters: ['field1:hello', 'val1:val2'], - }, - integrations: { - All: true, - }, + properties: { filters: ['field1:hello', 'val1:val2'] }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { Config: { apiKey: 'dummyApiKey', applicationId: 'O2YARRI15I', - eventTypeSettings: [ - { - from: 'product clicked', - to: 'cLick ', - }, - ], + eventTypeSettings: [{ from: 'product clicked', to: 'cLick ' }], }, }, }, @@ -356,10 +288,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://insights.algolia.io/1/events', - headers: { - 'X-Algolia-Application-Id': 'appId', - 'X-Algolia-API-Key': 'apiKey', - }, + headers: { 'X-Algolia-Application-Id': 'appId', 'X-Algolia-API-Key': 'apiKey' }, params: {}, body: { JSON: { @@ -388,12 +317,8 @@ export const data = [ files: {}, }, metadata: [ - { - jobId: 1, - }, - { - jobId: 2, - }, + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, ], batched: true, statusCode: 200, @@ -405,9 +330,7 @@ export const data = [ Name: 'ALGOLIA', DisplayName: 'Algolia', Config: { - destConfig: { - defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'], - }, + destConfig: { defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'] }, excludeKeys: [], includeKeys: [], saveDestinationResponse: true, @@ -433,14 +356,8 @@ export const data = [ apiKey: 'apiKey', applicationId: 'appId', eventTypeSettings: [ - { - from: 'product clicked', - to: 'click', - }, - { - from: 'product list viewed', - to: 'view', - }, + { from: 'product clicked', to: 'click' }, + { from: 'product list viewed', to: 'view' }, ], }, Enabled: true, @@ -454,20 +371,11 @@ export const data = [ Config: { apiKey: 'dummyApiKey', applicationId: 'O2YARRI15I', - eventTypeSettings: [ - { - from: 'product clicked', - to: 'cLick ', - }, - ], + eventTypeSettings: [{ from: 'product clicked', to: 'cLick ' }], }, }, error: 'Missing required value from "properties.index"', - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], statTags: { destType: 'ALGOLIA', errorCategory: 'dataValidation', @@ -501,10 +409,7 @@ export const data = [ userId: 'anonymous', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', version: '2.35.0', @@ -529,14 +434,8 @@ export const data = [ innerWidth: 2514, innerHeight: 567, }, - traits: { - loggedIn: false, - customerId: 'anonymous', - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '2.35.0', - }, + traits: { loggedIn: false, customerId: 'anonymous' }, + library: { name: 'RudderLabs JavaScript SDK', version: '2.35.0' }, campaign: {}, sessionId: 1687204412379, userAgent: @@ -2093,9 +1992,7 @@ export const data = [ receivedAt: '2023-06-19T22:22:32.431Z', request_ip: '104.205.211.60', anonymousId: '7b701174-5998-480e-a4df-b322d0ec9d1c', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2023-06-19T19:54:41.686Z', }, destination: { @@ -2104,35 +2001,17 @@ export const data = [ 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', - }, + { 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, - }, + liveEventsConfig: { eventDelivery: false, eventDeliveryTS: 1687213909459 }, id: 'destId', workspaceId: 'wspId', DestinationDefinition: { @@ -2192,6 +2071,7 @@ export const data = [ workspaceId: 'wspId', destinationId: 'destId', jobId: 12, + userId: 'u1', }, }, ], @@ -2247,10 +2127,7 @@ export const data = [ }, endpoint: 'https://insights.algolia.io/1/events', files: {}, - headers: { - 'X-Algolia-API-Key': 'apiKey', - 'X-Algolia-Application-Id': 'appId', - }, + headers: { 'X-Algolia-API-Key': 'apiKey', 'X-Algolia-Application-Id': 'appId' }, method: 'POST', params: {}, type: 'REST', @@ -2263,26 +2140,11 @@ export const data = [ 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', - }, + { 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: [], }, @@ -2333,10 +2195,7 @@ export const data = [ id: 'destId', isConnectionEnabled: true, isProcessorEnabled: true, - liveEventsConfig: { - eventDelivery: false, - eventDeliveryTS: 1687213909459, - }, + liveEventsConfig: { eventDelivery: false, eventDeliveryTS: 1687213909459 }, name: 'my_algolia', revisionId: 'revisionId1', secretConfig: {}, @@ -2351,6 +2210,7 @@ export const data = [ workspaceId: 'wspId', destinationId: 'destId', jobId: 12, + userId: 'u1', }, ], statusCode: 200, diff --git a/test/integrations/destinations/am/batch/data.ts b/test/integrations/destinations/am/batch/data.ts new file mode 100644 index 0000000000..aa67df06c7 --- /dev/null +++ b/test/integrations/destinations/am/batch/data.ts @@ -0,0 +1,3333 @@ +export const data = [ + { + name: 'am', + description: 'Test 0: ERROR - Both userId and deviceId cannot be undefined', + feature: 'batch', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + destType: 'am', + input: [ + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.eu.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 1, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'EU', + }, + }, + }, + ], + }, + }, + }, + output: { + response: { + status: 200, + body: [ + { + batched: false, + error: 'Both userId and deviceId cannot be undefined', + //TODO fix this + metadata: { + job_id: 1, + userId: 'u1', + }, + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 1', + feature: 'batch', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + destType: 'am', + input: [ + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + user_id: '123', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.eu.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 1, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'EU', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132712347, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 2, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132719505, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 3, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 4, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 5, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + identification: [ + '{"group_type":"Company","group_value":"Comapny-ABC","group_properties":{"KEY_2":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"KEY_3":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"name_trait":"Company","value_trait":"Comapny-ABC"}}', + ], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/groupidentify', + }, + metadata: { + job_id: 6, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + mapping: ['{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3"}'], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/usermap', + }, + metadata: { + job_id: 7, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + ], + }, + }, + }, + output: { + response: { + status: 200, + body: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + user_id: '123', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.eu.amplitude.com/2/httpapi', + }, + metadata: [ + { + job_id: 1, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'EU', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + identification: [ + '{"group_type":"Company","group_value":"Comapny-ABC","group_properties":{"KEY_2":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"KEY_3":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"name_trait":"Company","value_trait":"Comapny-ABC"}}', + ], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/groupidentify', + }, + metadata: [ + { + job_id: 6, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + mapping: ['{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3"}'], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/usermap', + }, + metadata: [ + { + job_id: 7, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132712347, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + { + ip: '[::1]', + time: 1603132719505, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/batch', + }, + metadata: [ + { + job_id: 2, + userId: 'u1', + }, + { + job_id: 3, + userId: 'u1', + }, + { + job_id: 4, + userId: 'u1', + }, + { + job_id: 5, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 2', + feature: 'batch', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + destType: 'am', + input: [ + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + user_id: '123', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 1, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1603132712347, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 2, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1603132719505, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 3, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 4, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 5, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + identification: [ + '{"group_type":"Company","group_value":"Comapny-ABC","group_properties":{"KEY_2":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"KEY_3":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"name_trait":"Company","value_trait":"Comapny-ABC"}}', + ], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/groupidentify', + }, + metadata: { + job_id: 6, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + mapping: ['{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3"}'], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/usermap', + }, + metadata: { + job_id: 7, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + ], + }, + }, + }, + output: { + response: { + status: 200, + body: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + user_id: '123', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: [ + { + job_id: 1, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + identification: [ + '{"group_type":"Company","group_value":"Comapny-ABC","group_properties":{"KEY_2":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"KEY_3":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"name_trait":"Company","value_trait":"Comapny-ABC"}}', + ], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/groupidentify', + }, + metadata: [ + { + job_id: 6, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + mapping: ['{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3"}'], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/usermap', + }, + metadata: [ + { + job_id: 7, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132712347, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + { + ip: '[::1]', + time: 1603132719505, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/batch', + }, + metadata: [ + { + job_id: 2, + userId: 'u1', + }, + { + job_id: 3, + userId: 'u1', + }, + { + job_id: 4, + userId: 'u1', + }, + { + job_id: 5, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 3', + feature: 'batch', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + destType: 'am', + input: [ + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: 'dd4c4493-a3ff-49c9-9071-6cb72e37cd55', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + api_key: 'afasf', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'anon_id', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 12, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:29.633+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + destination: { + ID: '1iuPwfigf4Fk5F5OBF2T3EVTGlY', + Name: 'braze dev', + DestinationDefinition: { + ID: '1XQoHKJnI6Uf67wN20RlvAQSUB9', + Name: 'BRAZE', + DisplayName: 'Braze', + Config: { + destConfig: { + android: ['useNativeSDK'], + defaultConfig: ['appKey', 'dataCenter', 'restApiKey'], + ios: ['useNativeSDK'], + web: ['useNativeSDK'], + }, + excludeKeys: [], + includeKeys: ['appKey', 'dataCenter'], + secretKeys: ['restApiKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + }, + Config: { + appKey: 'asdf', + dataCenter: 'asdfasdf', + residencyServer: 'standard', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: false, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: '69283c05-bbe9-4aba-bb98-3f065d39cf54', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + api_key: 'afasf', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'anon_id', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 13, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:29.914+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + destination: { + ID: '1iuPwfigf4Fk5F5OBF2T3EVTGlY', + Name: 'braze dev', + DestinationDefinition: { + ID: '1XQoHKJnI6Uf67wN20RlvAQSUB9', + Name: 'BRAZE', + DisplayName: 'Braze', + Config: { + destConfig: { + android: ['useNativeSDK'], + defaultConfig: ['appKey', 'dataCenter', 'restApiKey'], + ios: ['useNativeSDK'], + web: ['useNativeSDK'], + }, + excludeKeys: [], + includeKeys: ['appKey', 'dataCenter'], + secretKeys: ['restApiKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + }, + Config: { + appKey: 'asdf', + dataCenter: 'asdfasdf', + residencyServer: 'standard', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: false, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: '39f7a1fa-ff79-4fd1-a329-d637f018de7e', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + api_key: 'afasf', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'anon_id', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 14, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:30.166+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + destination: { + ID: '1iuPwfigf4Fk5F5OBF2T3EVTGlY', + Name: 'braze dev', + DestinationDefinition: { + ID: '1XQoHKJnI6Uf67wN20RlvAQSUB9', + Name: 'BRAZE', + DisplayName: 'Braze', + Config: { + destConfig: { + android: ['useNativeSDK'], + defaultConfig: ['appKey', 'dataCenter', 'restApiKey'], + ios: ['useNativeSDK'], + web: ['useNativeSDK'], + }, + excludeKeys: [], + includeKeys: ['appKey', 'dataCenter'], + secretKeys: ['restApiKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + }, + Config: { + appKey: 'asdf', + dataCenter: 'asdfasdf', + residencyServer: 'standard', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: false, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: '4314aa01-46a3-4f45-b67d-debe4bc01717', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + api_key: 'afasf', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'anon_id', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 15, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:30.424+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + destination: { + ID: '1iuPwfigf4Fk5F5OBF2T3EVTGlY', + Name: 'braze dev', + DestinationDefinition: { + ID: '1XQoHKJnI6Uf67wN20RlvAQSUB9', + Name: 'BRAZE', + DisplayName: 'Braze', + Config: { + destConfig: { + android: ['useNativeSDK'], + defaultConfig: ['appKey', 'dataCenter', 'restApiKey'], + ios: ['useNativeSDK'], + web: ['useNativeSDK'], + }, + excludeKeys: [], + includeKeys: ['appKey', 'dataCenter'], + secretKeys: ['restApiKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + }, + Config: { + appKey: 'asdf', + dataCenter: 'asdfasdf', + residencyServer: 'standard', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: false, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: '4d958d40-2762-44aa-bf83-d47f881bc615', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + api_key: 'afasf', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'anon_id', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 16, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:30.668+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + destination: { + ID: '1iuPwfigf4Fk5F5OBF2T3EVTGlY', + Name: 'braze dev', + DestinationDefinition: { + ID: '1XQoHKJnI6Uf67wN20RlvAQSUB9', + Name: 'BRAZE', + DisplayName: 'Braze', + Config: { + destConfig: { + android: ['useNativeSDK'], + defaultConfig: ['appKey', 'dataCenter', 'restApiKey'], + ios: ['useNativeSDK'], + web: ['useNativeSDK'], + }, + excludeKeys: [], + includeKeys: ['appKey', 'dataCenter'], + secretKeys: ['restApiKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + }, + Config: { + appKey: 'asdf', + dataCenter: 'asdfasdf', + residencyServer: 'standard', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: false, + }, + }, + ], + }, + }, + }, + output: { + response: { + status: 200, + body: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: 'dd4c4493-a3ff-49c9-9071-6cb72e37cd55', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: '69283c05-bbe9-4aba-bb98-3f065d39cf54', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: '39f7a1fa-ff79-4fd1-a329-d637f018de7e', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: '4314aa01-46a3-4f45-b67d-debe4bc01717', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + { + ip: '[::1]', + time: 1565586510909, + carrier: 'Android', + app_name: 'RudderAndroidClient', + language: 'en-US', + device_id: 'anon_id', + library: 'rudderstack', + insert_id: '4d958d40-2762-44aa-bf83-d47f881bc615', + event_type: 'Demo Track', + session_id: -1, + app_version: '1.0', + device_model: 'Android SDK built for x86', + event_properties: { + label: 'Demo Label', + value: 5, + category: 'Demo Category', + }, + device_manufacturer: 'Google', + }, + ], + api_key: 'afasf', + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'anon_id', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/batch', + }, + metadata: [ + { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 12, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:29.633+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 13, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:29.914+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 14, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:30.166+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 15, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:30.424+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + { + userId: '90ca6da0-292e-4e79-9880-f8009e0ae4a3', + jobId: 16, + sourceId: '1fMCVYZboDlYlauh4GFsEo2JU77', + destinationId: '1gXSYmSd7vkfFfJ4vtMCL0i43Lb', + attemptNum: 0, + receivedAt: '2020-10-20T23:47:30.668+05:30', + createdAt: '2020-10-20T18:17:32.465Z', + }, + ], + destination: { + ID: '1iuPwfigf4Fk5F5OBF2T3EVTGlY', + Name: 'braze dev', + DestinationDefinition: { + ID: '1XQoHKJnI6Uf67wN20RlvAQSUB9', + Name: 'BRAZE', + DisplayName: 'Braze', + Config: { + destConfig: { + android: ['useNativeSDK'], + defaultConfig: ['appKey', 'dataCenter', 'restApiKey'], + ios: ['useNativeSDK'], + web: ['useNativeSDK'], + }, + excludeKeys: [], + includeKeys: ['appKey', 'dataCenter'], + secretKeys: ['restApiKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + }, + Config: { + appKey: 'asdf', + dataCenter: 'asdfasdf', + residencyServer: 'standard', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: false, + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 4', + feature: 'batch', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + destType: 'am', + input: [ + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + user_id: '123', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 1, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132712347, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 2, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132719505, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 3, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 4, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 5, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + identification: [ + '{"group_type":"Company","group_value":"Comapny-ABC","group_properties":{"KEY_2":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"KEY_3":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"name_trait":"Company","value_trait":"Comapny-ABC"}}', + ], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/groupidentify', + }, + metadata: { + job_id: 6, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + mapping: ['{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3"}'], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/usermap', + }, + metadata: { + job_id: 7, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + ], + }, + }, + }, + output: { + response: { + status: 200, + body: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + user_id: '123', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: [ + { + job_id: 1, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + identification: [ + '{"group_type":"Company","group_value":"Comapny-ABC","group_properties":{"KEY_2":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"KEY_3":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"name_trait":"Company","value_trait":"Comapny-ABC"}}', + ], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/groupidentify', + }, + metadata: [ + { + job_id: 6, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + mapping: ['{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3"}'], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/usermap', + }, + metadata: [ + { + job_id: 7, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132712347, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + { + ip: '[::1]', + time: 1603132719505, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/batch', + }, + metadata: [ + { + job_id: 2, + userId: 'u1', + }, + { + job_id: 3, + userId: 'u1', + }, + { + job_id: 4, + userId: 'u1', + }, + { + job_id: 5, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 5', + feature: 'batch', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + destType: 'am', + input: [ + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + user_id: '123', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 1, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132712347, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 2, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132719505, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 3, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 4, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: { + job_id: 5, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + identification: [ + '{"group_type":"Company","group_value":"Comapny-ABC","group_properties":{"KEY_2":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"KEY_3":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"name_trait":"Company","value_trait":"Comapny-ABC"}}', + ], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/groupidentify', + }, + metadata: { + job_id: 6, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + message: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + mapping: ['{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3"}'], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/usermap', + }, + metadata: { + job_id: 7, + userId: 'u1', + }, + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + ], + }, + }, + }, + output: { + response: { + status: 200, + body: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '0.0.0.0', + time: 1603132665557, + os_name: '', + user_id: '123', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + name: 'some campaign', + plan: 'Open source', + term: 'keyword', + test: 'other value', + email: 'test@rudderstack.com', + logins: 5, + medium: 'medium', + source: 'google', + content: 'some content', + category: 'SampleIdentify', + createdAt: 1599264000, + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + options: { + min_id_length: 1, + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/2/httpapi', + }, + metadata: [ + { + job_id: 1, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + identification: [ + '{"group_type":"Company","group_value":"Comapny-ABC","group_properties":{"KEY_2":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"KEY_3":{"CHILD_KEY_102":"value_103","CHILD_KEY_92":"value_95"},"name_trait":"Company","value_trait":"Comapny-ABC"}}', + ], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/groupidentify', + }, + metadata: [ + { + job_id: 6, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + mapping: ['{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3"}'], + }, + JSON: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: {}, + version: '1', + endpoint: 'https://api2.amplitude.com/usermap', + }, + metadata: [ + { + job_id: 7, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + ip: '[::1]', + time: 1603132712347, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + { + ip: '[::1]', + time: 1603132719505, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: 'Simple track call', + os_version: '', + session_id: -1, + app_version: '1.1.5', + event_properties: { + key: 'val', + }, + }, + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + { + ip: '[::1]', + time: 1603132726413, + groups: { + Company: 'Comapny-ABC', + }, + os_name: '', + user_id: 'sampleusrRudder3', + app_name: 'RudderLabs JavaScript SDK', + language: 'en-US', + device_id: 'my-anonymous-id-new', + library: 'rudderstack', + event_type: '$identify', + os_version: '', + session_id: -1, + app_version: '1.1.5', + user_properties: { + Company: 'Comapny-ABC', + }, + }, + ], + api_key: '4c7ed7573eb73517ee4c26ed4bde9a85', + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + userId: 'my-anonymous-id-new', + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api2.amplitude.com/batch', + }, + metadata: [ + { + job_id: 2, + userId: 'u1', + }, + { + job_id: 3, + userId: 'u1', + }, + { + job_id: 4, + userId: 'u1', + }, + { + job_id: 5, + userId: 'u1', + }, + ], + destination: { + ID: 'a', + url: 'a', + Config: { + residencyServer: 'standard', + }, + }, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/am/processor/data.ts b/test/integrations/destinations/am/processor/data.ts new file mode 100644 index 0000000000..f28606da0c --- /dev/null +++ b/test/integrations/destinations/am/processor/data.ts @@ -0,0 +1,11330 @@ +export const data = [ + { + name: 'am', + description: 'Test 0: ERROR - Event not present. Please send event field', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + revenue_type: 'Purchased', + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Event not present. Please send event field', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'AM', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 1: ERROR - message type not supported', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'UNSUPPORTED-TYPE', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: {}, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: {}, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + groupTypeTrait: 'email', + apiKey: 'abcde', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'message type not supported', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'AM', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 2: ERROR - No API Key is Found. Please Configure API key from dashbaord', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: {}, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: {}, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'No API Key is Found. Please Configure API key from dashbaord', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'AM', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + revenue_type: 'Purchased', + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + quantity: 1, + revenue: 48, + revenueType: 'Purchased', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue_type: 'Purchased', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + price: 48, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + revenueType: 'Purchased', + price: 48, + quantity: 1, + revenue: 48, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + integrations: { + Amplitude: { fieldsToUnset: ['email'] }, + All: true, + }, + context: { + externalId: [ + { + id: 'lynnanderson@smith.net', + identifierType: 'device_id', + type: 'AM-users', + }, + ], + mappedToDestination: 'true', + 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: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + os_version: 'test os', + }, + 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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + traits: { + anonymousId: '123456', + email: 'test@rudderstack.com', + city: 'kolkata', + address: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + os_version: 'test os', + ip: '0.0.0.0', + age: 26, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + traitsToIncrement: [ + { + traits: '', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: 'test os', + device_model: 'Mac', + platform: 'Web', + device_id: 'lynnanderson@smith.net', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + ip: '0.0.0.0', + user_properties: { + $unset: { + email: '-', + }, + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + device_id: 'lynnanderson@smith.net', + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: -1, + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + metadata: { + jobId: 2, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + externalId: [ + { + id: 'lynnanderson@smith.net', + identifierType: 'device_id', + type: 'AM-users', + }, + ], + mappedToDestination: 'true', + 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: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + os_version: 'test os', + }, + 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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + traits: { + anonymousId: '123456', + email: 'test@rudderstack.com', + city: 'kolkata', + address: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + os_version: 'test os', + ip: '0.0.0.0', + age: 26, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + Amplitude: { fieldsToUnset: ['testObj.unsetField1'] }, + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: 'test os', + device_model: 'Mac', + platform: 'Web', + device_id: 'lynnanderson@smith.net', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + ip: '0.0.0.0', + user_properties: { + $unset: { + 'testObj.unsetField1': '-', + }, + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + device_id: 'lynnanderson@smith.net', + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: -1, + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + metadata: { + jobId: 2, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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: { + 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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '123456', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: -1, + country: 'India', + city: 'kolkata', + ip: '0.0.0.0', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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', + 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', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + request_ip: '1.1.1.1', + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + event_type: 'Viewed ApplicationLoaded Page', + event_properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + name: 'ApplicationLoaded', + }, + insert_id: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + ip: '1.1.1.1', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + user_id: '12345', + time: 1571051718299, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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: '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', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + request_ip: '1.1.1.1', + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + integrations: { + All: false, + Amplitude: { + groups: { + Company: 'ABC', + }, + }, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + event_type: 'Viewed ApplicationLoaded Page', + event_properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + name: 'ApplicationLoaded', + }, + insert_id: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + ip: '1.1.1.1', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + user_id: '12345', + groups: { + Company: 'ABC', + }, + time: 1571051718299, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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: '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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.300Z', + anonymousId: '00000000000000000000000000', + 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: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + event_properties: { + user_actual_role: 'system_admin', + user_actual_id: 12345, + user_time_spent: 50000, + }, + event_type: 'test track event', + user_id: '12345', + time: 1571051718300, + session_id: -1, + ip: '0.0.0.0', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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: { + address: { + city: 'Sealdah', + country: 'India', + postalCode: 700014, + state: 'WB', + street: '', + }, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; 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/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + traits: { + anonymousId: '123456', + email: 'test@rudderstack.com', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + ip: '0.0.0.0', + age: 26, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '123456', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + ip: '0.0.0.0', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: -1, + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + userId: 'ubcdfghi0001', + anonymousId: '123456', + session_id: '1598597129', + context: { + traits: { + device_id: 'adddd0001', + device_os: 'ios', + device_make: 'apple iphone', + app_version: 'v1.0', + timestamp: '2020-08-28 09:00:00', + }, + library: { + name: 'http', + }, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '123456', + user_properties: { + device_id: 'adddd0001', + device_os: 'ios', + device_make: 'apple iphone', + app_version: 'v1.0', + timestamp: '2020-08-28 09:00:00', + }, + event_type: '$identify', + time: 0, + user_id: 'ubcdfghi0001', + session_id: 1598597129, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + userId: 'ubcdfghi0001', + anonymousId: '123456', + session_id: 'user:1598597129', + context: { + traits: { + device_id: 'adddd0001', + device_os: 'ios', + device_make: 'apple iphone', + app_version: 'v1.0', + timestamp: '2020-08-28 09:00:00', + }, + library: { + name: 'http', + }, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '123456', + user_properties: { + device_id: 'adddd0001', + device_os: 'ios', + device_make: 'apple iphone', + app_version: 'v1.0', + timestamp: '2020-08-28 09:00:00', + }, + event_type: '$identify', + time: 0, + user_id: 'ubcdfghi0001', + session_id: 1598597129, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 14', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + userId: 'ubcdfghi0001', + anonymousId: '123456', + session_id: 1598597129, + context: { + traits: { + device_id: 'adddd0001', + device_os: 'ios', + device_make: 'apple iphone', + app_version: 'v1.0', + timestamp: '2020-08-28 09:00:00', + }, + library: { + name: 'http', + }, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '123456', + user_properties: { + device_id: 'adddd0001', + device_os: 'ios', + device_make: 'apple iphone', + app_version: 'v1.0', + timestamp: '2020-08-28 09:00:00', + }, + event_type: '$identify', + time: 0, + user_id: 'ubcdfghi0001', + session_id: 1598597129, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + userId: 'ubcdfghi0001', + anonymousId: '123456', + context: { + traits: { + device_id: 'adddd0001', + device_os: 'ios', + device_make: 'apple iphone', + app_version: 'v1.0', + timestamp: '2020-08-28 09:00:00', + }, + library: { + name: 'http', + }, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '123456', + user_properties: { + device_id: 'adddd0001', + device_os: 'ios', + device_make: 'apple iphone', + app_version: 'v1.0', + timestamp: '2020-08-28 09:00:00', + }, + event_type: '$identify', + time: 0, + user_id: 'ubcdfghi0001', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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.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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + 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, + Amplitude: { + groups: { + group_type: 'Company', + group_value: 'ABC', + }, + }, + }, + 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: 'ABC', + }, + sentAt: '2020-10-20T07:54:58.983Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '85.0.4183.121', + device_model: 'Mac', + platform: 'Web', + device_id: 'my-anonymous-id-new', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.5', + language: 'en-US', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + utm_source: 'google', + utm_medium: 'medium', + utm_term: 'keyword', + utm_content: 'some content', + utm_name: 'some campaign', + utm_test: 'other value', + Company: 'ABC', + }, + event_type: '$identify', + groups: { + Company: 'ABC', + }, + time: 1603180498983, + user_id: 'sampleusrRudder3', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/groupidentify', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + api_key: 'abcde', + identification: ['{"group_type":"Company","group_value":"ABC"}'], + }, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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.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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + 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: 'ABC', + }, + sentAt: '2020-10-20T07:54:58.983Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'name_trait', + groupValueTrait: 'value_trait', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '85.0.4183.121', + device_model: 'Mac', + platform: 'Web', + device_id: 'my-anonymous-id-new', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.5', + language: 'en-US', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + utm_source: 'google', + utm_medium: 'medium', + utm_term: 'keyword', + utm_content: 'some content', + utm_name: 'some campaign', + utm_test: 'other value', + Company: 'ABC', + }, + event_type: '$identify', + groups: { + Company: 'ABC', + }, + time: 1603180498983, + user_id: 'sampleusrRudder3', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/groupidentify', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + api_key: 'abcde', + identification: [ + '{"group_type":"Company","group_value":"ABC","group_properties":{"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":"ABC"}}', + ], + }, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 18: ERROR - Group call parameters are not valid', + 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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + 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: ['ABC'], + }, + sentAt: '2020-10-20T07:54:58.983Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'name_trait', + groupValueTrait: 'value_trait', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Group call parameters are not valid', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'AM', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 19', + 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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'alias', + messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8', + originalTimestamp: '2020-10-20T08:14:28.778Z', + anonymousId: 'my-anonymous-id-new', + userId: 'newUserIdAlias', + integrations: { + All: true, + }, + previousId: 'sampleusrRudder3', + sentAt: '2020-10-20T08:14:28.778Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/usermap', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + api_key: 'abcde', + mapping: [ + '{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3","user_properties":{"initial_referrer":"https://docs.rudderstack.com","initial_referring_domain":"docs.rudderstack.com","utm_source":"google","utm_medium":"medium","utm_term":"keyword","utm_content":"some content","utm_name":"some campaign","utm_test":"other value"}}', + ], + }, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 20', + 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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'alias', + messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8', + originalTimestamp: '2020-10-20T08:14:28.778Z', + anonymousId: 'my-anonymous-id-new', + userId: 'newUserIdAlias', + integrations: { + All: false, + Amplitude: { + unmap: 'sampleusrRudder3', + }, + }, + previousId: 'sampleusrRudder3', + sentAt: '2020-10-20T08:14:28.778Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/usermap', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + api_key: 'abcde', + mapping: [ + '{"user_id":"sampleusrRudder3","user_properties":{"initial_referrer":"https://docs.rudderstack.com","initial_referring_domain":"docs.rudderstack.com","utm_source":"google","utm_medium":"medium","utm_term":"keyword","utm_content":"some content","utm_name":"some campaign","utm_test":"other value"},"unmap":true}', + ], + }, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 21', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + os: { + name: 'Android', + version: '9', + }, + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'Android', + cellular: true, + bluetooth: false, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '9', + device_id: '0572f78fa49c648e', + carrier: 'Android', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 22', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + os: { + name: 'Android', + version: '9', + }, + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '0572f78fa49c648e', + name: 'generic_x86_arm', + type: 'Android', + model: 'AOSP on IA Emulator', + manufacturer: 'Google', + adTrackingEnabled: false, + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'Android', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '9', + device_model: 'AOSP on IA Emulator', + device_manufacturer: 'Google', + platform: 'Android', + device_id: '0572f78fa49c648e', + carrier: 'Android', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + device_brand: 'Google', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 23', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + os: { + name: 'Android', + version: '9', + }, + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '0572f78fa49c648e', + name: 'generic_x86_arm', + type: 'Android', + model: 'AOSP on IA Emulator', + manufacturer: 'Google', + adTrackingEnabled: true, + advertisingId: '44c97318-9040-4361-8bc7-4eb30f665ca8', + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'Android', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '9', + device_model: 'AOSP on IA Emulator', + device_manufacturer: 'Google', + platform: 'Android', + device_id: '0572f78fa49c648e', + carrier: 'Android', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + device_brand: 'Google', + adid: '44c97318-9040-4361-8bc7-4eb30f665ca8', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 24', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + os: { + name: 'iOS', + version: '14.4.1', + }, + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '0572f78fa49c648e', + name: 'iphone_xr_64', + type: 'iOS', + model: 'iPhone XR', + manufacturer: 'Apple', + adTrackingEnabled: false, + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'AT&T', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'iOS', + os_version: '14.4.1', + device_model: 'iPhone XR', + device_manufacturer: 'Apple', + platform: 'iOS', + device_id: '0572f78fa49c648e', + carrier: 'AT&T', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + device_brand: 'Apple', + idfv: '0572f78fa49c648e', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 25', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + os: { + name: 'iOS', + version: '14.4.1', + }, + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '0572f78fa49c648e', + name: 'iphone_xr_64', + type: 'iOS', + model: 'iPhone XR', + manufacturer: 'Apple', + adTrackingEnabled: true, + advertisingId: '1606e649-c97e-4d5f-a2ef-b81dbc66741a', + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'AT&T', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'iOS', + os_version: '14.4.1', + device_model: 'iPhone XR', + device_manufacturer: 'Apple', + platform: 'iOS', + device_id: '0572f78fa49c648e', + carrier: 'AT&T', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + device_brand: 'Apple', + idfa: '1606e649-c97e-4d5f-a2ef-b81dbc66741a', + idfv: '0572f78fa49c648e', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 26', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + userId: 'identified user id', + anonymousId: 'anon-id-new', + event: 'Screen View', + properties: { + prop1: '5', + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: 'anon-id-new', + event_properties: { + prop1: '5', + name: 'Screen View', + }, + user_properties: {}, + event_type: 'Viewed Screen View Screen', + user_id: 'identified user id', + time: 1580602989544, + session_id: -1, + ip: '14.5.67.21', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anon-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 27', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: false, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + revenueType: 'Purchased', + price: 25, + quantity: 2, + revenue: 48, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + event_type: 'Product Purchased', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-1', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + event_type: 'Product Purchased', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 28', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + revenueType: 'Purchased', + price: 25, + quantity: 2, + revenue: 48, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 29', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: false, + trackRevenuePerProduct: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + event_type: 'Product Purchased', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-1', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + }, + productId: '507f1f77bcf86cd799439011', + revenueType: 'Purchased', + price: 19, + quantity: 1, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + event_type: 'Product Purchased', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + sku: '46493-32', + name: 'Uno Card Game', + category: 'Games', + }, + productId: '505bd76785ebb509fc183733', + revenueType: 'Purchased', + price: 3, + quantity: 2, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 30', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + event_type: 'Product Purchased', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-1', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + }, + productId: '507f1f77bcf86cd799439011', + revenueType: 'Purchased', + price: 19, + quantity: 1, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + event_type: 'Product Purchased', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9-2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + sku: '46493-32', + name: 'Uno Card Game', + category: 'Games', + }, + productId: '505bd76785ebb509fc183733', + revenueType: 'Purchased', + price: 3, + quantity: 2, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 31', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + revenueType: 'Purchased', + price: 25, + quantity: 2, + revenue: 48, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 32', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + revenueType: 'Purchased', + price: 25, + quantity: 2, + revenue: 48, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 33', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: false, + trackRevenuePerProduct: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + revenueType: 'Purchased', + price: 25, + quantity: 2, + revenue: 48, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 34', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: false, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: '50be5c78-6c3f-4b60-be84-97805a316fb1', + insert_id: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + revenueType: 'Purchased', + price: 25, + quantity: 2, + revenue: 48, + time: 1597383030118, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 35', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2020-11-20T06:18:22.342Z', + userId: 'User_111', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.8', + namespace: 'com.rudderlabs.javascript', + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + locale: 'en-GB', + screen: { + density: 2.5, + }, + traits: { + city: 'Durgapur', + name: 'Manashi', + phone: '990099009900', + friends: 3, + age: 12, + subjects: 5, + experience: 2, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.8', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36', + }, + rudderId: '7e00bf3d-5357-4448-886d-f8fc8abf932d', + messageId: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + anonymousId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + integrations: { + All: true, + }, + originalTimestamp: '2020-11-20T06:18:22.342Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + traitsToIncrement: [ + { + traits: 'age', + }, + { + traits: 'friends', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '86.0.4240.198', + device_model: 'Mac', + platform: 'Web', + device_id: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.8', + language: 'en-GB', + insert_id: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + name: 'Manashi', + phone: '990099009900', + subjects: 5, + experience: 2, + $add: { + age: 12, + friends: 3, + }, + }, + event_type: '$identify', + time: 1605853102342, + user_id: 'User_111', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 36', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2020-11-20T06:18:22.342Z', + userId: 'User_111', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.8', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://localhost:1111/RudderAmplitude.html', + path: '/RudderAmplitude.html', + title: 'Amplitude Testing By Rudder', + search: '', + referrer: 'http://localhost:1111/', + }, + locale: 'en-GB', + screen: { + density: 2.5, + }, + traits: { + city: 'Durgapur', + name: 'Manashi', + phone: '990099009900', + friends: 3, + age: 12, + subjects: 5, + experience: 2, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.8', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36', + }, + rudderId: '7e00bf3d-5357-4448-886d-f8fc8abf932d', + messageId: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + anonymousId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + integrations: { + All: true, + }, + originalTimestamp: '2020-11-20T06:18:22.342Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + traitsToSetOnce: [ + { + traits: 'subjects', + }, + { + traits: '', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '86.0.4240.198', + device_model: 'Mac', + platform: 'Web', + device_id: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.8', + language: 'en-GB', + insert_id: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + user_properties: { + name: 'Manashi', + phone: '990099009900', + friends: 3, + age: 12, + experience: 2, + $setOnce: { + subjects: 5, + }, + }, + event_type: '$identify', + time: 1605853102342, + user_id: 'User_111', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 37', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2020-11-20T06:18:22.342Z', + userId: 'User_111', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.8', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://localhost:1111/RudderAmplitude.html', + path: '/RudderAmplitude.html', + title: 'Amplitude Testing By Rudder', + search: '', + referrer: 'http://localhost:1111/', + }, + locale: 'en-GB', + screen: { + density: 2.5, + }, + traits: { + city: 'Durgapur', + name: 'Manashi', + phone: '990099009900', + friends: 3, + age: 12, + subjects: 5, + experience: 2, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.8', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36', + }, + rudderId: '7e00bf3d-5357-4448-886d-f8fc8abf932d', + messageId: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + anonymousId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + integrations: { + All: true, + }, + originalTimestamp: '2020-11-20T06:18:22.342Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + traitsToAppend: [ + { + traits: 'name', + }, + { + traits: '', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '86.0.4240.198', + device_model: 'Mac', + platform: 'Web', + device_id: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.8', + language: 'en-GB', + insert_id: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + user_properties: { + phone: '990099009900', + friends: 3, + age: 12, + subjects: 5, + experience: 2, + $append: { + name: 'Manashi', + }, + }, + event_type: '$identify', + time: 1605853102342, + user_id: 'User_111', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 38', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2020-11-20T06:18:22.342Z', + userId: 'User_111', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.8', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://localhost:1111/RudderAmplitude.html', + path: '/RudderAmplitude.html', + title: 'Amplitude Testing By Rudder', + search: '', + referrer: 'http://localhost:1111/', + }, + locale: 'en-GB', + screen: { + density: 2.5, + }, + traits: { + city: 'Durgapur', + name: 'Manashi', + phone: '990099009900', + friends: 3, + age: 12, + subjects: 5, + experience: 2, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.8', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36', + }, + rudderId: '7e00bf3d-5357-4448-886d-f8fc8abf932d', + messageId: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + anonymousId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + integrations: { + All: true, + }, + originalTimestamp: '2020-11-20T06:18:22.342Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + traitsToPrepend: [ + { + traits: 'experience', + }, + { + traits: '', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '86.0.4240.198', + device_model: 'Mac', + platform: 'Web', + device_id: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.8', + language: 'en-GB', + insert_id: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + user_properties: { + name: 'Manashi', + phone: '990099009900', + friends: 3, + age: 12, + subjects: 5, + $prepend: { + experience: 2, + }, + }, + event_type: '$identify', + time: 1605853102342, + user_id: 'User_111', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 39', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2020-11-20T06:18:22.342Z', + userId: 'User_111', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.8', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://localhost:1111/RudderAmplitude.html', + path: '/RudderAmplitude.html', + title: 'Amplitude Testing By Rudder', + search: '', + referrer: 'http://localhost:1111/', + }, + locale: 'en-GB', + screen: { + density: 2.5, + }, + traits: { + city: 'Durgapur', + name: 'Manashi', + phone: '990099009900', + friends: 3, + age: 12, + subjects: 5, + experience: 2, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.8', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36', + }, + rudderId: '7e00bf3d-5357-4448-886d-f8fc8abf932d', + messageId: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + anonymousId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + integrations: { + All: true, + }, + originalTimestamp: '2020-11-20T06:18:22.342Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + traitsToIncrement: [ + { + traits: 'age', + }, + { + traits: 'friends', + }, + ], + traitsToSetOnce: [ + { + traits: 'subjects', + }, + { + traits: '', + }, + ], + traitsToAppend: [ + { + traits: 'name', + }, + { + traits: '', + }, + ], + traitsToPrepend: [ + { + traits: 'experience', + }, + { + traits: '', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '86.0.4240.198', + device_model: 'Mac', + platform: 'Web', + device_id: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.8', + language: 'en-GB', + insert_id: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + user_properties: { + phone: '990099009900', + $add: { + age: 12, + friends: 3, + }, + $setOnce: { + subjects: 5, + }, + $append: { + name: 'Manashi', + }, + $prepend: { + experience: 2, + }, + }, + event_type: '$identify', + time: 1605853102342, + user_id: 'User_111', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 40', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + userId: 'userID123', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + location: { + country: 'United States', + city: 'San Francisco', + region: 'California', + latitude: '37.7672319', + longitude: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + messageId: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + trackProductsOnce: false, + trackRevenuePerProduct: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + device_id: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + user_id: 'userID123', + time: 1597383030118, + session_id: -1, + region: 'California', + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'United States', + city: 'San Francisco', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + device_id: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + event_type: 'Product Purchased', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2-1', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + }, + user_id: 'userID123', + productId: '507f1f77bcf86cd799439011', + revenueType: 'Purchased', + price: 19, + quantity: 1, + time: 1597383030118, + session_id: -1, + region: 'California', + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'United States', + city: 'San Francisco', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + device_id: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + event_type: 'Product Purchased', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2-2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + sku: '46493-32', + name: 'Uno Card Game', + category: 'Games', + }, + user_id: 'userID123', + productId: '505bd76785ebb509fc183733', + revenueType: 'Purchased', + price: 3, + quantity: 2, + time: 1597383030118, + session_id: -1, + region: 'California', + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'United States', + city: 'San Francisco', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 41', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + userId: 'userID123', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + location: { + latitude: '37.7672319', + longitude: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + messageId: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + device_id: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + user_id: 'userID123', + revenueType: 'Purchased', + price: 25, + quantity: 2, + revenue: 48, + time: 1597383030118, + session_id: -1, + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 42', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'App_Opened', + sentAt: '2021-11-17T19:13:52.106Z', + userId: 'ab419c3a-47ce-11ec-82ac-16a1bb813a59', + channel: 'mobile', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + location: { + country: 'United States', + city: 'San Francisco', + latitude: '37.7672319', + longitude: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + messageId: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + externalID: '1637170658229-3961832492194264209', + }, + integrations: { + All: true, + }, + originalTimestamp: '2021-11-17T19:13:51.143Z', + }, + destination: { + Config: { + apiKey: 'abcde', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + externalID: '1637170658229-3961832492194264209', + }, + event_type: 'App_Opened', + user_id: 'ab419c3a-47ce-11ec-82ac-16a1bb813a59', + device_brand: 'samsung', + time: 1597383030118, + session_id: -1, + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'United States', + city: 'San Francisco', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 43', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2020-11-20T06:18:22.342Z', + userId: 'User_111', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.8', + namespace: 'com.rudderlabs.javascript', + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + locale: 'en-GB', + screen: { + density: 2.5, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.8', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36', + }, + rudderId: '7e00bf3d-5357-4448-886d-f8fc8abf932d', + messageId: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + anonymousId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + integrations: { + All: true, + }, + originalTimestamp: '2020-11-20T06:18:22.342Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + traitsToIncrement: [ + { + traits: 'age', + }, + { + traits: 'friends', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '86.0.4240.198', + device_model: 'Mac', + platform: 'Web', + device_id: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.8', + language: 'en-GB', + insert_id: '6f08cc45-95c3-40c1-90f2-2f44a92947ef', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + event_type: '$identify', + time: 1605853102342, + user_id: 'User_111', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '2f8b0ba7-d76e-4b91-9577-d1b6ebd68946', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 44', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-08-14T05:30:30.118Z', + userId: 'userID123', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + location: { + latitude: '37.7672319', + longitude: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + messageId: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 0, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + integrations: { + S3: false, + All: true, + }, + }, + destination: { + Config: { + apiKey: 'abcde', + trackProductsOnce: true, + trackRevenuePerProduct: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + device_id: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 0, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + event_type: 'Order Completed', + user_id: 'userID123', + time: 1597383030118, + session_id: -1, + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + device_id: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + event_type: 'Product Purchased', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2-1', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + }, + user_id: 'userID123', + productId: '507f1f77bcf86cd799439011', + revenueType: 'Purchased', + price: 19, + quantity: 1, + time: 1597383030118, + session_id: -1, + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + device_id: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + event_type: 'Product Purchased', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2-2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + sku: '46493-32', + name: 'Uno Card Game', + category: 'Games', + }, + user_id: 'userID123', + productId: '505bd76785ebb509fc183733', + revenueType: 'Purchased', + price: 3, + quantity: 2, + time: 1597383030118, + session_id: -1, + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 45', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + event: 'Home', + sentAt: '2021-12-09T14:55:17.074Z', + userId: '9e187bff-2867-11ec-82ac-02cdd434d6bf', + channel: 'mobile', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + location: { + country: 'United States', + city: 'San Francisco', + region: 'California', + latitude: '37.7672319', + longitude: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + rudderId: '004670a6-4559-4f2b-aa2a-f35cf81a9423', + messageId: '1639061715808-a934f1c2-7b55-4e78-bd4d-df209c30c8a1', + timestamp: '2021-12-09T14:55:15.914Z', + properties: { + name: 'Home', + externalID: '1637763064335-7225034711957140329', + }, + receivedAt: '2021-12-09T14:55:17.180Z', + request_ip: '186.54.216.75', + anonymousId: '066a37dc92b16284', + integrations: { + All: true, + }, + originalTimestamp: '2021-12-09T14:55:15.808Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + device_id: '066a37dc92b16284', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + platform: 'Android', + language: 'en-US', + event_properties: { + name: 'Home', + externalID: '1637763064335-7225034711957140329', + }, + insert_id: '1639061715808-a934f1c2-7b55-4e78-bd4d-df209c30c8a1', + ip: '186.54.216.75', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_type: 'Viewed Home Screen', + user_id: '9e187bff-2867-11ec-82ac-02cdd434d6bf', + device_brand: 'samsung', + time: 1639061715914, + session_id: -1, + region: 'California', + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'United States', + city: 'San Francisco', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '066a37dc92b16284', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 46', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + event: 'Home', + sentAt: '2021-12-09T14:55:17.074Z', + userId: 'abcdef123456cf', + channel: 'mobile', + context: { + source: 'test', + traits: { + anonymousId: '50be5c79-6c3f-4b60-be84-97805a32aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + rudderId: '004670a6-4559-4f2b-aa1a-f12cf81a9423', + messageId: '1639061715808-a934f1c2-7b55-5e78-bd4d-df209c31d8a2', + timestamp: '2021-12-09T14:55:15.914Z', + properties: { + name: 'Home', + externalID: '1637763064336-7225034711957140329', + }, + receivedAt: '2021-12-09T14:55:17.180Z', + request_ip: '186.54.216.75', + anonymousId: '066a37dc92b16284', + integrations: { + All: true, + }, + originalTimestamp: '2021-12-09T14:55:15.808Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + device_id: '066a37dc92b16284', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + platform: 'Android', + language: 'en-US', + event_properties: { + name: 'Home', + externalID: '1637763064336-7225034711957140329', + }, + insert_id: '1639061715808-a934f1c2-7b55-5e78-bd4d-df209c31d8a2', + ip: '186.54.216.75', + user_properties: { + anonymousId: '50be5c79-6c3f-4b60-be84-97805a32aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_type: 'Viewed Home Screen', + user_id: 'abcdef123456cf', + device_brand: 'samsung', + time: 1639061715914, + session_id: -1, + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '066a37dc92b16284', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 47', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '0572f78fa49c648e', + type: 'watchos', + manufacturer: 'Apple', + adTrackingEnabled: true, + advertisingId: '1606e649-c97e-4d5f-a2ef-b81dbc66741a', + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'AT&T', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_manufacturer: 'Apple', + platform: 'watchos', + device_id: '0572f78fa49c648e', + carrier: 'AT&T', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + device_brand: 'Apple', + idfa: '1606e649-c97e-4d5f-a2ef-b81dbc66741a', + idfv: '0572f78fa49c648e', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 48', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '0572f78fa49c648e', + type: 'ipados', + manufacturer: 'Apple', + adTrackingEnabled: true, + advertisingId: '1606e649-c97e-4d5f-a2ef-b81dbc66741a', + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'AT&T', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_manufacturer: 'Apple', + platform: 'ipados', + device_id: '0572f78fa49c648e', + carrier: 'AT&T', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + device_brand: 'Apple', + idfa: '1606e649-c97e-4d5f-a2ef-b81dbc66741a', + idfv: '0572f78fa49c648e', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 49', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '0572f78fa49c648e', + type: 'tvos', + manufacturer: 'Apple', + adTrackingEnabled: true, + advertisingId: '1606e649-c97e-4d5f-a2ef-b81dbc66741a', + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'AT&T', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_manufacturer: 'Apple', + platform: 'tvos', + device_id: '0572f78fa49c648e', + carrier: 'AT&T', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + device_brand: 'Apple', + idfa: '1606e649-c97e-4d5f-a2ef-b81dbc66741a', + idfv: '0572f78fa49c648e', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 50', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + device: { + brand: 'testBrand', + manufacturer: 'testManufacturer', + }, + 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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + mapDeviceBrand: true, + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + device_manufacturer: 'testManufacturer', + platform: 'Web', + device_brand: 'testBrand', + device_id: '123456', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: -1, + country: 'India', + city: 'kolkata', + ip: '0.0.0.0', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 51', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Sample track event BEFORE IDENTIFY1**', + sentAt: '2020-09-17T15:07:13.171Z', + userId: '0572f78fa49c648e', + channel: 'mobile', + context: { + device: { + brand: 'testBrand', + manufacturer: 'testManufacturer', + }, + os: { + name: 'Android', + version: '9', + }, + app: { + name: 'AMTestProject', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + locale: 'en-US', + screen: { + width: 1080, + height: 2088, + density: 440, + }, + traits: { + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.4', + }, + network: { + wifi: true, + carrier: 'Android', + cellular: true, + bluetooth: false, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + messageId: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + anonymousId: '0572f78fa49c648e', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-17T15:07:03.515Z', + }, + destination: { + Config: { + mapDeviceBrand: true, + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '9', + device_manufacturer: 'testManufacturer', + device_brand: 'testBrand', + device_id: '0572f78fa49c648e', + carrier: 'Android', + app_name: 'AMTestProject', + app_version: '1.0', + language: 'en-US', + insert_id: '1600355223510-93e866a7-dc74-4256-a5f4-a41f54532466', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + id: '0572f78fa49c648e', + userId: '0572f78fa49c648e', + address: {}, + company: {}, + anonymousId: '0572f78fa49c648e', + }, + event_type: 'Sample track event BEFORE IDENTIFY1**', + user_id: '0572f78fa49c648e', + time: 1600355223515, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '0572f78fa49c648e', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 52', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + userId: 'identified user id', + anonymousId: 'anon-id-new', + event: 'Screen View', + channel: 'web', + properties: { + prop1: '5', + }, + context: { + ip: '14.5.67.21', + device: { + brand: 'testBrand', + manufacturer: 'testManufacturer', + }, + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + apiKey: 'abcde', + mapDeviceBrand: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_manufacturer: 'testManufacturer', + device_brand: 'testBrand', + device_id: 'anon-id-new', + event_properties: { + prop1: '5', + name: 'Screen View', + }, + user_properties: {}, + event_type: 'Viewed Screen View Screen', + user_id: 'identified user id', + time: 1580602989544, + session_id: -1, + ip: '14.5.67.21', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anon-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 53', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + externalId: [ + { + id: 'lynnanderson@smith.net', + identifierType: 'device_id', + type: 'AM-users', + }, + ], + mappedToDestination: 'true', + 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: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + os_version: 'test os', + }, + 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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + traits: { + anonymousId: '123456', + email: 'test@rudderstack.com', + city: 'kolkata', + address: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + os_version: 'test os', + ip: '0.0.0.0', + age: 26, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + residencyServer: 'EU', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.eu.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: 'test os', + device_model: 'Mac', + platform: 'Web', + device_id: 'lynnanderson@smith.net', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + ip: '0.0.0.0', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + device_id: 'lynnanderson@smith.net', + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: -1, + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + metadata: { + jobId: 2, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 54', + 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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + 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: 'ABC', + }, + sentAt: '2020-10-20T07:54:58.983Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'name_trait', + groupValueTrait: 'value_trait', + residencyServer: 'EU', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.eu.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '85.0.4183.121', + device_model: 'Mac', + platform: 'Web', + device_id: 'my-anonymous-id-new', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.5', + language: 'en-US', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + utm_source: 'google', + utm_medium: 'medium', + utm_term: 'keyword', + utm_content: 'some content', + utm_name: 'some campaign', + utm_test: 'other value', + Company: 'ABC', + }, + event_type: '$identify', + groups: { + Company: 'ABC', + }, + time: 1603180498983, + user_id: 'sampleusrRudder3', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.eu.amplitude.com/groupidentify', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + api_key: 'abcde', + identification: [ + '{"group_type":"Company","group_value":"ABC","group_properties":{"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":"ABC"}}', + ], + }, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 55', + 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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'alias', + messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8', + originalTimestamp: '2020-10-20T08:14:28.778Z', + anonymousId: 'my-anonymous-id-new', + userId: 'newUserIdAlias', + integrations: { + All: true, + }, + previousId: 'sampleusrRudder3', + sentAt: '2020-10-20T08:14:28.778Z', + }, + destination: { + Config: { + apiKey: 'abcde', + residencyServer: 'EU', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.eu.amplitude.com/usermap', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + api_key: 'abcde', + mapping: [ + '{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3","user_properties":{"initial_referrer":"https://docs.rudderstack.com","initial_referring_domain":"docs.rudderstack.com","utm_source":"google","utm_medium":"medium","utm_term":"keyword","utm_content":"some content","utm_name":"some campaign","utm_test":"other value"}}', + ], + }, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 56', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'App_Opened', + sentAt: '2021-11-17T19:13:52.106Z', + userId: 'ab419c3a-47ce-11ec-82ac-16a1bb813a59', + channel: 'mobile', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + location: { + country: 'United States', + city: 'San Francisco', + latitude: '37.7672319', + longitude: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + messageId: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + externalID: '1637170658229-3961832492194264209', + }, + integrations: { + All: true, + Amplitude: { + event_id: 3, + }, + }, + originalTimestamp: '2021-11-17T19:13:51.143Z', + }, + destination: { + Config: { + apiKey: 'abcde', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + event_id: 3, + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + externalID: '1637170658229-3961832492194264209', + }, + event_type: 'App_Opened', + user_id: 'ab419c3a-47ce-11ec-82ac-16a1bb813a59', + device_brand: 'samsung', + time: 1597383030118, + session_id: -1, + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'United States', + city: 'San Francisco', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 57', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'App_Opened', + sentAt: '2021-11-17T19:13:52.106Z', + userId: 'ab419c3a-47ce-11ec-82ac-16a1bb813a59', + channel: 'mobile', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + location: { + country: 'United States', + city: 'San Francisco', + latitude: '37.7672319', + longitude: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + messageId: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + externalID: '1637170658229-3961832492194264209', + }, + integrations: { + All: true, + Amplitude: { + event_id: 0, + }, + }, + originalTimestamp: '2021-11-17T19:13:51.143Z', + }, + destination: { + Config: { + apiKey: 'abcde', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + event_id: 0, + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + externalID: '1637170658229-3961832492194264209', + }, + event_type: 'App_Opened', + user_id: 'ab419c3a-47ce-11ec-82ac-16a1bb813a59', + device_brand: 'samsung', + time: 1597383030118, + session_id: -1, + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'United States', + city: 'San Francisco', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 58', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'App_Opened', + sentAt: '2021-11-17T19:13:52.106Z', + userId: 'ab419c3a-47ce-11ec-82ac-16a1bb813a59', + channel: 'mobile', + context: { + source: 'test', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + locale: 'en-US', + network: { + carrier: 'T-Mobile', + }, + location: { + country: 'United States', + city: 'San Francisco', + latitude: '37.7672319', + longitude: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + }, + library: { + name: 'rudder-sdk-ruby-sync', + version: '1.0.6', + }, + os: { + name: 'Android', + version: '11', + }, + app: { + version: '2.6.0 v3', + }, + device: { + type: 'Android', + model: 'SM-A025M', + manufacturer: 'samsung', + }, + }, + messageId: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + externalID: '1637170658229-3961832492194264209', + }, + integrations: { + All: true, + Amplitude: { + event_id: '0', + }, + }, + originalTimestamp: '2021-11-17T19:13:51.143Z', + }, + destination: { + Config: { + apiKey: 'abcde', + trackProductsOnce: true, + trackRevenuePerProduct: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '11', + device_model: 'SM-A025M', + device_manufacturer: 'samsung', + platform: 'Android', + carrier: 'T-Mobile', + app_version: '2.6.0 v3', + language: 'en-US', + insert_id: '7208abb6-2c4e-45bb-bf5b-aa426f3593a2', + user_properties: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a31aaa1', + address: { + postalCode: 712136, + state: 'WB', + street: '', + }, + }, + event_properties: { + externalID: '1637170658229-3961832492194264209', + }, + event_type: 'App_Opened', + user_id: 'ab419c3a-47ce-11ec-82ac-16a1bb813a59', + device_brand: 'samsung', + time: 1597383030118, + session_id: -1, + location_lat: '37.7672319', + location_lng: '-122.4021353', + dma: 'San Francisco-Oakland-San Jose, CA', + country: 'United States', + city: 'San Francisco', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 59', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + externalId: [ + { + id: 'lynnanderson@smith.net', + identifierType: 'device_id', + type: 'AM-users', + }, + ], + mappedToDestination: 'true', + 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: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + os_version: 'test os', + }, + 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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + traits: { + anonymousId: '123456', + email: 'test@rudderstack.com', + city: 'kolkata', + address: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + os_version: 'test os', + ip: '0.0.0.0', + age: 26, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + All: true, + Amplitude: { + event_id: 6, + }, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: 'test os', + device_model: 'Mac', + platform: 'Web', + event_id: 6, + device_id: 'lynnanderson@smith.net', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + ip: '0.0.0.0', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + device_id: 'lynnanderson@smith.net', + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: -1, + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + metadata: { + jobId: 2, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 60', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + externalId: [ + { + id: 'lynnanderson@smith.net', + identifierType: 'device_id', + type: 'AM-users', + }, + ], + mappedToDestination: 'true', + 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: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + os_version: 'test os', + }, + 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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + traits: { + anonymousId: '123456', + email: 'test@rudderstack.com', + city: 'kolkata', + address: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + os_version: 'test os', + ip: '0.0.0.0', + age: 26, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + All: true, + Amplitude: { + event_id: 6, + }, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'email', + groupValueTrait: 'age', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: 'test os', + device_model: 'Mac', + platform: 'Web', + event_id: 6, + device_id: 'lynnanderson@smith.net', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + ip: '0.0.0.0', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + device_id: 'lynnanderson@smith.net', + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: -1, + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + metadata: { + jobId: 2, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 61', + 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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + 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, + Amplitude: { + event_id: 3, + }, + }, + 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: 'ABC', + }, + sentAt: '2020-10-20T07:54:58.983Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'name_trait', + groupValueTrait: 'value_trait', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '85.0.4183.121', + device_model: 'Mac', + platform: 'Web', + event_id: 3, + device_id: 'my-anonymous-id-new', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.1.5', + language: 'en-US', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + utm_source: 'google', + utm_medium: 'medium', + utm_term: 'keyword', + utm_content: 'some content', + utm_name: 'some campaign', + utm_test: 'other value', + Company: 'ABC', + }, + event_type: '$identify', + groups: { + Company: 'ABC', + }, + time: 1603180498983, + user_id: 'sampleusrRudder3', + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/groupidentify', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + api_key: 'abcde', + identification: [ + '{"group_type":"Company","group_value":"ABC","group_properties":{"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":"ABC"}}', + ], + }, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 62', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + userId: 'identified user id', + anonymousId: 'anon-id-new', + event: 'Screen View', + properties: { + prop1: '5', + event_id: 7, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + integrations: { + All: true, + Amplitude: { + event_id: 7, + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + event_id: 7, + device_id: 'anon-id-new', + event_properties: { + prop1: '5', + event_id: 7, + name: 'Screen View', + }, + user_properties: {}, + event_type: 'Viewed Screen View Screen', + user_id: 'identified user id', + time: 1580602989544, + session_id: -1, + ip: '14.5.67.21', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anon-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + request_ip: '1.1.1.1', + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + integrations: { + All: true, + Amplitude: { + event_id: 2, + }, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + event_type: 'Viewed ApplicationLoaded Page', + event_properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + name: 'ApplicationLoaded', + }, + insert_id: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + ip: '1.1.1.1', + event_id: 2, + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + user_id: '12345', + time: 1571051718299, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + 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.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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'alias', + messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8', + originalTimestamp: '2020-10-20T08:14:28.778Z', + anonymousId: 'my-anonymous-id-new', + userId: 'newUserIdAlias', + integrations: { + All: true, + Amplitude: { + event_id: 67, + }, + }, + previousId: 'sampleusrRudder3', + sentAt: '2020-10-20T08:14:28.778Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/usermap', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + api_key: 'abcde', + mapping: [ + '{"global_user_id":"newUserIdAlias","user_id":"sampleusrRudder3","event_id":67,"user_properties":{"initial_referrer":"https://docs.rudderstack.com","initial_referring_domain":"docs.rudderstack.com","utm_source":"google","utm_medium":"medium","utm_term":"keyword","utm_content":"some content","utm_name":"some campaign","utm_test":"other value"}}', + ], + }, + }, + files: {}, + userId: 'my-anonymous-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 65', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '5d205961641ee6c5', + channel: 'mobile', + context: { + app: { + build: '6', + name: 'Sample Kotlin', + namespace: 'com.example.testapp1mg', + version: '1.2', + }, + device: { + id: '5d205961641ee6c5', + manufacturer: 'Google', + model: 'Android SDK built for x86', + name: 'generic_x86', + type: 'Android', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.7.0', + }, + locale: 'en-US', + network: { + carrier: 'Android', + bluetooth: false, + cellular: true, + wifi: true, + }, + os: { + name: 'Android', + version: '7.1.1', + }, + screen: { + density: 440, + height: 2148, + width: 1080, + }, + sessionId: '1662393792', + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '5d205961641ee6c5', + id: 'User Android', + userId: 'User Android', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 7.1.1; Android SDK built for x86 Build/NYC)', + }, + event: 'Screen event', + integrations: { + All: true, + }, + messageId: '1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f', + properties: { + name: 'Screen event', + }, + originalTimestamp: '2022-09-05T16:04:43.250Z', + type: 'screen', + userId: 'User Android', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '7.1.1', + device_model: 'Android SDK built for x86', + device_manufacturer: 'Google', + device_id: '5d205961641ee6c5', + carrier: 'Android', + app_name: 'Sample Kotlin', + app_version: '1.2', + platform: 'Android', + language: 'en-US', + event_properties: { + name: 'Screen event', + }, + insert_id: '1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f', + user_properties: { + anonymousId: '5d205961641ee6c5', + id: 'User Android', + userId: 'User Android', + }, + event_type: 'Viewed Screen event Screen', + user_id: 'User Android', + device_brand: 'Google', + time: 1662393883250, + session_id: 1662393792, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '5d205961641ee6c5', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 66', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '5d205961641ee6c5', + channel: 'mobile', + context: { + app: { + build: '6', + name: 'Sample Kotlin', + namespace: 'com.example.testapp1mg', + version: '1.2', + }, + device: { + id: '5d205961641ee6c5', + manufacturer: 'Google', + model: 'Android SDK built for x86', + name: 'generic_x86', + type: 'Android', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.7.0', + }, + locale: 'en-US', + network: { + carrier: 'Android', + bluetooth: false, + cellular: true, + wifi: true, + }, + os: { + name: 'Android', + version: '7.1.1', + }, + screen: { + density: 440, + height: 2148, + width: 1080, + }, + sessionId: '1662393792', + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '5d205961641ee6c5', + id: 'User Android', + userId: 'User Android', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 7.1.1; Android SDK built for x86 Build/NYC)', + }, + integrations: { + All: true, + }, + messageId: '1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f', + properties: {}, + originalTimestamp: '2022-09-05T16:04:43.250Z', + type: 'screen', + userId: 'User Android', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '7.1.1', + device_model: 'Android SDK built for x86', + device_manufacturer: 'Google', + device_id: '5d205961641ee6c5', + carrier: 'Android', + app_name: 'Sample Kotlin', + app_version: '1.2', + platform: 'Android', + language: 'en-US', + event_properties: {}, + insert_id: '1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f', + user_properties: { + anonymousId: '5d205961641ee6c5', + id: 'User Android', + userId: 'User Android', + }, + event_type: 'Viewed Screen', + user_id: 'User Android', + device_brand: 'Google', + time: 1662393883250, + session_id: 1662393792, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '5d205961641ee6c5', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 67', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + externalId: [ + { + id: 'lynnanderson@smith.net', + identifierType: 'device_id', + type: 'AM-users', + }, + ], + mappedToDestination: 'true', + 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: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + os_version: 'test os', + }, + 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, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + sessionId: '1662393792', + }, + traits: { + anonymousId: '123456', + email: 'test@rudderstack.com', + city: 'kolkata', + address: { + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + os_version: 'test os', + ip: '0.0.0.0', + age: 26, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: 'test os', + device_model: 'Mac', + platform: 'Web', + device_id: 'lynnanderson@smith.net', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + ip: '0.0.0.0', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + device_id: 'lynnanderson@smith.net', + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + session_id: 1662393792, + country: 'India', + city: 'kolkata', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 68', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '5d205961641ee6c5', + channel: 'mobile', + context: { + app: { + build: '6', + name: 'Sample Kotlin', + namespace: 'com.example.testapp1mg', + version: '1.2', + }, + device: { + id: '5d205961641ee6c5', + manufacturer: 'Google', + model: 'Android SDK built for x86', + name: 'generic_x86', + type: 'Android', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.7.0', + }, + locale: 'en-US', + network: { + carrier: 'Android', + bluetooth: false, + cellular: true, + wifi: true, + }, + os: { + name: 'Android', + version: '7.1.1', + }, + screen: { + density: 440, + height: 2148, + width: 1080, + }, + sessionId: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '5d205961641ee6c5', + id: 'User Android', + userId: 'User Android', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 7.1.1; Android SDK built for x86 Build/NYC)', + }, + event: 'Screen event', + integrations: { + All: true, + }, + messageId: '1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f', + properties: { + name: 'Screen event', + }, + originalTimestamp: '2022-09-05T16:04:43.250Z', + type: 'screen', + userId: 'User Android', + }, + destination: { + Config: { + apiKey: 'abcde', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Android', + os_version: '7.1.1', + device_model: 'Android SDK built for x86', + device_manufacturer: 'Google', + device_id: '5d205961641ee6c5', + carrier: 'Android', + app_name: 'Sample Kotlin', + app_version: '1.2', + platform: 'Android', + language: 'en-US', + event_properties: { + name: 'Screen event', + }, + insert_id: '1662393883248-509420bf-b812-4f8d-bdb2-8c811bfde87f', + user_properties: { + anonymousId: '5d205961641ee6c5', + id: 'User Android', + userId: 'User Android', + }, + event_type: 'Viewed Screen event Screen', + user_id: 'User Android', + device_brand: 'Google', + time: 1662393883250, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '5d205961641ee6c5', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 69: ERROR - Either of user ID or device ID fields must be specified', + 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: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'group', + messageId: 'e5034df0-a404-47b4-a463-76df99934fea', + originalTimestamp: '2020-10-20T07:54:58.983Z', + 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: 'ABC', + }, + sentAt: '2020-10-20T07:54:58.983Z', + }, + destination: { + Config: { + apiKey: 'abcde', + groupTypeTrait: 'name_trait', + groupValueTrait: 'value_trait', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Either of user ID or device ID fields must be specified', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'AM', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 70', + 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', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + request_ip: '1.1.1.1', + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + integrations: { + All: true, + Amplitude: { + event_id: 2, + }, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'abcde', + useUserDefinedPageEventName: true, + userProvidedPageEventString: 'My custom Page Name is {{ name }} . Custom Name.', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + event_type: 'My custom Page Name is ApplicationLoaded . Custom Name.', + event_properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + name: 'ApplicationLoaded', + }, + insert_id: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + ip: '1.1.1.1', + event_id: 2, + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + user_id: '12345', + time: 1571051718299, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 71', + 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', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + request_ip: '1.1.1.1', + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + integrations: { + All: true, + Amplitude: { + event_id: 2, + }, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'abcde', + useUserDefinedPageEventName: true, + userProvidedPageEventString: '{{name}}', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + event_type: 'ApplicationLoaded', + event_properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + name: 'ApplicationLoaded', + }, + insert_id: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + ip: '1.1.1.1', + event_id: 2, + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + user_id: '12345', + time: 1571051718299, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 72', + 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', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + request_ip: '1.1.1.1', + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + integrations: { + All: true, + Amplitude: { + event_id: 2, + }, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'abcde', + useUserDefinedPageEventName: true, + userProvidedPageEventString: '', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + event_type: 'ApplicationLoaded', + event_properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + name: 'ApplicationLoaded', + }, + insert_id: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + ip: '1.1.1.1', + event_id: 2, + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + user_id: '12345', + time: 1571051718299, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 73', + 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', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: 'Home Page', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + request_ip: '1.1.1.1', + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + integrations: { + All: true, + Amplitude: { + event_id: 2, + }, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'abcde', + useUserDefinedPageEventName: false, + userProvidedPageEventString: 'Viewed {{context.page.title}} event.', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + event_properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + insert_id: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + ip: '1.1.1.1', + event_id: 2, + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + event_type: 'Viewed Page', + user_id: '12345', + time: 1571051718299, + session_id: -1, + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 74', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + userId: 'identified user id', + anonymousId: 'anon-id-new', + event: 'Screen View', + properties: { + prop1: '5', + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + apiKey: 'abcde', + useUserDefinedScreenEventName: true, + userProvidedScreenEventString: 'My {{ event }} event.', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: 'anon-id-new', + event_properties: { + prop1: '5', + name: 'Screen View', + }, + user_properties: {}, + event_type: 'My Screen View event.', + user_id: 'identified user id', + time: 1580602989544, + session_id: -1, + ip: '14.5.67.21', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anon-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 75', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + userId: 'identified user id', + anonymousId: 'anon-id-new', + event: 'Screen View', + properties: { + prop1: '5', + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + apiKey: 'abcde', + useUserDefinedScreenEventName: false, + userProvidedScreenEventString: 'My {{ event }} event.', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: 'anon-id-new', + event_properties: { + prop1: '5', + name: 'Screen View', + }, + user_properties: {}, + event_type: 'Viewed Screen View Screen', + user_id: 'identified user id', + time: 1580602989544, + session_id: -1, + ip: '14.5.67.21', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anon-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 76', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + userId: 'identified user id', + anonymousId: 'anon-id-new', + event: 'Screen same as event', + properties: { + prop1: '5', + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + apiKey: 'abcde', + useUserDefinedScreenEventName: true, + userProvidedScreenEventString: '{{ event }}', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: 'anon-id-new', + event_properties: { + prop1: '5', + name: 'Screen same as event', + }, + user_properties: {}, + event_type: 'Screen same as event', + user_id: 'identified user id', + time: 1580602989544, + session_id: -1, + ip: '14.5.67.21', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anon-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'am', + description: 'Test 77', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + userId: 'identified user id', + anonymousId: 'anon-id-new', + name: 'Screen', + properties: { + prop1: '5', + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + apiKey: 'abcde', + useUserDefinedScreenEventName: true, + userProvidedScreenEventString: '', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + device_id: 'anon-id-new', + event_properties: { + prop1: '5', + name: 'Screen', + }, + user_properties: {}, + event_type: 'Screen', + user_id: 'identified user id', + time: 1580602989544, + session_id: -1, + ip: '14.5.67.21', + library: 'rudderstack', + }, + ], + options: { + min_id_length: 1, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anon-id-new', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/am/router/data.ts b/test/integrations/destinations/am/router/data.ts new file mode 100644 index 0000000000..1b4026c85e --- /dev/null +++ b/test/integrations/destinations/am/router/data.ts @@ -0,0 +1,259 @@ +export const data = [ + { + name: 'am', + 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 }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { apiKey: 'abcde', groupTypeTrait: 'email', groupValueTrait: 'age' }, + }, + }, + { + 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', + os: { name: '', version: '' }, + screen: { density: 2 }, + page: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + request_ip: '1.1.1.1', + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + integrations: { All: true }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { Config: { apiKey: 'abcde' } }, + }, + ], + destType: 'am', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + library: 'rudderstack', + platform: 'Web', + device_id: '123456', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + session_id: -1, + insert_id: '84e26acc-56a5-4835-8233-591137fca468', + city: 'kolkata', + country: 'India', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + anonymousId: '123456', + email: 'test@rudderstack.com', + postalCode: 712136, + state: 'WB', + street: '', + ip: '0.0.0.0', + age: 26, + }, + event_type: '$identify', + time: 1571043797562, + user_id: '123456', + ip: '0.0.0.0', + }, + ], + options: { min_id_length: 1 }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + }, + ], + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { apiKey: 'abcde', groupTypeTrait: 'email', groupValueTrait: 'age' }, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.amplitude.com/2/httpapi', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + api_key: 'abcde', + events: [ + { + os_name: 'Chrome', + os_version: '77.0.3865.90', + device_model: 'Mac', + library: 'rudderstack', + platform: 'Web', + device_id: '00000000000000000000000000', + app_name: 'RudderLabs JavaScript SDK', + app_version: '1.0.0', + language: 'en-US', + event_type: 'Viewed ApplicationLoaded Page', + event_properties: { + path: '/destinations/amplitude', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/amplitude', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + name: 'ApplicationLoaded', + }, + session_id: -1, + insert_id: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + ip: '1.1.1.1', + user_properties: { + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + user_id: '12345', + time: 1571051718299, + }, + ], + options: { min_id_length: 1 }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '00000000000000000000000000', + }, + ], + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { Config: { apiKey: 'abcde' } }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/appcues/router/data.ts b/test/integrations/destinations/appcues/router/data.ts index ddc8dddf57..729aee7699 100644 --- a/test/integrations/destinations/appcues/router/data.ts +++ b/test/integrations/destinations/appcues/router/data.ts @@ -21,15 +21,9 @@ export const data = [ version: '1.1.9', }, campaign: {}, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.9', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.9' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/rudder-sdk-js/tests/html/script-test.html', referrer: '', @@ -37,16 +31,12 @@ export const data = [ title: '', url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', }, - screen: { - density: 2, - }, + 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, - }, + 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', @@ -57,15 +47,8 @@ export const data = [ type: 'identify', userId: 'onlyUserId', }, - metadata: { - jobId: 1, - }, - destination: { - Config: { - accountId: '86086', - useNativeSDK: false, - }, - }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { Config: { accountId: '86086', useNativeSDK: false } }, }, { message: { @@ -79,15 +62,9 @@ export const data = [ version: '1.1.9', }, campaign: {}, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.9', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.9' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/rudder-sdk-js/tests/html/script-test.html', referrer: '', @@ -95,19 +72,12 @@ export const data = [ title: '', url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', }, - screen: { - density: 2, - }, - traits: { - 'first name': 'John', - 'last name': 'Abraham', - }, + 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, - }, + 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', @@ -118,15 +88,8 @@ export const data = [ type: 'identify', userId: 'userIdWithProperties', }, - metadata: { - jobId: 2, - }, - destination: { - Config: { - accountId: '86086', - useNativeSDK: false, - }, - }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { Config: { accountId: '86086', useNativeSDK: false } }, }, ], destType: 'appcues', @@ -145,34 +108,20 @@ export const data = [ XML: {}, JSON_ARRAY: {}, FORM: {}, - JSON: { - request_id: '6a5f38c0-4e75-4268-a066-2b73fbcad01f', - profile_update: {}, - }, + JSON: { request_id: '6a5f38c0-4e75-4268-a066-2b73fbcad01f', profile_update: {} }, }, type: 'REST', files: {}, method: 'POST', params: {}, - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://api.appcues.com/v1/accounts/86086/users/onlyUserId/activity', }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, - destination: { - Config: { - accountId: '86086', - useNativeSDK: false, - }, - }, + destination: { Config: { accountId: '86086', useNativeSDK: false } }, }, { batchedRequest: { @@ -182,36 +131,22 @@ export const data = [ FORM: {}, JSON: { request_id: '57494c6a-3c62-4b30-83aa-6e821d37ac75', - profile_update: { - 'last name': 'Abraham', - 'first name': 'John', - }, + profile_update: { 'last name': 'Abraham', 'first name': 'John' }, }, }, type: 'REST', files: {}, method: 'POST', params: {}, - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://api.appcues.com/v1/accounts/86086/users/userIdWithProperties/activity', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, - destination: { - Config: { - accountId: '86086', - useNativeSDK: false, - }, - }, + 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 index c52a6ed2e3..63bd477f0c 100644 --- a/test/integrations/destinations/attentive_tag/router/data.ts +++ b/test/integrations/destinations/attentive_tag/router/data.ts @@ -10,28 +10,16 @@ export const data = [ body: { input: [ { - destination: { - Config: { - apiKey: 'dummyApiKey', - signUpSourceId: '241654', - }, - }, - metadata: { - jobId: 1, - }, + destination: { Config: { apiKey: 'dummyApiKey', signUpSourceId: '241654' } }, + metadata: { jobId: 1, userId: 'u1' }, message: { anonymousId: '4eb021e9-a2af-4926-ae82-fe996d12f3c5', channel: 'web', context: { locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, traits: { - company: { - id: 'abc123', - }, + company: { id: 'abc123' }, createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', email: 'test0@gmail.com', phone: '+16465453911', @@ -39,26 +27,14 @@ export const data = [ 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, - }, + { type: 'clientUsrId', id: 1 }, + { type: 'shopifyId', id: 1 }, + { type: 'klaviyoId', id: 1 }, ], }, integrations: { All: true, - attentive_tag: { - signUpSourceId: '241654', - identifyOperation: 'unsubscribe', - }, + attentive_tag: { signUpSourceId: '241654', identifyOperation: 'unsubscribe' }, }, messageId: 'e108eb05-f6cd-4624-ba8c-568f2e2b3f92', receivedAt: '2020-10-16T13:56:14.945+05:30', @@ -88,31 +64,17 @@ export const data = [ }, params: {}, body: { - JSON: { - user: { - phone: '+16465453911', - email: 'test0@gmail.com', - }, - }, + JSON: { user: { phone: '+16465453911', email: 'test0@gmail.com' } }, JSON_ARRAY: {}, XML: {}, FORM: {}, }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, - destination: { - Config: { - apiKey: 'dummyApiKey', - signUpSourceId: '241654', - }, - }, + destination: { Config: { apiKey: 'dummyApiKey', signUpSourceId: '241654' } }, }, ], }, diff --git a/test/integrations/destinations/autopilot/router/data.ts b/test/integrations/destinations/autopilot/router/data.ts index cbfe0c4207..92117a97c8 100644 --- a/test/integrations/destinations/autopilot/router/data.ts +++ b/test/integrations/destinations/autopilot/router/data.ts @@ -17,28 +17,18 @@ export const data = [ ID: '1afjX4MlAucK57Q0ctTVlD27Tvo', Name: 'AUTOPILOT', DisplayName: 'Autopilot', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { apiKey: 'dummyApiKey', - customMappings: [ - { - from: '0001', - to: 'Signup', - }, - ], + customMappings: [{ from: '0001', to: 'Signup' }], triggerId: '00XX', }, Enabled: true, Transformations: [], IsProcessorEnabled: true, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd', channel: 'web', @@ -49,15 +39,9 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.1-rc.2', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.1-rc.2', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.1-rc.2' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/tests/html/index4.html', referrer: '', @@ -65,25 +49,17 @@ export const data = [ title: '', url: 'http://localhost/tests/html/index4.html', }, - screen: { - density: 2, - }, + 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, - }, + 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', - }, + traits: { age: 23, email: 'testmp@rudderstack.com', firstname: 'Test Kafka' }, timestamp: '2020-04-17T20:12:44.758+05:30', type: 'identify', userId: 'user12345', @@ -97,28 +73,18 @@ export const data = [ ID: '1afjX4MlAucK57Q0ctTVlD27Tvo', Name: 'AUTOPILOT', DisplayName: 'Autopilot', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { apiKey: 'dummyApiKey', - customMappings: [ - { - from: '0001', - to: 'Signup', - }, - ], + customMappings: [{ from: '0001', to: 'Signup' }], triggerId: '00XX', }, Enabled: true, Transformations: [], IsProcessorEnabled: true, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd', channel: 'web', @@ -129,15 +95,9 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.1-rc.2', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.1-rc.2', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.1-rc.2' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/tests/html/index4.html', referrer: '', @@ -145,27 +105,16 @@ export const data = [ title: '', url: 'http://localhost/tests/html/index4.html', }, - screen: { - density: 2, - }, - traits: { - age: 23, - email: 'testmp@rudderstack.com', - firstname: 'Test Kafka', - }, + 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, - }, + 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, - }, + 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', @@ -202,9 +151,7 @@ export const data = [ contact: { Email: 'testmp@rudderstack.com', FirstName: 'Test Kafka', - custom: { - age: 23, - }, + custom: { age: 23 }, }, }, XML: {}, @@ -214,11 +161,7 @@ export const data = [ files: {}, userId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd', }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -228,19 +171,11 @@ export const data = [ ID: '1afjX4MlAucK57Q0ctTVlD27Tvo', Name: 'AUTOPILOT', DisplayName: 'Autopilot', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { apiKey: 'dummyApiKey', - customMappings: [ - { - from: '0001', - to: 'Signup', - }, - ], + customMappings: [{ from: '0001', to: 'Signup' }], triggerId: '00XX', }, Enabled: true, @@ -262,12 +197,7 @@ export const data = [ }, params: {}, body: { - JSON: { - property: { - test_prop_1: 'test prop', - test_prop_2: 1232, - }, - }, + JSON: { property: { test_prop_1: 'test prop', test_prop_2: 1232 } }, XML: {}, JSON_ARRAY: {}, FORM: {}, @@ -275,11 +205,7 @@ export const data = [ files: {}, userId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -289,19 +215,11 @@ export const data = [ ID: '1afjX4MlAucK57Q0ctTVlD27Tvo', Name: 'AUTOPILOT', DisplayName: 'Autopilot', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { apiKey: 'dummyApiKey', - customMappings: [ - { - from: '0001', - to: 'Signup', - }, - ], + customMappings: [{ from: '0001', to: 'Signup' }], triggerId: '00XX', }, Enabled: true, diff --git a/test/integrations/destinations/bingads_audience/processor/data.ts b/test/integrations/destinations/bingads_audience/processor/data.ts new file mode 100644 index 0000000000..b61f4efea8 --- /dev/null +++ b/test/integrations/destinations/bingads_audience/processor/data.ts @@ -0,0 +1,1155 @@ +export const data = [ + { + name: 'bingads_audience', + description: 'unhashed email available with hashEmail as true in config', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'alex@email.com', + }, + { + email: 'amy@abc.com', + }, + { + email: 'van@abc.com', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: true, + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 1234, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: '', + headers: {}, + params: {}, + body: { + JSON: { + list: [ + { + hashedEmail: + 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + email: 'alex@email.com', + }, + { + hashedEmail: + '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + email: 'amy@abc.com', + }, + { + hashedEmail: + '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + email: 'van@abc.com', + }, + ], + action: 'Add', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 1234, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'hashed email available with hashEmail as false in config', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + }, + { + email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + }, + { + email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: false, + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 1234, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: '', + headers: {}, + params: {}, + body: { + JSON: { + list: [ + { + hashedEmail: + 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + }, + { + hashedEmail: + '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + }, + { + hashedEmail: + '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + }, + ], + action: 'Add', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 1234, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'Unsupported action type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + addition: [ + { + email: 'alex@email.com', + }, + { + email: 'amy@abc.com', + }, + { + email: 'van@abc.com', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: true, + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 1234, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + destinationId: 1234, + }, + statusCode: 400, + error: + 'unsupported action type. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: unsupported action type. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + implementation: 'cdkV2', + destType: 'BINGADS_AUDIENCE', + module: 'destination', + feature: 'processor', + destinationId: 1234, + }, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'Unsupported event type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'track', + properties: { + listData: { + add: [ + { + email: 'alex@email.com', + }, + { + email: 'amy@abc.com', + }, + { + email: 'van@abc.com', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: true, + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 1234, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + destinationId: 1234, + }, + statusCode: 400, + error: + 'Event type track is not supported. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Event type track is not supported. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + implementation: 'cdkV2', + destType: 'BINGADS_AUDIENCE', + module: 'destination', + feature: 'processor', + destinationId: 1234, + }, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'event type not present', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: '', + properties: { + listData: { + add: [ + { + email: 'alex@email.com', + }, + { + email: 'amy@abc.com', + }, + { + email: 'van@abc.com', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: true, + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 1234, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + destinationId: 1234, + }, + statusCode: 400, + error: + 'message Type is not present. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: message Type is not present. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + implementation: 'cdkV2', + destType: 'BINGADS_AUDIENCE', + module: 'destination', + feature: 'processor', + destinationId: 1234, + }, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'Message properties is not present', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: true, + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 1234, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + destinationId: 1234, + }, + statusCode: 400, + error: + 'Message properties is not present. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Message properties is not present. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + implementation: 'cdkV2', + destType: 'BINGADS_AUDIENCE', + module: 'destination', + feature: 'processor', + destinationId: 1234, + }, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'listData is not present in properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + properties: {}, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: true, + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 1234, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + destinationId: 1234, + }, + statusCode: 400, + error: + 'listData is not present inside properties. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: listData is not present inside properties. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + implementation: 'cdkV2', + destType: 'BINGADS_AUDIENCE', + module: 'destination', + feature: 'processor', + destinationId: 1234, + }, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'Both add and remove are present in listData', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + remove: [ + { + email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + }, + { + email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + }, + { + email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + }, + ], + update: [ + { + email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + }, + { + email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + }, + { + email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: false, + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 1234, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: '', + headers: {}, + params: {}, + body: { + JSON: { + list: [ + { + hashedEmail: + 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + }, + { + hashedEmail: + '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + }, + { + hashedEmail: + '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + }, + ], + action: 'Remove', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 1234, + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: '', + headers: {}, + params: {}, + body: { + JSON: { + list: [ + { + hashedEmail: + 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + }, + { + hashedEmail: + '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + }, + { + hashedEmail: + '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + }, + ], + action: 'Replace', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 1234, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'Only single user data is present', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'alex@email.com', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: '', + headers: {}, + params: {}, + body: { + JSON: { + list: [ + { + hashedEmail: + 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + email: 'alex@email.com', + }, + ], + action: 'Add', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'unhashed email available with hashEmail as true in config', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'alex@email.com', + }, + { + email: 'amy@abc.com', + }, + { + email: 'van@abc.com', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: true, + }, + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + destinationType: '', + namespace: '', + sourceType: '', + }, + output: { + body: { + FORM: {}, + JSON: { + list: [ + { + hashedEmail: + 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + email: 'alex@email.com', + }, + { + hashedEmail: + '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + email: 'amy@abc.com', + }, + { + hashedEmail: + '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + email: 'van@abc.com', + }, + ], + action: 'Add', + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: '', + files: {}, + headers: {}, + method: 'POST', + params: {}, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'hashed email available with hashEmail as false in config', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + update: [ + { + email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + }, + { + email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + }, + ], + remove: [ + { + email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: false, + }, + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: '', + headers: {}, + params: {}, + body: { + JSON: { + list: [ + { + hashedEmail: + 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + email: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b', + }, + { + hashedEmail: + '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + email: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579', + }, + ], + action: 'Replace', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: '', + headers: {}, + params: {}, + body: { + JSON: { + list: [ + { + hashedEmail: + '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + email: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c', + }, + ], + action: 'Remove', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'bingads_audience', + description: 'validateInput should fail when properties are missing', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user 1', + type: 'audiencelist', + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + customerAccountId: '89236978', + customerId: '78678678', + audienceId: '564567', + hashEmail: false, + }, + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + statusCode: 400, + error: + 'Message properties is not present. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Message properties is not present. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + implementation: 'cdkV2', + destType: 'BINGADS_AUDIENCE', + module: 'destination', + feature: 'processor', + }, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/blueshift/router/data.ts b/test/integrations/destinations/blueshift/router/data.ts index 7c92ff1d74..7104beb873 100644 --- a/test/integrations/destinations/blueshift/router/data.ts +++ b/test/integrations/destinations/blueshift/router/data.ts @@ -17,9 +17,7 @@ export const data = [ datacenterEU: false, }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { context: { app: { @@ -51,9 +49,7 @@ export const data = [ datacenterEU: false, }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { context: { ip: '14.5.67.21', @@ -67,16 +63,8 @@ export const data = [ type: 'Android', attTrackingStatus: 3, }, - os: { - name: 'Android', - version: '9', - }, - network: { - bluetooth: false, - carrier: 'Android', - cellular: true, - wifi: true, - }, + os: { name: 'Android', version: '9' }, + network: { bluetooth: false, carrier: 'Android', cellular: true, wifi: true }, address: { city: 'kolkata', country: 'India', @@ -87,9 +75,7 @@ export const data = [ street: 'rajnagar', }, }, - properties: { - cookie: '1234abcd-efghijkj-1234kfjadslk-34iu123', - }, + properties: { cookie: '1234abcd-efghijkj-1234kfjadslk-34iu123' }, messageId: '34abcd-efghijkj-1234kf', type: 'track', event: 'identify', @@ -104,9 +90,7 @@ export const data = [ datacenterEU: false, }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, message: { channel: 'web', context: { @@ -116,21 +100,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -157,10 +133,7 @@ export const data = [ msgemail: true, msgwhatsapp: false, custom_tags: ['Test_User', 'Interested_User', 'DIY_Hobby'], - custom_mappings: { - Office: 'Trastkiv', - Country: 'Russia', - }, + custom_mappings: { Office: 'Trastkiv', Country: 'Russia' }, address: { city: 'kolkata', country: 'India', @@ -169,9 +142,7 @@ export const data = [ street: '', }, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -210,11 +181,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -259,11 +226,7 @@ export const data = [ version: '1', endpoint: 'https://api.getblueshift.com/api/v1/event', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -307,10 +270,7 @@ export const data = [ msgemail: true, msgwhatsapp: false, custom_tags: ['Test_User', 'Interested_User', 'DIY_Hobby'], - custom_mappings: { - Office: 'Trastkiv', - Country: 'Russia', - }, + custom_mappings: { Office: 'Trastkiv', Country: 'Russia' }, address: { city: 'kolkata', country: 'India', @@ -325,11 +285,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/bqstream/router/data.ts b/test/integrations/destinations/bqstream/router/data.ts index e44ce4af15..3c77f2c62f 100644 --- a/test/integrations/destinations/bqstream/router/data.ts +++ b/test/integrations/destinations/bqstream/router/data.ts @@ -14,18 +14,10 @@ export const data = [ type: 'track', event: 'insert product', userId: 'user12345', - - properties: { - count: 10, - productId: 10, - productName: 'Product-10', - }, + properties: { count: 10, productId: 10, productName: 'Product-10' }, anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', }, - metadata: { - jobId: 1, - userId: 'user12345', - }, + metadata: { jobId: 1, userId: 'user12345' }, destination: { Config: { rudderAccountId: '1z8LpaSAuFR9TPWL6fECZfjmRa-', @@ -36,7 +28,6 @@ export const data = [ eventDelivery: true, eventDeliveryTS: 1636965406397, }, - ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, @@ -46,16 +37,9 @@ export const data = [ type: 'track', event: 'insert product', userId: 'user12345', - properties: { - count: 20, - productId: 20, - productName: 'Product-20', - }, - }, - metadata: { - jobId: 2, - userId: 'user12345', + properties: { count: 20, productId: 20, productName: 'Product-20' }, }, + metadata: { jobId: 2, userId: 'user12345' }, destination: { Config: { rudderAccountId: '1z8LpaSAuFR9TPWL6fECZfjmRa-', @@ -66,7 +50,6 @@ export const data = [ eventDelivery: true, eventDeliveryTS: 1636965406397, }, - ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, @@ -76,17 +59,10 @@ export const data = [ type: 'identify', event: 'insert product', userId: 'user12345', - traits: { - count: 20, - productId: 20, - productName: 'Product-20', - }, + traits: { count: 20, productId: 20, productName: 'Product-20' }, anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', }, - metadata: { - jobId: 3, - userId: 'user12345', - }, + metadata: { jobId: 3, userId: 'user12345' }, destination: { Config: { rudderAccountId: '1z8LpaSAuFR9TPWL6fECZfjmRa-', @@ -97,7 +73,6 @@ export const data = [ eventDelivery: true, eventDeliveryTS: 1636965406397, }, - ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, @@ -107,17 +82,10 @@ export const data = [ type: 'track', event: 'insert product', userId: 'user12345', - properties: { - count: 20, - productId: 20, - productName: 'Product-20', - }, + properties: { count: 20, productId: 20, productName: 'Product-20' }, anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', }, - metadata: { - jobId: 5, - userId: 'user123', - }, + metadata: { jobId: 5, userId: 'user123' }, destination: { Config: { rudderAccountId: '1z8LpaSAuFR9TPWL6fECZfjmRa-', @@ -128,7 +96,6 @@ export const data = [ eventDelivery: true, eventDeliveryTS: 1636965406397, }, - ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, @@ -138,17 +105,10 @@ export const data = [ type: 'track', event: 'insert product', userId: 'user12345', - properties: { - count: 20, - productId: 20, - productName: 'Product-20', - }, + properties: { count: 20, productId: 20, productName: 'Product-20' }, anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', }, - metadata: { - jobId: 6, - userId: 'user124', - }, + metadata: { jobId: 6, userId: 'user124' }, destination: { Config: { rudderAccountId: '1z8LpaSAuFR9TPWL6fECZfjmRa-', @@ -159,22 +119,13 @@ export const data = [ eventDelivery: true, eventDeliveryTS: 1636965406397, }, - ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, }, { - message: { - type: 'track', - event: 'insert product', - - userId: 'user12345', - }, - metadata: { - jobId: 7, - userId: 'user124', - }, + message: { type: 'track', event: 'insert product', userId: 'user12345' }, + metadata: { jobId: 7, userId: 'user124' }, destination: { Config: { rudderAccountId: '1z8LpaSAuFR9TPWL6fECZfjmRa-', @@ -185,21 +136,13 @@ export const data = [ eventDelivery: true, eventDeliveryTS: 1636965406397, }, - ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, }, { - message: { - type: 'track', - event: 'insert product', - userId: 'user12345', - }, - metadata: { - jobId: 8, - userId: 'user125', - }, + message: { type: 'track', event: 'insert product', userId: 'user12345' }, + metadata: { jobId: 8, userId: 'user125' }, destination: { Config: { rudderAccountId: '1z8LpaSAuFR9TPWL6fECZfjmRa-', @@ -210,7 +153,6 @@ export const data = [ eventDelivery: true, eventDeliveryTS: 1636965406397, }, - ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, @@ -219,14 +161,9 @@ export const data = [ message: { type: 'identify', event: 'insert product', - userId: 'user12345', - context: { - os: { - Name: '', - version: '', - }, + os: { Name: '', version: '' }, app: { Name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -253,27 +190,16 @@ export const data = [ innerHeight: 776, }, traits: {}, - library: { - Name: 'RudderLabs JavaScript SDK', - version: '1.1.18', - }, + library: { Name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, campaign: {}, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', }, - - traits: { - count: 20, - productId: 20, - productName: 'Product-20', - }, + traits: { count: 20, productId: 20, productName: 'Product-20' }, receivedAt: '2021-11-15T14:06:42.497+05:30', anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', }, - metadata: { - jobId: 9, - userId: 'user125', - }, + metadata: { jobId: 9, userId: 'user125' }, destination: { Config: { rudderAccountId: '1z8LpaSAuFR9TPWL6fECZfjmRa-', @@ -284,7 +210,6 @@ export const data = [ eventDelivery: true, eventDeliveryTS: 1636965406397, }, - ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, @@ -306,30 +231,10 @@ export const data = [ datasetId: 'gc_dataset', projectId: 'gc-project-id', properties: [ - { - count: 10, - insertId: '10', - productId: 10, - productName: 'Product-10', - }, - { - count: 20, - insertId: '20', - productId: 20, - productName: 'Product-20', - }, - { - count: 20, - insertId: '20', - productId: 20, - productName: 'Product-20', - }, - { - count: 20, - insertId: '20', - productId: 20, - productName: 'Product-20', - }, + { count: 10, insertId: '10', productId: 10, productName: 'Product-10' }, + { count: 20, insertId: '20', productId: 20, productName: 'Product-20' }, + { count: 20, insertId: '20', productId: 20, productName: 'Product-20' }, + { count: 20, insertId: '20', productId: 20, productName: 'Product-20' }, ], tableId: 'gc_table', }, @@ -347,22 +252,10 @@ export const data = [ Name: 'bqstream test', }, metadata: [ - { - jobId: 1, - userId: 'user12345', - }, - { - jobId: 2, - userId: 'user12345', - }, - { - jobId: 5, - userId: 'user123', - }, - { - jobId: 6, - userId: 'user124', - }, + { jobId: 1, userId: 'user12345' }, + { jobId: 2, userId: 'user12345' }, + { jobId: 5, userId: 'user123' }, + { jobId: 6, userId: 'user124' }, ], statusCode: 200, }, @@ -383,14 +276,8 @@ export const data = [ }, error: 'Invalid payload for the destination', metadata: [ - { - jobId: 7, - userId: 'user124', - }, - { - jobId: 8, - userId: 'user125', - }, + { jobId: 7, userId: 'user124' }, + { jobId: 8, userId: 'user125' }, ], statTags: { destType: 'BQSTREAM', @@ -417,17 +304,10 @@ export const data = [ ID: '1WXjIHpu7ETXgjfiGPW3kCUgZFR', Name: 'bqstream test', }, - error: 'Message Type not supported: identify', metadata: [ - { - jobId: 3, - userId: 'user12345', - }, - { - jobId: 9, - userId: 'user125', - }, + { jobId: 3, userId: 'user12345' }, + { jobId: 9, userId: 'user125' }, ], statTags: { destType: 'BQSTREAM', diff --git a/test/integrations/destinations/branch/router/data.ts b/test/integrations/destinations/branch/router/data.ts index 4c87145b7e..6451c463f1 100644 --- a/test/integrations/destinations/branch/router/data.ts +++ b/test/integrations/destinations/branch/router/data.ts @@ -11,10 +11,7 @@ export const data = [ input: [ { destination: { - Config: { - branchKey: '', - useNativeSDK: false, - }, + Config: { branchKey: '', useNativeSDK: false }, DestinationDefinition: { DisplayName: 'Branch Metrics', ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', @@ -25,9 +22,7 @@ export const data = [ Name: 'branch test', Transformations: [], }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -39,34 +34,19 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.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', - }, + 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, - }, + integrations: { All: true }, messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', originalTimestamp: '2020-01-17T04:53:51.185Z', - properties: { - name: 'sampath', - }, + properties: { name: 'sampath' }, receivedAt: '2020-01-17T10:23:52.688+05:30', request_ip: '[::1]:64059', sentAt: '2020-01-17T04:53:52.667Z', @@ -77,10 +57,7 @@ export const data = [ }, { destination: { - Config: { - branchKey: '', - useNativeSDK: false, - }, + Config: { branchKey: '', useNativeSDK: false }, DestinationDefinition: { DisplayName: 'Branch Metrics', ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', @@ -91,9 +68,7 @@ export const data = [ Name: 'branch test', Transformations: [], }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -105,28 +80,15 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: 'iOS', - version: '', - }, - screen: { - density: 2, - }, + 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', - }, + 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', @@ -154,20 +116,13 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api2.branch.io/v2/event/standard', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - }, + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, params: {}, body: { JSON: { branch_key: '', name: 'ADD_TO_CART', - content_items: [ - { - $product_name: 'sampath', - }, - ], + content_items: [{ $product_name: 'sampath' }], user_data: { os: 'iOS', os_version: '', @@ -185,18 +140,11 @@ export const data = [ files: {}, userId: 'sampath', }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - branchKey: '', - useNativeSDK: false, - }, + Config: { branchKey: '', useNativeSDK: false }, DestinationDefinition: { DisplayName: 'Branch Metrics', ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', @@ -214,19 +162,13 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api2.branch.io/v2/event/custom', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - }, + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, params: {}, body: { JSON: { branch_key: '', name: 'sampath', - custom_data: { - anonymousId: 'sampath', - email: 'sampath@gmail.com', - }, + custom_data: { anonymousId: 'sampath', email: 'sampath@gmail.com' }, content_items: [{}], user_data: { os: 'iOS', @@ -245,18 +187,11 @@ export const data = [ files: {}, userId: 'sampath', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - branchKey: '', - useNativeSDK: false, - }, + Config: { branchKey: '', useNativeSDK: false }, DestinationDefinition: { DisplayName: 'Branch Metrics', ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', diff --git a/test/integrations/destinations/braze/dataDelivery/data.ts b/test/integrations/destinations/braze/dataDelivery/data.ts index 3e1805c01d..8162e75720 100644 --- a/test/integrations/destinations/braze/dataDelivery/data.ts +++ b/test/integrations/destinations/braze/dataDelivery/data.ts @@ -1,395 +1,391 @@ -import MockAdapter from "axios-mock-adapter"; +import MockAdapter from 'axios-mock-adapter'; export const data = [ { - "name": "braze", - "description": "Test 0", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test1", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ + name: 'braze', + description: 'Test 0', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/test1', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], }, - "JSON_ARRAY": {}, - "XML": {} + JSON_ARRAY: {}, + XML: {}, + }, + files: {}, + params: { + destination: 'braze', }, - "files": {}, - "params": { - "destination": "braze" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 200, - "body": { - "output": { - "status": 201, - "message": "Request for braze Processed Successfully", - "destinationResponse": { - "response": { - "aliases_processed": 1, - "message": "success" + output: { + response: { + status: 200, + body: { + output: { + status: 201, + message: 'Request for braze Processed Successfully', + destinationResponse: { + response: { + aliases_processed: 1, + message: 'success', }, - "status": 201 - } - } - } - } - } + status: 201, + }, + }, + }, + }, + }, }, { - "name": "braze", - "description": "Test 1", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test2", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ + name: 'braze', + description: 'Test 1', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/test2', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], }, - "JSON_ARRAY": {}, - "XML": {} + JSON_ARRAY: {}, + XML: {}, + }, + files: {}, + params: { + destination: 'braze', }, - "files": {}, - "params": { - "destination": "braze" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 200, - "body": { - "output": { - "status": 201, - "message": "Request for braze Processed Successfully", - "destinationResponse": { - "response": { - "message": "success", - "errors": [ - "minor error message" - ] + output: { + response: { + status: 200, + body: { + output: { + status: 201, + message: 'Request for braze Processed Successfully', + destinationResponse: { + response: { + message: 'success', + errors: ['minor error message'], }, - "status": 201 - } - } - } - } - } + status: 201, + }, + }, + }, + }, + }, }, { - "name": "braze", - "description": "Test 2", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test3", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ + name: 'braze', + description: 'Test 2', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/test3', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], }, - "JSON_ARRAY": {}, - "XML": {} + JSON_ARRAY: {}, + XML: {}, + }, + files: {}, + params: { + destination: 'braze', }, - "files": {}, - "params": { - "destination": "braze" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 200, - "body": { - "output": { - "status": 201, - "message": "Request failed for braze with status: 201", - "destinationResponse": { - "response": { - "message": "fatal error message", - "errors": [ - "minor error message" - ] + output: { + response: { + status: 200, + body: { + output: { + status: 201, + message: 'Request failed for braze with status: 201', + destinationResponse: { + response: { + message: 'fatal error message', + errors: ['minor error message'], }, - "status": 201 + status: 201, + }, + statTags: { + destType: 'BRAZE', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', }, - "statTags": { - "destType": "BRAZE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } - } - } + }, + }, + }, + }, }, { - "name": "braze", - "description": "Test 3", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test4", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ + name: 'braze', + description: 'Test 3', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/test4', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + files: {}, + params: { + destination: 'braze', + }, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + status: 201, + message: 'Request for braze Processed Successfully', + destinationResponse: { + response: '', + status: 201, }, - "JSON_ARRAY": {}, - "XML": {} }, - "files": {}, - "params": { - "destination": "braze" - } }, - "method": "POST" - } + }, }, - "output": { - "response": { - "status": 200, - "body": { - "output": { - "status": 201, - "message": "Request for braze Processed Successfully", - "destinationResponse": { - "response": "", - "status": 201 - } - } - } - } - } }, { - "name": "braze", - "description": "Test 4", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test5", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ + name: 'braze', + description: 'Test 4', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/test5', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], }, - "JSON_ARRAY": {}, - "XML": {} + JSON_ARRAY: {}, + XML: {}, + }, + files: {}, + params: { + destination: 'braze', }, - "files": {}, - "params": { - "destination": "braze" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 500, - "body": { - "output": { - "status": 500, - "message": "Request failed for braze with status: 500", - "destinationResponse": { - "response": "", - "status": 500 + output: { + response: { + status: 500, + body: { + output: { + status: 500, + message: 'Request failed for braze with status: 500', + destinationResponse: { + response: '', + status: 500, }, - "statTags": { - "destType": "BRAZE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } - } - } + statTags: { + destType: 'BRAZE', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'retryable', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + }, + }, + }, + }, + }, }, { - "name": "braze", - "description": "Test 5", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test6", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ + name: 'braze', + description: 'Test 5', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/test6', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], }, - "JSON_ARRAY": {}, - "XML": {} + JSON_ARRAY: {}, + XML: {}, + }, + files: {}, + params: { + destination: 'braze', }, - "files": {}, - "params": { - "destination": "braze" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 500, - "body": { - "output": { - "status": 500, - "message": "Request failed for braze with status: 500", - "destinationResponse": { - "response": "", - "status": 500 + output: { + response: { + status: 500, + body: { + output: { + status: 500, + message: 'Request failed for braze with status: 500', + destinationResponse: { + response: '', + status: 500, + }, + statTags: { + destType: 'BRAZE', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'retryable', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', }, - "statTags": { - "destType": "BRAZE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } - } + }, + }, + }, }, mockFns: (mockAdapter: MockAdapter) => { // params has `{ destination: salesforce }` @@ -410,79 +406,445 @@ export const data = [ 'Content-Type': 'application/json', 'User-Agent': 'RudderLabs', }, - ).replyOnce((config) => { - // @ts-ignore - const err = AxiosError.from('DNS not found', 'ENOTFOUND', config) - return Promise.reject(err); + ) + .replyOnce((config) => { + // @ts-ignore + const err = AxiosError.from('DNS not found', 'ENOTFOUND', config); + return Promise.reject(err); }); - } + }, + }, + { + name: 'braze', + description: 'Test 6', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/test7', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ + { + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + files: {}, + params: { + destination: 'braze', + }, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 500, + body: { + output: { + status: 500, + message: 'Request failed for braze with status: 500', + destinationResponse: { + response: '', + status: 500, + }, + statTags: { + destType: 'BRAZE', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'retryable', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + }, + }, + }, + }, + }, + }, + { + name: 'braze', + description: 'Test Transformer Proxy V1 input with v0 proxy handler', + feature: 'dataDelivery', + module: 'destination', + version: 'v1', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/test1', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ + { + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + metadata: [ + { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + ], + files: {}, + params: { + destination: 'braze', + }, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + message: 'Request for braze Processed Successfully', + response: [ + { + error: '{"aliases_processed":1,"message":"success"}', + statusCode: 201, + metadata: { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + }, + ], + status: 201, + }, + }, + }, + }, + }, + { + name: 'braze', + description: 'Test Transformer Proxy V1 input with v0 proxy handler Error returned', + feature: 'dataDelivery', + module: 'destination', + version: 'v1', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/identify/testV1', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + aliases_to_identify: [ + { + external_id: 'gabi_userId_45', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'gabi_anonId_45', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + metadata: [ + { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + ], + files: {}, + params: { + destination: 'braze', + }, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 401, + body: { + output: { + status: 401, + response: [ + { + error: '{"code":400,"message":"Bad Req","status":"Fail Case"}', + statusCode: 401, + metadata: { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + }, + ], + statTags: { + destType: 'BRAZE', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + }, + authErrorCategory: '', + message: 'Request failed for braze with status: 401', + }, + }, + }, + }, }, { - "name": "braze", - "description": "Test 6", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "type": "REST", - "endpoint": "https://rest.iad-03.braze.com/users/identify/test7", - "method": "POST", - "userId": "gabi_userId_45", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer api_key", - "Content-Type": "application/json" - }, - "body": { - "FORM": {}, - "JSON": { - "aliases_to_identify": [ + name: 'braze', + description: + 'Test Transformer Proxy V1 input with v0 proxy handler Error returned Multiple metadata Track Event', + feature: 'dataDelivery', + module: 'destination', + version: 'v1', + input: { + request: { + body: { + type: 'REST', + endpoint: 'https://rest.iad-03.braze.com/users/track/testV1', + method: 'POST', + userId: 'gabi_userId_45', + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + }, + body: { + FORM: {}, + JSON: { + partner: 'RudderStack', + attributes: [ + { + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, { - "external_id": "gabi_userId_45", - "user_alias": { - "alias_label": "rudder_id", - "alias_name": "gabi_anonId_45" - } - } - ] + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, + { + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + metadata: [ + { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, }, - "JSON_ARRAY": {}, - "XML": {} + { + jobId: 3, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + { + jobId: 4, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + ], + files: {}, + params: { + destination: 'braze', }, - "files": {}, - "params": { - "destination": "braze" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 500, - "body": { - "output": { - "status": 500, - "message": "Request failed for braze with status: 500", - "destinationResponse": { - "response": "", - "status": 500 + output: { + response: { + status: 401, + body: { + output: { + status: 401, + response: [ + { + error: + '{"message":"Valid data must be provided in the \'attributes\', \'events\', or \'purchases\' fields.","errors":[{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":0},{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":1}]}', + statusCode: 401, + metadata: { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + }, + { + error: + '{"message":"Valid data must be provided in the \'attributes\', \'events\', or \'purchases\' fields.","errors":[{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":0},{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":1}]}', + statusCode: 401, + metadata: { + jobId: 3, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + }, + { + error: + '{"message":"Valid data must be provided in the \'attributes\', \'events\', or \'purchases\' fields.","errors":[{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":0},{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":1}]}', + statusCode: 401, + metadata: { + jobId: 4, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + }, + ], + statTags: { + destType: 'BRAZE', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', }, - "statTags": { - "destType": "BRAZE", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "retryable", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } - } - } - } -] \ No newline at end of file + authErrorCategory: '', + message: 'Request failed for braze with status: 401', + }, + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/braze/network.ts b/test/integrations/destinations/braze/network.ts index 1c39a247e4..40d75c9d34 100644 --- a/test/integrations/destinations/braze/network.ts +++ b/test/integrations/destinations/braze/network.ts @@ -1,70 +1,4 @@ const dataDeliveryMocksData = [ - { - httpReq: { - url: 'https://api.amplitude.com/2/httpapi/test5', - data: { - api_key: 'c9d8a13b8bcab46a547f7be5200c483d', - events: [ - { - app_name: 'Rudder-CleverTap_Example', - app_version: '1.0', - time: 1619006730330, - user_id: 'gabi_userId_45', - user_properties: { - Residence: 'Shibuya', - city: 'Tokyo', - country: 'JP', - email: 'gabi29@gmail.com', - gender: 'M', - name: 'User2 Gabi2', - organization: 'Company', - region: 'ABC', - title: 'Owner', - zip: '100-0001', - }, - }, - ], - options: { min_id_length: 1 }, - }, - params: { destination: 'any' }, - headers: { 'Content-Type': 'application/json', 'User-Agent': 'RudderLabs' }, - method: 'POST', - }, - httpRes: { response: {} }, - }, - { - httpReq: { - url: 'https://api.amplitude.com/2/httpapi/test6', - data: { - api_key: 'c9d8a13b8bcab46a547f7be5200c483d', - events: [ - { - app_name: 'Rudder-CleverTap_Example', - app_version: '1.0', - time: 1619006730330, - user_id: 'gabi_userId_45', - user_properties: { - Residence: 'Shibuya', - city: 'Tokyo', - country: 'JP', - email: 'gabi29@gmail.com', - gender: 'M', - name: 'User2 Gabi2', - organization: 'Company', - region: 'ABC', - title: 'Owner', - zip: '100-0001', - }, - }, - ], - options: { min_id_length: 1 }, - }, - params: { destination: 'any' }, - headers: { 'Content-Type': 'application/json', 'User-Agent': 'RudderLabs' }, - method: 'POST', - }, - httpRes: {}, - }, { httpReq: { url: 'https://rest.iad-03.braze.com/users/identify/test1', @@ -391,5 +325,203 @@ const deleteNwData = [ }, }, }, + { + httpReq: { + url: 'https://rest.iad-03.braze.com/users/identify/testV1', + data: { + aliases_to_identify: [ + { + external_id: 'gabi_userId_45', + user_alias: { alias_label: 'rudder_id', alias_name: 'gabi_anonId_45' }, + }, + ], + }, + params: { destination: 'braze' }, + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + 'User-Agent': 'RudderLabs', + }, + method: 'POST', + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 401, + }, + }, + { + httpReq: { + url: 'https://rest.iad-03.braze.com/users/track/testV1', + data: { + partner: 'RudderStack', + attributes: [ + { + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, + { + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, + { + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, + ], + }, + params: { destination: 'braze' }, + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + 'User-Agent': 'RudderLabs', + }, + method: 'POST', + }, + httpRes: { + data: '{"message":"Valid data must be provided in the \'attributes\', \'events\', or \'purchases\' fields.","errors":[{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":0},{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":1}]}', + status: 401, + }, + }, + { + httpReq: { + method: 'post', + data: { + external_ids: ['braze_test_user', 'user@50'], + user_aliases: [ + { alias_name: '77e278c9-e984-4cdd-950c-cd0b61befd03', alias_label: 'rudder_id' }, + { alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', alias_label: 'rudder_id' }, + ], + }, + headers: { Authorization: 'Bearer dummyApiKey' }, + url: 'https://rest.iad-03.braze.com/users/export/ids', + }, + httpRes: { + data: { + users: [ + { + created_at: '2023-03-17T20:51:58.297Z', + external_id: 'braze_test_user', + user_aliases: [], + appboy_id: '6414d2ee33326e3354e3040b', + braze_id: '6414d2ee33326e3354e3040b', + first_name: 'Jackson', + last_name: 'Miranda', + random_bucket: 8134, + email: 'jackson24miranda@gmail.com', + custom_attributes: { + pwa: false, + is_registered: true, + last_identify: 'GOOGLE_SIGN_IN', + account_region: 'ON', + is_pickup_selected: 'false', + has_tradein_attempt: false, + custom_obj_attr: { + key1: 'value1', + key2: 'value2', + key3: 'value3', + }, + custom_arr: [1, 2, 'str1'], + }, + custom_events: [ + { + name: 'Sign In Completed', + first: '2023-03-10T18:36:05.028Z', + last: '2023-03-10T18:36:05.028Z', + count: 2, + }, + ], + total_revenue: 0, + push_subscribe: 'subscribed', + email_subscribe: 'subscribed', + }, + ], + }, + message: 'success', + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://rest.iad-01.braze.com/users/identify', + }, + httpRes: { + response: {}, + message: 'success', + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://rest.iad-03.braze.com/users/identify', + }, + httpRes: { + response: {}, + message: 'success', + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://rest.iad-03.braze.com/users/track/testV1', + data: { + partner: 'RudderStack', + attributes: [ + { + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, + { + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, + { + email: '123@a.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + external_id: '456345345', + }, + ], + }, + params: { destination: 'braze' }, + headers: { + Accept: 'application/json', + Authorization: 'Bearer api_key', + 'Content-Type': 'application/json', + 'User-Agent': 'RudderLabs', + }, + method: 'POST', + }, + httpRes: { + data: '{"message":"Valid data must be provided in the \'attributes\', \'events\', or \'purchases\' fields.","errors":[{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":0},{"type":"The value provided for the \'email\' field is not a valid email.","input_array":"attributes","index":1}]}', + status: 401, + }, + }, ]; export const networkCallsData = [...deleteNwData, ...dataDeliveryMocksData]; diff --git a/test/integrations/destinations/braze/processor/data.ts b/test/integrations/destinations/braze/processor/data.ts new file mode 100644 index 0000000000..58c54bb232 --- /dev/null +++ b/test/integrations/destinations/braze/processor/data.ts @@ -0,0 +1,3866 @@ +export const data = [ + { + name: 'braze', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + closed_at: null, + orderTotal: 0, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', + originalTimestamp: '2020-01-24T06:29:02.362Z', + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53709', + sentAt: '2020-01-24T06:29:02.363Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'identify', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-01.braze.com/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + email: 'mickey@disney.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + closed_at: null, + orderTotal: 0, + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 1: ERROR - No attributes found to update the user profile', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', + originalTimestamp: '2020-01-24T06:29:02.362Z', + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53709', + sentAt: '2020-01-24T06:29:02.363Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'identify', + userId: 'mickeyMouse', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'No attributes found to update the user profile', + statTags: { + destType: 'BRAZE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + event: 'braze revenue test', + integrations: { + All: true, + }, + messageId: 'a6a0ad5a-bd26-4f19-8f75-38484e580fc7', + originalTimestamp: '2020-01-24T06:29:02.364Z', + properties: { + currency: 'USD', + revenue: 50, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53710', + sentAt: '2020-01-24T06:29:02.364Z', + timestamp: '2020-01-24T11:59:02.403+05:30', + type: 'track', + userId: 'mickeyMouse', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + events: [ + { + name: 'braze revenue test', + time: '2020-01-24T11:59:02.403+05:30', + properties: { + revenue: 50, + }, + external_id: 'mickeyMouse', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'mickeyMouse', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + email: 'mickey@disney.com', + closed_at: null, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'braze revenue test', + integrations: { + All: true, + }, + messageId: 'a6a0ad5a-bd26-4f19-8f75-38484e580fc7', + originalTimestamp: '2020-01-24T06:29:02.364Z', + properties: { + currency: 'USD', + revenue: 50, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53710', + sentAt: '2020-01-24T06:29:02.364Z', + timestamp: '2020-01-24T11:59:02.403+05:30', + type: 'track', + userId: 'mickeyMouse', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + attributes: [ + { + email: 'mickey@disney.com', + closed_at: null, + external_id: 'mickeyMouse', + }, + ], + events: [ + { + name: 'braze revenue test', + time: '2020-01-24T11:59:02.403+05:30', + properties: { + revenue: 50, + }, + external_id: 'mickeyMouse', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'mickeyMouse', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'eu-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: 'dd266c67-9199-4a52-ba32-f46ddde67312', + originalTimestamp: '2020-01-24T06:29:02.358Z', + properties: { + path: '/tests/html/index2.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost/tests/html/index2.html', + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53708', + sentAt: '2020-01-24T06:29:02.359Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'page', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + events: [ + { + name: 'Page Viewed', + time: '2020-01-24T11:59:02.402+05:30', + properties: { + path: '/tests/html/index2.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost/tests/html/index2.html', + }, + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', + originalTimestamp: '2020-01-24T06:29:02.362Z', + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53709', + sentAt: '2020-01-24T06:29:02.363Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'identify', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-01.braze.com/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + enableNestedArrayOperations: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstName: 'Mickey', + gender: 'woman', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'braze revenue test', + integrations: { + All: true, + }, + messageId: 'a6a0ad5a-bd26-4f19-8f75-38484e580fc7', + originalTimestamp: '2020-01-24T06:29:02.364Z', + properties: { + currency: 'USD', + revenue: 50, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53710', + sentAt: '2020-01-24T06:29:02.364Z', + timestamp: '2020-01-24T11:59:02.403+05:30', + type: 'track', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + attributes: [ + { + email: 'mickey@disney.com', + first_name: 'Mickey', + gender: 'F', + city: 'Disney', + country: 'USA', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + events: [ + { + name: 'braze revenue test', + time: '2020-01-24T11:59:02.403+05:30', + properties: { + revenue: 50, + }, + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'KM Order Completed', + integrations: { + All: true, + }, + messageId: 'aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a', + originalTimestamp: '2020-01-24T06:29:02.367Z', + properties: { + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + price: 19, + product_id: '507f1f77bcf86cd799439011', + quantity: 1, + sku: '45790-32', + url: 'https://www.example.com/product/path', + }, + { + category: 'Games', + name: 'Uno Card Game', + price: 3, + product_id: '505bd76785ebb509fc183733', + quantity: 2, + sku: '46493-32', + }, + ], + revenue: 25, + shipping: 3, + subtotal: 22.5, + tax: 2, + total: 27.5, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53712', + sentAt: '2020-01-24T06:29:02.368Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'track', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + attributes: [ + { + email: 'mickey@disney.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + events: [ + { + name: 'KM Order Completed', + time: '2020-01-24T11:59:02.402+05:30', + properties: { + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + coupon: 'hasbros', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + price: 19, + product_id: '507f1f77bcf86cd799439011', + quantity: 1, + sku: '45790-32', + url: 'https://www.example.com/product/path', + }, + { + category: 'Games', + name: 'Uno Card Game', + price: 3, + product_id: '505bd76785ebb509fc183733', + quantity: 2, + sku: '46493-32', + }, + ], + revenue: 25, + shipping: 3, + subtotal: 22.5, + tax: 2, + total: 27.5, + }, + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2020-09-14T12:09:37.491Z', + userId: 'Randomuser2222', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.3', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'file:///Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html', + path: '/Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html', + title: 'Fullstory Test', + search: '', + referrer: '', + }, + locale: 'en-GB', + screen: { + density: 2, + }, + traits: { + email: 'manashi@gmaiol.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.3', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36', + }, + messageId: '24ecc509-ce3e-473c-8483-ba1ea2c195cb', + properties: { + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + key1: { + key11: 'value1', + key22: 'value2', + }, + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + currency78: 'USD', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price23: 3, + category: 'Games', + quantity: 2, + currency78: 'USD', + product_id: '505bd76785ebb509fc183733', + }, + ], + }, + anonymousId: 'c6ff1462-b692-43d6-8f6a-659efedc99ea', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-14T12:09:37.491Z', + }, + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: + 'Invalid Order Completed event: Message properties and product at index: 0 is missing currency', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'BRAZE', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'group', + event: 'Order Completed', + sentAt: '2020-09-14T12:09:37.491Z', + userId: 'Randomuser2222', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.3', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'file:///Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html', + path: '/Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html', + title: 'Fullstory Test', + search: '', + referrer: '', + }, + locale: 'en-GB', + screen: { + density: 2, + }, + traits: { + email: 'manashi@gmaiol.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.3', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36', + }, + messageId: '24ecc509-ce3e-473c-8483-ba1ea2c195cb', + traits: { + groupId: '1234', + }, + anonymousId: 'c6ff1462-b692-43d6-8f6a-659efedc99ea', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-14T12:09:37.491Z', + }, + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + ab_rudder_group_1234: true, + external_id: 'Randomuser2222', + }, + ], + partner: 'RudderStack', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'Randomuser2222', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'external_id', + id: 'mickey@disney.com', + }, + ], + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + home_city: 'Disney', + country: 'USA', + first_name: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', + originalTimestamp: '2020-01-24T06:29:02.362Z', + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53709', + sentAt: '2020-01-24T06:29:02.363Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'identify', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-01.braze.com/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + home_city: 'Disney', + country: 'USA', + external_id: 'mickey@disney.com', + first_name: 'Mickey', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: 'mickey@disney.com', + }, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'Order Completed', + integrations: { + All: true, + }, + messageId: 'aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a', + originalTimestamp: '2020-01-24T06:29:02.367Z', + properties: { + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + price: 0, + product_id: '507f1f77bcf86cd799439011', + quantity: 1, + sku: '45790-32', + url: 'https://www.example.com/product/path', + }, + { + category: 'Games', + name: 'Uno Card Game', + price: 0, + product_id: '505bd76785ebb509fc183733', + quantity: 2, + sku: '46493-32', + }, + ], + revenue: 25, + shipping: 3, + subtotal: 22.5, + tax: 2, + total: 27.5, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53712', + sentAt: '2020-01-24T06:29:02.368Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'track', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + email: 'mickey@disney.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + purchases: [ + { + product_id: '507f1f77bcf86cd799439011', + price: 0, + currency: 'USD', + quantity: 1, + time: '2020-01-24T11:59:02.402+05:30', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + { + product_id: '505bd76785ebb509fc183733', + price: 0, + currency: 'USD', + quantity: 2, + time: '2020-01-24T11:59:02.402+05:30', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + partner: 'RudderStack', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'Order Completed', + integrations: { + All: true, + }, + messageId: 'aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a', + originalTimestamp: '2020-01-24T06:29:02.367Z', + properties: { + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + price: 0, + product_id: '507f1f77bcf86cd799439011', + quantity: 1, + sku: '45790-32', + url: 'https://www.example.com/product/path', + }, + { + category: 'Games', + name: 'Uno Card Game', + price: 10, + product_id: '505bd76785ebb509fc183733', + quantity: 2, + sku: '46493-32', + }, + ], + revenue: 25, + shipping: 3, + subtotal: 22.5, + tax: 2, + total: 27.5, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53712', + sentAt: '2020-01-24T06:29:02.368Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'track', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + email: 'mickey@disney.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + purchases: [ + { + product_id: '507f1f77bcf86cd799439011', + price: 0, + currency: 'USD', + quantity: 1, + time: '2020-01-24T11:59:02.402+05:30', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + { + product_id: '505bd76785ebb509fc183733', + price: 10, + currency: 'USD', + quantity: 2, + time: '2020-01-24T11:59:02.402+05:30', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + partner: 'RudderStack', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + enableNestedArrayOperations: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + cars2: { + update: [ + { + age: 30, + id: 2, + identifier: 'id', + name: 'abcd', + }, + { + age: 27, + id: 1, + identifier: 'id', + name: 'abcd', + }, + ], + }, + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstName: 'Mickey', + gender: 'woman', + pets: { + add: [ + { + age: 27, + id: 1, + name: 'abc', + }, + ], + remove: [ + { + id: 3, + identifier: 'id', + }, + { + id: 4, + identifier: 'id', + }, + ], + update: [ + { + age: 27, + id: 2, + identifier: 'id', + name: 'abc', + }, + ], + }, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'braze revenue test', + integrations: { + All: true, + }, + messageId: '89140820-c187-4e62-9599-3c633771ee58', + originalTimestamp: '2023-03-14T02:06:26.501+05:30', + properties: { + currency: 'USD', + mergeObjectsUpdateOperation: false, + revenue: 50, + }, + receivedAt: '2023-03-14T02:06:22.433+05:30', + request_ip: '[::1]', + rudderId: '2686e376-7e08-42f7-8edc-ff67eb238a91', + sentAt: '2023-03-14T02:06:26.501+05:30', + timestamp: '2023-03-14T02:06:22.432+05:30', + type: 'track', + userId: 'finalUserTestCA', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + attributes: [ + { + email: 'mickey@disney.com', + first_name: 'Mickey', + gender: 'F', + cars2: { + $update: [ + { + $identifier_key: 'id', + $identifier_value: 2, + $new_object: { + age: 30, + name: 'abcd', + }, + }, + { + $identifier_key: 'id', + $identifier_value: 1, + $new_object: { + age: 27, + name: 'abcd', + }, + }, + ], + }, + city: 'Disney', + country: 'USA', + pets: { + $update: [ + { + $identifier_key: 'id', + $identifier_value: 2, + $new_object: { + age: 27, + name: 'abc', + }, + }, + ], + $remove: [ + { + $identifier_key: 'id', + $identifier_value: 3, + }, + { + $identifier_key: 'id', + $identifier_value: 4, + }, + ], + $add: [ + { + age: 27, + id: 1, + name: 'abc', + }, + ], + }, + _merge_objects: false, + external_id: 'finalUserTestCA', + }, + ], + events: [ + { + name: 'braze revenue test', + time: '2023-03-14T02:06:22.432+05:30', + properties: { + mergeObjectsUpdateOperation: false, + revenue: 50, + }, + external_id: 'finalUserTestCA', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'finalUserTestCA', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 14', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + enableNestedArrayOperations: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + cars: { + add: [ + { + age: 27, + id: 1, + name: 'abc', + }, + ], + update: [ + { + age: 30, + id: 2, + identifier: 'id', + name: 'abcd', + }, + { + age: 27, + id: 1, + identifier: 'id', + name: 'abcd', + }, + ], + }, + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstName: 'Mickey', + gender: 'woman', + pets: [ + { + breed: 'beagle', + id: 1, + name: 'Gus', + type: 'dog', + }, + { + breed: 'calico', + id: 2, + name: 'Gerald', + type: 'cat', + }, + ], + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'braze revenue test', + integrations: { + All: true, + }, + messageId: 'd1e049af-913c-46ee-8f5c-5b26966e896f', + originalTimestamp: '2023-03-14T02:13:10.758+05:30', + properties: { + currency: 'USD', + mergeObjectsUpdateOperation: false, + revenue: 50, + }, + receivedAt: '2023-03-14T02:13:10.519+05:30', + request_ip: '[::1]', + rudderId: '2686e376-7e08-42f7-8edc-ff67eb238a91', + sentAt: '2023-03-14T02:13:10.758+05:30', + timestamp: '2023-03-14T02:13:10.518+05:30', + type: 'track', + userId: 'finalUserTestCA', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + attributes: [ + { + email: 'mickey@disney.com', + first_name: 'Mickey', + gender: 'F', + cars: { + $update: [ + { + $identifier_key: 'id', + $identifier_value: 2, + $new_object: { + age: 30, + name: 'abcd', + }, + }, + { + $identifier_key: 'id', + $identifier_value: 1, + $new_object: { + age: 27, + name: 'abcd', + }, + }, + ], + $add: [ + { + age: 27, + id: 1, + name: 'abc', + }, + ], + }, + city: 'Disney', + country: 'USA', + pets: [ + { + breed: 'beagle', + id: 1, + name: 'Gus', + type: 'dog', + }, + { + breed: 'calico', + id: 2, + name: 'Gerald', + type: 'cat', + }, + ], + _merge_objects: false, + external_id: 'finalUserTestCA', + }, + ], + events: [ + { + name: 'braze revenue test', + time: '2023-03-14T02:13:10.518+05:30', + properties: { + mergeObjectsUpdateOperation: false, + revenue: 50, + }, + external_id: 'finalUserTestCA', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'finalUserTestCA', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + channel: 'web', + context: { + traits: { + address: { + city: 'Mathura', + country: 'India', + }, + email: 'a@gmail.com', + phone: '9988123321', + firstName: 'anuj', + lastName: 'kumar', + gender: 'male', + birthday: '01/01/1971', + avatar: 'https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg', + bio: 'Tech and tension go together', + language: 'en-IN', + job: 'Director', + company: 'Plinth India', + }, + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + integrations: { + All: true, + }, + request_ip: '[::1]:53709', + type: 'identify', + userId: 'ank101', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-01.braze.com/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + country: 'India', + dob: '01/01/1971', + email: 'a@gmail.com', + first_name: 'anuj', + gender: 'M', + home_city: 'Mathura', + image_url: + 'https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg', + last_name: 'kumar', + phone: '9988123321', + bio: 'Tech and tension go together', + language: 'en-IN', + job: 'Director', + company: 'Plinth India', + external_id: 'ank101', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'ank101', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 16', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + channel: 'web', + context: { + traits: { + address: { + city: 'Mathura', + country: 'India', + }, + email: 'a@gmail.com', + phone: '9988123321', + firstName: 'anuj', + lastName: 'kumar', + gender: null, + birthday: '01/01/1971', + avatar: 'https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg', + bio: 'Tech and tension go together', + language: 'en-IN', + job: 'Director', + company: null, + }, + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + integrations: { + All: true, + }, + request_ip: '[::1]:53709', + type: 'identify', + userId: 'ank101', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-01.braze.com/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + country: 'India', + dob: '01/01/1971', + email: 'a@gmail.com', + first_name: 'anuj', + gender: null, + home_city: 'Mathura', + image_url: + 'https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg', + last_name: 'kumar', + phone: '9988123321', + bio: 'Tech and tension go together', + language: 'en-IN', + job: 'Director', + company: null, + external_id: 'ank101', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'ank101', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 17', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'US-03', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + integrations: { + All: true, + }, + request_ip: '[::1]:53709', + type: 'alias', + previousId: 'userId', + userId: 'userMergeTest2', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-03.braze.com/users/merge', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + merge_updates: [ + { + identifier_to_merge: { + external_id: 'userId', + }, + identifier_to_keep: { + external_id: 'userMergeTest2', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'userMergeTest2', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 18: ERROR - previousId is required for alias call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'US-03', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + integrations: { + All: true, + }, + request_ip: '[::1]:53709', + type: 'alias', + userId: 'userMergeTest2', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: '[BRAZE]: previousId is required for alias call', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'BRAZE', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 19: ERROR - userId is required for alias call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'US-03', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + integrations: { + All: true, + }, + request_ip: '[::1]:53709', + type: 'alias', + previousId: 'userMergeTest2', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: '[BRAZE]: userId is required for alias call', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'BRAZE', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 20', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { + sourceType: 'metadata.sourceType', + destinationType: 'metadata.destinationType', + k8_namespace: 'metadata.namespace', + }, + message: { + channel: 'web', + context: { + traits: { + email: 'A@HOTMAIL.COM', + phone: '9988123321', + firstName: 'anil', + lastName: 'kumar', + gender: null, + birthday: '01/01/1971', + avatar: 'https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg', + bio: 'Tech and tension go together', + language: 'en-IN', + job: 'Director', + company: null, + }, + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + integrations: { + All: true, + }, + request_ip: '[::1]:53709', + type: 'identify', + userId: 'ank101', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-01.braze.com/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + dob: '01/01/1971', + email: 'a@hotmail.com', + first_name: 'anil', + gender: null, + image_url: + 'https://i.kym-cdn.com/entries/icons/mobile/000/034/772/anuj-1.jpg', + last_name: 'kumar', + phone: '9988123321', + bio: 'Tech and tension go together', + language: 'en-IN', + job: 'Director', + company: null, + external_id: 'ank101', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'ank101', + }, + metadata: { + sourceType: 'metadata.sourceType', + destinationType: 'metadata.destinationType', + k8_namespace: 'metadata.namespace', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 21', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { + sourceType: 'metadata.sourceType', + destinationType: 'metadata.destinationType', + k8_namespace: 'metadata.namespace', + }, + message: { + anonymousId: 'e6ab2c5e-1cda-34a9-g962-r2f62df18abc', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'Order Completed', + integrations: { + All: true, + }, + messageId: 'aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a', + originalTimestamp: '2020-01-24T06:29:02.367Z', + properties: { + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + price: 0, + product_id: '507f1f77bcf86cd799439011', + quantity: 1, + sku: '45790-32', + url: 'https://www.example.com/product/path', + }, + ], + revenue: 25, + shipping: 3, + subtotal: 22.5, + tax: 2, + total: 27.5, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53712', + sentAt: '2020-01-24T06:29:02.368Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'track', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-01.braze.com/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + email: 'mickey@disney.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-1cda-34a9-g962-r2f62df18abc', + alias_label: 'rudder_id', + }, + }, + ], + purchases: [ + { + product_id: '507f1f77bcf86cd799439011', + price: 0, + currency: 'USD', + quantity: 1, + time: '2020-01-24T11:59:02.402+05:30', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-1cda-34a9-g962-r2f62df18abc', + alias_label: 'rudder_id', + }, + }, + ], + partner: 'RudderStack', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-1cda-34a9-g962-r2f62df18abc', + }, + metadata: { + sourceType: 'metadata.sourceType', + destinationType: 'metadata.destinationType', + k8_namespace: 'metadata.namespace', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 22', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'group', + event: 'Order Completed', + sentAt: '2020-09-14T12:09:37.491Z', + userId: 'Randomuser2222', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.3', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'file:///Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html', + path: '/Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html', + title: 'Fullstory Test', + search: '', + referrer: '', + }, + locale: 'en-GB', + screen: { + density: 2, + }, + traits: { + email: 'manashi@gmaiol.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.3', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36', + }, + messageId: '24ecc509-ce3e-473c-8483-ba1ea2c195cb', + groupId: '1234', + traits: { + phone: '5055077683', + subscriptionState: 'subscribed', + }, + anonymousId: 'c6ff1462-b692-43d6-8f6a-659efedc99ea', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-14T12:09:37.491Z', + }, + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + enableSubscriptionGroupInGroupCall: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/v2/subscription/status/set', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + subscription_groups: [ + { + subscription_group_id: '1234', + subscription_state: 'subscribed', + external_id: ['Randomuser2222'], + phones: ['5055077683'], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 23', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'group', + event: 'Order Completed', + sentAt: '2020-09-14T12:09:37.491Z', + userId: 'Randomuser2222', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.3', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'file:///Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html', + path: '/Users/manashi/Desktop/rudder-all-sdk-application-testing/Fullstory%20test%20By%20JS%20SDK/braze.html', + title: 'Fullstory Test', + search: '', + referrer: '', + }, + locale: 'en-GB', + screen: { + density: 2, + }, + traits: { + email: 'manashi@gmaiol.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.3', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36', + }, + messageId: '24ecc509-ce3e-473c-8483-ba1ea2c195cb', + groupId: '1234', + traits: { + email: 'abc@test.com', + subscriptionState: 'unsubscribed', + }, + anonymousId: 'c6ff1462-b692-43d6-8f6a-659efedc99ea', + integrations: { + All: true, + }, + originalTimestamp: '2020-09-14T12:09:37.491Z', + }, + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + enableSubscriptionGroupInGroupCall: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/v2/subscription/status/set', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + subscription_groups: [ + { + subscription_group_id: '1234', + subscription_state: 'unsubscribed', + external_id: ['Randomuser2222'], + emails: ['abc@test.com'], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 24', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + 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.117 Safari/537.36', + }, + event: 'braze revenue test', + integrations: { + All: true, + braze: { + appId: '123', + }, + }, + messageId: 'a6a0ad5a-bd26-4f19-8f75-38484e580fc7', + originalTimestamp: '2020-01-24T06:29:02.364Z', + properties: { + currency: 'USD', + revenue: 50, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53710', + sentAt: '2020-01-24T06:29:02.364Z', + timestamp: '2020-01-24T11:59:02.403+05:30', + type: 'track', + userId: 'mickeyMouse', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + events: [ + { + name: 'braze revenue test', + time: '2020-01-24T11:59:02.403+05:30', + properties: { + revenue: 50, + }, + external_id: 'mickeyMouse', + app_id: '123', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'mickeyMouse', + }, + metadata: { + sourceType: '', + destinationType: '', + namespace: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 25', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + sendPurchaseEventWithExtraProperties: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'Order Completed', + integrations: { + All: true, + }, + messageId: 'aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a', + originalTimestamp: '2020-01-24T06:29:02.367Z', + properties: { + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + price: 0, + product_id: '507f1f77bcf86cd799439023', + quantity: 1, + sku: '45790-32', + url: 'https://www.example.com/product/path', + }, + { + category: 'Games', + name: 'Uno Card Game', + price: 0, + product_id: '505bd76785ebb509fc183724', + quantity: 2, + sku: '46493-32', + }, + ], + revenue: 25, + shipping: 3, + subtotal: 22.5, + tax: 2, + total: 27.5, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53712', + sentAt: '2020-01-24T06:29:02.368Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'track', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + attributes: [ + { + email: 'mickey@disney.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + purchases: [ + { + product_id: '507f1f77bcf86cd799439023', + price: 0, + currency: 'USD', + quantity: 1, + time: '2020-01-24T11:59:02.402+05:30', + properties: { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + url: 'https://www.example.com/product/path', + }, + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + { + product_id: '505bd76785ebb509fc183724', + price: 0, + currency: 'USD', + quantity: 2, + time: '2020-01-24T11:59:02.402+05:30', + properties: { + category: 'Games', + name: 'Uno Card Game', + }, + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + partner: 'RudderStack', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 25: ERROR - Invalid email, email must be a valid string', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + traits: { + city: 'Disney', + country: 'USA', + email: 123, + firstname: 'Mickey', + closed_at: null, + orderTotal: 0, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', + originalTimestamp: '2020-01-24T06:29:02.362Z', + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53709', + sentAt: '2020-01-24T06:29:02.363Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'identify', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Invalid email, email must be a valid string', + statTags: { + destType: 'BRAZE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 26', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + sendPurchaseEventWithExtraProperties: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + traits: { + city: 'Disney', + country: 'USA', + email: null, + firstname: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + event: 'Order Completed', + integrations: { + All: true, + }, + messageId: 'aa5f5e44-8756-40ad-ad1e-b0d3b9fa710a', + originalTimestamp: '2020-01-24T06:29:02.367Z', + properties: { + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + coupon: 'hasbros', + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + products: [ + { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + price: 0, + product_id: '507f1f77bcf86cd799439023', + quantity: 1, + sku: '45790-32', + url: 'https://www.example.com/product/path', + }, + { + category: 'Games', + name: 'Uno Card Game', + price: 0, + product_id: '505bd76785ebb509fc183724', + quantity: 2, + sku: '46493-32', + }, + ], + revenue: 25, + shipping: 3, + subtotal: 22.5, + tax: 2, + total: 27.5, + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53712', + sentAt: '2020-01-24T06:29:02.368Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'track', + userId: '', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + attributes: [ + { + _update_existing_only: false, + city: 'Disney', + country: 'USA', + email: null, + firstname: 'Mickey', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + }, + ], + partner: 'RudderStack', + purchases: [ + { + _update_existing_only: false, + currency: 'USD', + price: 0, + product_id: '507f1f77bcf86cd799439023', + properties: { + category: 'Games', + image_url: 'https:///www.example.com/product/path.jpg', + name: 'Monopoly: 3rd Edition', + url: 'https://www.example.com/product/path', + }, + quantity: 1, + time: '2020-01-24T11:59:02.402+05:30', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + }, + { + _update_existing_only: false, + currency: 'USD', + price: 0, + product_id: '505bd76785ebb509fc183724', + properties: { + category: 'Games', + name: 'Uno Card Game', + }, + quantity: 2, + time: '2020-01-24T11:59:02.402+05:30', + user_alias: { + alias_label: 'rudder_id', + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://rest.fra-01.braze.eu/users/track', + files: {}, + headers: { + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + method: 'POST', + params: {}, + type: 'REST', + userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/braze/router/data.ts b/test/integrations/destinations/braze/router/data.ts new file mode 100644 index 0000000000..76201bda41 --- /dev/null +++ b/test/integrations/destinations/braze/router/data.ts @@ -0,0 +1,803 @@ +export const data = [ + { + name: 'braze', + description: 'simple router tests', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'eu-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, + locale: 'en-GB', + os: { name: '', version: '' }, + screen: { density: 2 }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { All: true }, + messageId: 'dd266c67-9199-4a52-ba32-f46ddde67312', + originalTimestamp: '2020-01-24T06:29:02.358Z', + properties: { + path: '/tests/html/index2.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost/tests/html/index2.html', + }, + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53708', + sentAt: '2020-01-24T06:29:02.359Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'page', + userId: '', + }, + }, + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, + locale: 'en-GB', + os: { name: '', version: '' }, + screen: { density: 2 }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstname: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { All: true }, + messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', + originalTimestamp: '2020-01-24T06:29:02.362Z', + receivedAt: '2020-01-24T11:59:02.403+05:30', + request_ip: '[::1]:53709', + sentAt: '2020-01-24T06:29:02.363Z', + timestamp: '2020-01-24T11:59:02.402+05:30', + type: 'identify', + userId: '', + }, + }, + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + enableSubscriptionGroupInGroupCall: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + anonymousId: '56yrtsdfgbgxcb-22b4-401d-aae5-1b994be9a969', + groupId: 'c90f0fd2-2a02-4f2f-bf07-7e7d2c2ed2b1', + traits: { phone: '5055077683', subscriptionState: 'subscribed' }, + userId: 'user123', + type: 'group', + }, + }, + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + enableSubscriptionGroupInGroupCall: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { jobId: 4, userId: 'u1' }, + message: { + anonymousId: 'dfgdfgdfg-22b4-401d-aae5-1b994be9a969', + groupId: '58d0a278-b55b-4f10-b7d2-98d1c5dd4c30', + traits: { phone: '5055077683', subscriptionState: 'subscribed' }, + userId: 'user877', + type: 'group', + }, + }, + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + enableSubscriptionGroupInGroupCall: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { jobId: 5, userId: 'u1' }, + message: { type: 'alias', previousId: 'adsfsaf', userId: 'dsafsdf' }, + }, + { + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'us-01', + enableSubscriptionGroupInGroupCall: true, + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + metadata: { jobId: 6, userId: 'u1' }, + message: { type: 'alias', previousId: 'adsfsaf2', userId: 'dsafsdf2' }, + }, + ], + destType: 'braze', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + events: [ + { + name: 'Page Viewed', + time: '2020-01-24T11:59:02.402+05:30', + properties: { + path: '/tests/html/index2.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost/tests/html/index2.html', + }, + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + attributes: [ + { + email: 'mickey@disney.com', + city: 'Disney', + country: 'USA', + firstname: 'Mickey', + _update_existing_only: false, + user_alias: { + alias_name: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + alias_label: 'rudder_id', + }, + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/v2/subscription/status/set', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + subscription_groups: [ + { + external_id: ['user123'], + phones: ['5055077683'], + subscription_group_id: 'c90f0fd2-2a02-4f2f-bf07-7e7d2c2ed2b1', + subscription_state: 'subscribed', + }, + { + external_id: ['user877'], + phones: ['5055077683'], + subscription_group_id: '58d0a278-b55b-4f10-b7d2-98d1c5dd4c30', + subscription_state: 'subscribed', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.fra-01.braze.eu/users/merge', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + merge_updates: [ + { + identifier_to_keep: { external_id: 'dsafsdf' }, + identifier_to_merge: { external_id: 'adsfsaf' }, + }, + { + identifier_to_keep: { external_id: 'dsafsdf2' }, + identifier_to_merge: { external_id: 'adsfsaf2' }, + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, + { jobId: 3, userId: 'u1' }, + { jobId: 4, userId: 'u1' }, + { jobId: 5, userId: 'u1' }, + { jobId: 6, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + restApiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + dataCenter: 'eu-01', + }, + DestinationDefinition: { + DisplayName: 'Braze', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'BRAZE', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Braze', + Transformations: [], + }, + }, + ], + }, + }, + }, + }, + { + name: 'braze', + description: 'dedup enabled router tests', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + ID: '2N9UakqKF0D35wfzSeofIxPdL8X', + Name: 'Braze-Test', + Config: { + appKey: '0e5440c3-226b-45d0-91b5-c64da56cde16', + blacklistedEvents: [], + dataCenter: 'US-03', + enableNestedArrayOperations: false, + enableSubscriptionGroupInGroupCall: false, + eventFilteringOption: 'disable', + oneTrustCookieCategories: [], + restApiKey: 'dummyApiKey', + supportDedup: true, + trackAnonymousUser: true, + whitelistedEvents: [], + }, + Enabled: true, + WorkspaceID: '27O0bhB6p5ehfOWeeZlOSsSDTLg', + Transformations: [], + IsProcessorEnabled: true, + RevisionID: '2N9Uaf2tWq2QRmatBWQm03Rz6qX', + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + type: 'track', + event: 'Sign In Completed', + sentAt: '2023-03-10T18:36:04.738Z', + userId: 'braze_test_user', + channel: 'web', + context: { + locale: 'en-US', + traits: { + subscribe_once: true, + pwa: true, + email: 'jackson24miranda@gmail.com', + lastName: 'Miranda', + firstName: 'Spencer', + is_registered: true, + last_identify: 'GOOGLE_SIGN_IN', + account_region: 'ON', + is_pickup_selected: 'false', + has_tradein_attempt: false, + custom_obj_attr: { key1: 'value1', key2: 'value2', key4: 'value4' }, + custom_arr: [1, 2, 'str1'], + }, + library: { name: 'RudderLabs JavaScript SDK', version: '2.9.5' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36', + }, + rudderId: '4118560d-e4fc-4fd1-a734-9c69eae2c047', + messageId: '1a342814-a882-4b65-9cc9-347544997268', + timestamp: '2023-03-10T18:36:05.028Z', + properties: { + cause: '/redirector', + method: 'GOOGLE', + region: 'ON', + orderId: '6179367977099', + order_id: '6179367977099', + webhookurl: 'https://my.test.com', + countingMethod: 'standard', + is_first_time_signin: false, + }, + receivedAt: '2023-03-18T01:41:42.257+05:30', + request_ip: '[::1]', + anonymousId: '77e278c9-e984-4cdd-950c-cd0b61befd03', + originalTimestamp: '2023-03-10T18:36:04.733Z', + }, + }, + { + destination: { + ID: '2N9UakqKF0D35wfzSeofIxPdL8X', + Name: 'Braze-Test', + Config: { + appKey: '0e5440c3-226b-45d0-91b5-c64da56cde16', + blacklistedEvents: [], + dataCenter: 'US-03', + enableNestedArrayOperations: false, + enableSubscriptionGroupInGroupCall: false, + eventFilteringOption: 'disable', + oneTrustCookieCategories: [], + restApiKey: 'dummyApiKey', + supportDedup: true, + trackAnonymousUser: true, + whitelistedEvents: [], + }, + Enabled: true, + WorkspaceID: '27O0bhB6p5ehfOWeeZlOSsSDTLg', + Transformations: [], + IsProcessorEnabled: true, + RevisionID: '2N9Uaf2tWq2QRmatBWQm03Rz6qX', + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + type: 'track', + event: 'Sign In Completed', + sentAt: '2023-03-10T18:36:04.738Z', + userId: 'braze_test_user', + channel: 'web', + context: { + locale: 'en-US', + traits: { + subscribe_once: true, + pwa: true, + email: 'jackson24miranda@gmail.com', + lastName: 'Miranda 2', + firstName: 'Spencer', + is_registered: true, + last_identify: 'GOOGLE_SIGN_IN', + account_region: 'ON', + is_pickup_selected: 'true', + has_tradein_attempt: false, + custom_obj_attr: { key1: 'value1', key2: 'value2', key4: 'value4' }, + custom_arr: ['1', '2', 'str1'], + }, + library: { name: 'RudderLabs JavaScript SDK', version: '2.9.5' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36', + }, + rudderId: '4118560d-e4fc-4fd1-a734-9c69eae2c047', + messageId: '1a342814-a882-4b65-9cc9-347544997268', + timestamp: '2023-03-10T18:36:05.028Z', + properties: { + cause: '/redirector', + method: 'GOOGLE', + region: 'ON', + orderId: '6179367977099', + order_id: '6179367977099', + webhookurl: 'https://my.test.com', + countingMethod: 'standard', + is_first_time_signin: false, + }, + receivedAt: '2023-03-18T01:41:42.257+05:30', + request_ip: '[::1]', + anonymousId: '77e278c9-e984-4cdd-950c-cd0b61befd03', + originalTimestamp: '2023-03-10T18:36:04.733Z', + }, + }, + { + destination: { + ID: '2N9UakqKF0D35wfzSeofIxPdL8X', + Name: 'Braze-Test', + Config: { + appKey: '0e5440c3-226b-45d0-91b5-c64da56cde16', + blacklistedEvents: [], + dataCenter: 'US-03', + enableNestedArrayOperations: false, + enableSubscriptionGroupInGroupCall: false, + eventFilteringOption: 'disable', + oneTrustCookieCategories: [], + restApiKey: 'dummyApiKey', + supportDedup: true, + trackAnonymousUser: true, + whitelistedEvents: [], + }, + Enabled: true, + WorkspaceID: '27O0bhB6p5ehfOWeeZlOSsSDTLg', + Transformations: [], + IsProcessorEnabled: true, + RevisionID: '2N9Uaf2tWq2QRmatBWQm03Rz6qX', + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, + locale: 'en-GB', + os: { name: '', version: '' }, + screen: { density: 2 }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstName: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { All: true }, + messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', + type: 'identify', + userId: 'user@50', + }, + }, + { + destination: { + ID: '2N9UakqKF0D35wfzSeofIxPdL8X', + Name: 'Braze-Test', + Config: { + appKey: '0e5440c3-226b-45d0-91b5-c64da56cde16', + blacklistedEvents: [], + dataCenter: 'US-03', + enableNestedArrayOperations: false, + enableSubscriptionGroupInGroupCall: false, + eventFilteringOption: 'disable', + oneTrustCookieCategories: [], + restApiKey: 'dummyApiKey', + supportDedup: true, + trackAnonymousUser: true, + whitelistedEvents: [], + }, + Enabled: true, + WorkspaceID: '27O0bhB6p5ehfOWeeZlOSsSDTLg', + Transformations: [], + IsProcessorEnabled: true, + RevisionID: '2N9Uaf2tWq2QRmatBWQm03Rz6qX', + }, + metadata: { jobId: 4, userId: 'u1' }, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, + locale: 'en-GB', + os: { name: '', version: '' }, + screen: { density: 2 }, + traits: { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + firstName: 'Mickey', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { All: true }, + messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', + type: 'identify', + userId: 'user@50', + }, + }, + ], + destType: 'braze', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rest.iad-03.braze.com/users/track', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + partner: 'RudderStack', + attributes: [ + { + first_name: 'Spencer', + subscribe_once: true, + pwa: true, + external_id: 'braze_test_user', + custom_obj_attr: { key1: 'value1', key2: 'value2', key4: 'value4' }, + }, + { + last_name: 'Miranda 2', + is_pickup_selected: 'true', + external_id: 'braze_test_user', + custom_arr: ['1', '2', 'str1'], + }, + { + city: 'Disney', + country: 'USA', + email: 'mickey@disney.com', + external_id: 'user@50', + first_name: 'Mickey', + }, + ], + events: [ + { + name: 'Sign In Completed', + time: '2023-03-10T18:36:05.028Z', + properties: { + cause: '/redirector', + method: 'GOOGLE', + region: 'ON', + orderId: '6179367977099', + order_id: '6179367977099', + webhookurl: 'https://my.test.com', + countingMethod: 'standard', + is_first_time_signin: false, + }, + external_id: 'braze_test_user', + }, + { + name: 'Sign In Completed', + time: '2023-03-10T18:36:05.028Z', + properties: { + cause: '/redirector', + method: 'GOOGLE', + region: 'ON', + orderId: '6179367977099', + order_id: '6179367977099', + webhookurl: 'https://my.test.com', + countingMethod: 'standard', + is_first_time_signin: false, + }, + external_id: 'braze_test_user', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, + { jobId: 3, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '2N9UakqKF0D35wfzSeofIxPdL8X', + Name: 'Braze-Test', + Config: { + appKey: '0e5440c3-226b-45d0-91b5-c64da56cde16', + blacklistedEvents: [], + dataCenter: 'US-03', + enableNestedArrayOperations: false, + enableSubscriptionGroupInGroupCall: false, + eventFilteringOption: 'disable', + oneTrustCookieCategories: [], + restApiKey: 'dummyApiKey', + supportDedup: true, + trackAnonymousUser: true, + whitelistedEvents: [], + }, + Enabled: true, + WorkspaceID: '27O0bhB6p5ehfOWeeZlOSsSDTLg', + Transformations: [], + IsProcessorEnabled: true, + RevisionID: '2N9Uaf2tWq2QRmatBWQm03Rz6qX', + }, + }, + { + error: '[Braze Deduplication]: Duplicate user detected, the user is dropped', + statTags: { + destType: 'BRAZE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + batched: false, + metadata: [{ jobId: 4, userId: 'u1' }], + destination: { + ID: '2N9UakqKF0D35wfzSeofIxPdL8X', + Name: 'Braze-Test', + Config: { + appKey: '0e5440c3-226b-45d0-91b5-c64da56cde16', + blacklistedEvents: [], + dataCenter: 'US-03', + enableNestedArrayOperations: false, + enableSubscriptionGroupInGroupCall: false, + eventFilteringOption: 'disable', + oneTrustCookieCategories: [], + restApiKey: 'dummyApiKey', + supportDedup: true, + trackAnonymousUser: true, + whitelistedEvents: [], + }, + Enabled: true, + WorkspaceID: '27O0bhB6p5ehfOWeeZlOSsSDTLg', + Transformations: [], + IsProcessorEnabled: true, + RevisionID: '2N9Uaf2tWq2QRmatBWQm03Rz6qX', + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/campaign_manager/dataDelivery/data.ts b/test/integrations/destinations/campaign_manager/dataDelivery/data.ts new file mode 100644 index 0000000000..601ad56401 --- /dev/null +++ b/test/integrations/destinations/campaign_manager/dataDelivery/data.ts @@ -0,0 +1,604 @@ +export const data = [ + { + name: 'campaign_manager', + description: 'Sucess insert request V0', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437689/conversions/batchinsert', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + status: 200, + message: '[CAMPAIGN_MANAGER Response Handler] - Request Processed Successfully', + destinationResponse: { + response: { + hasFailures: false, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + }, + }, + }, + }, + }, + }, + { + name: 'campaign_manager', + description: 'Failure insert request', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437690/conversions/batchinsert', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 400, + body: { + output: { + status: 400, + message: 'Campaign Manager: Aborting during CAMPAIGN_MANAGER response transformation', + statTags: { + errorCategory: 'network', + errorType: 'aborted', + destType: 'CAMPAIGN_MANAGER', + module: 'destination', + implementation: 'native', + feature: 'dataDelivery', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + }, + destinationResponse: { + response: { + hasFailures: true, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + errors: [ + { + code: 'NOT_FOUND', + message: 'Floodlight config id: 213123123 was not found.', + kind: 'dfareporting#conversionError', + }, + ], + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + }, + }, + }, + }, + }, + }, + { + name: 'campaign_manager', + description: 'Failure insert request Aborted', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437691/conversions/batchinsert', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 400, + body: { + output: { + status: 400, + message: 'Campaign Manager: Aborting during CAMPAIGN_MANAGER response transformation', + statTags: { + errorCategory: 'network', + errorType: 'aborted', + destType: 'CAMPAIGN_MANAGER', + module: 'destination', + implementation: 'native', + feature: 'dataDelivery', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + }, + destinationResponse: { + response: { + hasFailures: true, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + errors: [ + { + code: 'INVALID_ARGUMENT', + message: 'Floodlight config id: 213123123 was not found.', + kind: 'dfareporting#conversionError', + }, + ], + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + }, + }, + }, + }, + }, + }, + { + name: 'campaign_manager', + description: 'Sucess and fail insert request v1', + feature: 'dataDelivery', + module: 'destination', + version: 'v1', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437692/conversions/batchinsert', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + kind: 'dfareporting#conversionsBatchInsertRequest', + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 8, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + metadata: [ + { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + { + jobId: 3, + attemptNum: 1, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + ], + files: {}, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + status: 200, + message: '[CAMPAIGN_MANAGER Response V1 Handler] - Request Processed Successfully', + destinationResponse: { + response: { + hasFailures: true, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + kind: 'dfareporting#conversionStatus', + errors: [ + { + code: 'INVALID_ARGUMENT', + kind: 'dfareporting#conversionError', + message: 'Floodlight config id: 213123123 was not found.', + }, + ], + }, + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 8, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + rudderJobMetadata: [ + { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + { + jobId: 3, + attemptNum: 1, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + ], + }, + response: [ + { + error: 'Floodlight config id: 213123123 was not found., ', + statusCode: 400, + metadata: { + attemptNum: 0, + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + jobId: 2, + secret: { + access_token: 'secret', + developer_token: 'developer_Token', + refresh_token: 'refresh', + }, + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + userId: '', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + }, + }, + { + error: 'success', + metadata: { + attemptNum: 1, + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + jobId: 3, + secret: { + access_token: 'secret', + developer_token: 'developer_Token', + refresh_token: 'refresh', + }, + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + userId: '', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + }, + statusCode: 200, + }, + ], + }, + }, + }, + }, + }, + { + name: 'campaign_manager', + description: 'Sucess insert request v1', + feature: 'dataDelivery', + module: 'destination', + version: 'v1', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/43770/conversions/batchinsert', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + metadata: { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + files: {}, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + status: 200, + message: '[CAMPAIGN_MANAGER Response V1 Handler] - Request Processed Successfully', + destinationResponse: { + response: { + hasFailures: false, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + rudderJobMetadata: { + jobId: 2, + attemptNum: 0, + userId: '', + sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr', + destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L', + workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o', + secret: { + access_token: 'secret', + refresh_token: 'refresh', + developer_token: 'developer_Token', + }, + }, + }, + response: [ + { + error: 'success', + statusCode: 200, + }, + ], + }, + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/campaign_manager/network.ts b/test/integrations/destinations/campaign_manager/network.ts new file mode 100644 index 0000000000..ddecbaf8fa --- /dev/null +++ b/test/integrations/destinations/campaign_manager/network.ts @@ -0,0 +1,311 @@ +const Data = [ + { + httpReq: { + method: 'post', + url: 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437689/conversions/batchinsert', + data: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + hasFailures: false, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437690/conversions/batchinsert', + data: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + hasFailures: true, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + errors: [ + { + code: 'NOT_FOUND', + message: 'Floodlight config id: 213123123 was not found.', + kind: 'dfareporting#conversionError', + }, + ], + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/43770/conversions/batchinsert', + data: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + hasFailures: false, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437692/conversions/batchinsert', + data: { + kind: 'dfareporting#conversionsBatchInsertRequest', + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 8, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + hasFailures: true, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + errors: [ + { + code: 'INVALID_ARGUMENT', + message: 'Floodlight config id: 213123123 was not found.', + kind: 'dfareporting#conversionError', + }, + ], + kind: 'dfareporting#conversionStatus', + }, + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 8, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437691/conversions/batchinsert', + data: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + hasFailures: true, + status: [ + { + conversion: { + timestampMicros: '1668624722000000', + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + }, + errors: [ + { + code: 'INVALID_ARGUMENT', + message: 'Floodlight config id: 213123123 was not found.', + kind: 'dfareporting#conversionError', + }, + ], + kind: 'dfareporting#conversionStatus', + }, + ], + kind: 'dfareporting#conversionsBatchInsertResponse', + }, + status: 200, + statusText: 'OK', + }, + }, +]; +export const networkCallsData = [...Data]; diff --git a/test/integrations/destinations/campaign_manager/router/data.ts b/test/integrations/destinations/campaign_manager/router/data.ts index 95372e1925..5b4e5bcce4 100644 --- a/test/integrations/destinations/campaign_manager/router/data.ts +++ b/test/integrations/destinations/campaign_manager/router/data.ts @@ -1,7 +1,7 @@ export const data = [ { name: 'campaign_manager', - description: 'Test 0', + description: 'Batch Different Type Requests', feature: 'router', module: 'destination', version: 'v0', @@ -17,6 +17,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 1, + userId: 'u1', }, destination: { Config: { @@ -56,28 +57,20 @@ export const data = [ postalCode: 'EC3M', streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + 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', + ordinal: '1', quantity: '455678', floodlightActivityId: '456543345245', value: 7, @@ -91,9 +84,7 @@ export const data = [ }, type: 'track', anonymousId: 'randomId', - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2022-11-17T00:22:02.903+05:30', }, @@ -106,6 +97,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 2, + userId: 'u1', }, destination: { Config: { @@ -145,21 +137,13 @@ export const data = [ postalCode: 'EC3M', streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, event: 'Promotion Clicked', type: 'track', @@ -167,7 +151,7 @@ export const data = [ properties: { profileId: 437689, floodlightConfigurationId: '213123123', - ordinal: 'string', + ordinal: '2', floodlightActivityId: '456543345245', quantity: '455678', value: 7, @@ -180,9 +164,7 @@ export const data = [ requestType: 'batchupdate', }, anonymousId: 'randomId', - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2022-11-17T00:22:02.903+05:30', }, @@ -195,6 +177,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 3, + userId: 'u1', }, destination: { Config: { @@ -234,21 +217,13 @@ export const data = [ postalCode: 'EC3M', streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, event: 'Promotion Clicked', type: 'track', @@ -256,16 +231,11 @@ export const data = [ properties: { profileId: 437689, floodlightConfigurationId: '213123123', - ordinal: 'string', + ordinal: '3', floodlightActivityId: '456543345245', - mobileDeviceId: 'string', value: 7, encryptedUserIdCandidates: ['dfghjbnm'], - gclid: 'string', - matchId: 'string', - dclid: 'string', quantity: '455678', - impressionId: 'string', limitAdTracking: true, childDirectedTreatment: true, encryptionInfo: { @@ -277,9 +247,7 @@ export const data = [ requestType: 'randomValue', }, anonymousId: 'randomId', - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2022-11-17T00:22:02.903+05:30', }, @@ -322,7 +290,7 @@ export const data = [ treatmentForUnderage: false, timestampMicros: '1668624722903000', floodlightConfigurationId: '213123123', - ordinal: 'string', + ordinal: '1', quantity: '455678', floodlightActivityId: '456543345245', value: 7, @@ -346,9 +314,10 @@ export const data = [ refresh_token: 'efgh5678', }, jobId: 1, + userId: 'u1', }, ], - batched: false, + batched: true, statusCode: 200, destination: { Config: { @@ -387,7 +356,7 @@ export const data = [ treatmentForUnderage: false, timestampMicros: '1668624722903000', floodlightConfigurationId: '213123123', - ordinal: 'string', + ordinal: '2', quantity: '455678', floodlightActivityId: '456543345245', value: 7, @@ -409,9 +378,10 @@ export const data = [ refresh_token: 'efgh5678', }, jobId: 2, + userId: 'u1', }, ], - batched: false, + batched: true, statusCode: 200, destination: { Config: { @@ -444,6 +414,7 @@ export const data = [ refresh_token: 'efgh5678', }, jobId: 3, + userId: 'u1', }, ], statusCode: 400, @@ -461,4 +432,801 @@ export const data = [ }, }, }, + { + name: 'campaign_manager', + description: 'Batch Sucessful BatchInsert Request', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + metadata: { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 4, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + matchId: '123', + floodlightConfigurationId: '213123123', + quantity: '455678', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + limitAdTracking: true, + childDirectedTreatment: true, + 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: 5, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + type: 'track', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + matchId: '111', + limitAdTracking: true, + childDirectedTreatment: true, + requestType: 'batchinsert', + }, + 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: 6, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + type: 'track', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + ordinal: '1', + quantity: '455678', + limitAdTracking: true, + childDirectedTreatment: true, + requestType: 'batchinsert', + }, + 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', + conversions: [ + { + floodlightConfigurationId: '213123123', + ordinal: '1', + timestampMicros: '1668624722903000', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + matchId: '123', + limitAdTracking: true, + childDirectedTreatment: true, + nonPersonalizedAd: false, + treatmentForUnderage: false, + }, + { + floodlightConfigurationId: '213123123', + ordinal: '1', + timestampMicros: '1668624722903000', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + matchId: '111', + limitAdTracking: true, + childDirectedTreatment: true, + nonPersonalizedAd: false, + treatmentForUnderage: false, + }, + { + floodlightConfigurationId: '213123123', + ordinal: '1', + timestampMicros: '1668624722903000', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + nonPersonalizedAd: false, + treatmentForUnderage: false, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 4, + userId: 'u1', + }, + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 5, + userId: 'u1', + }, + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 6, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + }, + ], + }, + }, + }, + }, + { + name: 'campaign_manager', + description: 'Batch Sucessful BatchInsert and BatchUpdate Request', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + metadata: { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 4, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + matchId: '123', + floodlightConfigurationId: '213123123', + quantity: '455678', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + limitAdTracking: true, + childDirectedTreatment: true, + requestType: 'batchupdate', + }, + 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: 5, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + type: 'track', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + matchId: '111', + limitAdTracking: true, + childDirectedTreatment: true, + 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: 6, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + type: 'track', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + floodlightActivityId: '456543345245', + value: 7, + gclid: '123', + ordinal: '1', + quantity: '455678', + limitAdTracking: true, + childDirectedTreatment: true, + requestType: 'batchinsert', + }, + 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/batchupdate', + headers: { + Authorization: 'Bearer dummyApiToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + kind: 'dfareporting#conversionsBatchUpdateRequest', + conversions: [ + { + floodlightConfigurationId: '213123123', + ordinal: '1', + timestampMicros: '1668624722903000', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + matchId: '123', + nonPersonalizedAd: false, + treatmentForUnderage: false, + }, + { + floodlightConfigurationId: '213123123', + ordinal: '1', + timestampMicros: '1668624722903000', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + matchId: '111', + nonPersonalizedAd: false, + treatmentForUnderage: false, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 4, + userId: 'u1', + }, + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 5, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + }, + { + 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', + conversions: [ + { + floodlightConfigurationId: '213123123', + ordinal: '1', + timestampMicros: '1668624722903000', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + gclid: '123', + limitAdTracking: true, + childDirectedTreatment: true, + nonPersonalizedAd: false, + treatmentForUnderage: false, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 6, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + }, + ], + }, + }, + }, + }, + { + name: 'campaign_manager', + description: 'Entire Batch has data instrumentation', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + metadata: { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 4, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + quantity: '455678', + ordinal: '1', + floodlightActivityId: '456543345245', + value: 7, + limitAdTracking: true, + childDirectedTreatment: true, + requestType: 'batchupdate', + }, + 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: 5, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + type: 'track', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + ordinal: '1', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + limitAdTracking: true, + childDirectedTreatment: true, + 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: 6, + userId: 'u1', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + event: 'Promotion Clicked', + type: 'track', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + floodlightActivityId: '456543345245', + value: 7, + ordinal: '1', + quantity: '455678', + limitAdTracking: true, + childDirectedTreatment: true, + requestType: 'batchinsert', + }, + 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: [ + { + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 4, + userId: 'u1', + }, + ], + batched: false, + 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: 'router', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + }, + { + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 5, + userId: 'u1', + }, + ], + batched: false, + 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: 'router', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + }, + { + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 6, + userId: 'u1', + }, + ], + batched: false, + 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: 'router', + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + }, + ], + }, + }, + }, + }, ]; diff --git a/test/integrations/destinations/candu/router/data.ts b/test/integrations/destinations/candu/router/data.ts index 8aa6441881..e6c7d96a15 100644 --- a/test/integrations/destinations/candu/router/data.ts +++ b/test/integrations/destinations/candu/router/data.ts @@ -18,9 +18,7 @@ export const data = [ Name: 'CANDU', DisplayName: 'Candu', Config: { - destConfig: { - defaultConfig: ['apiKey'], - }, + destConfig: { defaultConfig: ['apiKey'] }, excludeKeys: [], includeKeys: [ 'apiKey', @@ -47,16 +45,12 @@ export const data = [ }, ResponseRules: {}, }, - Config: { - apiKey: 'FXLkLUEhGJyvmY4', - }, + Config: { apiKey: 'FXLkLUEhGJyvmY4' }, Enabled: true, Transformations: [], IsProcessorEnabled: true, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { anonymousId: 'a1b2c3d4e5f6g7h8i9j10', channel: 'mobile', @@ -77,32 +71,21 @@ export const data = [ attTrackingStatus: 3, }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: 'watchos', - }, - screen: { - density: 2, - }, + os: { name: 'watchos' }, + screen: { density: 2 }, traits: { email: 'sampath@gmail.com', name: 'Joker', Gender: 'male', - foo: { - foo: 'bar', - }, + 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, - }, + 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', @@ -156,11 +139,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/clevertap/dataDelivery/data.ts b/test/integrations/destinations/clevertap/dataDelivery/data.ts index bc8866823e..13a70d38c9 100644 --- a/test/integrations/destinations/clevertap/dataDelivery/data.ts +++ b/test/integrations/destinations/clevertap/dataDelivery/data.ts @@ -224,4 +224,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/clevertap/processor/data.ts b/test/integrations/destinations/clevertap/processor/data.ts new file mode 100644 index 0000000000..d79ebaa8da --- /dev/null +++ b/test/integrations/destinations/clevertap/processor/data.ts @@ -0,0 +1,2427 @@ +export const data = [ + { + name: 'clevertap', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + message: { + channel: 'web', + 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: { + anonymousId: 'anon_id', + email: 'jamesDoe@gmail.com', + name: 'James Doe', + phone: '92374162212', + gender: 'M', + 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.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'jamesDoe@gmail.com', + Name: 'James Doe', + Phone: '92374162212', + Gender: 'M', + Employed: true, + DOB: '1614775793', + Education: 'Science', + Married: true, + 'Customer Type': 'Prime', + graduate: true, + 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":""}', + }, + identity: 'anon_id', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + 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: { + anonymousId: 'anon_id', + email: 'jamesDoe@gmail.com', + name: 'James Doe', + phone: '92374162212', + gender: 'M', + 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.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'jamesDoe@gmail.com', + Name: 'James Doe', + Phone: '92374162212', + Gender: 'M', + Employed: true, + DOB: '1614775793', + Education: 'Science', + Married: true, + 'Customer Type': 'Prime', + graduate: true, + 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":""}', + }, + identity: 'anon_id', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + message: { + type: 'page', + anonymousId: 'anon-id-new', + name: 'Rudder', + properties: { + title: 'Home', + path: '/', + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + evtName: 'Web Page Viewed: Rudder', + evtData: { + title: 'Home', + path: '/', + }, + type: 'event', + identity: 'anon-id-new', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + message: { + type: 'screen', + userId: 'identified_user_id', + name: 'Rudder-Screen', + properties: { + prop1: '5', + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + evtName: 'Screen Viewed: Rudder-Screen', + evtData: { + prop1: '5', + }, + type: 'event', + identity: 'identified_user_id', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + message: { + type: 'track', + userId: 'user123', + event: 'Product Purchased', + properties: { + name: "Rubik's Cube", + revenue: 4.99, + }, + context: { + ip: '14.5.67.21', + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + evtName: 'Product Purchased', + evtData: { + name: "Rubik's Cube", + revenue: 4.99, + }, + type: 'event', + identity: 'user123', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 5: ERROR - Message Type is not present. Aborting message.', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + message: { + userId: 'user1234', + event: 'FailTest', + properties: { + name: 'Random', + revenue: 4.99, + }, + context: { + ip: '14.5.67.21', + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Message Type is not present. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'CLEVERTAP', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 6: ERROR - Message type not supported', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + message: { + type: 'Rndm', + userId: 'user1234', + event: 'FailTest', + properties: { + name: 'Random2', + revenue: 4.99, + }, + context: { + ip: '14.5.67.21', + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Message type not supported', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'CLEVERTAP', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2021-03-10T11:59:57.815Z', + userId: 'riverjohn', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.13', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:5500/test.html', + path: '/test.html', + title: 'sample source', + search: '', + referrer: 'http://127.0.0.1:5500/', + referring_domain: '127.0.0.1:5500', + }, + locale: 'en-US', + screen: { + density: 2, + }, + traits: { + email: 'riverjohn@gmail.com', + phone: '+12345678900', + avatar: 'https://homepages.cae.wisc.edu/~ece533/images/airplane.png', + testIng: true, + lastName: 'John', + firstname: 'River', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.13', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:86.0) Gecko/20100101 Firefox/86.0', + }, + rudderId: 'fd5d3d37-3ce6-471d-b416-2f351212a44f', + messageId: '8ff6fd1b-b381-43fc-883c-92bf8eb0e725', + properties: { + tax: 1, + total: 20, + coupon: 'ImagePro', + revenue: 15, + currency: 'USD', + discount: 1.5, + order_id: '1234', + ts: '2021-03-10T11:59:22.080Z', + products: [ + { + sku: 'G-32', + url: 'https://www.website.com/product/path', + name: 'Monopoly', + price: 14, + category: 'Games', + quantity: 1, + image_url: 'https://www.website.com/product/path.jpg', + product_id: '123', + }, + { + sku: 'F-32', + name: 'UNO', + price: 3.45, + category: 'Games', + quantity: 2, + product_id: '345', + }, + ], + shipping: 22, + affiliation: 'Apple Store', + checkout_id: '12345', + }, + anonymousId: 'b2e06708-dd2a-4aee-bb32-41855d2fbdab', + integrations: { + All: true, + }, + originalTimestamp: '2021-03-10T11:59:22.080Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + evtName: 'Charged', + evtData: { + 'Charged ID': '12345', + Amount: 15, + Items: [ + { + sku: 'G-32', + url: 'https://www.website.com/product/path', + name: 'Monopoly', + price: 14, + category: 'Games', + quantity: 1, + image_url: 'https://www.website.com/product/path.jpg', + product_id: '123', + }, + { + sku: 'F-32', + name: 'UNO', + price: 3.45, + category: 'Games', + quantity: 2, + product_id: '345', + }, + ], + tax: 1, + total: 20, + coupon: 'ImagePro', + currency: 'USD', + discount: 1.5, + order_id: '1234', + shipping: 22, + affiliation: 'Apple Store', + }, + ts: 1615377562, + type: 'event', + identity: 'riverjohn', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 8: ERROR - userId, not present cannot track anonymous user', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: false, + enableObjectIdMapping: false, + }, + }, + message: { + type: 'track', + anonymousId: 'random_anon_id', + event: 'FailTest_with_anon', + properties: { + name: 'Random2', + revenue: 4.99, + }, + context: { + ip: '14.5.67.21', + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'userId, not present cannot track anonymous user', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'CLEVERTAP', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + 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: { + anonymousId: 'anon_id', + email: 'jamesDoe@gmail.com', + name: 'James Doe', + phone: '92374162212', + gender: 'female', + 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.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'jamesDoe@gmail.com', + Name: 'James Doe', + Phone: '92374162212', + Gender: 'F', + Employed: true, + DOB: '1614775793', + Education: 'Science', + Married: true, + 'Customer Type': 'Prime', + graduate: true, + 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":""}', + }, + identity: 'anon_id', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + 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: { + anonymousId: 'anon_id', + email: 'jamesDoe@gmail.com', + name: 'James Doe', + phone: '92374162212', + gender: 'other', + 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.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'jamesDoe@gmail.com', + Name: 'James Doe', + Phone: '92374162212', + Employed: true, + DOB: '1614775793', + Education: 'Science', + Married: true, + 'Customer Type': 'Prime', + graduate: true, + 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":""}', + }, + identity: 'anon_id', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + message: { + type: 'identify', + event: 'identify', + sentAt: '2021-05-24T08:53:38.762Z', + userId: 'useran4', + channel: 'mobile', + context: { + os: { + name: 'Android', + version: '10', + }, + app: { + name: 'myfirstapp', + build: '1', + version: '1.0', + namespace: 'com.example.myfirstapp', + }, + device: { + id: 'f54bb572361c4fd1', + name: 'whyred', + type: 'Android', + model: 'Redmi Note 5 Pro', + manufacturer: 'Xiaomi', + token: 'frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf', + }, + locale: 'en-IN', + screen: { + width: 1080, + height: 2118, + density: 420, + }, + traits: { + id: 'useran4', + email: 'tony4an@testmail.com', + phone: '4444457700', + userId: 'useran4', + lastname: 'Stark', + firstname: 'Tony4AN', + anonymousId: 'f54bb572361c4fd1', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.12', + }, + network: { + wifi: true, + carrier: 'airtel', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 10; Redmi Note 5 Pro Build/QQ3A.200805.001)', + }, + rudderId: 'd8dd4917-bdb2-4c17-8f62-24c79d87a937', + messageId: '1621846417928-7fbb739f-5f96-48ca-9ebb-5bfc4076a687', + anonymousId: 'f54bb572361c4fd1', + integrations: { + All: true, + }, + originalTimestamp: '2021-05-24T08:53:37.929Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'tony4an@testmail.com', + Phone: '4444457700', + Name: 'Tony4AN Stark', + identity: 'useran4', + }, + objectId: 'f54bb572361c4fd1', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'token', + tokenData: { + id: 'frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf', + type: 'fcm', + }, + objectId: 'f54bb572361c4fd1', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + message: { + type: 'identify', + event: 'identify', + sentAt: '2021-04-21T12:05:42.383Z', + userId: 'ankur4', + channel: 'mobile', + context: { + os: { + name: 'iOS', + version: '13.0', + }, + app: { + name: 'Rudder-CleverTap_Example', + build: '1.0', + version: '1.0', + namespace: 'org.cocoapods.demo.Rudder-CleverTap-Example', + }, + device: { + id: 'cd3a4439-7df0-4475-acb9-6659c7c4dfe3', + name: 'iPhone 11 Pro Max', + type: 'iOS', + model: 'iPhone', + manufacturer: 'Apple', + token: 'frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf', + }, + locale: 'en-US', + screen: { + width: 896, + height: 414, + density: 3, + }, + traits: { + name: 'Ankur4 Mittal', + email: 'ankur4gmail', + phone: '8260294239', + userId: 'ankur4', + }, + library: { + name: 'rudder-ios-library', + version: '1.0.11', + }, + network: { + wifi: true, + carrier: 'unavailable', + cellular: false, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: 'unknown', + }, + rudderId: 'f5bb9c22-4987-4ef2-9b58-52788035ffb7', + messageId: '1619006730-60fa60c0-3c77-4de7-95d4-e7dc58214947', + integrations: { + All: true, + }, + originalTimestamp: '2021-04-21T12:05:30.330Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'ankur4gmail', + Name: 'Ankur4 Mittal', + Phone: '8260294239', + }, + identity: 'ankur4', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + message: { + event: 'Random', + properties: { + country_region: 'India', + test: 'abc', + }, + receivedAt: '2021-08-20T12:49:07.691Z', + rudderId: '138c4214-b537-4f77-9dea-9abde70b5147', + type: 'track', + anonymousId: 'cd3a4439-7df0-4475-acb9-6659c7c4dfe3', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + evtName: 'Random', + evtData: { + country_region: 'India', + test: 'abc', + }, + type: 'event', + objectId: 'cd3a4439-7df0-4475-acb9-6659c7c4dfe3', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 14', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + message: { + event: 'Random 2', + properties: { + country_region: 'India', + test: 'abc', + }, + receivedAt: '2021-08-20T12:49:07.691Z', + rudderId: '138c4214-b537-4f77-9dea-9abde70b5147', + type: 'track', + userId: 'ankur4', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + evtName: 'Random 2', + evtData: { + country_region: 'India', + test: 'abc', + }, + type: 'event', + identity: 'ankur4', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + 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: { + anonymousId: 'anon_id', + email: 'jamesDoe@gmail.com', + name: 'James Doe', + phone: '92374162212', + gender: 'M', + employed: true, + birthday: '1614775793', + education: 'Science', + graduate: true, + married: true, + customerType: 'Prime', + ts: '2021-03-10T11:59:22.080Z', + 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.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'jamesDoe@gmail.com', + Name: 'James Doe', + Phone: '92374162212', + Gender: 'M', + Employed: true, + DOB: '1614775793', + Education: 'Science', + Married: true, + 'Customer Type': 'Prime', + graduate: true, + 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":""}', + }, + ts: 1615377562, + identity: 'anon_id', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 16', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + message: { + type: 'identify', + event: 'identify', + sentAt: '2021-05-24T08:53:38.762Z', + userId: 'useran4', + channel: 'mobile', + context: { + os: { + name: 'watchos', + }, + app: { + name: 'myfirstapp', + build: '1', + version: '1.0', + namespace: 'com.example.myfirstapp', + }, + device: { + id: 'cd3a4439-7df0-4475-acb9-6659c7c4dfe3', + type: 'watchos', + manufacturer: 'Apple', + token: 'frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf', + }, + locale: 'en-IN', + screen: { + width: 1080, + height: 2118, + density: 420, + }, + traits: { + id: 'useran4', + email: 'tony4an@testmail.com', + phone: '4444457700', + userId: 'useran4', + lastname: 'Stark', + firstname: 'Tony4AN', + anonymousId: 'f54bb572361c4fd1', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.12', + }, + network: { + wifi: true, + carrier: 'airtel', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 10; Redmi Note 5 Pro Build/QQ3A.200805.001)', + }, + rudderId: 'd8dd4917-bdb2-4c17-8f62-24c79d87a937', + messageId: '1621846417928-7fbb739f-5f96-48ca-9ebb-5bfc4076a687', + anonymousId: 'f54bb572361c4fd1', + integrations: { + All: true, + }, + originalTimestamp: '2021-05-24T08:53:37.929Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'tony4an@testmail.com', + Phone: '4444457700', + Name: 'Tony4AN Stark', + identity: 'useran4', + }, + objectId: 'f54bb572361c4fd1', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'token', + tokenData: { + id: 'frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf', + type: 'apns', + }, + objectId: 'f54bb572361c4fd1', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 17', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + message: { + type: 'alias', + userId: 'newaddedid001', + context: { + traits: { + ts: 1468308340, + }, + }, + rudderId: 'a8556b1b-9d11-478d-9242-be124d1f0c93', + messageId: '46c1a69c-cc24-4a49-8079-3fcbabf15eb8', + previousId: '1122121', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + identity: 'newaddedid001', + }, + ts: 1468308340, + identity: '1122121', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 18', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + 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: { + anonymousId: 'anon_id', + email: 'johnDoe@gmail.com', + first_name: 'John', + last_name: 'Doe', + phone: '92374162212', + gender: 'M', + 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: '', + }, + overrideFields: { + first_name: 'John', + last_name: 'Doe', + }, + }, + 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.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'johnDoe@gmail.com', + Phone: '92374162212', + Gender: 'M', + Employed: true, + DOB: '1614775793', + Education: 'Science', + Married: true, + 'Customer Type': 'Prime', + Name: 'John Doe', + graduate: true, + 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":""}', + first_name: 'John', + last_name: 'Doe', + }, + identity: 'anon_id', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 19', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + 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, + }, + traits: { + overrideFields: { + first_name: 'John', + last_name: 'Doe', + }, + }, + }, + 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: { + anonymousId: 'anon_id', + email: 'johnDoe@gmail.com', + first_name: 'John', + last_name: 'Doe', + phone: '92374162212', + gender: 'M', + 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.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': '476550467', + 'X-CleverTap-Passcode': 'sample_passcode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + profileData: { + Email: 'johnDoe@gmail.com', + Phone: '92374162212', + Gender: 'M', + Employed: true, + DOB: '1614775793', + Education: 'Science', + Married: true, + 'Customer Type': 'Prime', + Name: 'John Doe', + graduate: true, + 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":""}', + first_name: 'John', + last_name: 'Doe', + }, + identity: 'anon_id', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 20: ERROR - Products property value must be an array of objects', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + message: { + type: 'track', + event: 'Order Completed', + sentAt: '2021-03-10T11:59:57.815Z', + userId: 'riverjohn', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.13', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:5500/test.html', + path: '/test.html', + title: 'sample source', + search: '', + referrer: 'http://127.0.0.1:5500/', + referring_domain: '127.0.0.1:5500', + }, + locale: 'en-US', + screen: { + density: 2, + }, + traits: { + email: 'riverjohn@gmail.com', + phone: '+12345678900', + avatar: 'https://homepages.cae.wisc.edu/~ece533/images/airplane.png', + testIng: true, + lastName: 'John', + firstname: 'River', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.13', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:86.0) Gecko/20100101 Firefox/86.0', + }, + rudderId: 'fd5d3d37-3ce6-471d-b416-2f351212a44f', + messageId: '8ff6fd1b-b381-43fc-883c-92bf8eb0e725', + properties: { + tax: 1, + total: 20, + coupon: 'ImagePro', + revenue: 15, + currency: 'USD', + discount: 1.5, + order_id: '1234', + ts: '2021-03-10T11:59:22.080Z', + products: { + sku: 'G-32', + url: 'https://www.website.com/product/path', + name: 'Monopoly', + price: 14, + category: 'Games', + quantity: 1, + image_url: 'https://www.website.com/product/path.jpg', + product_id: '123', + }, + shipping: 22, + affiliation: 'Apple Store', + checkout_id: '12345', + }, + anonymousId: 'b2e06708-dd2a-4aee-bb32-41855d2fbdab', + integrations: { + All: true, + }, + originalTimestamp: '2021-03-10T11:59:22.080Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Products property value must be an array of objects', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'CLEVERTAP', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 21: ERROR - Unable to process without anonymousId or userId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + passcode: 'sample_passcode', + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + message: { + event: 'Random', + properties: { + country_region: 'India', + test: 'abc', + }, + receivedAt: '2021-08-20T12:49:07.691Z', + rudderId: '138c4214-b537-4f77-9dea-9abde70b5147', + type: 'track', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Unable to process without anonymousId or userId', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'CLEVERTAP', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/clevertap/router/data.ts b/test/integrations/destinations/clevertap/router/data.ts new file mode 100644 index 0000000000..4f1723a7da --- /dev/null +++ b/test/integrations/destinations/clevertap/router/data.ts @@ -0,0 +1,235 @@ +export const data = [ + { + name: 'clevertap', + description: 'simple router tests', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + passcode: 'dummypasscode', + accountId: 'dummyAccountId', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + metadata: { jobId: 1, userId: 'u1' }, + 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: 'Android', version: '' }, + screen: { density: 2 }, + device: { + id: 'f54bb572361c4fd1', + name: 'whyred', + type: 'Android', + model: 'Redmi Note 5 Pro', + manufacturer: 'Xiaomi', + token: 'frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf', + }, + }, + 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: { + ts: '2019-10-14T09:03:17.562Z', + anonymousId: 'anon_id', + email: 'dummyuser@gmail.com', + name: 'Dummy User', + phone: '98765434210', + gender: 'M', + 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: { + passcode: 'dummypasscode', + accountId: 'dummyAccountId', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + event: 'Random', + properties: { country_region: 'India', test: 'abc' }, + receivedAt: '2021-08-20T12:49:07.691Z', + rudderId: '138c4214-b537-4f77-9dea-9abde70b5147', + type: 'track', + anonymousId: 'cd3a4439-7df0-4475-acb9-6659c7c4dfe3', + }, + }, + { + destination: { + Config: { + passcode: 'dummypasscode', + accountId: 'dummyAccountId', + trackAnonymous: true, + }, + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + type: 'group', + anonymousId: 'anon-id-new', + name: 'Rudder', + properties: { title: 'Home', path: '/' }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + destType: 'clevertap', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + batched: true, + endpoint: 'https://api.clevertap.com/1/upload', + headers: { + 'X-CleverTap-Account-Id': 'dummyAccountId', + 'X-CleverTap-Passcode': 'dummypasscode', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + d: [ + { + type: 'profile', + ts: 1571043797, + profileData: { + Email: 'dummyuser@gmail.com', + Name: 'Dummy User', + Phone: '98765434210', + Gender: 'M', + Employed: true, + DOB: '1614775793', + Education: 'Science', + Married: true, + 'Customer Type': 'Prime', + graduate: true, + 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":""}', + }, + objectId: 'anon_id', + }, + { + type: 'token', + tokenData: { + id: 'frfsgvrwe:APfdsafsgdfsgghfgfgjkhfsfgdhjhbvcvnetry767456fxsasdf', + type: 'fcm', + }, + objectId: 'anon_id', + }, + { + evtName: 'Random', + evtData: { country_region: 'India', test: 'abc' }, + type: 'event', + objectId: 'cd3a4439-7df0-4475-acb9-6659c7c4dfe3', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + passcode: 'dummypasscode', + accountId: 'dummyAccountId', + trackAnonymous: true, + enableObjectIdMapping: true, + }, + }, + }, + { + metadata: [{ jobId: 3, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'Message type not supported', + statTags: { + destType: 'CLEVERTAP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + destination: { + Config: { + passcode: 'dummypasscode', + accountId: 'dummyAccountId', + trackAnonymous: true, + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/clickup/network.ts b/test/integrations/destinations/clickup/network.ts new file mode 100644 index 0000000000..1a26209923 --- /dev/null +++ b/test/integrations/destinations/clickup/network.ts @@ -0,0 +1,247 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.clickup.com/api/v2/list/correctListId123/field', + method: 'GET', + }, + httpRes: { + data: { + "fields": [ + { + "id": "19d3ac4e-2b1e-4569-b33e-ff86c7d94d6e", + "name": "Labels", + "type": "labels", + "type_config": { + "options": [ + { + "id": "32c81c1c-cf53-4829-92f5-0f0270d27a45", + "label": "Option 1", + "color": {} + }, + { + "id": "7e24f329-9dd9-4e68-b426-2c70af6f9347", + "label": "Option 2", + "color": {} + } + ] + }, + "date_created": "1661964865880", + "hide_from_guests": false, + "required": false + }, + { + "id": "22eaffee-ffec-4c3b-bdae-56e69d55eecd", + "name": "Payment Status", + "type": "drop_down", + "type_config": { + "default": 0, + "placeholder": {}, + "new_drop_down": true, + "options": [ + { + "id": "e109e36b-a052-4a31-af16-25da7324990f", + "name": "Sent Request", + "color": "#FF7FAB", + "orderindex": 0 + }, + { + "id": "3a3b4512-2896-44f7-8075-2ff37777fe24", + "name": "Quote sent", + "color": "#EA80FC", + "orderindex": 1 + }, + { + "id": "7afcb6fb-cec8-41d8-bf0c-039a9db28460", + "name": "Pending", + "color": "#ff7800", + "orderindex": 2 + }, + { + "id": "890ecf28-bdd4-4f53-92cc-bc4edb696fcd", + "name": "Payment Recieved", + "color": "#2ecd6f", + "orderindex": 3 + }, + { + "id": "e89f7dd7-fd24-4b32-ac4d-f174d8ca914f", + "name": "n/a", + "color": "#b5bcc2", + "orderindex": 4 + } + ] + }, + "date_created": "1660124553414", + "hide_from_guests": false, + "required": {} + }, + { + "id": "4b7a29be-e261-4340-8f3f-e6de838473e5", + "name": "Plan", + "type": "drop_down", + "type_config": { + "default": 0, + "placeholder": {}, + "new_drop_down": true, + "options": [ + { + "id": "4b9366a7-2592-4b7a-909a-ed4af705e27c", + "name": "Unlimited", + "color": "#02BCD4", + "orderindex": 0 + }, + { + "id": "c5032049-8c05-44e9-a000-3a071d457b8f", + "name": "Business", + "color": "#1bbc9c", + "orderindex": 1 + }, + { + "id": "9fb08801-1130-4650-8e2e-28578344ff3c", + "name": "Enterprise", + "color": "#2ecd6f", + "orderindex": 2 + } + ] + }, + "date_created": "1660124553414", + "hide_from_guests": false, + "required": {} + }, + { + "id": "4bfebc00-9d4a-40d1-aef8-5a87b610186c", + "name": "Contact Title", + "type": "text", + "type_config": {}, + "date_created": "1660124553414", + "hide_from_guests": false, + "required": {} + }, + { + "id": "666f74bf-6d87-41f3-8735-ccf0efe066dd", + "name": "Date", + "type": "date", + "type_config": {}, + "date_created": "1662379321069", + "hide_from_guests": false, + "required": false + }, + { + "id": "a5f5044a-cbad-4caf-bcbb-4cd32bd8db7c", + "name": "Industry", + "type": "drop_down", + "type_config": { + "default": 0, + "placeholder": {}, + "options": [ + { + "id": "75173398-257f-42b6-8bae-4cf767fa99ab", + "name": "Engineering", + "color": "#04A9F4", + "orderindex": 0 + }, + { + "id": "c7f9b6f5-cd98-4609-af10-68a8710cc1bf", + "name": "Retail", + "color": "#ff7800", + "orderindex": 1 + }, + { + "id": "dbe84940-b4e8-4a29-8491-e1aa5f2be4e2", + "name": "Hospitality", + "color": "#2ecd6f", + "orderindex": 2 + } + ] + }, + "date_created": "1660124553414", + "hide_from_guests": false, + "required": {} + }, + { + "id": "b01b32fd-94d3-43e6-9f31-2c855ff169cd", + "name": "Url", + "type": "url", + "type_config": {}, + "date_created": "1661970432587", + "hide_from_guests": false, + "required": false + }, + { + "id": "c9b83d91-b979-4b34-b4bd-88bf9cf2b9a6", + "name": "Phone Number", + "type": "phone", + "type_config": {}, + "date_created": "1661970795061", + "hide_from_guests": false, + "required": false + }, + { + "id": "d0201829-ddcd-4b97-b71f-0f9e672488f2", + "name": "Account Size", + "type": "number", + "type_config": {}, + "date_created": "1660124553414", + "hide_from_guests": false, + "required": {} + }, + { + "id": "ea6c1e48-2abf-4328-b228-79c213e147c8", + "name": "Location", + "type": "location", + "type_config": {}, + "date_created": "1662229589329", + "hide_from_guests": false, + "required": false + }, + { + "id": "ebe825fb-92de-41ce-a29c-25018da039b4", + "name": "Email", + "type": "email", + "type_config": {}, + "date_created": "1660124553414", + "hide_from_guests": false, + "required": {} + }, + { + "id": "f431cda3-a575-4a05-ba8d-583d9b6cb2df", + "name": "Rating", + "type": "emoji", + "type_config": { + "count": 5, + "code_point": "2b50" + }, + "date_created": "1661963909454", + "hide_from_guests": false, + "required": false + }, + { + "id": "ffbe4f03-cbc3-4077-8fea-9e5d08b4dceb", + "name": "Money In INR", + "type": "currency", + "type_config": { + "default": {}, + "precision": 2, + "currency_type": "INR" + }, + "date_created": "1661428276019", + "hide_from_guests": false, + "required": false + } + ] + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://api.clickup.com/api/v2/list/correctListId456/field', + method: 'GET', + }, + httpRes: { + data: { + "fields": [] + }, + status: 200 + }, + } +]; diff --git a/test/integrations/destinations/clickup/processor/data.ts b/test/integrations/destinations/clickup/processor/data.ts new file mode 100644 index 0000000000..4a79df2862 --- /dev/null +++ b/test/integrations/destinations/clickup/processor/data.ts @@ -0,0 +1,829 @@ +export const data = [ + { + "name": "clickup", + "description": "Invalid priority", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123" + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "priority": 0 + }, + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Invalid value specified for priority. Value must be Integer and in range \"[1,4]\"", + "statTags": { + "destType": "CLICKUP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Custom field: Invalid phone number", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123", + "keyToCustomFieldName": [ + { + "from": "phone", + "to": "Phone Number" + } + ] + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "phone": "9999999999" + }, + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "The provided phone number is invalid", + "statTags": { + "destType": "CLICKUP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Custom field: Invalid email", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123", + "keyToCustomFieldName": [ + { + "from": "email", + "to": "Email" + } + ] + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "email": "test.com" + }, + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "The provided email is invalid", + "statTags": { + "destType": "CLICKUP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Custom field: Invalid url", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123", + "keyToCustomFieldName": [ + { + "from": "url", + "to": "Url" + } + ] + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "url": "www.test.com" + }, + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "The provided url is invalid", + "statTags": { + "destType": "CLICKUP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Custom field: Invalid location latitude", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123", + "keyToCustomFieldName": [ + { + "from": "location", + "to": "Location" + } + ] + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "location": { + "lat": -100, + "lng": 124, + "formattedAddress": "Gold Coast QLD, Australia" + } + }, + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Invalid value specified for latitude. Latitude must be in range \"[-90, 90]\"", + "statTags": { + "destType": "CLICKUP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Custom field: Invalid rating", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123", + "keyToCustomFieldName": [ + { + "from": "rating", + "to": "Rating" + } + ] + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "rating": "7" + }, + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Invalid value specified for rating. Value must be in range \"[0,5]\"", + "statTags": { + "destType": "CLICKUP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Creating task with valid custom fields values", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123", + "keyToCustomFieldName": [ + { + "from": "industry", + "to": "Industry" + }, + { + "from": "Payment Status", + "to": "Payment Status" + }, + { + "from": "labelKey", + "to": "Labels" + }, + { + "from": "locationKey", + "to": "Location" + }, + { + "from": "phone", + "to": "Phone Number" + }, + { + "from": "email", + "to": "Email" + }, + { + "from": "url", + "to": "Url" + }, + { + "from": "rating", + "to": "Rating" + }, + { + "from": "plan", + "to": "Plan" + }, + { + "from": "contactTitle", + "to": "Contact Title" + }, + { + "from": "date", + "to": "Date" + } + ] + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "description": "Creating task with valid custom fields values", + "tags": [ + "testing", + "custom fields" + ], + "timeEstimate": 10800000, + "status": "Ready", + "priority": 1, + "dueDate": "2022-02-25T13:39:21.032Z", + "includeDueDateTime": true, + "startDate": "2022-01-20T13:39:21.032Z", + "includeStartDateTime": "true", + "notifyAll": false, + "industry": "Retail", + "Payment Status": "Pending", + "labelKey": [ + "option 1", + "option 2", + "option 3" + ], + "locationKey": { + "lat": -20, + "lng": 124, + "formattedAddress": "Gold Coast QLD, Australia" + }, + "phone": "+12233445567", + "email": "test123@example.com", + "url": "https://www.rudderstack.com/", + "rating": 3, + "plan": "Business", + "contactTitle": "VP of Operations", + "date": "2022-02-25T13:39:21.032Z" + }, + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.clickup.com/api/v2/list/correctListId123/task", + "headers": { + "Content-Type": "application/json", + "Authorization": "pk_123" + }, + "params": {}, + "body": { + "JSON": { + "name": "Product Viewed", + "description": "Creating task with valid custom fields values", + "tags": [ + "testing", + "custom fields" + ], + "time_estimate": 10800000, + "status": "Ready", + "priority": 1, + "due_date": 1645796361032, + "due_date_time": true, + "start_date": 1642685961032, + "start_date_time": "true", + "notify_all": false, + "custom_fields": [ + { + "id": "a5f5044a-cbad-4caf-bcbb-4cd32bd8db7c", + "value": "c7f9b6f5-cd98-4609-af10-68a8710cc1bf" + }, + { + "id": "22eaffee-ffec-4c3b-bdae-56e69d55eecd", + "value": "7afcb6fb-cec8-41d8-bf0c-039a9db28460" + }, + { + "id": "19d3ac4e-2b1e-4569-b33e-ff86c7d94d6e", + "value": [ + "32c81c1c-cf53-4829-92f5-0f0270d27a45", + "7e24f329-9dd9-4e68-b426-2c70af6f9347" + ] + }, + { + "id": "ea6c1e48-2abf-4328-b228-79c213e147c8", + "value": { + "location": { + "lat": -20, + "lng": 124 + }, + "formatted_address": "Gold Coast QLD, Australia" + } + }, + { + "id": "c9b83d91-b979-4b34-b4bd-88bf9cf2b9a6", + "value": "+12233445567" + }, + { + "id": "ebe825fb-92de-41ce-a29c-25018da039b4", + "value": "test123@example.com" + }, + { + "id": "b01b32fd-94d3-43e6-9f31-2c855ff169cd", + "value": "https://www.rudderstack.com/" + }, + { + "id": "f431cda3-a575-4a05-ba8d-583d9b6cb2df", + "value": 3 + }, + { + "id": "4b7a29be-e261-4340-8f3f-e6de838473e5", + "value": "c5032049-8c05-44e9-a000-3a071d457b8f" + }, + { + "id": "4bfebc00-9d4a-40d1-aef8-5a87b610186c", + "value": "VP of Operations" + }, + { + "id": "666f74bf-6d87-41f3-8735-ccf0efe066dd", + "value": 1645796361032 + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Creating task with assignees", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123" + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "taskName": "Transformer Testing" + }, + "context": { + "externalId": [ + { + "type": "clickUpAssigneeId", + "id": 61205104 + }, + { + "type": "clickUpAssigneeId", + "id": 61217234 + }, + { + "type": "clickUpAssigneeId", + "id": 61228575 + } + ] + }, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.clickup.com/api/v2/list/correctListId123/task", + "headers": { + "Content-Type": "application/json", + "Authorization": "pk_123" + }, + "params": {}, + "body": { + "JSON": { + "name": "Transformer Testing", + "assignees": [ + 61205104, + 61217234, + 61228575 + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Event filtering : Sending non whitelisted event when some events are whitelisted", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123", + "whitelistedEvents": [ + { + "eventName": "Anonymous Page Visit" + }, + { + "eventName": "Product Viewed" + }, + { + "eventName": "" + } + ] + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Credit Card Added", + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "The event was discarded as it was not allow listed in the destination configuration", + "statTags": { + "destType": "CLICKUP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Event filtering : No event is whitelisted", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123", + "whitelistedEvents": [ + { + "eventName": "" + }, + { + "eventName": "" + }, + { + "eventName": "" + } + ] + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "Credit Card Added", + "context": {}, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "The event was discarded as it was not allow listed in the destination configuration", + "statTags": { + "destType": "CLICKUP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "clickup", + "description": "Creating task using listId from externalId array", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiToken": "pk_123", + "listId": "correctListId123" + }, + "ID": "clickup-1234" + }, + "message": { + "type": "track", + "event": "anonymous page visit", + "context": { + "externalId": [ + { + "type": "clickUpListId", + "id": "correctListId456" + } + ] + }, + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.clickup.com/api/v2/list/correctListId456/task", + "headers": { + "Content-Type": "application/json", + "Authorization": "pk_123" + }, + "params": {}, + "body": { + "JSON": { + "name": "anonymous page visit" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/clickup/router/data.ts b/test/integrations/destinations/clickup/router/data.ts new file mode 100644 index 0000000000..b77cb90b47 --- /dev/null +++ b/test/integrations/destinations/clickup/router/data.ts @@ -0,0 +1,303 @@ +export const data = [ + { + name: 'clickup', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + description: 'Creating task using listId from externalId array', + destination: { + Config: { apiToken: 'pk_123', listId: 'correctListId123' }, + ID: 'clickup-1234', + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + type: 'track', + event: 'anonymous page visit', + context: { externalId: [{ type: 'clickUpListId', id: 'correctListId456' }] }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + }, + }, + { + description: 'Creating task with assignees', + destination: { + Config: { apiToken: 'pk_123', listId: 'correctListId123' }, + ID: 'clickup-1234', + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + type: 'track', + event: 'Product Viewed', + properties: { taskName: 'Transformer Testing' }, + context: { + externalId: [ + { type: 'clickUpAssigneeId', id: 61205104 }, + { type: 'clickUpAssigneeId', id: 61217234 }, + { type: 'clickUpAssigneeId', id: 61228575 }, + ], + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + }, + }, + { + description: 'Creating task with valid custom fields values', + destination: { + Config: { + apiToken: 'pk_123', + listId: 'correctListId123', + keyToCustomFieldName: [ + { from: 'industry', to: 'Industry' }, + { from: 'Payment Status', to: 'Payment Status' }, + { from: 'labelKey', to: 'Labels' }, + { from: 'locationKey', to: 'Location' }, + { from: 'phone', to: 'Phone Number' }, + { from: 'email', to: 'Email' }, + { from: 'url', to: 'Url' }, + { from: 'rating', to: 'Rating' }, + { from: 'plan', to: 'Plan' }, + { from: 'contactTitle', to: 'Contact Title' }, + { from: 'date', to: 'Date' }, + ], + }, + ID: 'clickup-1234', + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + type: 'track', + event: 'Product Viewed', + properties: { + description: 'Creating task with valid custom fields values', + tags: ['testing', 'custom fields'], + timeEstimate: 10800000, + status: 'Ready', + priority: 1, + dueDate: '2022-02-25T13:39:21.032Z', + includeDueDateTime: true, + startDate: '2022-01-20T13:39:21.032Z', + includeStartDateTime: 'true', + notifyAll: false, + industry: 'Retail', + 'Payment Status': 'Pending', + labelKey: ['option 1', 'option 2', 'option 3'], + locationKey: { + lat: -20, + lng: 124, + formattedAddress: 'Gold Coast QLD, Australia', + }, + phone: '+12233445567', + email: 'test123@example.com', + url: 'https://www.rudderstack.com/', + rating: 3, + plan: 'Business', + contactTitle: 'VP of Operations', + date: '2022-02-25T13:39:21.032Z', + }, + context: {}, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + }, + }, + { + description: 'Custom field: Invalid location latitude', + destination: { + Config: { + apiToken: 'pk_123', + listId: 'correctListId123', + keyToCustomFieldName: [{ from: 'location', to: 'Location' }], + }, + ID: 'clickup-1234', + }, + metadata: { jobId: 4, userId: 'u1' }, + message: { + type: 'track', + event: 'Product Viewed', + properties: { + location: { lat: -100, lng: 124, formattedAddress: 'Gold Coast QLD, Australia' }, + }, + context: {}, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + }, + }, + ], + destType: 'clickup', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + batchedRequest: { + body: { FORM: {}, JSON: { name: 'anonymous page visit' }, JSON_ARRAY: {}, XML: {} }, + endpoint: 'https://api.clickup.com/api/v2/list/correctListId456/task', + files: {}, + headers: { Authorization: 'pk_123', 'Content-Type': 'application/json' }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + destination: { + Config: { apiToken: 'pk_123', listId: 'correctListId123' }, + ID: 'clickup-1234', + }, + metadata: [{ jobId: 1, userId: 'u1' }], + statusCode: 200, + }, + { + batched: false, + batchedRequest: { + body: { + FORM: {}, + JSON: { assignees: [61205104, 61217234, 61228575], name: 'Transformer Testing' }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.clickup.com/api/v2/list/correctListId123/task', + files: {}, + headers: { Authorization: 'pk_123', 'Content-Type': 'application/json' }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + destination: { + Config: { apiToken: 'pk_123', listId: 'correctListId123' }, + ID: 'clickup-1234', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + statusCode: 200, + }, + { + batched: false, + batchedRequest: { + body: { + FORM: {}, + JSON: { + custom_fields: [ + { + id: 'a5f5044a-cbad-4caf-bcbb-4cd32bd8db7c', + value: 'c7f9b6f5-cd98-4609-af10-68a8710cc1bf', + }, + { + id: '22eaffee-ffec-4c3b-bdae-56e69d55eecd', + value: '7afcb6fb-cec8-41d8-bf0c-039a9db28460', + }, + { + id: '19d3ac4e-2b1e-4569-b33e-ff86c7d94d6e', + value: [ + '32c81c1c-cf53-4829-92f5-0f0270d27a45', + '7e24f329-9dd9-4e68-b426-2c70af6f9347', + ], + }, + { + id: 'ea6c1e48-2abf-4328-b228-79c213e147c8', + value: { + formatted_address: 'Gold Coast QLD, Australia', + location: { lat: -20, lng: 124 }, + }, + }, + { id: 'c9b83d91-b979-4b34-b4bd-88bf9cf2b9a6', value: '+12233445567' }, + { id: 'ebe825fb-92de-41ce-a29c-25018da039b4', value: 'test123@example.com' }, + { + id: 'b01b32fd-94d3-43e6-9f31-2c855ff169cd', + value: 'https://www.rudderstack.com/', + }, + { id: 'f431cda3-a575-4a05-ba8d-583d9b6cb2df', value: 3 }, + { + id: '4b7a29be-e261-4340-8f3f-e6de838473e5', + value: 'c5032049-8c05-44e9-a000-3a071d457b8f', + }, + { id: '4bfebc00-9d4a-40d1-aef8-5a87b610186c', value: 'VP of Operations' }, + { id: '666f74bf-6d87-41f3-8735-ccf0efe066dd', value: 1645796361032 }, + ], + name: 'Product Viewed', + description: 'Creating task with valid custom fields values', + tags: ['testing', 'custom fields'], + time_estimate: 10800000, + status: 'Ready', + priority: 1, + due_date: 1645796361032, + due_date_time: true, + start_date: 1642685961032, + start_date_time: 'true', + notify_all: false, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.clickup.com/api/v2/list/correctListId123/task', + files: {}, + headers: { Authorization: 'pk_123', 'Content-Type': 'application/json' }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + destination: { + Config: { + apiToken: 'pk_123', + keyToCustomFieldName: [ + { from: 'industry', to: 'Industry' }, + { from: 'Payment Status', to: 'Payment Status' }, + { from: 'labelKey', to: 'Labels' }, + { from: 'locationKey', to: 'Location' }, + { from: 'phone', to: 'Phone Number' }, + { from: 'email', to: 'Email' }, + { from: 'url', to: 'Url' }, + { from: 'rating', to: 'Rating' }, + { from: 'plan', to: 'Plan' }, + { from: 'contactTitle', to: 'Contact Title' }, + { from: 'date', to: 'Date' }, + ], + listId: 'correctListId123', + }, + ID: 'clickup-1234', + }, + metadata: [{ jobId: 3, userId: 'u1' }], + statusCode: 200, + }, + { + destination: { + Config: { + apiToken: 'pk_123', + listId: 'correctListId123', + keyToCustomFieldName: [{ from: 'location', to: 'Location' }], + }, + ID: 'clickup-1234', + }, + batched: false, + error: 'Invalid value specified for latitude. Latitude must be in range "[-90, 90]"', + metadata: [{ jobId: 4, userId: 'u1' }], + statTags: { + destType: 'CLICKUP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/courier/router/data.ts b/test/integrations/destinations/courier/router/data.ts index a3a3237197..268504b903 100644 --- a/test/integrations/destinations/courier/router/data.ts +++ b/test/integrations/destinations/courier/router/data.ts @@ -15,28 +15,14 @@ export const data = [ channel: 'web', event: 'Product Added', userId: 'test123', - properties: { - price: 999, - quantity: 1, - }, - context: { - traits: { - firstName: 'John', - age: 27, - }, - }, + 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, - }, + destination: { Config: { apiKey: 'dummyApiKey' } }, + metadata: { jobId: 1, userId: 'u1' }, }, { message: { @@ -59,9 +45,7 @@ export const data = [ trackNamedPages: true, }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, }, ], destType: 'courier', @@ -92,16 +76,8 @@ export const data = [ channel: 'web', event: 'Product Added', userId: 'test123', - properties: { - price: 999, - quantity: 1, - }, - context: { - traits: { - firstName: 'John', - age: 27, - }, - }, + 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', @@ -112,26 +88,14 @@ export const data = [ }, files: {}, }, - destination: { - Config: { - apiKey: 'dummyApiKey', - }, - }, - metadata: [ - { - jobId: 1, - }, - ], + destination: { Config: { apiKey: 'dummyApiKey' } }, + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, { batched: false, error: 'apiKey is required', - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statTags: { destType: 'COURIER', errorCategory: 'dataValidation', diff --git a/test/integrations/destinations/criteo_audience/dataDelivery/data.ts b/test/integrations/destinations/criteo_audience/dataDelivery/data.ts index bc3af8f22d..162e566365 100644 --- a/test/integrations/destinations/criteo_audience/dataDelivery/data.ts +++ b/test/integrations/destinations/criteo_audience/dataDelivery/data.ts @@ -527,4 +527,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/criteo_audience/router/data.ts b/test/integrations/destinations/criteo_audience/router/data.ts index a91c112663..755d83547e 100644 --- a/test/integrations/destinations/criteo_audience/router/data.ts +++ b/test/integrations/destinations/criteo_audience/router/data.ts @@ -1,7 +1,7 @@ export const data = [ { name: 'criteo_audience', - description: 'Test 0', + description: 'Event Stream test cases', feature: 'router', module: 'destination', version: 'v0', @@ -19,12 +19,7 @@ export const data = [ }, ID: 'iwehr83843', }, - metadata: { - secret: { - accessToken: 'success_access_token', - }, - jobId: 1, - }, + metadata: { secret: { accessToken: 'success_access_token' }, jobId: 1, userId: 'u1' }, message: { userId: 'user 1', type: 'audiencelist', @@ -52,12 +47,7 @@ export const data = [ ], }, }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, timestamp: '2020-02-02T00:23:09.544Z', }, }, @@ -71,12 +61,7 @@ export const data = [ }, ID: 'iwehr83843', }, - metadata: { - secret: { - accessToken: 'success_access_token', - }, - jobId: 2, - }, + metadata: { secret: { accessToken: 'success_access_token' }, jobId: 2, userId: 'u1' }, message: { userId: 'user 1', type: 'audiencelist', @@ -112,9 +97,7 @@ export const data = [ ], }, }, - context: { - ip: '14.5.67.21', - }, + context: { ip: '14.5.67.21' }, timestamp: '2020-02-02T00:23:09.544Z', }, }, @@ -162,12 +145,7 @@ export const data = [ }, ], metadata: [ - { - jobId: 1, - secret: { - accessToken: 'success_access_token', - }, - }, + { jobId: 1, secret: { accessToken: 'success_access_token' }, userId: 'u1' }, ], batched: false, statusCode: 200, @@ -243,8 +221,206 @@ export const data = [ }, ], metadata: [ + { jobId: 2, secret: { accessToken: 'success_access_token' }, userId: 'u1' }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + clientId: 'abcdef8-f49-4cd6-b4c5-958b3d66d431', + clientSecret: 'sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg', + audienceId: '34893', + audienceType: 'madid', + }, + ID: 'iwehr83843', + }, + }, + ], + }, + }, + }, + }, + { + name: 'criteo_audience', + description: 'Retl test cases', + 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, + userId: 'u1', + }, + 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: { + externalId: [ + { + type: 'CRITEO_AUDIENCE-23848494844100489', + identifierType: 'EMAIL', + }, + ], + mappedToDestination: 'true', + sources: { + job_run_id: 'cgiiurt8um7k7n5dq480', + task_run_id: 'cgiiurt8um7k7n5dq48g', + job_id: '2MUWghI7u85n91dd1qzGyswpZan', + version: '895/merge', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + { + destination: { + Config: { + clientId: 'abcdef8-f49-4cd6-b4c5-958b3d66d431', + clientSecret: 'sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg', + audienceType: 'email', + 'warehouse-adAccountId': '123', + }, + ID: 'iwehr83843', + }, + metadata: { + secret: { + accessToken: 'success_access_token', + }, + jobId: 2, + userId: 'u1', + }, + 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: { + externalId: [ + { + type: 'CRITEO_AUDIENCE-23848494844100489', + identifierType: 'EMAIL', + }, + ], + mappedToDestination: 'true', + sources: { + job_run_id: 'cgiiurt8um7k7n5dq480', + task_run_id: 'cgiiurt8um7k7n5dq48g', + job_id: '2MUWghI7u85n91dd1qzGyswpZan', + version: '895/merge', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + destType: 'criteo_audience', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ { - jobId: 2, + 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, + userId: 'u1', secret: { accessToken: 'success_access_token', }, @@ -257,7 +433,61 @@ export const data = [ clientId: 'abcdef8-f49-4cd6-b4c5-958b3d66d431', clientSecret: 'sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg', audienceId: '34893', - audienceType: 'madid', + audienceType: 'email', + }, + ID: 'iwehr83843', + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'PATCH', + endpoint: + 'https://api.criteo.com/2022-10/audiences/23848494844100489/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: 2, + userId: 'u1', + secret: { + accessToken: 'success_access_token', + }, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + clientId: 'abcdef8-f49-4cd6-b4c5-958b3d66d431', + clientSecret: 'sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg', + 'warehouse-adAccountId': '123', + audienceType: 'email', }, ID: 'iwehr83843', }, diff --git a/test/integrations/destinations/custify/network.ts b/test/integrations/destinations/custify/network.ts new file mode 100644 index 0000000000..4af6545f9f --- /dev/null +++ b/test/integrations/destinations/custify/network.ts @@ -0,0 +1,36 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.custify.com/company', + method: 'POST', + }, + httpRes: { + data: { + "company_id": "6", + "name": "Pizzeria Presto", + "signed_up_at": "2019-05-30T12:00:00.000Z", + "size": 15, + "website": "www.pizzeriapresto.com", + "industry": "Restaurant", + "plan": "Platinum", + "monthly_revenue": 1234567, + "churned": false, + "owners_csm": "john.doe@mail.com", + "owners_account": "john.doe@mail.com", + "parent_companies": [ + { + "id": "5ec50c9829d3c17c7cf455f2" + }, + { + "id": "5ec50c9829d3c17c7cf457f2" + } + ], + "custom_attributes": { + "restaurants": 5, + "custom": "template" + } + }, + status: 200 + }, + } +]; diff --git a/test/integrations/destinations/custify/processor/data.ts b/test/integrations/destinations/custify/processor/data.ts new file mode 100644 index 0000000000..8b6fc934f4 --- /dev/null +++ b/test/integrations/destinations/custify/processor/data.ts @@ -0,0 +1,695 @@ +export const data = [ + { + "name": "custify", + "description": "Identify Call with all traits and adding to company", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "apiKey_key_test_001", + "sendAnonymousId": false + }, + "ID": "custify-1234" + }, + "message": { + "type": "identify", + "userId": "user_1234", + "context": { + "traits": { + "email": "user111@gmail.com", + "firstName": "New", + "lastName": "User", + "phone": 9830311522, + "sessionCount": 23, + "unsubscribedFromEmails": false, + "unsubscribedFromCalls": false, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "custom_prop4": { + "test": "test" + }, + "custom_prop5": [ + 1, + 3, + 4 + ], + "createdAt": "2022-04-27T13:56:13.012Z", + "company": { + "id": "company_123" + } + } + }, + "timestamp": "2022-04-27T13:56:13.012Z", + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.custify.com/people", + "headers": { + "Content-Type": "application/json", + "Authorization": "Bearer apiKey_key_test_001", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user_id": "user_1234", + "email": "user111@gmail.com", + "phone": 9830311522, + "session_count": 23, + "unsubscribed_from_emails": false, + "unsubscribed_from_calls": false, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_attributes": { + "firstName": "New", + "lastName": "User", + "sessionCount": 23, + "unsubscribedFromEmails": false, + "unsubscribedFromCalls": false, + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "createdAt": "2022-04-27T13:56:13.012Z" + }, + "name": "New User", + "companies": [ + { + "company_id": "company_123", + "remove": false + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "user_1234" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "custify", + "description": "Identify Call removing the user from company", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "apiKey_key_test_001", + "sendAnonymousId": false + }, + "ID": "custify-1234" + }, + "message": { + "type": "identify", + "userId": "user_1234", + "context": { + "traits": { + "email": "user111@gmail.com", + "firstName": "New", + "lastName": "User", + "phone": 9830311522, + "sessionCount": 23, + "unsubscribedFromEmails": false, + "unsubscribedFromCalls": false, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "custom_prop4": { + "test": "test" + }, + "custom_prop5": [ + 1, + 3, + 4 + ], + "createdAt": "2022-04-27T13:56:13.012Z", + "company": { + "id": "company_123", + "remove": true + } + } + }, + "timestamp": "2022-04-27T13:56:13.012Z", + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", + "anonymousId": "bf412108-0357-4330-b119-7305e767823c" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.custify.com/people", + "headers": { + "Content-Type": "application/json", + "Authorization": "Bearer apiKey_key_test_001", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user_id": "user_1234", + "email": "user111@gmail.com", + "phone": 9830311522, + "session_count": 23, + "unsubscribed_from_emails": false, + "unsubscribed_from_calls": false, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_attributes": { + "firstName": "New", + "lastName": "User", + "sessionCount": 23, + "unsubscribedFromEmails": false, + "unsubscribedFromCalls": false, + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "createdAt": "2022-04-27T13:56:13.012Z" + }, + "name": "New User", + "companies": [ + { + "company_id": "company_123", + "remove": true + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "user_1234" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "custify", + "description": "Identify Call without userId and email and anoymousId", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "apiKey_key_test_001", + "sendAnonymousId": false + }, + "ID": "custify-1234" + }, + "message": { + "type": "identify", + "context": { + "traits": { + "firstName": "New", + "lastName": "User", + "phone": 9830311522, + "sessionCount": 23, + "unsubscribedFromEmails": false, + "unsubscribedFromCalls": false, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "custom_prop4": { + "test": "test" + }, + "custom_prop5": [ + 1, + 3, + 4 + ], + "createdAt": "2022-04-27T13:56:13.012Z", + "company": { + "id": "company_123", + "remove": true + } + } + }, + "timestamp": "2022-04-27T13:56:13.012Z", + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Email or userId is mandatory", + "statTags": { + "destType": "CUSTIFY", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "custify", + "description": "Identify Call without userId and email and sendAnonymous is false", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "apiKey_key_test_001", + "sendAnonymousId": false + }, + "ID": "custify-1234" + }, + "message": { + "type": "identify", + "context": { + "traits": { + "firstName": "New", + "lastName": "User", + "phone": 9830311522, + "sessionCount": 23, + "unsubscribedFromEmails": false, + "unsubscribedFromCalls": false, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "custom_prop4": { + "test": "test" + }, + "custom_prop5": [ + 1, + 3, + 4 + ], + "createdAt": "2022-04-27T13:56:13.012Z", + "company": { + "id": "company_123", + "remove": true + } + } + }, + "anonymousId": "bf412108-0357-4330-b119-7305e767823c", + "timestamp": "2022-04-27T13:56:13.012Z", + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Email or userId is mandatory", + "statTags": { + "destType": "CUSTIFY", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "custify", + "description": "Identify Call without userId and email and sendAnonymous is true", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "apiKey_key_test_001", + "sendAnonymousId": true + }, + "ID": "custify-1234" + }, + "message": { + "type": "identify", + "context": { + "traits": { + "firstName": "New", + "lastName": "User", + "phone": 9830311522, + "sessionCount": 23, + "unsubscribedFromEmails": false, + "unsubscribedFromCalls": false, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "custom_prop4": { + "test": "test" + }, + "custom_prop5": [ + 1, + 3, + 4 + ], + "createdAt": "2022-04-27T13:56:13.012Z", + "company": { + "id": "company_123", + "remove": true + } + } + }, + "anonymousId": "bf412108-0357-4330-b119-7305e767823c", + "timestamp": "2022-04-27T13:56:13.012Z", + "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", + "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.custify.com/people", + "headers": { + "Content-Type": "application/json", + "Authorization": "Bearer apiKey_key_test_001", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "phone": 9830311522, + "session_count": 23, + "unsubscribed_from_emails": false, + "unsubscribed_from_calls": false, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_attributes": { + "firstName": "New", + "lastName": "User", + "sessionCount": 23, + "unsubscribedFromEmails": false, + "unsubscribedFromCalls": false, + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "createdAt": "2022-04-27T13:56:13.012Z" + }, + "user_id": "bf412108-0357-4330-b119-7305e767823c", + "name": "New User", + "companies": [ + { + "company_id": "company_123", + "remove": true + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "bf412108-0357-4330-b119-7305e767823c" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "custify", + "description": "Track call with all properties", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "apiKey_key_test_001", + "sendAnonymousId": false + }, + "ID": "custify-1234" + }, + "message": { + "type": "track", + "event": "Order Completed Version 2", + "sentAt": "2021-08-26T14:16:47.321Z", + "userId": "user_111", + "context": { + "library": { + "name": "analytics-node", + "version": "1.0.3" + }, + "traits": { + "email": "user111@gmail.com" + }, + "page": { + "url": "https://www.website.com/product/path" + } + }, + "rudderId": "70612f39-0607-45bb-8236-bf0995fde4fa", + "_metadata": { + "nodeVersion": "10.24.1" + }, + "messageId": "node-84952e4eb9c6debbda735c49d08a8b31-fcbfed6a-38cf-42c5-881c-f590f59311b1", + "properties": { + "product": "Cube", + "revenue": 9002, + "organization_id": "company_123" + }, + "originalTimestamp": "2021-08-26T14:16:47.317Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.custify.com/event", + "headers": { + "Content-Type": "application/json", + "Authorization": "Bearer apiKey_key_test_001", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user_id": "user_111", + "email": "user111@gmail.com", + "name": "Order Completed Version 2", + "created_at": "2021-08-26T14:16:47.317Z", + "company_id": "company_123", + "metadata": { + "product": "Cube", + "revenue": 9002, + "organization_id": "company_123", + "user_id": "user_111" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "user_111" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "custify", + "description": "Group call with all fields success scenario", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "apiKey_key_test_001", + "sendAnonymousId": false + }, + "ID": "custify-1234" + }, + "message": { + "type": "group", + "userId": "user_111", + "groupId": "company_222", + "traits": { + "name": "Absolute Company", + "industry": " Absolute", + "employees": 121, + "size": 100, + "website": "www.rudder.com", + "plan": "GOLD", + "monthly_revenue": 8000, + "churned": false, + "test_att1": "test_att_val1" + }, + "context": { + "traits": { + "firstName": "Absolute", + "lastName": "User", + "phone": 9830311522, + "session_count": 23, + "signed_up_at": "2022-04-27T13:56:13.012Z", + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "custom_prop4": { + "test": "test" + }, + "custom_prop5": [ + 1, + 3, + 4 + ], + "createdAt": "2022-04-27T13:56:13.012Z" + }, + "ip": "14.5.67.21", + "library": { + "name": "http" + } + }, + "timestamp": "2020-01-21T00:21:34.208Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.custify.com/people", + "headers": { + "Content-Type": "application/json", + "Authorization": "Bearer apiKey_key_test_001", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user_id": "user_111", + "phone": 9830311522, + "signed_up_at": "2020-01-21T00:21:34.208Z", + "custom_attributes": { + "firstName": "Absolute", + "lastName": "User", + "custom_prop1": "custom_value1", + "custom_prop2": 123, + "custom_prop3": false, + "createdAt": "2022-04-27T13:56:13.012Z" + }, + "name": "Absolute User", + "companies": [ + { + "company_id": "company_222", + "remove": false + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "user_111" + }, + "statusCode": 200 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/custify/router/data.ts b/test/integrations/destinations/custify/router/data.ts new file mode 100644 index 0000000000..a88f36fc69 --- /dev/null +++ b/test/integrations/destinations/custify/router/data.ts @@ -0,0 +1,201 @@ +export const data = [ + { + name: 'custify', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + description: 'Group callw with all parameters', + destination: { + Config: { apiKey: 'apiKey_key_test_001', sendAnonymousId: false }, + ID: 'custify-1234', + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + type: 'group', + userId: 'user_111', + groupId: 'company_222', + traits: { + name: 'Absolute Company', + industry: ' Absolute', + employees: 121, + size: 100, + website: 'www.rudder.com', + plan: 'GOLD', + monthly_revenue: 8000, + churned: false, + test_att1: 'test_att_val1', + }, + context: { + traits: { + firstName: 'Absolute', + lastName: 'User', + phone: 9830311522, + session_count: 23, + signed_up_at: '2022-04-27T13:56:13.012Z', + custom_prop1: 'custom_value1', + custom_prop2: 123, + custom_prop3: false, + custom_prop4: { test: 'test' }, + custom_prop5: [1, 3, 4], + createdAt: '2022-04-27T13:56:13.012Z', + }, + ip: '14.5.67.21', + library: { name: 'http' }, + }, + timestamp: '2020-01-21T00:21:34.208Z', + }, + }, + { + description: 'Identify with all parameters', + destination: { + Config: { apiKeyToken: 'pk_123', listId: 'correctListId123' }, + ID: 'custify-1234', + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + type: 'identify', + userId: 'user_1234', + context: { + traits: { + email: 'user111@gmail.com', + firstName: 'New', + lastName: 'User', + phone: 9830311522, + sessionCount: 23, + unsubscribedFromEmails: false, + unsubscribedFromCalls: false, + signed_up_at: '2022-04-27T13:56:13.012Z', + custom_prop1: 'custom_value1', + custom_prop2: 123, + custom_prop3: false, + custom_prop4: { test: 'test' }, + custom_prop5: [1, 3, 4], + createdAt: '2022-04-27T13:56:13.012Z', + company: { id: 'company_123' }, + }, + }, + timestamp: '2022-04-27T13:56:13.012Z', + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + }, + ], + destType: 'custify', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.custify.com/people', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apiKey_key_test_001', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + user_id: 'user_111', + phone: 9830311522, + signed_up_at: '2020-01-21T00:21:34.208Z', + custom_attributes: { + firstName: 'Absolute', + lastName: 'User', + custom_prop1: 'custom_value1', + custom_prop2: 123, + custom_prop3: false, + createdAt: '2022-04-27T13:56:13.012Z', + }, + name: 'Absolute User', + companies: [{ company_id: 'company_222', remove: false }], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'user_111', + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { apiKey: 'apiKey_key_test_001', sendAnonymousId: false }, + ID: 'custify-1234', + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.custify.com/people', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer undefined', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + user_id: 'user_1234', + email: 'user111@gmail.com', + phone: 9830311522, + session_count: 23, + unsubscribed_from_emails: false, + unsubscribed_from_calls: false, + signed_up_at: '2022-04-27T13:56:13.012Z', + custom_attributes: { + firstName: 'New', + lastName: 'User', + sessionCount: 23, + unsubscribedFromEmails: false, + unsubscribedFromCalls: false, + custom_prop1: 'custom_value1', + custom_prop2: 123, + custom_prop3: false, + createdAt: '2022-04-27T13:56:13.012Z', + }, + name: 'New User', + companies: [{ company_id: 'company_123', remove: false }], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'user_1234', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { apiKeyToken: 'pk_123', listId: 'correctListId123' }, + ID: 'custify-1234', + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/customerio/router/data.ts b/test/integrations/destinations/customerio/router/data.ts index 9a34377714..1275147710 100644 --- a/test/integrations/destinations/customerio/router/data.ts +++ b/test/integrations/destinations/customerio/router/data.ts @@ -32,34 +32,21 @@ export const data = [ ip: '0.0.0.0', age: 26, }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, - }, - user_properties: { - prop1: 'val1', - prop2: 'val2', + 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, - }, + integrations: { All: true }, traits: { anonymousId: 'anon-id', email: 'test@gmail.com', @@ -74,9 +61,7 @@ export const data = [ }, sentAt: '2019-10-14T09:03:22.563Z', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { datacenterEU: false, @@ -95,25 +80,14 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - traits: { - email: 'test@rudderstack.com', - anonymousId: '12345', - }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, type: 'page', messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', @@ -127,15 +101,11 @@ export const data = [ title: 'Test Page', url: 'www.rudderlabs.com', }, - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { datacenterEU: false, @@ -155,25 +125,15 @@ export const data = [ version: '1.1.0-beta.2', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.0-beta.2', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.0-beta.2' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + 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, - }, + integrations: { All: true }, traits: { domainNames: 'rudderstack.com', email: 'help@rudderstack.com', @@ -183,9 +143,7 @@ export const data = [ type: 'group', userId: 'user@1', }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { Config: { datacenterEU: false, @@ -205,25 +163,15 @@ export const data = [ version: '1.1.0-beta.2', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.0-beta.2', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.0-beta.2' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + 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, - }, + integrations: { All: true }, traits: { domainNames: 'rudderstack.com', email: 'help@rudderstack.com', @@ -233,9 +181,7 @@ export const data = [ type: 'group', userId: 'user@1', }, - metadata: { - jobId: 4, - }, + metadata: { jobId: 4, userId: 'u1' }, destination: { Config: { datacenterEU: false, @@ -261,9 +207,7 @@ export const data = [ type: 'REST', method: 'PUT', endpoint: 'https://track.customer.io/api/v1/customers/123456', - headers: { - Authorization: 'Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=', - }, + headers: { Authorization: 'Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=' }, params: {}, body: { JSON: { @@ -287,11 +231,7 @@ export const data = [ userId: '123456', statusCode: 200, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -308,9 +248,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://track.customer.io/api/v1/customers/12345/events', - headers: { - Authorization: 'Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=', - }, + headers: { Authorization: 'Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=' }, params: {}, body: { JSON: { @@ -333,11 +271,7 @@ export const data = [ userId: '12345', statusCode: 200, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -372,17 +306,8 @@ export const data = [ email: 'help@rudderstack.com', domainNames: 'rudderstack.com', }, - identifiers: { - object_id: 'group@1', - object_type_id: '1', - }, - cio_relationships: [ - { - identifiers: { - id: 'user@1', - }, - }, - ], + identifiers: { object_id: 'group@1', object_type_id: '1' }, + cio_relationships: [{ identifiers: { id: 'user@1' } }], }, { type: 'object', @@ -392,17 +317,8 @@ export const data = [ email: 'help@rudderstack.com', domainNames: 'rudderstack.com', }, - identifiers: { - object_id: 'group@1', - object_type_id: '1', - }, - cio_relationships: [ - { - identifiers: { - id: 'user@1', - }, - }, - ], + identifiers: { object_id: 'group@1', object_type_id: '1' }, + cio_relationships: [{ identifiers: { id: 'user@1' } }], }, ], }, @@ -411,12 +327,8 @@ export const data = [ files: {}, }, metadata: [ - { - jobId: 3, - }, - { - jobId: 4, - }, + { jobId: 3, userId: 'u1' }, + { jobId: 4, userId: 'u1' }, ], batched: false, statusCode: 200, diff --git a/test/integrations/destinations/delighted/network.ts b/test/integrations/destinations/delighted/network.ts new file mode 100644 index 0000000000..15b0a414e6 --- /dev/null +++ b/test/integrations/destinations/delighted/network.ts @@ -0,0 +1,30 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.delighted.com/v1/people.json', + method: 'GET', + headers: { Authorization: `Basic ZHVtbXlBcGlLZXk=` }, + params: { + email: "identified_user@email.com" + } + }, + httpRes: { + data: ["user data"], + status: 200 + }, + }, + { + httpReq: { + url: 'https://api.delighted.com/v1/people.json', + method: 'GET', + headers: { Authorization: `Basic ZHVtbXlBcGlLZXlmb3JmYWlsdXJl` }, + params: { + email: "unidentified_user@email.com" + } + }, + httpRes: { + data: [], + status: 200 + }, + } +]; diff --git a/test/integrations/destinations/delighted/processor/data.ts b/test/integrations/destinations/delighted/processor/data.ts new file mode 100644 index 0000000000..3596d7ef80 --- /dev/null +++ b/test/integrations/destinations/delighted/processor/data.ts @@ -0,0 +1,937 @@ +export const data = [ + { + "name": "delighted", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "" + } + ] + } + }, + "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", + "type": "identify", + "userId": "abc@123.com", + "traits": { + "firstName": "James", + "lastName": "Doe", + "phone": "+91237416221", + "last_sent_at": "1626698350" + }, + "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.delighted.com/v1/people.json", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "email": "abc@123.com", + "send": false, + "channel": "email", + "delay": 0, + "name": "James Doe", + "phone_number": "+91237416221", + "last_sent_at": "1626698350" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "" + } + ] + } + }, + "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", + "type": "alias", + "previousId": "123@abc.com", + "userId": "abc@123.com", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "email": "123@abc.com", + "email_update": "abc@123.com" + } + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://api.delighted.com/v1/people.json", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "Product Reviewed" + } + ] + } + }, + "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", + "type": "track", + "userId": "identified_user@email.com", + "event": "Product Reviewed", + "properties": { + "review_id": "12345", + "product_id": "123", + "rating": 3, + "review_body": "Average product, expected much more." + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "properties": { + "review_id": "12345", + "product_id": "123", + "rating": 3, + "review_body": "Average product, expected much more." + }, + "send": true, + "channel": "email", + "delay": 0, + "email": "identified_user@email.com" + } + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://api.delighted.com/v1/people.json", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKeyforfailure", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "Product Reviewed" + } + ] + } + }, + "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", + "type": "track", + "userId": "unidentified_user@email.com", + "event": "Product Reviewed", + "properties": { + "review_id": "12345", + "product_id": "123", + "rating": 3, + "review_body": "Average product, expected much more." + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "user unidentified_user@email.com doesn't exist", + "statTags": { + "destType": "DELIGHTED", + "errorCategory": "network", + "errorType": "aborted", + "feature": "processor", + "implementation": "native", + "meta": "instrumentation", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "" + } + ] + } + }, + "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", + "type": "track", + "userId": "identified_user@email.com", + "event": "Product Reviewed", + "properties": { + "review_id": "12345", + "product_id": "123", + "rating": 3, + "review_body": "Average product, expected much more." + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Event is not configured on your Rudderstack Dashboard", + "statTags": { + "destType": "DELIGHTED", + "errorCategory": "dataValidation", + "errorType": "configuration", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "Product Reviewed" + } + ] + } + }, + "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", + "type": "track", + "anonymousId": "identified_user@email.com", + "event": "Product Reviewed", + "properties": { + "review_id": "12345", + "product_id": "123", + "rating": 3, + "review_body": "Average product, expected much more." + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "userId is required.", + "statTags": { + "destType": "DELIGHTED", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "" + } + ] + } + }, + "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", + "type": "alias", + "previousId": "123@abc.com", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "userId is required.", + "statTags": { + "destType": "DELIGHTED", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "" + } + ] + } + }, + "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", + "externalId": [ + { + "id": "sms", + "type": "delightedChannelType" + } + ], + "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", + "type": "alias", + "userId": "abc@123.com", + "previousId": "123@abc.com", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "User Id and Previous Id should be of same type i.e. phone/sms", + "statTags": { + "destType": "DELIGHTED", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "" + } + ] + } + }, + "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", + "externalId": [ + { + "id": "sms", + "type": "delightedChannelType" + } + ], + "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", + "type": "identify", + "userId": "abc@123.com", + "traits": { + "firstName": "James", + "lastName": "Doe", + "phone": "+91237416221", + "last_sent_at": "1626698350" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Channel is set to sms. Enter correct phone number i.e. E.164", + "statTags": { + "destType": "DELIGHTED", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "delighted", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "channel": "email", + "delay": 0, + "eventNamesSettings": [ + { + "event": "" + } + ] + } + }, + "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", + "externalId": [ + { + "id": "sms", + "type": "delightedChannelType" + } + ], + "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", + "type": "identify", + "userId": "+911234567890", + "traits": { + "firstName": "James", + "lastName": "Doe", + "last_sent_at": "1626698350" + }, + "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.delighted.com/v1/people.json", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "send": false, + "channel": "sms", + "delay": 0, + "name": "James Doe", + "phone_number": "+911234567890", + "last_sent_at": "1626698350" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/delighted/router/data.ts b/test/integrations/destinations/delighted/router/data.ts new file mode 100644 index 0000000000..b9e9882383 --- /dev/null +++ b/test/integrations/destinations/delighted/router/data.ts @@ -0,0 +1,177 @@ +export const data = [ + { + name: 'delighted', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + channel: 'email', + delay: 0, + eventNamesSettings: [{ event: '' }], + }, + }, + metadata: { jobId: 1, userId: 'u1' }, + 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', + type: 'identify', + userId: 'abc@123.com', + traits: { + firstName: 'James', + lastName: 'Doe', + phone: '+92374162212', + last_sent_at: '1626698350', + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + channel: 'email', + delay: 0, + eventNamesSettings: [{ event: '' }], + }, + }, + metadata: { jobId: 2, userId: 'u1' }, + 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', + type: 'alias', + previousId: '123@abc.com', + userId: 'abc@123.com', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + destType: 'delighted', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + email: 'abc@123.com', + send: false, + channel: 'email', + delay: 0, + last_sent_at: '1626698350', + name: 'James Doe', + phone_number: '+92374162212', + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + Authorization: 'Basic ZHVtbXlBcGlLZXk=', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.delighted.com/v1/people.json', + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + channel: 'email', + delay: 0, + eventNamesSettings: [{ event: '' }], + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { email: '123@abc.com', email_update: 'abc@123.com' }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + Authorization: 'Basic ZHVtbXlBcGlLZXk=', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.delighted.com/v1/people.json', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + channel: 'email', + delay: 0, + eventNamesSettings: [{ event: '' }], + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/discord/router/data.ts b/test/integrations/destinations/discord/router/data.ts index 55861635b0..5518df8dcf 100644 --- a/test/integrations/destinations/discord/router/data.ts +++ b/test/integrations/destinations/discord/router/data.ts @@ -17,10 +17,7 @@ export const data = [ ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', Name: 'DISCORD', DisplayName: 'Discord', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { eventChannelSettings: [], @@ -43,15 +40,9 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.1-rc.1', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.1-rc.1', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.1-rc.1' }, locale: 'en-US', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/tests/html/script-test.html', referrer: 'http://localhost:1111/tests/html/', @@ -59,9 +50,7 @@ export const data = [ title: '', url: 'http://localhost:1111/tests/html/script-test.html', }, - screen: { - density: 1.7999999523162842, - }, + screen: { density: 1.7999999523162842 }, traits: { country: 'India', email: 'name@domain.com', @@ -71,9 +60,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', originalTimestamp: '2020-03-23T03:46:30.916Z', properties: { @@ -90,9 +77,7 @@ export const data = [ type: 'page', userId: '12345', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, { destination: { @@ -102,25 +87,16 @@ export const data = [ ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', Name: 'DISCORD', DisplayName: 'Discord', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { eventChannelSettings: [], eventTemplateSettings: [], webhookUrl: 'https://abcd.com/efgh/89078/979868/98678', whitelistedTraitsSettings: [ - { - trait: 'country', - }, - { - trait: 'email', - }, - { - trait: 'name', - }, + { trait: 'country' }, + { trait: 'email' }, + { trait: 'name' }, ], }, Enabled: true, @@ -131,9 +107,7 @@ export const data = [ anonymousId: '12345', channel: 'web', context: { - screen: { - density: 1.7999999523162842, - }, + screen: { density: 1.7999999523162842 }, traits: { country: 'India', email: 'name@domain.com', @@ -149,9 +123,7 @@ export const data = [ hiji: 'hulala-1', name: 'my-name-1', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', originalTimestamp: '2020-03-23T03:41:46.122Z', receivedAt: '2020-03-23T09:11:46.244+05:30', @@ -168,6 +140,7 @@ export const data = [ jobId: 123, messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, }, { @@ -178,10 +151,7 @@ export const data = [ ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', Name: 'DISCORD', DisplayName: 'Discord', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { eventTemplateSettings: [ @@ -199,14 +169,7 @@ export const data = [ ], IdentifyTemplate: 'identified {{name}} with {{traits}}', webhookUrl: 'https://abcd.com/efgh/89078/979868/98678', - whitelistedTraitsSettings: [ - { - trait: 'hiji', - }, - { - trait: '', - }, - ], + whitelistedTraitsSettings: [{ trait: 'hiji' }, { trait: '' }], }, Enabled: true, Transformations: [], @@ -226,9 +189,7 @@ export const data = [ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', }, event: 'test_eventing_testis', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', originalTimestamp: '2020-03-23T03:46:30.922Z', properties: { @@ -252,6 +213,7 @@ export const data = [ jobId: 129, messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, }, ], @@ -273,10 +235,7 @@ export const data = [ ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', Name: 'DISCORD', DisplayName: 'Discord', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { eventChannelSettings: [], @@ -289,11 +248,7 @@ export const data = [ Transformations: [], IsProcessorEnabled: true, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], statTags: { destType: 'DISCORD', feature: 'router', @@ -312,9 +267,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://abcd.com/efgh/89078/979868/98678', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -334,25 +287,16 @@ export const data = [ ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', Name: 'DISCORD', DisplayName: 'Discord', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { eventChannelSettings: [], eventTemplateSettings: [], webhookUrl: 'https://abcd.com/efgh/89078/979868/98678', whitelistedTraitsSettings: [ - { - trait: 'country', - }, - { - trait: 'email', - }, - { - trait: 'name', - }, + { trait: 'country' }, + { trait: 'email' }, + { trait: 'name' }, ], }, Enabled: true, @@ -367,6 +311,7 @@ export const data = [ jobId: 123, messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, ], batched: false, @@ -378,9 +323,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://abcd.com/efgh/89078/979868/98678', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -399,10 +342,7 @@ export const data = [ ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', Name: 'DISCORD', DisplayName: 'Discord', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { eventTemplateSettings: [ @@ -420,14 +360,7 @@ export const data = [ ], IdentifyTemplate: 'identified {{name}} with {{traits}}', webhookUrl: 'https://abcd.com/efgh/89078/979868/98678', - whitelistedTraitsSettings: [ - { - trait: 'hiji', - }, - { - trait: '', - }, - ], + whitelistedTraitsSettings: [{ trait: 'hiji' }, { trait: '' }], }, Enabled: true, Transformations: [], @@ -441,6 +374,7 @@ export const data = [ jobId: 129, messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, ], batched: false, diff --git a/test/integrations/destinations/drip/network.ts b/test/integrations/destinations/drip/network.ts new file mode 100644 index 0000000000..cfce027426 --- /dev/null +++ b/test/integrations/destinations/drip/network.ts @@ -0,0 +1,30 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.getdrip.com/v2/1809802/subscribers/identified_user@gmail.com', + method: 'GET', + }, + httpRes: { + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.getdrip.com/v2/1809802/subscribers/unidentified_user@gmail.com', + method: 'GET', + }, + httpRes: { + status: 400, + }, + }, + , + { + httpReq: { + url: 'https://api.getdrip.com/v2/1809802/subscribers', + method: 'POST', + }, + httpRes: { + status: 200, + }, + }, +]; diff --git a/test/integrations/destinations/drip/processor/data.ts b/test/integrations/destinations/drip/processor/data.ts new file mode 100644 index 0000000000..0159959d13 --- /dev/null +++ b/test/integrations/destinations/drip/processor/data.ts @@ -0,0 +1,1487 @@ +export const data = [ + { + "name": "drip", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "", + "enableUserCreation": 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 + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "type": "identify", + "traits": { + "email": "test1@gmail.com", + "firstName": "James", + "lastName": "Doe", + "phone": "237416221", + "customFields": { + "filter1": "filterval1" + } + }, + "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.getdrip.com/v2/1809802/subscribers", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "subscribers": [ + { + "email": "test1@gmail.com", + "first_name": "James", + "last_name": "Doe", + "phone": "237416221", + "ip_address": "0.0.0.0", + "custom_fields": { + "filter1": "filterval1" + } + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "", + "enableUserCreation": 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 + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "type": "identify", + "traits": { + "email": "12324adfgs", + "firstName": "James", + "lastName": "Doe", + "phone": "237416221", + "customFields": { + "filter1": "filterval1" + } + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "dripId or email is required for the call", + "statTags": { + "destType": "DRIP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "", + "enableUserCreation": 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 + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "type": "identify", + "traits": { + "email": "test1@gmail.com", + "name": "James Doe", + "phone": "237416221", + "filter1": "filterval1", + "filter2": "filterval2" + }, + "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.getdrip.com/v2/1809802/subscribers", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "subscribers": [ + { + "email": "test1@gmail.com", + "first_name": "James", + "last_name": "Doe", + "phone": "237416221", + "ip_address": "0.0.0.0", + "custom_fields": { + "filter1": "filterval1", + "filter2": "filterval2" + } + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": 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 + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "type": "identify", + "traits": { + "email": "test1@gmail.com", + "name": "James Doe", + "phone": "237416221", + "filter1": "filterval1", + "filter2": "filterval2", + "tags": [ + "tag1", + "tag2" + ], + "startingEmailIndex": 1 + }, + "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.getdrip.com/v2/1809802/campaigns/915194776/subscribers", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "subscribers": [ + { + "email": "test1@gmail.com", + "starting_email_index": 1 + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": 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 + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "type": "track", + "event": "testing", + "properties": { + "email": "user1@gmail.com", + "customFields": { + "field1": "val1" + } + }, + "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.getdrip.com/v2/1809802/events", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "events": [ + { + "email": "user1@gmail.com", + "properties": { + "field1": "val1" + }, + "action": "testing", + "occurred_at": "2019-10-14T09:03:17.562Z" + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": 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 + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "type": "track", + "event": "", + "properties": { + "email": "user1@gmail.com", + "custom_fields": { + "field1": "val1" + } + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Event name is required", + "statTags": { + "destType": "DRIP", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": false + } + }, + "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", + "type": "track", + "event": "testing", + "properties": { + "email": "identified_user@gmail.com", + "customFields": { + "field1": "val1" + } + }, + "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.getdrip.com/v2/1809802/events", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "events": [ + { + "email": "identified_user@gmail.com", + "properties": { + "field1": "val1" + }, + "action": "testing", + "occurred_at": "2019-10-14T09:03:17.562Z" + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": false + } + }, + "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", + "type": "track", + "event": "testing", + "properties": { + "email": "identified_user@gmail.com", + "field1": "val1" + }, + "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.getdrip.com/v2/1809802/events", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "events": [ + { + "email": "identified_user@gmail.com", + "properties": { + "field1": "val1" + }, + "action": "testing", + "occurred_at": "2019-10-14T09:03:17.562Z" + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": false + } + }, + "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", + "type": "track", + "event": "testing", + "properties": { + "email": "unidentified_user@gmail.com", + "field1": "val1" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Error occurred while checking user : error response not found", + "statTags": { + "destType": "DRIP", + "errorCategory": "network", + "errorType": "aborted", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": false + } + }, + "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", + "type": "track", + "event": "checkout started", + "properties": { + "email": "identified_user@gmail.com", + "field1": "val1", + "affiliation": "my_custom_order", + "order_id": "456445746" + }, + "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.getdrip.com/v3/1809802/shopper_activity/order", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "action": "placed", + "email": "identified_user@gmail.com", + "occurred_at": "2019-10-14T09:03:17.562Z", + "order_id": "456445746", + "provider": "my_custom_order" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 10", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": false + } + }, + "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", + "type": "track", + "event": "checkout started", + "properties": { + "email": "identified_user@gmail.com", + "field1": "val1", + "affiliation": "my_custom_order", + "order_id": "456445746", + "products": [ + { + "name": "shirt", + "price": 11.16 + } + ] + }, + "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.getdrip.com/v3/1809802/shopper_activity/order", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "action": "placed", + "email": "identified_user@gmail.com", + "occurred_at": "2019-10-14T09:03:17.562Z", + "order_id": "456445746", + "provider": "my_custom_order", + "items": [ + { + "name": "shirt", + "price": 11.16 + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 11", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "915194776", + "enableUserCreation": false + } + }, + "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", + "type": "track", + "event": "checkout", + "properties": { + "email": "identified_user@gmail.com", + "field1": "val1", + "customFields": { + "field2": "val2" + } + }, + "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.getdrip.com/v2/1809802/events", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "events": [ + { + "action": "checkout", + "email": "identified_user@gmail.com", + "occurred_at": "2019-10-14T09:03:17.562Z", + "properties": { + "field2": "val2" + } + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "drip", + "description": "Test 12", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "accountId": "1809802", + "campaignId": "", + "enableUserCreation": true + } + }, + "message": { + "type": "identify", + "event": "identify", + "userId": "user@1", + "channel": "mobile", + "context": { + "os": { + "name": "Android", + "version": "13" + }, + "app": { + "name": "rudderstack", + "build": "5425", + "version": "2.4.1" + }, + "device": { + "id": "8b048b94cbec4fcf", + "name": "o1q", + "type": "Android", + "model": "SM-G991U", + "manufacturer": "samsung" + }, + "locale": "en-US", + "traits": { + "id": "ruddertest@gmail.com", + "email": "ruddertest@gmail.com", + "title": "Social Impact Program Manager", + "skills": [ + { + "id": 134, + "name": "Business Development", + "tagGroupId": 2, + "parentTagId": 134, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 96, + "name": "Communications", + "tagGroupId": 2, + "parentTagId": 96, + "huddleVisible": true, + "onboardVisible": true + }, + { + "id": 489, + "name": "Construction", + "tagGroupId": 2, + "parentTagId": 489, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 671, + "name": "Data Analysis", + "tagGroupId": 2, + "parentTagId": 671, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 676, + "name": "Engineering: Mechanical", + "tagGroupId": 2, + "parentTagId": 676, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 189, + "name": "Operations", + "tagGroupId": 2, + "parentTagId": 189, + "huddleVisible": true, + "onboardVisible": true + }, + { + "id": 194, + "name": "Product Management", + "tagGroupId": 2, + "parentTagId": 194, + "huddleVisible": true, + "onboardVisible": true + }, + { + "id": 195, + "name": "Program Management", + "tagGroupId": 2, + "parentTagId": 195, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 199, + "name": "R&D", + "tagGroupId": 2, + "parentTagId": 199, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 102, + "name": "Sales", + "tagGroupId": 2, + "parentTagId": 102, + "huddleVisible": true, + "onboardVisible": true + } + ], + "userId": "ruddertest@gmail.com", + "address": "Chicago, IL, USA", + "industry": "Education", + "lastName": "test", + "lastname": "test", + "verified": false, + "firstName": "rudder", + "firstname": "rudder", + "interests": [ + { + "id": 649, + "name": "Adaptation", + "tagGroupId": 4, + "parentTagId": 745, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 663, + "name": "Carbon removal and sequestration", + "tagGroupId": 4, + "parentTagId": 761, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 664, + "name": "Clean Energy and Energy Efficiency", + "tagGroupId": 4, + "parentTagId": 259, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 654, + "name": "Climate Science and Earth Systems", + "tagGroupId": 4, + "parentTagId": 744, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 650, + "name": "Corporate Sustainability", + "tagGroupId": 4, + "parentTagId": 650, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 651, + "name": "Finance & Risk", + "tagGroupId": 4, + "parentTagId": 651, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 652, + "name": "Food and Agriculture", + "tagGroupId": 4, + "parentTagId": 652, + "huddleVisible": false, + "onboardVisible": false + }, + { + "id": 665, + "name": "Transport", + "tagGroupId": 4, + "parentTagId": 665, + "huddleVisible": false, + "onboardVisible": false + } + ], + "isDeleted": false, + "anonymousId": "8b048b94cbec4fcf", + "jobFunction": "Program manager", + "reminderType": 1, + "jobPreferences": { + "motivationStr": "I am looking for a job in climate change.,I want to learn about climate change.,I’d like to connect with other climate enthusiasts.", + "searchUrgency": "As soon as possible", + "maxCompensation": 0, + "minCompensation": 0 + }, + "visibilityType": "public", + "Linkedin-Signin": true, + "hubbleOnboarded": false, + "sharePreference": false, + "notificationType": 0, + "shortDescription": "Social Impact Program Manager", + "jobProfileComplete": false, + "noOfMonthExperience": 0, + "onboarding_completed": "Yes" + }, + "library": { + "name": "com.rudderstack.android.sdk.core", + "version": "1.8.1" + }, + "timezone": "America/Chicago", + "sessionId": 1681096824, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 13; SM-G991U Build/TP1A.220624.014)" + }, + "rudderId": "f701966c-5568-4500-92ba-4e9023c8fe31", + "messageId": "77b53247-177f-4ca3-a6b4-aa7558fec280", + "request_ip": "75.209.176.135", + "anonymousId": "8b048b94cbec4fcf", + "integrations": { + "All": true + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.getdrip.com/v2/1809802/subscribers", + "headers": { + "Authorization": "Basic ZHVtbXlBcGlLZXk=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "subscribers": [ + { + "email": "ruddertest@gmail.com", + "user_id": "user@1", + "address1": "Chicago, IL, USA", + "last_name": "test", + "first_name": "rudder", + "custom_fields": { + "title": "Social Impact Program Manager", + "industry": "Education", + "verified": false, + "isDeleted": false, + "jobFunction": "Program manager", + "reminderType": 1, + "jobPreferences": { + "motivationStr": "I am looking for a job in climate change.,I want to learn about climate change.,I’d like to connect with other climate enthusiasts.", + "searchUrgency": "As soon as possible", + "maxCompensation": 0, + "minCompensation": 0 + }, + "visibilityType": "public", + "hubbleOnboarded": false, + "sharePreference": false, + "notificationType": 0, + "shortDescription": "Social Impact Program Manager", + "jobProfileComplete": false, + "noOfMonthExperience": 0, + "onboarding_completed": "Yes" + } + } + ] + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/drip/router/data.ts b/test/integrations/destinations/drip/router/data.ts new file mode 100644 index 0000000000..44aac7dd1a --- /dev/null +++ b/test/integrations/destinations/drip/router/data.ts @@ -0,0 +1,189 @@ +export const data = [ + { + name: 'drip', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + accountId: '1809802', + campaignId: '', + enableUserCreation: true, + }, + }, + metadata: { jobId: 1, userId: 'u1' }, + 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', + type: 'identify', + traits: { + email: 'test1@gmail.com', + firstName: 'James', + lastName: 'Doe', + phone: '237416221', + customFields: { filter1: 'filterval1' }, + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + accountId: '1809802', + campaignId: '915194776', + enableUserCreation: true, + }, + }, + metadata: { jobId: 2, userId: 'u1' }, + 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', + type: 'track', + event: 'testing', + properties: { email: 'user1@gmail.com', customFields: { field1: 'val1' } }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + destType: 'drip', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + subscribers: [ + { + email: 'test1@gmail.com', + first_name: 'James', + last_name: 'Doe', + phone: '237416221', + ip_address: '0.0.0.0', + custom_fields: { filter1: 'filterval1' }, + }, + ], + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + Authorization: 'Basic ZHVtbXlBcGlLZXk=', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.getdrip.com/v2/1809802/subscribers', + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + accountId: '1809802', + campaignId: '', + enableUserCreation: true, + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + email: 'user1@gmail.com', + properties: { field1: 'val1' }, + action: 'testing', + occurred_at: '2019-10-14T09:03:17.562Z', + }, + ], + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + Authorization: 'Basic ZHVtbXlBcGlLZXk=', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.getdrip.com/v2/1809802/events', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + accountId: '1809802', + campaignId: '915194776', + enableUserCreation: true, + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/engage/router/data.ts b/test/integrations/destinations/engage/router/data.ts index d6a66b5e98..248deff04d 100644 --- a/test/integrations/destinations/engage/router/data.ts +++ b/test/integrations/destinations/engage/router/data.ts @@ -12,19 +12,8 @@ export const data = [ { message: { groupId: '17', - context: { - externalId: [ - { - type: 'engageId', - id: '246', - }, - ], - }, - traits: { - lastName: 'garwal', - type: 'Segments', - operation: 'remove', - }, + context: { externalId: [{ type: 'engageId', id: '246' }] }, + traits: { lastName: 'garwal', type: 'Segments', operation: 'remove' }, type: 'group', }, destination: { @@ -32,18 +21,12 @@ export const data = [ publicKey: '49ur490rjfo34gi04y38r9go', privateKey: 'n89g389yr389fgbef0u2rff', listIds: [ - { - listId: '9834trg3rgy3g08oi9893rgfb', - }, - { - listId: 'f39487tyh49go3h093gh2if2f2', - }, + { listId: '9834trg3rgy3g08oi9893rgfb' }, + { listId: 'f39487tyh49go3h093gh2if2f2' }, ], }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, ], destType: 'engage', @@ -68,14 +51,7 @@ export const data = [ 'Basic NDl1cjQ5MHJqZm8zNGdpMDR5MzhyOWdvOm44OWczODl5cjM4OWZnYmVmMHUycmZm', }, params: {}, - body: { - JSON: { - subscribed: true, - }, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: { subscribed: true }, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, destination: { @@ -83,20 +59,12 @@ export const data = [ publicKey: '49ur490rjfo34gi04y38r9go', privateKey: 'n89g389yr389fgbef0u2rff', listIds: [ - { - listId: '9834trg3rgy3g08oi9893rgfb', - }, - { - listId: 'f39487tyh49go3h093gh2if2f2', - }, + { listId: '9834trg3rgy3g08oi9893rgfb' }, + { listId: 'f39487tyh49go3h093gh2if2f2' }, ], }, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, }, @@ -120,14 +88,8 @@ export const data = [ userId: '1', context: { externalId: [ - { - type: 'engageListId', - id: '100c983ry8934hf3094yfh348gf1', - }, - { - type: 'engageListId', - id: '4r40hfio3rbfln', - }, + { type: 'engageListId', id: '100c983ry8934hf3094yfh348gf1' }, + { type: 'engageListId', id: '4r40hfio3rbfln' }, ], }, originalTimestamp: '2020-09-28T19:53:31.900Z', @@ -136,14 +98,7 @@ export const data = [ lastName: 'Rudderlabs', email: 'Test@r.com', hasPurchased: 'yes', - address: { - Home: { - city: 'iudcb', - }, - Office: { - abc: 'jbc', - }, - }, + address: { Home: { city: 'iudcb' }, Office: { abc: 'jbc' } }, state: 'Delhi', title: 'Mr', }, @@ -155,18 +110,12 @@ export const data = [ publicKey: '49ur490rjfo34gi04y38r9go', privateKey: 'n89g389yr389fgbef0u2rff', listIds: [ - { - listId: '9834trg3rgy3g08oi9893rgfb', - }, - { - listId: 'f39487tyh49go3h093gh2if2f2', - }, + { listId: '9834trg3rgy3g08oi9893rgfb' }, + { listId: 'f39487tyh49go3h093gh2if2f2' }, ], }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, }, ], destType: 'engage', @@ -217,20 +166,12 @@ export const data = [ publicKey: '49ur490rjfo34gi04y38r9go', privateKey: 'n89g389yr389fgbef0u2rff', listIds: [ - { - listId: '9834trg3rgy3g08oi9893rgfb', - }, - { - listId: 'f39487tyh49go3h093gh2if2f2', - }, + { listId: '9834trg3rgy3g08oi9893rgfb' }, + { listId: 'f39487tyh49go3h093gh2if2f2' }, ], }, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, }, @@ -253,11 +194,7 @@ export const data = [ message: { anonymousId: 'user123', groupId: '17', - traits: { - lastName: 'garwal', - operation: 'remove', - email: 'abc@xyz.com', - }, + traits: { lastName: 'garwal', operation: 'remove', email: 'abc@xyz.com' }, type: 'group', }, destination: { @@ -265,18 +202,12 @@ export const data = [ publicKey: '49ur490rjfo34gi04y38r9go', privateKey: 'n89g389yr389fgbef0u2rff', listIds: [ - { - listId: '9834trg3rgy3g08oi9893rgfb', - }, - { - listId: 'f39487tyh49go3h093gh2if2f2', - }, + { listId: '9834trg3rgy3g08oi9893rgfb' }, + { listId: 'f39487tyh49go3h093gh2if2f2' }, ], }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, }, ], destType: 'engage', @@ -290,22 +221,14 @@ export const data = [ body: { output: [ { - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], destination: { Config: { publicKey: '49ur490rjfo34gi04y38r9go', privateKey: 'n89g389yr389fgbef0u2rff', listIds: [ - { - listId: '9834trg3rgy3g08oi9893rgfb', - }, - { - listId: 'f39487tyh49go3h093gh2if2f2', - }, + { listId: '9834trg3rgy3g08oi9893rgfb' }, + { listId: 'f39487tyh49go3h093gh2if2f2' }, ], }, }, diff --git a/test/integrations/destinations/facebook_conversions/mocks.ts b/test/integrations/destinations/facebook_conversions/mocks.ts new file mode 100644 index 0000000000..c155897bc4 --- /dev/null +++ b/test/integrations/destinations/facebook_conversions/mocks.ts @@ -0,0 +1,3 @@ +export const defaultMockFns = () => { + jest.spyOn(Date, 'now').mockImplementation(() => new Date('2023-11-12T15:46:51.000Z').valueOf()); +}; diff --git a/test/integrations/destinations/facebook_conversions/processor/data.ts b/test/integrations/destinations/facebook_conversions/processor/data.ts new file mode 100644 index 0000000000..beb7eb32aa --- /dev/null +++ b/test/integrations/destinations/facebook_conversions/processor/data.ts @@ -0,0 +1,1437 @@ +import { defaultMockFns } from '../mocks'; + +export const data = [ + { + name: 'facebook_conversions', + description: + 'Timestamp validation. Events must be sent within seven days of their occurrence or up to one minute in the future', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'randomevent', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-09-01T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Events must be sent within seven days of their occurrence or up to one minute in the future.', + statusCode: 400, + statTags: { + destType: 'FACEBOOK_CONVERSIONS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Track event without event property set', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: '', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: "'event' is required and should be a string", + statTags: { + destType: 'FACEBOOK_CONVERSIONS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Simple track event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/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":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"value":400,"currency":"USD"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Track event with standard event products searched', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'products searched', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"Search","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"content_ids":[],"contents":[],"content_type":"product","currency":"USD","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Track event with standard event product added', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'product added', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"AddToCart","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"content_ids":[],"contents":[],"content_type":"product","currency":"USD","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Track event with standard event product viewed', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'product viewed', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"ViewContent","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"content_ids":[],"contents":[],"content_type":"product","currency":"USD","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Track event with standard event product list viewed', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'product list viewed', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + products: [ + { + product_id: 1234, + quantity: 5, + price: 55, + }, + ], + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"ViewContent","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"products":[{"product_id":1234,"quantity":5,"price":55}],"content_ids":[1234],"contents":[{"id":1234,"quantity":5,"item_price":55}],"content_type":"product","currency":"USD","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Track event with standard event product list viewed without products array', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'product list viewed', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + category: 'randomCategory', + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"ViewContent","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"category":"randomCategory","content_ids":["randomCategory"],"contents":[{"id":"randomCategory","quantity":1}],"content_type":"product_group","content_category":"randomCategory","currency":"USD","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Track event with standard event product added to wishlist', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'product added to wishlist', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"AddToWishlist","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"content_ids":[],"contents":[],"currency":"USD","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: 'Track event with standard event payment info entered', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'payment info entered', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"AddPaymentInfo","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"content_ids":[],"contents":[],"currency":"USD","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: + 'Track event with standard event order completed with delivery_category in products array', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'order completed', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + products: [ + { + product_id: 1234, + quantity: 5, + price: 55, + delivery_category: 'home_delivery', + }, + ], + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"Purchase","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"products":[{"product_id":1234,"quantity":5,"price":55,"delivery_category":"home_delivery"}],"content_ids":[1234],"contents":[{"id":1234,"quantity":5,"item_price":55,"delivery_category":"home_delivery"}],"content_type":"product","currency":"USD","value":400,"num_items":1}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'facebook_conversions', + description: + 'Track event with standard event order completed with delivery_category in properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'order completed', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + delivery_category: 'home_delivery', + products: [ + { + product_id: 1234, + quantity: 5, + price: 55, + }, + ], + }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"Purchase","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"delivery_category":"home_delivery","products":[{"product_id":1234,"quantity":5,"price":55}],"content_ids":[1234],"contents":[{"id":1234,"quantity":5,"item_price":55,"delivery_category":"home_delivery"}],"content_type":"product","currency":"USD","value":400,"num_items":1}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, +]; diff --git a/test/integrations/destinations/facebook_conversions/router/data.ts b/test/integrations/destinations/facebook_conversions/router/data.ts new file mode 100644 index 0000000000..9c6759df61 --- /dev/null +++ b/test/integrations/destinations/facebook_conversions/router/data.ts @@ -0,0 +1,192 @@ +import { defaultMockFns } from '../mocks'; +export const data = [ + { + name: 'facebook_conversions', + description: 'Successfull Remove Group Call ', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + metadata: { jobId: 1, userId: 'u1' }, + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [{ from: '', to: '' }], + eventCustomProperties: [{ eventCustomProperties: '' }], + removeExternalId: true, + whitelistPiiProperties: [{ whitelistPiiProperties: '' }], + actionSource: 'website', + }, + Enabled: true, + }, + }, + { + metadata: { jobId: 2, userId: 'u1' }, + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'web', + 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: 'products searched', + integrations: { All: true }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { revenue: 400, additional_bet_index: 0 }, + timestamp: '2023-11-12T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [{ from: '', to: '' }], + eventCustomProperties: [{ eventCustomProperties: '' }], + removeExternalId: true, + whitelistPiiProperties: [{ whitelistPiiProperties: '' }], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + destType: 'facebook_conversions', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/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":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"value":400,"currency":"USD"}}', + ], + }, + }, + files: {}, + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [{ from: '', to: '' }], + eventCustomProperties: [{ eventCustomProperties: '' }], + removeExternalId: true, + whitelistPiiProperties: [{ whitelistPiiProperties: '' }], + actionSource: 'website', + }, + Enabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v18.0/dummyID/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"Search","event_time":1699784211,"action_source":"website","custom_data":{"revenue":400,"additional_bet_index":0,"content_ids":[],"contents":[],"content_type":"product","currency":"USD","value":400}}', + ], + }, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], + accessToken: '09876', + datasetId: 'dummyID', + eventsToEvents: [{ from: '', to: '' }], + eventCustomProperties: [{ eventCustomProperties: '' }], + removeExternalId: true, + whitelistPiiProperties: [{ whitelistPiiProperties: '' }], + actionSource: 'website', + }, + Enabled: true, + }, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, +]; diff --git a/test/integrations/destinations/facebook_offline_conversions/router/data.ts b/test/integrations/destinations/facebook_offline_conversions/router/data.ts index 7bf984a029..c91113fcae 100644 --- a/test/integrations/destinations/facebook_offline_conversions/router/data.ts +++ b/test/integrations/destinations/facebook_offline_conversions/router/data.ts @@ -19,23 +19,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.2', }, - traits: { - abc: '1234', - }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, page: { path: '/tests/html/ecomm_test.html', referrer: 'http://0.0.0.0:1112/tests/html/', @@ -57,90 +47,34 @@ export const data = [ 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', - }, + { 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, - }, + metadata: { jobId: 1, userId: 'u1' }, 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', - }, + { 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', - }, + { 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, }, @@ -156,23 +90,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.2', }, - traits: { - abc: '1234', - }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, page: { path: '/tests/html/ecomm_test.html', referrer: 'http://0.0.0.0:1112/tests/html/', @@ -194,86 +118,33 @@ export const data = [ 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', - }, + { 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, - }, + metadata: { jobId: 2, userId: 'u1' }, 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', - }, + { 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: '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, }, @@ -294,9 +165,7 @@ export const data = [ birthday: '2005-01-01T23:28:56.782Z', firstName: 'test', lastName: 'rudderstack', - initial: { - firstName: 'rudderlabs', - }, + initial: { firstName: 'rudderlabs' }, address: { city: 'kalkata', state: 'west bangal', @@ -306,20 +175,12 @@ export const data = [ phone: '9886775586', gender: 'male', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.2', - }, + 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, page: { path: '/tests/html/ecomm_test.html', referrer: 'http://0.0.0.0:1112/tests/html/', @@ -327,9 +188,7 @@ export const data = [ title: 'Fb Offline Conversion Ecommerce Test', url: 'http://0.0.0.0:1112/tests/html/ecomm_test.html', }, - device: { - advertisingId: 'apple@123', - }, + device: { advertisingId: 'apple@123' }, }, type: 'track', messageId: '9116b734-7e6b-4497-ab51-c16744d4487e', @@ -345,86 +204,33 @@ export const data = [ 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', - }, + { 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, - }, + metadata: { jobId: 3, userId: 'u1' }, 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', - }, + { 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', - }, + { 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, }, @@ -443,11 +249,7 @@ export const data = [ output: [ { error: 'Please Map Your Standard Events With Event Set Ids', - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statTags: { destType: 'FACEBOOK_OFFLINE_CONVERSIONS', @@ -463,64 +265,22 @@ export const data = [ 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', - }, + { 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', - }, + { 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, }, @@ -528,11 +288,7 @@ export const data = [ }, { error: 'Please Map Your Standard Events With Event Set Ids', - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statTags: { destType: 'FACEBOOK_OFFLINE_CONVERSIONS', errorCategory: 'dataValidation', @@ -548,79 +304,31 @@ export const data = [ 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', - }, + { 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: '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, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batchedRequest: [ { - body: { - FORM: {}, - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - }, + 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: {}, @@ -638,60 +346,21 @@ export const data = [ 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', - }, + { 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', - }, + { 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/dataDelivery/data.ts b/test/integrations/destinations/facebook_pixel/dataDelivery/data.ts index d560658341..eb9ce344e0 100644 --- a/test/integrations/destinations/facebook_pixel/dataDelivery/data.ts +++ b/test/integrations/destinations/facebook_pixel/dataDelivery/data.ts @@ -1,3 +1,5 @@ +import { VERSION } from '../../../../../src/v0/destinations/facebook_pixel/config'; + export const data = [ { name: 'facebook_pixel', @@ -24,8 +26,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_access_token', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=invalid_access_token`, params: { destination: 'facebook_pixel', }, @@ -89,8 +90,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=my_access_token', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=my_access_token`, params: { destination: 'facebook_pixel', }, @@ -139,8 +139,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_timestamp_correct_access_token', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=invalid_timestamp_correct_access_token`, params: { destination: 'facebook_pixel', }, @@ -209,8 +208,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=throttled_valid_access_token', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=throttled_valid_access_token`, params: { destination: 'facebook_pixel', }, @@ -274,8 +272,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_account_id_valid_access_token', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=invalid_account_id_valid_access_token`, params: { destination: 'facebook_pixel', }, @@ -342,8 +339,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=not_found_access_token', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=not_found_access_token`, params: { destination: 'facebook_pixel', }, @@ -411,8 +407,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234570/events?access_token=valid_access_token', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234570/events?access_token=valid_access_token`, }, method: 'POST', }, @@ -477,8 +472,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234571/events?access_token=valid_access_token', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234571/events?access_token=valid_access_token`, }, method: 'POST', }, @@ -543,8 +537,7 @@ export const data = [ userId: '', headers: {}, version: '1', - endpoint: - 'https://graph.facebook.com/v17.0/1234567891234572/events?access_token=valid_access_token_unhandled_response', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234572/events?access_token=valid_access_token_unhandled_response`, }, method: 'POST', }, diff --git a/test/integrations/destinations/facebook_pixel/network.ts b/test/integrations/destinations/facebook_pixel/network.ts index a63970c4c6..05b3a05fd0 100644 --- a/test/integrations/destinations/facebook_pixel/network.ts +++ b/test/integrations/destinations/facebook_pixel/network.ts @@ -1,10 +1,11 @@ import { data } from './dataDelivery/data'; import { getFormData } from '../../../../src/adapters/network'; +import { VERSION } from '../../../../src/v0/destinations/facebook_pixel/config'; export const networkCallsData = [ { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_access_token', + url: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=invalid_access_token`, data: getFormData(data[0].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -24,7 +25,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_timestamp_correct_access_token', + url: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=invalid_timestamp_correct_access_token`, data: getFormData(data[2].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -49,7 +50,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=throttled_valid_access_token', + url: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=throttled_valid_access_token`, data: getFormData(data[3].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -69,7 +70,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_account_id_valid_access_token', + url: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=invalid_account_id_valid_access_token`, data: getFormData(data[4].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -91,7 +92,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=not_found_access_token', + url: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=not_found_access_token`, data: getFormData(data[5].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -112,7 +113,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234570/events?access_token=valid_access_token', + url: `https://graph.facebook.com/${VERSION}/1234567891234570/events?access_token=valid_access_token`, data: getFormData(data[6].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -133,7 +134,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234571/events?access_token=valid_access_token', + url: `https://graph.facebook.com/${VERSION}/1234567891234571/events?access_token=valid_access_token`, data: getFormData(data[7].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -154,7 +155,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234572/events?access_token=valid_access_token_unhandled_response', + url: `https://graph.facebook.com/${VERSION}/1234567891234572/events?access_token=valid_access_token_unhandled_response`, data: getFormData(data[8].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -175,7 +176,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=my_access_token', + url: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=my_access_token`, data: getFormData(data[1].input.request.body.body.FORM).toString(), params: { destination: 'facebook_pixel' }, headers: { 'User-Agent': 'RudderLabs' }, diff --git a/test/integrations/destinations/facebook_pixel/processor/data.ts b/test/integrations/destinations/facebook_pixel/processor/data.ts index 96e80c01e8..557bc7066c 100644 --- a/test/integrations/destinations/facebook_pixel/processor/data.ts +++ b/test/integrations/destinations/facebook_pixel/processor/data.ts @@ -1,3 +1,5 @@ +import { VERSION } from '../../../../../src/v0/destinations/facebook_pixel/config'; + export const mockFns = (_) => { // @ts-ignore jest.useFakeTimers().setSystemTime(new Date('2023-10-15')); @@ -106,7 +108,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -445,7 +447,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -569,7 +571,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -688,7 +690,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -807,7 +809,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -927,7 +929,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -1047,7 +1049,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -1166,7 +1168,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -1284,7 +1286,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -1419,7 +1421,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -1554,7 +1556,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -1705,7 +1707,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -1855,7 +1857,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -1984,7 +1986,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -2106,7 +2108,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -2249,7 +2251,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -2392,7 +2394,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -2516,7 +2518,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -2640,7 +2642,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -2768,7 +2770,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -2893,7 +2895,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -3014,7 +3016,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -3133,7 +3135,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -3282,7 +3284,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -3510,7 +3512,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -3631,7 +3633,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -3884,7 +3886,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -4027,7 +4029,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -4289,7 +4291,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -4752,7 +4754,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -4897,7 +4899,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -5178,7 +5180,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -5310,7 +5312,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -5440,7 +5442,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -6032,8 +6034,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: - 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=dummyAccessToken', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=dummyAccessToken`, headers: {}, params: {}, body: { @@ -6181,7 +6182,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -6306,7 +6307,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { @@ -6437,7 +6438,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: `https://graph.facebook.com/${VERSION}/dummyPixelId/events?access_token=09876`, headers: {}, params: {}, body: { diff --git a/test/integrations/destinations/facebook_pixel/router/data.ts b/test/integrations/destinations/facebook_pixel/router/data.ts index ef6b9f8635..4bd9914768 100644 --- a/test/integrations/destinations/facebook_pixel/router/data.ts +++ b/test/integrations/destinations/facebook_pixel/router/data.ts @@ -1,3 +1,5 @@ +import { VERSION } from '../../../../../src/v0/destinations/facebook_pixel/config'; + export const mockFns = (_) => { // @ts-ignore jest.useFakeTimers().setSystemTime(new Date('2023-10-15')); @@ -17,11 +19,7 @@ export const data = [ { message: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - destination_props: { - Fb: { - app_id: 'RudderFbApp', - }, - }, + destination_props: { Fb: { app_id: 'RudderFbApp' } }, context: { device: { id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', @@ -29,67 +27,34 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - screen: { - height: '100', - density: 50, - }, + 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, - }, + integrations: { All: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - revenue: 400, - additional_bet_index: 0, - }, + properties: { revenue: 400, additional_bet_index: 0 }, timestamp: '2023-10-14T15:46:51.693229+05:30', type: 'track', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { limitedDataUsage: true, - blacklistPiiProperties: [ - { - blacklistPiiProperties: '', - blacklistPiiHash: false, - }, - ], + blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], removeExternalId: true, accessToken: '09876', pixelId: 'dummyPixelId', - eventsToEvents: [ - { - from: '', - to: '', - }, - ], - eventCustomProperties: [ - { - eventCustomProperties: '', - }, - ], + eventsToEvents: [{ from: '', to: '' }], + eventCustomProperties: [{ eventCustomProperties: '' }], valueFieldIdentifier: '', advancedMapping: false, - whitelistPiiProperties: [ - { - whitelistPiiProperties: '', - }, - ], + whitelistPiiProperties: [{ whitelistPiiProperties: '' }], }, Enabled: true, }, @@ -112,67 +77,34 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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', + os: { name: '', version: '' }, + screen: { density: 2 }, }, + properties: { plan: 'standard plan', name: 'rudder test' }, type: 'identify', messageId: '84e26acc-56a5-4835-8233-591137fca468', originalTimestamp: '2023-10-14T00:00:00.693229+05:30', anonymousId: '00000000000000000000000000', userId: '123456', - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { - blacklistPiiProperties: [ - { - blacklistPiiProperties: '', - blacklistPiiHash: false, - }, - ], + blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], accessToken: '09876', pixelId: 'dummyPixelId', - eventsToEvents: [ - { - from: '', - to: '', - }, - ], - eventCustomProperties: [ - { - eventCustomProperties: '', - }, - ], + eventsToEvents: [{ from: '', to: '' }], + eventCustomProperties: [{ eventCustomProperties: '' }], valueFieldIdentifier: '', advancedMapping: true, - whitelistPiiProperties: [ - { - whitelistPiiProperties: '', - }, - ], + whitelistPiiProperties: [{ whitelistPiiProperties: '' }], }, Enabled: true, }, @@ -193,7 +125,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876', headers: {}, params: {}, body: { @@ -208,43 +140,21 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { Config: { limitedDataUsage: true, - blacklistPiiProperties: [ - { - blacklistPiiProperties: '', - blacklistPiiHash: false, - }, - ], + blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], removeExternalId: true, accessToken: '09876', pixelId: 'dummyPixelId', - eventsToEvents: [ - { - from: '', - to: '', - }, - ], - eventCustomProperties: [ - { - eventCustomProperties: '', - }, - ], + eventsToEvents: [{ from: '', to: '' }], + eventCustomProperties: [{ eventCustomProperties: '' }], valueFieldIdentifier: '', advancedMapping: false, - whitelistPiiProperties: [ - { - whitelistPiiProperties: '', - }, - ], + whitelistPiiProperties: [{ whitelistPiiProperties: '' }], }, Enabled: true, }, @@ -254,7 +164,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876', headers: {}, params: {}, body: { @@ -269,41 +179,19 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { Config: { - blacklistPiiProperties: [ - { - blacklistPiiProperties: '', - blacklistPiiHash: false, - }, - ], + blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], accessToken: '09876', pixelId: 'dummyPixelId', - eventsToEvents: [ - { - from: '', - to: '', - }, - ], - eventCustomProperties: [ - { - eventCustomProperties: '', - }, - ], + eventsToEvents: [{ from: '', to: '' }], + eventCustomProperties: [{ eventCustomProperties: '' }], valueFieldIdentifier: '', advancedMapping: true, - whitelistPiiProperties: [ - { - whitelistPiiProperties: '', - }, - ], + whitelistPiiProperties: [{ whitelistPiiProperties: '' }], }, Enabled: true, }, diff --git a/test/integrations/destinations/factorsai/data.ts b/test/integrations/destinations/factorsai/data.ts index fb0a76bf34..be13c291f4 100644 --- a/test/integrations/destinations/factorsai/data.ts +++ b/test/integrations/destinations/factorsai/data.ts @@ -308,6 +308,9 @@ export const data = [ XML: {}, FORM: {}, JSON: { + context: { + ip: '8.8.8.8', + }, type: 'identify', traits: { age: 27, @@ -540,4 +543,271 @@ export const data = [ }, }, }, + { + name: 'factorsai', + description: 'IP fetched from request_ip', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + factorsAIApiKey: 'sdgerghsdfhsdhsdh432141dfgdfsg', + }, + }, + message: { + context: { + page: { + url: 'myurl', + path: '/workspace/index.html', + title: 'test track', + search: '?s=ek8reb577tu65kfc2fv41fbm3j', + referrer: '$direct', + initial_referrer: '$direct', + referring_domain: '', + initial_referring_domain: '', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36', + }, + event: 'finalPageTest', + properties: { + title: 'Intro to Test final segemt context page added context last', + }, + userId: 'PageTestAnonymousUser', + type: 'track', + messageId: '3c0abc14-96a2-4aed-9dfc-ee463832cc24', + originalTimestamp: '2022-10-17T15:32:44.202+05:30', + request_ip: '104.205.211.60', + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + type: 'track', + event: 'finalPageTest', + context: { + ip: '104.205.211.60', + page: { + url: 'myurl', + path: '/workspace/index.html', + title: 'test track', + search: '?s=ek8reb577tu65kfc2fv41fbm3j', + referrer: '$direct', + initial_referrer: '$direct', + referring_domain: '', + initial_referring_domain: '', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36', + }, + messageId: '3c0abc14-96a2-4aed-9dfc-ee463832cc24', + timestamp: '2022-10-17T15:32:44.202+05:30', + properties: { + title: 'Intro to Test final segemt context page added context last', + }, + userId: 'PageTestAnonymousUser', + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + userId: '', + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic c2RnZXJnaHNkZmhzZGhzZGg0MzIxNDFkZmdkZnNnOg==', + }, + version: '1', + endpoint: 'https://api.factors.ai/integrations/rudderstack_platform', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'factorsai', + description: 'IP fetched from request_ip', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + factorsAIApiKey: 'sdgerghsdfhsdhsdh432141dfgdfsg', + }, + }, + message: { + context: { + locale: 'en-US', + screen: { + density: 2, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/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: 'finalPageTest', + properties: { + title: 'Intro to Test final segemt context page added context last', + }, + userId: 'PageTestAnonymousUser', + type: 'track', + messageId: '3c0abc14-96a2-4aed-9dfc-ee463832cc24', + originalTimestamp: '2022-10-17T15:32:44.202+05:30', + request_ip: '0.0.0.0', + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + type: 'track', + event: 'finalPageTest', + context: { + ip: '0.0.0.0', + locale: 'en-US', + screen: { + density: 2, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + }, + messageId: '3c0abc14-96a2-4aed-9dfc-ee463832cc24', + timestamp: '2022-10-17T15:32:44.202+05:30', + properties: { + title: 'Intro to Test final segemt context page added context last', + }, + userId: 'PageTestAnonymousUser', + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + userId: '', + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic c2RnZXJnaHNkZmhzZGhzZGg0MzIxNDFkZmdkZnNnOg==', + }, + version: '1', + endpoint: 'https://api.factors.ai/integrations/rudderstack_platform', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'factorsai', + description: 'IP fetched from request_ip withput context in payload', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + factorsAIApiKey: 'sdgerghsdfhsdhsdh432141dfgdfsg', + }, + }, + message: { + event: 'finalPageTest', + properties: { + title: 'Intro to Test final segemt context page added context last', + }, + userId: 'PageTestAnonymousUser', + type: 'track', + messageId: '3c0abc14-96a2-4aed-9dfc-ee463832cc24', + originalTimestamp: '2022-10-17T15:32:44.202+05:30', + request_ip: '1.1.1.1', + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + type: 'track', + event: 'finalPageTest', + context: { + ip: '1.1.1.1', + }, + messageId: '3c0abc14-96a2-4aed-9dfc-ee463832cc24', + timestamp: '2022-10-17T15:32:44.202+05:30', + properties: { + title: 'Intro to Test final segemt context page added context last', + }, + userId: 'PageTestAnonymousUser', + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + userId: '', + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic c2RnZXJnaHNkZmhzZGhzZGg0MzIxNDFkZmdkZnNnOg==', + }, + version: '1', + endpoint: 'https://api.factors.ai/integrations/rudderstack_platform', + }, + statusCode: 200, + }, + ], + }, + }, + }, ]; diff --git a/test/integrations/destinations/fb/dataDelivery/data.ts b/test/integrations/destinations/fb/dataDelivery/data.ts index c50cffee80..f9405ba4b3 100644 --- a/test/integrations/destinations/fb/dataDelivery/data.ts +++ b/test/integrations/destinations/fb/dataDelivery/data.ts @@ -1,357 +1,372 @@ +import { VERSION } from '../../../../../src/v0/destinations/fb/config'; + export const data = [ { - "name": "fb", - "description": "Test 0", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "event": "CUSTOM_APP_EVENTS", - "advertiser_id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "ud[fn]": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "ud[ge]": "62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a", - "ud[ln]": "3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3", - "ud[ph]": "588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f", - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",640,480,\"1.23\",0,0,0,\"Europe/Berlin\"]", - "app_user_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"spin_result\",\"_valueToSum\":400,\"fb_currency\":\"GBP\",\"additional_bet_index\":0,\"battle_id\":\"N/A\",\"bet_amount\":9,\"bet_level\":1,\"bet_multiplier\":1,\"coin_balance\":9466052,\"current_module_name\":\"CasinoGameModule\",\"days_in_game\":0,\"extra_param\":\"N/A\",\"fb_profile\":\"0\",\"featureGameType\":\"N/A\",\"game_fps\":30,\"game_id\":\"fireEagleBase\",\"game_name\":\"FireEagleSlots\",\"gem_balance\":0,\"graphicsQuality\":\"HD\",\"idfa\":\"2bf99787-33d2-4ae2-a76a-c49672f97252\",\"internetReachability\":\"ReachableViaLocalAreaNetwork\",\"isLowEndDevice\":\"False\",\"is_auto_spin\":\"False\",\"is_turbo\":\"False\",\"isf\":\"False\",\"ishighroller\":\"False\",\"jackpot_win_amount\":90,\"jackpot_win_type\":\"Silver\",\"level\":6,\"lifetime_gem_balance\":0,\"no_of_spin\":1,\"player_total_battles\":0,\"player_total_shields\":0,\"start_date\":\"2019-08-01\",\"total_payments\":0,\"tournament_id\":\"T1561970819\",\"userId\":\"c82cbdff-e5be-4009-ac78-cdeea09ab4b1\",\"versionSessionCount\":2,\"win_amount\":0,\"fb_content_id\":[\"123\",\"345\",\"567\"]}]", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0" + name: 'fb', + description: 'Test 0', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + event: 'CUSTOM_APP_EVENTS', + advertiser_id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + 'ud[em]': '48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08', + 'ud[fn]': '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + 'ud[ge]': '62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a', + 'ud[ln]': '3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3', + 'ud[ph]': '588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f', + extinfo: + '["a2","","","","8.1.0","Redmi 6","","","Banglalink",640,480,"1.23",0,0,0,"Europe/Berlin"]', + app_user_id: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + custom_events: + '[{"_logTime":1567333011693,"_eventName":"spin_result","_valueToSum":400,"fb_currency":"GBP","additional_bet_index":0,"battle_id":"N/A","bet_amount":9,"bet_level":1,"bet_multiplier":1,"coin_balance":9466052,"current_module_name":"CasinoGameModule","days_in_game":0,"extra_param":"N/A","fb_profile":"0","featureGameType":"N/A","game_fps":30,"game_id":"fireEagleBase","game_name":"FireEagleSlots","gem_balance":0,"graphicsQuality":"HD","idfa":"2bf99787-33d2-4ae2-a76a-c49672f97252","internetReachability":"ReachableViaLocalAreaNetwork","isLowEndDevice":"False","is_auto_spin":"False","is_turbo":"False","isf":"False","ishighroller":"False","jackpot_win_amount":90,"jackpot_win_type":"Silver","level":6,"lifetime_gem_balance":0,"no_of_spin":1,"player_total_battles":0,"player_total_shields":0,"start_date":"2019-08-01","total_payments":0,"tournament_id":"T1561970819","userId":"c82cbdff-e5be-4009-ac78-cdeea09ab4b1","versionSessionCount":2,"win_amount":0,"fb_content_id":["123","345","567"]}]', + advertiser_tracking_enabled: '0', + application_tracking_enabled: '0', }, - "JSON": {} + JSON: {}, + }, + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities?access_token=invalid_access_token`, + files: {}, + headers: { + 'x-forwarded-for': '1.2.3.4', }, - "endpoint": "https://graph.facebook.com/v17.0/RudderFbApp/activities?access_token=invalid_access_token", - "files": {}, - "headers": { - "x-forwarded-for": "1.2.3.4" + method: 'POST', + statusCode: 200, + type: 'REST', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + version: '1', + params: { + destination: 'fb', }, - "method": "POST", - "statusCode": 200, - "type": "REST", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "version": "1", - "params": { - "destination": "fb" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 400, - "body": { - "output": { - "status": 400, - "message": "Invalid OAuth 2.0 access token", - "destinationResponse": { - "error": { - "message": "The access token could not be decrypted", - "type": "OAuthException", - "code": 190, - "fbtrace_id": "fbpixel_trace_id" + output: { + response: { + status: 400, + body: { + output: { + status: 400, + message: 'Invalid OAuth 2.0 access token', + destinationResponse: { + error: { + message: 'The access token could not be decrypted', + type: 'OAuthException', + code: 190, + fbtrace_id: 'fbpixel_trace_id', }, - "status": 500 + status: 500, }, - "statTags": { - "destType": "FB", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } - } - } + statTags: { + destType: 'FB', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + }, + }, + }, + }, + }, }, { - "name": "fb", - "description": "Test 1", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "event": "CUSTOM_APP_EVENTS", - "advertiser_id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "ud[fn]": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "ud[ge]": "62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a", - "ud[ln]": "3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3", - "ud[ph]": "588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f", - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",640,480,\"1.23\",0,0,0,\"Europe/Berlin\"]", - "app_user_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"spin_result\",\"_valueToSum\":400,\"fb_currency\":\"GBP\",\"additional_bet_index\":0,\"battle_id\":\"N/A\",\"bet_amount\":9,\"bet_level\":1,\"bet_multiplier\":1,\"coin_balance\":9466052,\"current_module_name\":\"CasinoGameModule\",\"days_in_game\":0,\"extra_param\":\"N/A\",\"fb_profile\":\"0\",\"featureGameType\":\"N/A\",\"game_fps\":30,\"game_id\":\"fireEagleBase\",\"game_name\":\"FireEagleSlots\",\"gem_balance\":0,\"graphicsQuality\":\"HD\",\"idfa\":\"2bf99787-33d2-4ae2-a76a-c49672f97252\",\"internetReachability\":\"ReachableViaLocalAreaNetwork\",\"isLowEndDevice\":\"False\",\"is_auto_spin\":\"False\",\"is_turbo\":\"False\",\"isf\":\"False\",\"ishighroller\":\"False\",\"jackpot_win_amount\":90,\"jackpot_win_type\":\"Silver\",\"level\":6,\"lifetime_gem_balance\":0,\"no_of_spin\":1,\"player_total_battles\":0,\"player_total_shields\":0,\"start_date\":\"2019-08-01\",\"total_payments\":0,\"tournament_id\":\"T1561970819\",\"userId\":\"c82cbdff-e5be-4009-ac78-cdeea09ab4b1\",\"versionSessionCount\":2,\"win_amount\":0,\"fb_content_id\":[\"123\",\"345\",\"567\"]}]", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0" + name: 'fb', + description: 'Test 1', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + event: 'CUSTOM_APP_EVENTS', + advertiser_id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + 'ud[em]': '48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08', + 'ud[fn]': '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + 'ud[ge]': '62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a', + 'ud[ln]': '3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3', + 'ud[ph]': '588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f', + extinfo: + '["a2","","","","8.1.0","Redmi 6","","","Banglalink",640,480,"1.23",0,0,0,"Europe/Berlin"]', + app_user_id: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + custom_events: + '[{"_logTime":1567333011693,"_eventName":"spin_result","_valueToSum":400,"fb_currency":"GBP","additional_bet_index":0,"battle_id":"N/A","bet_amount":9,"bet_level":1,"bet_multiplier":1,"coin_balance":9466052,"current_module_name":"CasinoGameModule","days_in_game":0,"extra_param":"N/A","fb_profile":"0","featureGameType":"N/A","game_fps":30,"game_id":"fireEagleBase","game_name":"FireEagleSlots","gem_balance":0,"graphicsQuality":"HD","idfa":"2bf99787-33d2-4ae2-a76a-c49672f97252","internetReachability":"ReachableViaLocalAreaNetwork","isLowEndDevice":"False","is_auto_spin":"False","is_turbo":"False","isf":"False","ishighroller":"False","jackpot_win_amount":90,"jackpot_win_type":"Silver","level":6,"lifetime_gem_balance":0,"no_of_spin":1,"player_total_battles":0,"player_total_shields":0,"start_date":"2019-08-01","total_payments":0,"tournament_id":"T1561970819","userId":"c82cbdff-e5be-4009-ac78-cdeea09ab4b1","versionSessionCount":2,"win_amount":0,"fb_content_id":["123","345","567"]}]', + advertiser_tracking_enabled: '0', + application_tracking_enabled: '0', }, - "JSON": {} + JSON: {}, }, - "endpoint": "https://graph.facebook.com/v17.0/RudderFbApp/activities?access_token=my_access_token", - "files": {}, - "headers": { - "x-forwarded-for": "1.2.3.4" + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities?access_token=my_access_token`, + files: {}, + headers: { + 'x-forwarded-for': '1.2.3.4', + }, + method: 'POST', + statusCode: 200, + type: 'REST', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + version: '1', + params: { + destination: 'fb', }, - "method": "POST", - "statusCode": 200, - "type": "REST", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "version": "1", - "params": { - "destination": "fb" - } }, - "method": "POST" - } + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + status: 200, + message: 'Request Processed Successfully', + destinationResponse: { + events_received: 1, + fbtrace_id: 'facebook_trace_id', + }, + }, + }, + }, }, - "output": { - "response": { - "status": 200, - "body": { - "output": { - "status": 200, - "message": "Request Processed Successfully", - "destinationResponse": { - "events_received": 1, - "fbtrace_id": "facebook_trace_id" - } - } - } - } - } }, { - "name": "fb", - "description": "Test 2", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "event": "CUSTOM_APP_EVENTS", - "advertiser_id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "ud[fn]": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "ud[ge]": "62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a", - "ud[ln]": "3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3", - "ud[ph]": "588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f", - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",640,480,\"1.23\",0,0,0,\"Europe/Berlin\"]", - "app_user_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"spin_result\",\"_valueToSum\":400,\"fb_currency\":\"GBP\",\"additional_bet_index\":0,\"battle_id\":\"N/A\",\"bet_amount\":9,\"bet_level\":1,\"bet_multiplier\":1,\"coin_balance\":9466052,\"current_module_name\":\"CasinoGameModule\",\"days_in_game\":0,\"extra_param\":\"N/A\",\"fb_profile\":\"0\",\"featureGameType\":\"N/A\",\"game_fps\":30,\"game_id\":\"fireEagleBase\",\"game_name\":\"FireEagleSlots\",\"gem_balance\":0,\"graphicsQuality\":\"HD\",\"idfa\":\"2bf99787-33d2-4ae2-a76a-c49672f97252\",\"internetReachability\":\"ReachableViaLocalAreaNetwork\",\"isLowEndDevice\":\"False\",\"is_auto_spin\":\"False\",\"is_turbo\":\"False\",\"isf\":\"False\",\"ishighroller\":\"False\",\"jackpot_win_amount\":90,\"jackpot_win_type\":\"Silver\",\"level\":6,\"lifetime_gem_balance\":0,\"no_of_spin\":1,\"player_total_battles\":0,\"player_total_shields\":0,\"start_date\":\"2019-08-01\",\"total_payments\":0,\"tournament_id\":\"T1561970819\",\"userId\":\"c82cbdff-e5be-4009-ac78-cdeea09ab4b1\",\"versionSessionCount\":2,\"win_amount\":0,\"fb_content_id\":[\"123\",\"345\",\"567\"]}]", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0" + name: 'fb', + description: 'Test 2', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: { + event: 'CUSTOM_APP_EVENTS', + advertiser_id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + 'ud[em]': '48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08', + 'ud[fn]': '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + 'ud[ge]': '62c66a7a5dd70c3146618063c344e531e6d4b59e379808443ce962b3abd63c5a', + 'ud[ln]': '3547cb112ac4489af2310c0626cdba6f3097a2ad5a3b42ddd3b59c76c7a079a3', + 'ud[ph]': '588211a01b10feacbf7988d97a06e86c18af5259a7f457fd8759b7f7409a7d1f', + extinfo: + '["a2","","","","8.1.0","Redmi 6","","","Banglalink",640,480,"1.23",0,0,0,"Europe/Berlin"]', + app_user_id: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + custom_events: + '[{"_logTime":1567333011693,"_eventName":"spin_result","_valueToSum":400,"fb_currency":"GBP","additional_bet_index":0,"battle_id":"N/A","bet_amount":9,"bet_level":1,"bet_multiplier":1,"coin_balance":9466052,"current_module_name":"CasinoGameModule","days_in_game":0,"extra_param":"N/A","fb_profile":"0","featureGameType":"N/A","game_fps":30,"game_id":"fireEagleBase","game_name":"FireEagleSlots","gem_balance":0,"graphicsQuality":"HD","idfa":"2bf99787-33d2-4ae2-a76a-c49672f97252","internetReachability":"ReachableViaLocalAreaNetwork","isLowEndDevice":"False","is_auto_spin":"False","is_turbo":"False","isf":"False","ishighroller":"False","jackpot_win_amount":90,"jackpot_win_type":"Silver","level":6,"lifetime_gem_balance":0,"no_of_spin":1,"player_total_battles":0,"player_total_shields":0,"start_date":"2019-08-01","total_payments":0,"tournament_id":"T1561970819","userId":"c82cbdff-e5be-4009-ac78-cdeea09ab4b1","versionSessionCount":2,"win_amount":0,"fb_content_id":["123","345","567"]}]', + advertiser_tracking_enabled: '0', + application_tracking_enabled: '0', }, - "JSON": {} + JSON: {}, + }, + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=invalid_timestamp_correct_access_token`, + files: {}, + headers: { + 'x-forwarded-for': '1.2.3.4', }, - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_timestamp_correct_access_token", - "files": {}, - "headers": { - "x-forwarded-for": "1.2.3.4" + method: 'POST', + statusCode: 200, + type: 'REST', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + version: '1', + params: { + destination: 'fb', }, - "method": "POST", - "statusCode": 200, - "type": "REST", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "version": "1", - "params": { - "destination": "fb" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 400, - "body": { - "output": { - "status": 400, - "message": "Event Timestamp Too Old", - "destinationResponse": { - "error": { - "message": "Invalid parameter", - "type": "OAuthException", - "code": 100, - "error_subcode": 2804003, - "is_transient": false, - "error_user_title": "Event Timestamp Too Old", - "error_user_msg": "The timestamp for this event is too far in the past. Events need to be sent from your server within 7 days of when they occurred. Enter a timestamp that has occurred within the last 7 days.", - "fbtrace_id": "A6UyEgg_HdoiRX9duxcBOjb" + output: { + response: { + status: 400, + body: { + output: { + status: 400, + message: 'Event Timestamp Too Old', + destinationResponse: { + error: { + message: 'Invalid parameter', + type: 'OAuthException', + code: 100, + error_subcode: 2804003, + is_transient: false, + error_user_title: 'Event Timestamp Too Old', + error_user_msg: + 'The timestamp for this event is too far in the past. Events need to be sent from your server within 7 days of when they occurred. Enter a timestamp that has occurred within the last 7 days.', + fbtrace_id: 'A6UyEgg_HdoiRX9duxcBOjb', }, - "status": 400 + status: 400, }, - "statTags": { - "destType": "FB", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } - } - } + statTags: { + destType: 'FB', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + }, + }, + }, + }, + }, }, { - "name": "fb", - "description": "Test 3", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=throttled_valid_access_token", - "headers": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",0,100,\"50.00\",0,0,0,\"\"]", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"Viewed Screen\",\"fb_description\":\"Main.1233\"}]", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0", - "event": "CUSTOM_APP_EVENTS" - } + name: 'fb', + description: 'Test 3', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=throttled_valid_access_token`, + headers: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + extinfo: + '["a2","","","","8.1.0","Redmi 6","","","Banglalink",0,100,"50.00",0,0,0,""]', + custom_events: + '[{"_logTime":1567333011693,"_eventName":"Viewed Screen","fb_description":"Main.1233"}]', + 'ud[em]': '48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08', + advertiser_tracking_enabled: '0', + application_tracking_enabled: '0', + event: 'CUSTOM_APP_EVENTS', + }, + }, + files: {}, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + statusCode: 200, + params: { + destination: 'fb', }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "statusCode": 200, - "params": { - "destination": "fb" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 429, - "body": { - "output": { - "status": 429, - "message": "API User Too Many Calls", - "destinationResponse": { - "error": { - "message": "User request limit reached", - "type": "OAuthException", - "code": 17, - "fbtrace_id": "facebook_px_trace_id_4" + output: { + response: { + status: 429, + body: { + output: { + status: 429, + message: 'API User Too Many Calls', + destinationResponse: { + error: { + message: 'User request limit reached', + type: 'OAuthException', + code: 17, + fbtrace_id: 'facebook_px_trace_id_4', }, - "status": 500 + status: 500, + }, + statTags: { + destType: 'FB', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'throttled', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', }, - "statTags": { - "destType": "FB", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "throttled", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } - } - } + }, + }, + }, + }, }, { - "name": "fb", - "description": "Test 4", - "feature": "dataDelivery", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_account_id_valid_access_token", - "headers": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "extinfo": "[\"a2\",\"\",\"\",\"\",\"8.1.0\",\"Redmi 6\",\"\",\"\",\"Banglalink\",0,100,\"50.00\",0,0,0,\"\"]", - "custom_events": "[{\"_logTime\":1567333011693,\"_eventName\":\"Viewed Screen\",\"fb_description\":\"Main.1233\"}]", - "ud[em]": "48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08", - "advertiser_tracking_enabled": "0", - "application_tracking_enabled": "0", - "event": "CUSTOM_APP_EVENTS" - } + name: 'fb', + description: 'Test 4', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: `https://graph.facebook.com/${VERSION}/1234567891234567/events?access_token=invalid_account_id_valid_access_token`, + headers: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + extinfo: + '["a2","","","","8.1.0","Redmi 6","","","Banglalink",0,100,"50.00",0,0,0,""]', + custom_events: + '[{"_logTime":1567333011693,"_eventName":"Viewed Screen","fb_description":"Main.1233"}]', + 'ud[em]': '48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08', + advertiser_tracking_enabled: '0', + application_tracking_enabled: '0', + event: 'CUSTOM_APP_EVENTS', + }, + }, + files: {}, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + statusCode: 200, + params: { + destination: 'fb', }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "statusCode": 200, - "params": { - "destination": "fb" - } }, - "method": "POST" - } + method: 'POST', + }, }, - "output": { - "response": { - "status": 400, - "body": { - "output": { - "status": 400, - "message": "Object with ID 'PIXEL_ID' / 'DATASET_ID' / 'AUDIENCE_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation", - "destinationResponse": { - "error": { - "message": "Unsupported post request. Object with ID '1234567891234569' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", - "type": "GraphMethodException", - "code": 100, - "error_subcode": 33, - "fbtrace_id": "facebook_px_trace_id_5" + output: { + response: { + status: 400, + body: { + output: { + status: 400, + message: + "Object with ID 'PIXEL_ID' / 'DATASET_ID' / 'AUDIENCE_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation", + destinationResponse: { + error: { + message: + "Unsupported post request. Object with ID '1234567891234569' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", + type: 'GraphMethodException', + code: 100, + error_subcode: 33, + fbtrace_id: 'facebook_px_trace_id_5', }, - "status": 400 + status: 400, }, - "statTags": { - "destType": "FB", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - } - } - } - } - } -] \ No newline at end of file + statTags: { + destType: 'FB', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + }, + }, + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/fb/network.ts b/test/integrations/destinations/fb/network.ts index 07a84a7e66..1a2f114d74 100644 --- a/test/integrations/destinations/fb/network.ts +++ b/test/integrations/destinations/fb/network.ts @@ -2,6 +2,7 @@ import { cloneDeep } from 'lodash'; import { getFormData } from '../../../../src/adapters/network'; import * as fbPixelNw from '../facebook_pixel/network'; import { data } from './dataDelivery/data'; +import { VERSION } from '../../../../src/v0/destinations/fb/config'; const fbPixelTcs = data .filter((_, i) => [2, 3, 4].includes(i)) @@ -19,7 +20,7 @@ const fbPixelTcs = data export const networkCallsData = [ { httpReq: { - url: 'https://graph.facebook.com/v17.0/RudderFbApp/activities?access_token=invalid_access_token', + url: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities?access_token=invalid_access_token`, data: getFormData(data[0].input.request.body.body.FORM).toString(), params: { destination: 'fb' }, headers: { 'User-Agent': 'RudderLabs' }, @@ -39,7 +40,7 @@ export const networkCallsData = [ }, { httpReq: { - url: 'https://graph.facebook.com/v17.0/RudderFbApp/activities?access_token=my_access_token', + url: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities?access_token=my_access_token`, data: getFormData(data[1].input.request.body.body.FORM).toString(), params: { destination: 'fb' }, headers: { 'x-forwarded-for': '1.2.3.4', 'User-Agent': 'RudderLabs' }, diff --git a/test/integrations/destinations/fb/processor/data.ts b/test/integrations/destinations/fb/processor/data.ts index 9b57f3ef78..a437b90855 100644 --- a/test/integrations/destinations/fb/processor/data.ts +++ b/test/integrations/destinations/fb/processor/data.ts @@ -1,3 +1,5 @@ +import { VERSION } from '../../../../../src/v0/destinations/fb/config'; + export const data = [ { name: 'fb', @@ -618,7 +620,7 @@ export const data = [ }, JSON: {}, }, - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, files: {}, headers: { 'x-forwarded-for': '1.2.3.4', @@ -803,7 +805,7 @@ export const data = [ }, JSON: {}, }, - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, files: {}, headers: { 'x-forwarded-for': '1.2.3.4', @@ -893,7 +895,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: {}, params: {}, body: { @@ -993,7 +995,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: {}, params: {}, body: { @@ -1177,7 +1179,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: {}, params: {}, body: { @@ -1277,7 +1279,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: {}, params: {}, body: { @@ -1377,7 +1379,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: {}, params: {}, body: { @@ -1551,7 +1553,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: {}, params: {}, body: { @@ -1731,7 +1733,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: {}, params: {}, body: { @@ -1831,7 +1833,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: { 'x-forwarded-for': '2.3.4.5', }, @@ -2153,7 +2155,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/RudderFbApp/activities', + endpoint: `https://graph.facebook.com/${VERSION}/RudderFbApp/activities`, headers: {}, params: {}, body: { diff --git a/test/integrations/destinations/fb/router/data.ts b/test/integrations/destinations/fb/router/data.ts index 4daefad141..d5872c78cd 100644 --- a/test/integrations/destinations/fb/router/data.ts +++ b/test/integrations/destinations/fb/router/data.ts @@ -12,11 +12,7 @@ export const data = [ { message: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - destination_props: { - Fb: { - app_id: 'RudderFbApp', - }, - }, + destination_props: { Fb: { app_id: 'RudderFbApp' } }, context: { device: { id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', @@ -25,28 +21,16 @@ export const data = [ name: 'xiaomi', type: 'Android', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - screen: { - height: '100', - density: 50, - }, + 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: { - AM: true, - All: false, - GA: true, - }, + integrations: { AM: true, All: false, GA: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { revenue: 400, @@ -86,17 +70,7 @@ export const data = [ userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', versionSessionCount: 2, win_amount: 0, - products: [ - { - product_id: 123, - }, - { - product_id: 345, - }, - { - product_id: 567, - }, - ], + products: [{ product_id: 123 }, { product_id: 345 }, { product_id: 567 }], }, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', @@ -121,23 +95,13 @@ export const data = [ versionSessionCount: 2, }, }, - metadata: { - jobId: 2, - }, - destination: { - Config: { - appID: 'RudderFbApp', - }, - }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { Config: { appID: 'RudderFbApp' } }, }, { message: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - destination_props: { - Fb: { - app_id: 'RudderFbApp', - }, - }, + destination_props: { Fb: { app_id: 'RudderFbApp' } }, context: { device: { id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', @@ -146,28 +110,16 @@ export const data = [ name: 'xiaomi', type: 'Android', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - screen: { - height: '100', - density: 50, - }, + 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: { - AM: true, - All: false, - GA: true, - }, + integrations: { AM: true, All: false, GA: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { revenue: 400, @@ -208,17 +160,7 @@ export const data = [ userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', versionSessionCount: 2, win_amount: 0, - products: [ - { - product_id: 123, - }, - { - product_id: 345, - }, - { - product_id: 567, - }, - ], + products: [{ product_id: 123 }, { product_id: 345 }, { product_id: 567 }], }, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', @@ -243,14 +185,8 @@ export const data = [ versionSessionCount: 2, }, }, - metadata: { - jobId: 2, - }, - destination: { - Config: { - appID: 'RudderFbApp', - }, - }, + metadata: { jobId: 3, userId: 'u1' }, + destination: { Config: { appID: 'RudderFbApp' } }, }, ], destType: 'fb', @@ -263,11 +199,7 @@ export const data = [ body: { output: [ { - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statTags: { errorCategory: 'dataValidation', errorType: 'instrumentation', @@ -276,26 +208,14 @@ export const data = [ implementation: 'native', module: 'destination', }, - destination: { - Config: { - appID: 'RudderFbApp', - }, - }, + destination: { Config: { appID: 'RudderFbApp' } }, batched: false, statusCode: 400, error: 'If properties.revenue is present, properties.currency is required.', }, { - metadata: [ - { - jobId: 2, - }, - ], - destination: { - Config: { - appID: 'RudderFbApp', - }, - }, + metadata: [{ jobId: 3, userId: 'u1' }], + destination: { Config: { appID: 'RudderFbApp' } }, statTags: { errorCategory: 'dataValidation', errorType: 'instrumentation', diff --git a/test/integrations/destinations/fb_custom_audience/dataDelivery/data.ts b/test/integrations/destinations/fb_custom_audience/dataDelivery/data.ts index ddb081ba87..3066dae887 100644 --- a/test/integrations/destinations/fb_custom_audience/dataDelivery/data.ts +++ b/test/integrations/destinations/fb_custom_audience/dataDelivery/data.ts @@ -1,617 +1,575 @@ +import { getEndPoint } from '../../../../../src/v0/destinations/fb_custom_audience/config'; + export const data = [ - { - name: 'fb_custom_audience', - description: 'successfully adding users to audience', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - "test-dest-response-key": "successResponse" - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'EMAIL', - 'DOBM', - 'DOBD', - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - 'shrouti@abc.com', - '2', - '13', - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - userId: '', - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, - } + { + name: 'fb_custom_audience', + description: 'successfully adding users to audience', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'successResponse', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: [ + 'EMAIL', + 'DOBM', + 'DOBD', + 'DOBY', + 'PHONE', + 'GEN', + 'FI', + 'MADID', + 'ZIP', + 'ST', + 'COUNTRY', + ], + data: [ + [ + 'shrouti@abc.com', + '2', + '13', + '2013', + '@09432457768', + 'f', + 'Ms.', + 'ABC', + 'ZIP ', + '123abc ', + 'IN', + ], + ], }, + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 200, - body: { - output: { - status: 200, - message: 'Request Processed Successfully', - destinationResponse: { - audience_id: 'aud1', - invalid_entry_samples: {}, - num_invalid_entries: 0, - num_received: 4, - session_id: '123' - } - } - } + }, + }, + output: { + response: { + status: 200, + body: { + output: { + status: 200, + message: 'Request Processed Successfully', + destinationResponse: { + audience_id: 'aud1', + invalid_entry_samples: {}, + num_invalid_entries: 0, + num_received: 4, + session_id: '123', }, + }, }, + }, }, - { - name: 'fb_custom_audience', - description: 'user addition failed due to missing permission', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - version: '1', - type: 'REST', - method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - "test-dest-response-key": "permissionMissingError" - }, - params: { - access_token: 'BCD', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'DOBM', - 'DOBD', - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - '2', - '13', - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, - } + }, + { + name: 'fb_custom_audience', + description: 'user addition failed due to missing permission', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'permissionMissingError', + }, + params: { + access_token: 'BCD', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: [ + 'DOBM', + 'DOBD', + 'DOBY', + 'PHONE', + 'GEN', + 'FI', + 'MADID', + 'ZIP', + 'ST', + 'COUNTRY', + ], + data: [ + ['2', '13', '2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN'], + ], }, + }, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 400, - body: { - output: { - destinationResponse: { - error: { - code: 294, - message: "Missing permission. Please make sure you have ads_management permission and the application is included in the allowlist", - type: "GraphMethodException", - }, - status: 400, - - }, - message: "Missing permission. Please make sure you have ads_management permission and the application is included in the allowlist", - statTags: { - destType: "FB_CUSTOM_AUDIENCE", - destinationId: "Non-determininable", - errorCategory: "network", - errorType: "aborted", - feature: "dataDelivery", - implementation: "native", - module: "destination", - workspaceId: "Non-determininable", - }, - "status": 400, - }, - }, + }, + }, + output: { + response: { + status: 400, + body: { + output: { + destinationResponse: { + error: { + code: 294, + message: + 'Missing permission. Please make sure you have ads_management permission and the application is included in the allowlist', + type: 'GraphMethodException', + }, + status: 400, }, + message: + 'Missing permission. Please make sure you have ads_management permission and the application is included in the allowlist', + statTags: { + destType: 'FB_CUSTOM_AUDIENCE', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', + }, + status: 400, + }, }, + }, }, - { - name: 'fb_custom_audience', - description: 'user addition failed due to unavailable audience error', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - "test-dest-response-key": "audienceUnavailableError" - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, - } + }, + { + name: 'fb_custom_audience', + description: 'user addition failed due to unavailable audience error', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'audienceUnavailableError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: ['DOBY', 'PHONE', 'GEN', 'FI', 'MADID', 'ZIP', 'ST', 'COUNTRY'], + data: [['2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN']], }, + }, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 400, - body: { - output: { - destinationResponse: { - error: { - code: 1487301, - message: "Custom Audience Unavailable: The custom audience you are trying to use has not been shared with your ad account", - type: "GraphMethodException", - }, - status: 400, - - }, - message: "Custom Audience Unavailable: The custom audience you are trying to use has not been shared with your ad account", - statTags: { - destType: "FB_CUSTOM_AUDIENCE", - destinationId: "Non-determininable", - errorCategory: "network", - errorType: "aborted", - feature: "dataDelivery", - implementation: "native", - module: "destination", - workspaceId: "Non-determininable", - }, - "status": 400, - }, - }, + }, + }, + output: { + response: { + status: 400, + body: { + output: { + destinationResponse: { + error: { + code: 1487301, + message: + 'Custom Audience Unavailable: The custom audience you are trying to use has not been shared with your ad account', + type: 'GraphMethodException', + }, + status: 400, }, + message: + 'Custom Audience Unavailable: The custom audience you are trying to use has not been shared with your ad account', + statTags: { + destType: 'FB_CUSTOM_AUDIENCE', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', + }, + status: 400, + }, }, + }, }, - { - name: 'fb_custom_audience', - description: 'user addition failed because the custom audience has been deleted', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - "test-dest-response-key": "audienceDeletedError" - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, - } + }, + { + name: 'fb_custom_audience', + description: 'user addition failed because the custom audience has been deleted', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'audienceDeletedError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: ['DOBY', 'PHONE', 'GEN', 'FI', 'MADID', 'ZIP', 'ST', 'COUNTRY'], + data: [['2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN']], }, + }, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 400, - body: { - output: { - destinationResponse: { - error: { - code: 1487366, - message: "Custom Audience Has Been Deleted", - type: "GraphMethodException", - }, - status: 400, - - }, - message: "Custom Audience Has Been Deleted", - statTags: { - destType: "FB_CUSTOM_AUDIENCE", - destinationId: "Non-determininable", - errorCategory: "network", - errorType: "aborted", - feature: "dataDelivery", - implementation: "native", - module: "destination", - workspaceId: "Non-determininable", - }, - "status": 400, - }, - }, + }, + }, + output: { + response: { + status: 400, + body: { + output: { + destinationResponse: { + error: { + code: 1487366, + message: 'Custom Audience Has Been Deleted', + type: 'GraphMethodException', + }, + status: 400, + }, + message: 'Custom Audience Has Been Deleted', + statTags: { + destType: 'FB_CUSTOM_AUDIENCE', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', }, + status: 400, + }, }, + }, }, - { - name: 'fb_custom_audience', - description: 'Failed to update the custom audience for unknown reason', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - "test-dest-response-key": "failedToUpdateAudienceError" - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, - } + }, + { + name: 'fb_custom_audience', + description: 'Failed to update the custom audience for unknown reason', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'failedToUpdateAudienceError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: ['DOBY', 'PHONE', 'GEN', 'FI', 'MADID', 'ZIP', 'ST', 'COUNTRY'], + data: [['2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN']], }, + }, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 400, - body: { - output: { - destinationResponse: { - error: { - code: 2650, - message: "Failed to update the custom audience", - type: "GraphMethodException", - }, - status: 400, - - }, - message: "Failed to update the custom audience", - statTags: { - destType: "FB_CUSTOM_AUDIENCE", - destinationId: "Non-determininable", - errorCategory: "network", - errorType: "aborted", - feature: "dataDelivery", - implementation: "native", - module: "destination", - workspaceId: "Non-determininable", - }, - "status": 400, - }, - }, + }, + }, + output: { + response: { + status: 400, + body: { + output: { + destinationResponse: { + error: { + code: 2650, + message: 'Failed to update the custom audience', + type: 'GraphMethodException', + }, + status: 400, + }, + message: 'Failed to update the custom audience', + statTags: { + destType: 'FB_CUSTOM_AUDIENCE', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', }, + status: 400, + }, }, + }, }, - { - name: 'fb_custom_audience', - description: 'Failed to update the custom audience as excessive number of parameters were passed in the request', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - "test-dest-response-key": "parameterExceededError" - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, - } + }, + { + name: 'fb_custom_audience', + description: + 'Failed to update the custom audience as excessive number of parameters were passed in the request', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'parameterExceededError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: ['DOBY', 'PHONE', 'GEN', 'FI', 'MADID', 'ZIP', 'ST', 'COUNTRY'], + data: [['2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN']], }, + }, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 400, - body: { - output: { - destinationResponse: { - error: { - code: 105, - message: "The number of parameters exceeded the maximum for this operation", - type: "GraphMethodException", - }, - status: 400, - - }, - message: "The number of parameters exceeded the maximum for this operation", - statTags: { - destType: "FB_CUSTOM_AUDIENCE", - destinationId: "Non-determininable", - errorCategory: "network", - errorType: "aborted", - feature: "dataDelivery", - implementation: "native", - module: "destination", - workspaceId: "Non-determininable", - }, - "status": 400, - }, - }, + }, + }, + output: { + response: { + status: 400, + body: { + output: { + destinationResponse: { + error: { + code: 105, + message: 'The number of parameters exceeded the maximum for this operation', + type: 'GraphMethodException', + }, + status: 400, }, + message: 'The number of parameters exceeded the maximum for this operation', + statTags: { + destType: 'FB_CUSTOM_AUDIENCE', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', + }, + status: 400, + }, }, + }, }, - { - name: 'fb_custom_audience', - description: 'user update request is throttled due to too many calls to the ad account', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - "test-dest-response-key": "tooManyCallsError" - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, - } + }, + { + name: 'fb_custom_audience', + description: 'user update request is throttled due to too many calls to the ad account', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'tooManyCallsError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: ['DOBY', 'PHONE', 'GEN', 'FI', 'MADID', 'ZIP', 'ST', 'COUNTRY'], + data: [['2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN']], }, + }, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 429, - body: { - output: { - destinationResponse: { - error: { - code: 80003, - message: "There have been too many calls to this ad-account.", - type: "GraphMethodException", - }, - status: 429, - - }, - message: "There have been too many calls to this ad-account.", - statTags: { - destType: "FB_CUSTOM_AUDIENCE", - destinationId: "Non-determininable", - errorCategory: "network", - errorType: "throttled", - feature: "dataDelivery", - implementation: "native", - module: "destination", - workspaceId: "Non-determininable", - }, - "status": 429, - }, - }, + }, + }, + output: { + response: { + status: 429, + body: { + output: { + destinationResponse: { + error: { + code: 80003, + message: 'There have been too many calls to this ad-account.', + type: 'GraphMethodException', + }, + status: 429, + }, + message: 'There have been too many calls to this ad-account.', + statTags: { + destType: 'FB_CUSTOM_AUDIENCE', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'throttled', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', + }, + status: 429, + }, + }, + }, + }, + }, + { + name: 'fb_custom_audience', + description: 'user having permission issue while updating audience', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'code200PermissionError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: ['DOBY', 'PHONE', 'GEN', 'FI', 'MADID', 'ZIP', 'ST', 'COUNTRY'], + data: [['2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN']], }, + }, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - } -] \ No newline at end of file + }, + }, + output: { + response: { + status: 403, + body: { + output: { + destinationResponse: { + error: { + code: 200, + fbtrace_id: 'AFfWqjY-_y2Q92DsyJ4DQ6f', + message: '(#200) The current user can not update audience 23861283180290489', + type: 'OAuthException', + }, + status: 403, + }, + message: '(#200) The current user can not update audience 23861283180290489', + statTags: { + destType: 'FB_CUSTOM_AUDIENCE', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', + }, + status: 403, + }, + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/fb_custom_audience/network.ts b/test/integrations/destinations/fb_custom_audience/network.ts index 2c19a6fe0d..bbdc1ffc28 100644 --- a/test/integrations/destinations/fb_custom_audience/network.ts +++ b/test/integrations/destinations/fb_custom_audience/network.ts @@ -1,456 +1,483 @@ +import { getEndPoint } from '../../../../src/v0/destinations/fb_custom_audience/config'; + export const networkCallsData = [ - { - httpReq: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - 'test-dest-response-key': 'successResponse' - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'EMAIL', - 'DOBM', - 'DOBD', - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - 'shrouti@abc.com', - '2', - '13', - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - userId: '', - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, + { + httpReq: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'successResponse', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: [ + 'EMAIL', + 'DOBM', + 'DOBD', + 'DOBY', + 'PHONE', + 'GEN', + 'FI', + 'MADID', + 'ZIP', + 'ST', + 'COUNTRY', + ], + data: [ + [ + 'shrouti@abc.com', + '2', + '13', + '2013', + '@09432457768', + 'f', + 'Ms.', + 'ABC', + 'ZIP ', + '123abc ', + 'IN', + ], + ], }, - httpRes: { - "data": { - "audience_id": "aud1", - "session_id": "123", - "num_received": 4, - "num_invalid_entries": 0, - "invalid_entry_samples": {} - }, - "status": 200 - } + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - { - httpReq: { - version: '1', - type: 'REST', - method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - 'test-dest-response-key': 'permissionMissingError' - }, - params: { - access_token: 'BCD', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'DOBM', - 'DOBD', - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - '2', - '13', - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - userId: '', - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, + httpRes: { + data: { + audience_id: 'aud1', + session_id: '123', + num_received: 4, + num_invalid_entries: 0, + invalid_entry_samples: {}, + }, + status: 200, + }, + }, + { + httpReq: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'permissionMissingError', + }, + params: { + access_token: 'BCD', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: ['DOBM', 'DOBD', 'DOBY', 'PHONE', 'GEN', 'FI', 'MADID', 'ZIP', 'ST', 'COUNTRY'], + data: [['2', '13', '2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN']], + }, + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + httpRes: { + data: { + error: { + code: 294, + message: + 'Missing permission. Please make sure you have ads_management permission and the application is included in the allowlist', + type: 'GraphMethodException', + }, + }, + status: 400, + }, + }, + { + httpReq: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'audienceUnavailableError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: ['DOBY', 'PHONE', 'GEN', 'FI', 'MADID', 'ZIP', 'ST', 'COUNTRY'], + data: [['2013', '@09432457768', 'f', 'Ms.', 'ABC', 'ZIP ', '123abc ', 'IN']], + }, + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + httpRes: { + data: { + error: { + code: 1487301, + message: + 'Custom Audience Unavailable: The custom audience you are trying to use has not been shared with your ad account', + type: 'GraphMethodException', + }, + }, + status: 400, + }, + }, + { + httpReq: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'audienceDeletedError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: [ + 'EMAIL', + 'DOBM', + 'DOBD', + 'DOBY', + 'PHONE', + 'GEN', + 'FI', + 'MADID', + 'ZIP', + 'ST', + 'COUNTRY', + ], + data: [ + [ + 'shrouti@abc.com', + '2', + '13', + '2013', + '@09432457768', + 'f', + 'Ms.', + 'ABC', + 'ZIP ', + '123abc ', + 'IN', + ], + ], }, - httpRes: { - data: { - error: { - code: 294, - message: "Missing permission. Please make sure you have ads_management permission and the application is included in the allowlist", - type: "GraphMethodException", - } - }, - "status": 400 - } + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - { - httpReq: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - 'test-dest-response-key': 'audienceUnavailableError' - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - userId: '', - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, + httpRes: { + data: { + error: { + code: 1487366, + message: 'Custom Audience Has Been Deleted', + type: 'GraphMethodException', }, - httpRes: { - data: { - error: { - code: 1487301, - message: "Custom Audience Unavailable: The custom audience you are trying to use has not been shared with your ad account", - type: "GraphMethodException", - } - }, - "status": 400 - } + }, + status: 400, }, - { - httpReq: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - 'test-dest-response-key': 'audienceDeletedError' - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'EMAIL', - 'DOBM', - 'DOBD', - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - 'shrouti@abc.com', - '2', - '13', - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - userId: '', - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, + }, + { + httpReq: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'failedToUpdateAudienceError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: [ + 'EMAIL', + 'DOBM', + 'DOBD', + 'DOBY', + 'PHONE', + 'GEN', + 'FI', + 'MADID', + 'ZIP', + 'ST', + 'COUNTRY', + ], + data: [ + [ + 'shrouti@abc.com', + '2', + '13', + '2013', + '@09432457768', + 'f', + 'Ms.', + 'ABC', + 'ZIP ', + '123abc ', + 'IN', + ], + ], }, - httpRes: { - data: { - error: { - code: 1487366, - message: "Custom Audience Has Been Deleted", - type: "GraphMethodException", - } - }, - "status": 400 - } + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - { - httpReq: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - 'test-dest-response-key': 'failedToUpdateAudienceError' - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'EMAIL', - 'DOBM', - 'DOBD', - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - 'shrouti@abc.com', - '2', - '13', - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - userId: '', - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, + httpRes: { + data: { + error: { + code: 2650, + message: 'Failed to update the custom audience', + type: 'GraphMethodException', }, - httpRes: { - data: { - error: { - code: 2650, - message: "Failed to update the custom audience", - type: "GraphMethodException", - } - }, - "status": 400 - } + }, + status: 400, }, - { - httpReq: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - 'test-dest-response-key': 'parameterExceededError' - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'EMAIL', - 'DOBM', - 'DOBD', - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - 'shrouti@abc.com', - '2', - '13', - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - userId: '', - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, + }, + { + httpReq: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'parameterExceededError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: [ + 'EMAIL', + 'DOBM', + 'DOBD', + 'DOBY', + 'PHONE', + 'GEN', + 'FI', + 'MADID', + 'ZIP', + 'ST', + 'COUNTRY', + ], + data: [ + [ + 'shrouti@abc.com', + '2', + '13', + '2013', + '@09432457768', + 'f', + 'Ms.', + 'ABC', + 'ZIP ', + '123abc ', + 'IN', + ], + ], }, - httpRes: { - data: { - error: { - code: 105, - message: "The number of parameters exceeded the maximum for this operation", - type: "GraphMethodException", - } - }, - "status": 400 - } + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, }, - { - httpReq: { - version: '1', - type: 'REST', - method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', - headers: { - 'test-dest-response-key': 'tooManyCallsError' - }, - params: { - access_token: 'ABC', - payload: { - is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, - schema: [ - 'EMAIL', - 'DOBM', - 'DOBD', - 'DOBY', - 'PHONE', - 'GEN', - 'FI', - 'MADID', - 'ZIP', - 'ST', - 'COUNTRY', - ], - data: [ - [ - 'shrouti@abc.com', - '2', - '13', - '2013', - '@09432457768', - 'f', - 'Ms.', - 'ABC', - 'ZIP ', - '123abc ', - 'IN', - ], - ], - }, - }, - userId: '', - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, - files: {}, + httpRes: { + data: { + error: { + code: 105, + message: 'The number of parameters exceeded the maximum for this operation', + type: 'GraphMethodException', }, - httpRes: { - data: { - error: { - code: 80003, - message: "There have been too many calls to this ad-account.", - type: "GraphMethodException", - } - }, - "status": 429 - } - } -]; \ No newline at end of file + }, + status: 400, + }, + }, + { + httpReq: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'tooManyCallsError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: [ + 'EMAIL', + 'DOBM', + 'DOBD', + 'DOBY', + 'PHONE', + 'GEN', + 'FI', + 'MADID', + 'ZIP', + 'ST', + 'COUNTRY', + ], + data: [ + [ + 'shrouti@abc.com', + '2', + '13', + '2013', + '@09432457768', + 'f', + 'Ms.', + 'ABC', + 'ZIP ', + '123abc ', + 'IN', + ], + ], + }, + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + httpRes: { + data: { + error: { + code: 80003, + message: 'There have been too many calls to this ad-account.', + type: 'GraphMethodException', + }, + }, + status: 429, + }, + }, + { + httpReq: { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: getEndPoint('aud1'), + headers: { + 'test-dest-response-key': 'code200PermissionError', + }, + params: { + access_token: 'ABC', + payload: { + is_raw: true, + data_source: { + sub_type: 'ANYTHING', + }, + schema: [ + 'EMAIL', + 'DOBM', + 'DOBD', + 'DOBY', + 'PHONE', + 'GEN', + 'FI', + 'MADID', + 'ZIP', + 'ST', + 'COUNTRY', + ], + data: [ + [ + 'shrouti@abc.com', + '2', + '13', + '2013', + '@09432457768', + 'f', + 'Ms.', + 'ABC', + 'ZIP ', + '123abc ', + 'IN', + ], + ], + }, + }, + userId: '', + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + httpRes: { + data: { + error: { + code: 200, + fbtrace_id: 'AFfWqjY-_y2Q92DsyJ4DQ6f', + message: '(#200) The current user can not update audience 23861283180290489', + type: 'OAuthException', + }, + }, + status: 403, + }, + }, +]; diff --git a/test/integrations/destinations/fb_custom_audience/processor/data.ts b/test/integrations/destinations/fb_custom_audience/processor/data.ts index 17dcda3a98..267b966865 100644 --- a/test/integrations/destinations/fb_custom_audience/processor/data.ts +++ b/test/integrations/destinations/fb_custom_audience/processor/data.ts @@ -1,3 +1,5 @@ +import { getEndPoint } from '../../../../../src/v0/destinations/fb_custom_audience/config'; + export const data = [ { name: 'fb_custom_audience', @@ -552,7 +554,7 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -607,7 +609,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -763,7 +765,7 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -818,7 +820,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, userId: '', params: { @@ -963,7 +965,7 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -993,7 +995,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -1123,7 +1125,7 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -1179,7 +1181,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -1336,7 +1338,7 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, userId: '', params: { @@ -1391,7 +1393,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -1547,7 +1549,7 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -1602,7 +1604,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -1758,7 +1760,7 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, userId: '', params: { @@ -1813,7 +1815,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, userId: '', params: { @@ -1955,7 +1957,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, userId: '', params: { @@ -1985,7 +1987,7 @@ export const data = [ 'a953f09a1b6b6725b81956e9ad0b1eb49e3ad40004c04307ef8af6246a054116', '3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278', '7931aa2a1bed855457d1ddf6bc06ab4406a9fba0579045a4d6ff78f9c07c440f', - null, + '', '252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111', 'db0683221aebc02cc034b65ebcf7d1bddd1eb199e33fd23a31931947d13a11bc', 'abc', @@ -2097,7 +2099,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, userId: '', params: { @@ -2121,7 +2123,7 @@ export const data = [ 'ST', 'COUNTRY', ], - data: [[null, null, null, null, null, null, null, null, null, null, null]], + data: [['', '', '', '', '', '', '', '', '', '', '']], }, }, body: { @@ -2226,7 +2228,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -2254,7 +2256,7 @@ export const data = [ 'a953f09a1b6b6725b81956e9ad0b1eb49e3ad40004c04307ef8af6246a054116', '3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278', '7931aa2a1bed855457d1ddf6bc06ab4406a9fba0579045a4d6ff78f9c07c440f', - null, + '', '252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111', 'db0683221aebc02cc034b65ebcf7d1bddd1eb199e33fd23a31931947d13a11bc', 'abc', @@ -28302,7 +28304,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -34844,7 +34846,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -41386,7 +41388,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -47902,7 +47904,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', diff --git a/test/integrations/destinations/fb_custom_audience/router/data.ts b/test/integrations/destinations/fb_custom_audience/router/data.ts index c458b45c91..492b625b2d 100644 --- a/test/integrations/destinations/fb_custom_audience/router/data.ts +++ b/test/integrations/destinations/fb_custom_audience/router/data.ts @@ -1,3 +1,5 @@ +import { getEndPoint } from '../../../../../src/v0/destinations/fb_custom_audience/config'; + export const data = [ { name: 'fb_custom_audience', @@ -49,17 +51,10 @@ export const data = [ ], }, }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, timestamp: '2020-02-02T00:23:09.544Z', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { accessToken: 'ABC', @@ -129,17 +124,10 @@ export const data = [ ], }, }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, timestamp: '2020-02-02T00:23:09.544Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { accessToken: 'ABC', @@ -169,9 +157,7 @@ export const data = [ IsProcessorEnabled: true, }, libraries: [], - request: { - query: {}, - }, + request: { query: {} }, }, ], destType: 'fb_custom_audience', @@ -189,16 +175,13 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', payload: { is_raw: true, - data_source: { - type: 'UNKNOWN', - sub_type: 'ANYTHING', - }, + data_source: { type: 'UNKNOWN', sub_type: 'ANYTHING' }, schema: [ 'EMAIL', 'DOBM', @@ -229,28 +212,20 @@ export const data = [ ], }, }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, { version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', payload: { is_raw: true, - data_source: { - type: 'UNKNOWN', - sub_type: 'ANYTHING', - }, + data_source: { type: 'UNKNOWN', sub_type: 'ANYTHING' }, schema: [ 'EMAIL', 'DOBM', @@ -281,20 +256,11 @@ export const data = [ ], }, }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, ], - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -332,15 +298,13 @@ export const data = [ version: '1', type: 'REST', method: 'DELETE', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', payload: { is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, + data_source: { sub_type: 'ANYTHING' }, schema: [ 'EMAIL', 'DOBM', @@ -371,27 +335,20 @@ export const data = [ ], }, }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, { version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', payload: { is_raw: true, - data_source: { - sub_type: 'ANYTHING', - }, + data_source: { sub_type: 'ANYTHING' }, schema: [ 'EMAIL', 'DOBM', @@ -422,20 +379,11 @@ export const data = [ ], }, }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -492,10 +440,7 @@ export const data = [ context: { destinationFields: 'EMAIL, FN', externalId: [ - { - type: 'FB_CUSTOM_AUDIENCE-23848494844100489', - identifierType: 'EMAIL', - }, + { type: 'FB_CUSTOM_AUDIENCE-23848494844100489', identifierType: 'EMAIL' }, ], mappedToDestination: 'true', sources: { @@ -510,46 +455,16 @@ export const data = [ properties: { listData: { add: [ - { - EMAIL: 'dede@gmail.com', - FN: 'vishwa', - }, - { - EMAIL: 'fchsjjn@gmail.com', - FN: 'hskks', - }, - { - EMAIL: 'fghjnbjk@gmail.com', - FN: 'ghfry', - }, - { - EMAIL: 'gvhjkk@gmail.com', - FN: 'hbcwqe', - }, - { - EMAIL: 'qsdwert@egf.com', - FN: 'dsfds', - }, - { - EMAIL: 'ascscxsaca@com', - FN: 'scadscdvcda', - }, - { - EMAIL: 'abc@gmail.com', - FN: 'subscribed', - }, - { - EMAIL: 'ddwnkl@gmail.com', - FN: 'subscribed', - }, - { - EMAIL: 'subscribed@eewrfrd.com', - FN: 'pending', - }, - { - EMAIL: 'acsdvdf@ddfvf.com', - FN: 'pending', - }, + { EMAIL: 'dede@gmail.com', FN: 'vishwa' }, + { EMAIL: 'fchsjjn@gmail.com', FN: 'hskks' }, + { EMAIL: 'fghjnbjk@gmail.com', FN: 'ghfry' }, + { EMAIL: 'gvhjkk@gmail.com', FN: 'hbcwqe' }, + { EMAIL: 'qsdwert@egf.com', FN: 'dsfds' }, + { EMAIL: 'ascscxsaca@com', FN: 'scadscdvcda' }, + { EMAIL: 'abc@gmail.com', FN: 'subscribed' }, + { EMAIL: 'ddwnkl@gmail.com', FN: 'subscribed' }, + { EMAIL: 'subscribed@eewrfrd.com', FN: 'pending' }, + { EMAIL: 'acsdvdf@ddfvf.com', FN: 'pending' }, ], }, }, @@ -588,9 +503,7 @@ export const data = [ isConnectionEnabled: true, isProcessorEnabled: true, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, }, { message: { @@ -601,10 +514,7 @@ export const data = [ event: 'Add_Audience', context: { externalId: [ - { - type: 'FB_CUSTOM_AUDIENCE-23848494844100489', - identifierType: 'EMAIL', - }, + { type: 'FB_CUSTOM_AUDIENCE-23848494844100489', identifierType: 'EMAIL' }, ], mappedToDestination: 'true', sources: { @@ -619,46 +529,16 @@ export const data = [ properties: { listData: { add: [ - { - EMAIL: 'dede@gmail.com', - FN: 'vishwa', - }, - { - EMAIL: 'fchsjjn@gmail.com', - FN: 'hskks', - }, - { - EMAIL: 'fghjnbjk@gmail.com', - FN: 'ghfry', - }, - { - EMAIL: 'gvhjkk@gmail.com', - FN: 'hbcwqe', - }, - { - EMAIL: 'qsdwert@egf.com', - FN: 'dsfds', - }, - { - EMAIL: 'ascscxsaca@com', - FN: 'scadscdvcda', - }, - { - EMAIL: 'abc@gmail.com', - FN: 'subscribed', - }, - { - EMAIL: 'ddwnkl@gmail.com', - FN: 'subscribed', - }, - { - EMAIL: 'subscribed@eewrfrd.com', - FN: 'pending', - }, - { - EMAIL: 'acsdvdf@ddfvf.com', - FN: 'pending', - }, + { EMAIL: 'dede@gmail.com', FN: 'vishwa' }, + { EMAIL: 'fchsjjn@gmail.com', FN: 'hskks' }, + { EMAIL: 'fghjnbjk@gmail.com', FN: 'ghfry' }, + { EMAIL: 'gvhjkk@gmail.com', FN: 'hbcwqe' }, + { EMAIL: 'qsdwert@egf.com', FN: 'dsfds' }, + { EMAIL: 'ascscxsaca@com', FN: 'scadscdvcda' }, + { EMAIL: 'abc@gmail.com', FN: 'subscribed' }, + { EMAIL: 'ddwnkl@gmail.com', FN: 'subscribed' }, + { EMAIL: 'subscribed@eewrfrd.com', FN: 'pending' }, + { EMAIL: 'acsdvdf@ddfvf.com', FN: 'pending' }, ], }, }, @@ -697,9 +577,7 @@ export const data = [ isConnectionEnabled: true, isProcessorEnabled: true, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 3, userId: 'u1' }, }, { message: { @@ -711,12 +589,7 @@ export const data = [ context: { destinationFields: 'EMAIL, DOBM, DOBD, DOBY, PHONE, GEN, FI, MADID, ZIP, ST, COUNTRY', - externalId: [ - { - type: 'FB_CUSTOM_AUDIENCE-aud1', - identifierType: 'EMAIL', - }, - ], + externalId: [{ type: 'FB_CUSTOM_AUDIENCE-aud1', identifierType: 'EMAIL' }], mappedToDestination: 'true', sources: { job_run_id: 'cgiiurt8um7k7n5dq480', @@ -26728,9 +26601,7 @@ export const data = [ isConnectionEnabled: true, isProcessorEnabled: true, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 4, userId: 'u1' }, }, ], destType: 'fb_custom_audience', @@ -26748,40 +26619,31 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/23848494844100489/users', + endpoint: getEndPoint('23848494844100489'), headers: {}, params: { access_token: 'ABC', payload: { schema: ['EMAIL', 'FN'], data: [ - ['7625cab24612c37df6d2f724721bb38a25095d0295e29b807238ee188b8aca43', null], - ['b2b4abadd72190af54305c0d3abf1977fec4935016bb13ff28040d5712318dfd', null], - ['c4b007d1c3c9a5d31bd4082237a913e8e0db1767225c2a5ef33be2716df005fa', null], - ['94639be1bd9f17c05820164e9d71ef78558f117a9e8bfab43cf8015e08aa0b27', null], - ['39b456cfb4bb07f9e6bb18698aa173171ca49c731fccc4790e9ecea808d24ae6', null], - ['769f73387add781a481ca08300008a08fb2f1816aaed196137efc2e05976d711', null], - ['48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08', null], - ['da2d431121cd10578fd81f8f80344b06db59ea2d05a7b5d27536c8789ddae8f0', null], - ['b100c2ec0718fe6b4805b623aeec6710719d042ceea55f5c8135b010ec1c7b36', null], - ['0c1d1b0ba547a742013366d6fbc8f71dd77f566d94e41ed9f828a74b96928161', null], + ['7625cab24612c37df6d2f724721bb38a25095d0295e29b807238ee188b8aca43', ''], + ['b2b4abadd72190af54305c0d3abf1977fec4935016bb13ff28040d5712318dfd', ''], + ['c4b007d1c3c9a5d31bd4082237a913e8e0db1767225c2a5ef33be2716df005fa', ''], + ['94639be1bd9f17c05820164e9d71ef78558f117a9e8bfab43cf8015e08aa0b27', ''], + ['39b456cfb4bb07f9e6bb18698aa173171ca49c731fccc4790e9ecea808d24ae6', ''], + ['769f73387add781a481ca08300008a08fb2f1816aaed196137efc2e05976d711', ''], + ['48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08', ''], + ['da2d431121cd10578fd81f8f80344b06db59ea2d05a7b5d27536c8789ddae8f0', ''], + ['b100c2ec0718fe6b4805b623aeec6710719d042ceea55f5c8135b010ec1c7b36', ''], + ['0c1d1b0ba547a742013366d6fbc8f71dd77f566d94e41ed9f828a74b96928161', ''], ], }, }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -26852,11 +26714,7 @@ export const data = [ }, error: 'context.destinationFields is required property for events mapped to destination ', - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 400, statTags: { @@ -26874,7 +26732,7 @@ export const data = [ version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -33397,19 +33255,14 @@ export const data = [ ], }, }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, files: {}, }, { version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -39932,19 +39785,14 @@ export const data = [ ], }, }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, files: {}, }, { version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -46441,19 +46289,14 @@ export const data = [ ], }, }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, files: {}, }, { version: '1', type: 'REST', method: 'POST', - endpoint: 'https://graph.facebook.com/v17.0/aud1/users', + endpoint: getEndPoint('aud1'), headers: {}, params: { access_token: 'ABC', @@ -52950,20 +52793,11 @@ export const data = [ ], }, }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, files: {}, }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 4, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/freshmarketer/network.ts b/test/integrations/destinations/freshmarketer/network.ts new file mode 100644 index 0000000000..51f1a0c115 --- /dev/null +++ b/test/integrations/destinations/freshmarketer/network.ts @@ -0,0 +1,487 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert', + method: 'POST' + }, + httpRes: { + data: { + "sales_account": { + "id": 70003771396, + "name": "postman2.0", + "address": "Red Colony", + "city": "Pune", + "state": "Goa", + "zipcode": null, + "country": null, + "number_of_employees": 11, + "annual_revenue": 1000, + "website": null, + "owner_id": null, + "phone": "919191919191", + "open_deals_amount": null, + "open_deals_count": null, + "won_deals_amount": null, + "won_deals_count": null, + "last_contacted": null, + "last_contacted_mode": null, + "facebook": null, + "twitter": null, + "linkedin": null, + "links": { + "conversations": "/crm/sales/sales_accounts/70003771396/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", + "document_associations": "/crm/sales/sales_accounts/70003771396/document_associations", + "notes": "/crm/sales/sales_accounts/70003771396/notes?include=creater", + "tasks": "/crm/sales/sales_accounts/70003771396/tasks?include=creater,owner,updater,targetable,users,task_type", + "appointments": "/crm/sales/sales_accounts/70003771396/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note" + }, + "custom_field": {}, + "created_at": "2022-08-17T04:15:00-04:00", + "updated_at": "2022-08-24T06:03:31-04:00", + "avatar": null, + "parent_sales_account_id": null, + "recent_note": null, + "last_contacted_via_sales_activity": null, + "last_contacted_sales_activity_mode": null, + "completed_sales_sequences": null, + "active_sales_sequences": null, + "last_assigned_at": null, + "tags": [], + "is_deleted": false, + "team_user_ids": null, + "has_connections": false, + "record_type_id": "71010794477" + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert?include=sales_accounts', + method: 'POST' + }, + httpRes: { + data: { + "contact": { + "id": 70042006456, + "first_name": "Rk", + "last_name": "Mishra", + "display_name": "Rk Mishra", + "avatar": null, + "job_title": null, + "city": null, + "state": null, + "zipcode": null, + "country": null, + "email": "testuser@google.com", + "emails": [ + { + "id": 70037311213, + "value": "testuser@google.com", + "is_primary": true, + "label": null, + "_destroy": false + } + ], + "time_zone": "IST", + "work_number": "9988776655", + "mobile_number": "19265559504", + "address": null, + "last_seen": null, + "lead_score": 26, + "last_contacted": null, + "open_deals_amount": null, + "won_deals_amount": null, + "links": { + "conversations": "/crm/sales/contacts/70042006456/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", + "timeline_feeds": "/crm/sales/contacts/70042006456/timeline_feeds", + "document_associations": "/crm/sales/contacts/70042006456/document_associations", + "notes": "/crm/sales/contacts/70042006456/notes?include=creater", + "tasks": "/crm/sales/contacts/70042006456/tasks?include=creater,owner,updater,targetable,users,task_type", + "appointments": "/crm/sales/contacts/70042006456/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note", + "reminders": "/crm/sales/contacts/70042006456/reminders?include=creater,owner,updater,targetable", + "duplicates": "/crm/sales/contacts/70042006456/duplicates", + "connections": "/crm/sales/contacts/70042006456/connections" + }, + "last_contacted_sales_activity_mode": null, + "custom_field": {}, + "created_at": "2022-08-09T03:22:12-04:00", + "updated_at": "2022-08-30T00:33:27-04:00", + "keyword": "drilling", + "medium": "facebook", + "last_contacted_mode": null, + "recent_note": null, + "won_deals_count": null, + "last_contacted_via_sales_activity": null, + "completed_sales_sequences": null, + "active_sales_sequences": null, + "web_form_ids": null, + "open_deals_count": null, + "last_assigned_at": "2022-08-29T05:51:24-04:00", + "tags": [], + "facebook": null, + "twitter": null, + "linkedin": null, + "is_deleted": false, + "team_user_ids": null, + "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "work_email": null, + "subscription_status": 1, + "subscription_types": "2;3;4;5;1", + "customer_fit": 2, + "record_type_id": "71010794476", + "whatsapp_subscription_status": 2, + "sms_subscription_status": 2, + "last_seen_chat": null, + "first_seen_chat": null, + "locale": null, + "total_sessions": null, + "phone_numbers": [], + "sales_accounts": [ + { + "partial": true, + "id": 70003771198, + "name": "div-quer", + "avatar": null, + "website": null, + "last_contacted": null, + "record_type_id": "71010794477", + "is_primary": true + }, + { + "partial": true, + "id": 70003825177, + "name": "BisleriGroup", + "avatar": null, + "website": null, + "last_contacted": null, + "record_type_id": "71010794477", + "is_primary": false + } + ] + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/selector/sales_activity_types', + method: 'GET' + }, + httpRes: { + data: { + "sales_activity_types": [ + { + "partial": true, + "id": 70000666879, + "name": "own-calender", + "internal_name": "cappointment", + "show_in_conversation": true, + "position": 1, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000663932, + "name": "fb-support", + "internal_name": "facebook", + "show_in_conversation": true, + "position": 2, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000663746, + "name": "twitter sales", + "internal_name": "twitter", + "show_in_conversation": true, + "position": 3, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000646396, + "name": "linked sales", + "internal_name": "linkedin", + "show_in_conversation": true, + "position": 4, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000642330, + "name": "facebook sales", + "internal_name": "facebook", + "show_in_conversation": true, + "position": 5, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612897, + "name": "Chat", + "internal_name": "chat", + "show_in_conversation": true, + "position": 6, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612898, + "name": "Phone", + "internal_name": "phone", + "show_in_conversation": true, + "position": 7, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612899, + "name": "Meeting", + "internal_name": "appointment", + "show_in_conversation": true, + "position": 8, + "is_default": true, + "is_checkedin": true + }, + { + "partial": true, + "id": 70000612900, + "name": "Task", + "internal_name": "task", + "show_in_conversation": true, + "position": 9, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612901, + "name": "Email", + "internal_name": "email", + "show_in_conversation": true, + "position": 10, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612902, + "name": "SMS Outgoing", + "internal_name": "sms_outgoing", + "show_in_conversation": true, + "position": 11, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612903, + "name": "Reminder", + "internal_name": "reminder", + "show_in_conversation": false, + "position": 12, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612904, + "name": "SMS Incoming", + "internal_name": "sms_incoming", + "show_in_conversation": true, + "position": 13, + "is_default": true, + "is_checkedin": false + } + ] + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert', + method: 'POST' + }, + httpRes: { + data: { + "contact": { + "id": 70054866612, + "first_name": null, + "last_name": null, + "display_name": "jamessampleton120@gmail.com", + "avatar": null, + "job_title": null, + "city": null, + "state": null, + "zipcode": null, + "country": null, + "email": "jamessampleton120@gmail.com", + "emails": [ + { + "id": 70047409219, + "value": "jamessampleton120@gmail.com", + "is_primary": true, + "label": null, + "_destroy": false + } + ], + "time_zone": null, + "work_number": null, + "mobile_number": null, + "address": null, + "last_seen": null, + "lead_score": 0, + "last_contacted": null, + "open_deals_amount": null, + "won_deals_amount": null, + "links": { + "conversations": "/crm/sales/contacts/70054866612/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", + "timeline_feeds": "/crm/sales/contacts/70054866612/timeline_feeds", + "document_associations": "/crm/sales/contacts/70054866612/document_associations", + "notes": "/crm/sales/contacts/70054866612/notes?include=creater", + "tasks": "/crm/sales/contacts/70054866612/tasks?include=creater,owner,updater,targetable,users,task_type", + "appointments": "/crm/sales/contacts/70054866612/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note", + "reminders": "/crm/sales/contacts/70054866612/reminders?include=creater,owner,updater,targetable", + "duplicates": "/crm/sales/contacts/70054866612/duplicates", + "connections": "/crm/sales/contacts/70054866612/connections" + }, + "last_contacted_sales_activity_mode": null, + "custom_field": {}, + "created_at": "2022-10-11T08:42:15-04:00", + "updated_at": "2022-10-11T08:42:15-04:00", + "keyword": null, + "medium": null, + "last_contacted_mode": null, + "recent_note": null, + "won_deals_count": null, + "last_contacted_via_sales_activity": null, + "completed_sales_sequences": null, + "active_sales_sequences": null, + "web_form_ids": null, + "open_deals_count": null, + "last_assigned_at": null, + "tags": [], + "facebook": null, + "twitter": null, + "linkedin": null, + "is_deleted": false, + "team_user_ids": null, + "external_id": null, + "work_email": null, + "subscription_status": 1, + "subscription_types": "2;3;4;5;1", + "customer_fit": 0, + "record_type_id": "71012139284", + "whatsapp_subscription_status": 2, + "sms_subscription_status": 2, + "last_seen_chat": null, + "first_seen_chat": null, + "locale": null, + "total_sessions": null, + "phone_numbers": [] + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/lists', + method: 'GET' + }, + httpRes: { + data: { + "lists": [ + { + "id": 70000053624, + "name": "Sample list" + }, + { + "id": 70000056575, + "name": "list1-test" + }, + { + "id": 70000058627, + "name": "Jio 5G Group" + }, + { + "id": 70000058628, + "name": "Airtel 5G Group" + }, + { + "id": 70000059716, + "name": "Voda 5G" + } + ], + "meta": { + "total_pages": 1, + "total": 5 + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/selector/lifecycle_stages', + method: 'GET' + }, + httpRes: { + data: { + "lifecycle_stages": [ + { + "id": 71012139274, + "name": "Sales Qualified Lead start", + "position": 1, + "disabled": false, + "default": true, + "type": "Sales Qualified Lead", + "contact_status_ids": [70000697858, 70000697859, 70000697860] + }, + { + "id": 71012139273, + "name": "Lead", + "position": 2, + "disabled": false, + "default": true, + "type": "Lead", + "contact_status_ids": [70000697854, 70000697855, 70000697856, 70000697857] + }, + { + "id": 71012806409, + "name": "final Customer", + "position": 3, + "disabled": false, + "default": false, + "type": "Custom", + "contact_status_ids": [70000736543, 70000736544] + }, + { + "id": 71012139275, + "name": "Customer", + "position": 4, + "disabled": false, + "default": true, + "type": "Customer", + "contact_status_ids": [70000697861, 70000697862] + } + ] + }, + status: 200 + }, + } +]; + + + diff --git a/test/integrations/destinations/freshmarketer/processor/data.ts b/test/integrations/destinations/freshmarketer/processor/data.ts new file mode 100644 index 0000000000..c05dedef1f --- /dev/null +++ b/test/integrations/destinations/freshmarketer/processor/data.ts @@ -0,0 +1,3130 @@ +export const data = [ + { + "name": "freshmarketer", + "description": "Identify call for creating new user", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "rudderstack-476952domain3105.myfreshworks.com" + } + }, + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "email": "testuser@google.com", + "first_name": "Rk", + "last_name": "Mishra", + "mobileNumber": "1-926-555-9504", + "lifecycleStageId": 71010794467, + "phone": "9988776655", + "owner_id": "70000090119" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "contact": { + "emails": "testuser@google.com", + "last_name": "Mishra", + "created_at": "2022-06-22T10:57:58Z", + "first_name": "Rk", + "updated_at": "2022-06-22T10:57:58Z", + "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "work_number": "9988776655", + "mobile_number": "1-926-555-9504", + "lifecycle_stage_id": 71010794467 + }, + "unique_identifier": { + "emails": "testuser@google.com" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Identify call with numbers in lifecycleStageId, ownerId", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "rudderstack-476952domain3105.myfreshworks.com" + } + }, + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "email": "testuser@google.com", + "first_name": "Rk", + "last_name": "Mishra", + "mobileNumber": "1-926-555-9504", + "lifecycleStageId": 71010794467, + "phone": "9988776655", + "owner_id": "70000090119" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "contact": { + "emails": "testuser@google.com", + "last_name": "Mishra", + "created_at": "2022-06-22T10:57:58Z", + "first_name": "Rk", + "updated_at": "2022-06-22T10:57:58Z", + "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "work_number": "9988776655", + "mobile_number": "1-926-555-9504", + "lifecycle_stage_id": 71010794467 + }, + "unique_identifier": { + "emails": "testuser@google.com" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Identify call with wrong data type in lifecycleStageId, ownerId", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "rudderstack-476952domain3105.myfreshworks.com" + } + }, + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "email": "testuser@google.com", + "first_name": "Rk", + "last_name": "Mishra", + "mobileNumber": "1-926-555-9504", + "lifecycleStageId": "rudderSample", + "phone": "9988776655", + "ownerId": "rudderSample" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "owner_id,lifecycle_stage_id: invalid number format", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Identify call, email is not provided.", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "rudderstack-476952domain3105.myfreshworks.com" + } + }, + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "first_name": "Rk", + "last_name": "Mishra", + "mobileNumber": "1-926-555-9504", + "lifecycleStageId": "rudderSample", + "phone": "9988776655", + "owner_id": "rudderSample" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"email\"", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: testing with mock api", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "testuser@google.com" + } + }, + "traits": { + "groupType": "accounts", + "name": "Mark Twain", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "contact": { + "sales_accounts": [ + { + "id": 70003771198, + "name": "div-quer", + "avatar": null, + "partial": true, + "website": null, + "is_primary": true, + "last_contacted": null, + "record_type_id": "71010794477" + }, + { + "id": 70003825177, + "name": "BisleriGroup", + "avatar": null, + "partial": true, + "website": null, + "is_primary": false, + "last_contacted": null, + "record_type_id": "71010794477" + }, + { + "id": 70003771396, + "is_primary": false + } + ] + }, + "unique_identifier": { + "emails": "testuser@google.com" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: name is required field.", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "testuser@google.com" + } + }, + "traits": { + "groupType": "accounts", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"name\"", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "missing message type", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "testuser4google.com" + } + }, + "traits": { + "name": "Mark Twain", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Message Type is not present. Aborting message.", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Wrong message type", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "testuser4google.com" + } + }, + "traits": { + "name": "Mark Twain", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "page", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "message type page not supported", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: user email is missing", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": {} + }, + "traits": { + "groupType": "accounts", + "name": "div-quer", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Lal colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "sales_account": { + "city": "Lal colony", + "name": "div-quer", + "phone": "919191919191", + "state": "Haryana", + "address": "Red Colony", + "created_at": "2022-06-22T10:57:58Z", + "updated_at": "2022-06-22T10:57:58Z", + "annual_revenue": 1000, + "number_of_employees": 51 + }, + "unique_identifier": { + "name": "div-quer" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Identify call: Email is not present", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "first_name": "Rk", + "last_name": "Narayan", + "mobileNumber": "1-926-555-9504", + "phone": "9988776655" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"email\"", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call, event is not supported.", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn" + }, + "event": "Add to Cart", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "event name Add to Cart is not supported. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: some required properties is missing for sales_activity", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"properties.title\"", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: for salesActivityName", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "salesActivityName": "own-calender", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "sales_activity": { + "title": "new Contact", + "end_date": "2022-06-04T17:30:00+05:30", + "owner_id": "70054866612", + "start_date": "2021-05-04T17:00:00+05:30", + "created_at": "2020-10-20T08:14:28.778Z", + "updated_at": "2020-10-20T08:14:28.778Z", + "targetable_id": 70054866612, + "targetable_type": "Contact", + "sales_activity_name": "own-calender", + "sales_activity_type_id": 70000666879 + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: lifecycle_stage_id", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "email": "jamessampleton3@gmail.com", + "lifecycleStageId": "71012139273", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert", + "headers": { + "Authorization": "Token token=dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "contact": { + "lifecycle_stage_id": "71012139273" + }, + "unique_identifier": { + "emails": "jamessampleton3@gmail.com" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: In lifecycle stage, email is missing", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "lifecycleStageId": "71012139273", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "email is required for updating life Cycle Stages. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: Either of lifecycleStageName or lifecycleStageId is required", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "jamessampleton3@gmail.com", + "properties": { + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Either of lifecycleStageName or lifecycleStageId is required. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: Either of sales activity name or sales activity type id is required", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Either of sales activity name or sales activity type id is required. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: Either of email or targetable_id is required for creating sales activity.", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "salesActivityName": "own-calender", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Either of email or targetable_id is required for creating sales activity. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: sales activity with salesActivityTypeId", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "jamessampleton3@gmail.com", + "properties": { + "salesActivityTypeId": "70000663932", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "sales_activity": { + "title": "new Contact", + "end_date": "2022-06-04T17:30:00+05:30", + "owner_id": "70054866612", + "start_date": "2021-05-04T17:00:00+05:30", + "created_at": "2020-10-20T08:14:28.778Z", + "updated_at": "2020-10-20T08:14:28.778Z", + "targetable_id": 70054866612, + "targetable_type": "Contact", + "sales_activity_type_id": "70000663932" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: updated sales activity with salesActivityTypeId and targetableId", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "id": "70052305908", + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "salesActivityTypeId": "70000663932", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "sales_activity": { + "title": "new Contact", + "end_date": "2022-06-04T17:30:00+05:30", + "owner_id": "70054866612", + "start_date": "2021-05-04T17:00:00+05:30", + "created_at": "2020-10-20T08:14:28.778Z", + "updated_at": "2020-10-20T08:14:28.778Z", + "targetable_id": "70052305908", + "targetable_type": "Contact", + "sales_activity_type_id": "70000663932" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Unsupported message Type", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "type": "page", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "jamessampleton3@gmail.com", + "properties": { + "lifecycleStageId": "71012139273", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "message type page not supported", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: email is required for adding contacts to marketing lists", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "traits": { + "groupType": "marketing_lists" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "email is required for adding in the marketing lists. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: group type is not present", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "traits": { + "name": "Mark Twain", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "groupType is required for Group call", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: add contacts in existing marketing lists", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "jamessampleton1@gmail.com" + } + }, + "traits": { + "groupType": "marketing_lists", + "listName": "Voda 5G", + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "ids": [ + 70054866612 + ] + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "PUT", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000059716/add_contacts", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: groupType is not supported", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "traits": { + "groupType": "marketing", + "listName": "Voda 5G", + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "groupType marketing is not supported. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: listId or listName is required", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "traits": { + "email": "jamessampleton1@gmail.com" + } + }, + "traits": { + "groupType": "marketing_lists", + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "listId or listName is required. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Group call: add marketing lists with listId", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "jamessampleton1@gmail.com" + } + }, + "traits": { + "listId": "70000058627", + "groupType": "marketing_lists", + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "ids": [ + 70054866612 + ] + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "PUT", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000058627/add_contacts", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: with wrong sales activity name", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "salesActivityName": "own-list", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "sales Activity own-list doesn't exists. Aborting!", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: update contacts with sales Activity name", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "email": "jamessampleton6@gmail.com", + "lifecycleStageName": "final Customer", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "contact": { + "lifecycle_stage_id": 71012806409 + }, + "unique_identifier": { + "emails": "jamessampleton6@gmail.com" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: with wrong lifecycleStageName", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "email": "jamessampleton6@gmail.com", + "lifecycleStageName": "final ExCustomer", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "failed to fetch lifeCycleStages with final ExCustomer", + "statTags": { + "destType": "FRESHMARKETER", + "errorCategory": "network", + "errorType": "aborted", + "feature": "processor", + "implementation": "native", + "meta": "instrumentation", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshmarketer", + "description": "Track call: Multiplexing", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "salesActivityName": "own-calender", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "lifecycleStageId": "71012139273" + }, + "event": "test_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com", + "rudderEventsToFreshmarketerEvents": [ + { + "from": "test_activity", + "to": "sales_activity" + }, + { + "from": "test_activity", + "to": "lifecycle_stage" + }, + { + "from": "test_event", + "to": "lifecycle_stage" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "sales_activity": { + "title": "new Contact", + "end_date": "2022-06-04T17:30:00+05:30", + "owner_id": "70054866612", + "start_date": "2021-05-04T17:00:00+05:30", + "created_at": "2020-10-20T08:14:28.778Z", + "updated_at": "2020-10-20T08:14:28.778Z", + "targetable_id": 70054866612, + "targetable_type": "Contact", + "sales_activity_name": "own-calender", + "sales_activity_type_id": 70000666879 + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "userId": "", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" + }, + "statusCode": 200 + }, + { + "output": { + "body": { + "JSON": { + "contact": { + "lifecycle_stage_id": "71012139273" + }, + "unique_identifier": { + "emails": "test@rudderstack.com" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "type": "REST", + "files": {}, + "userId": "", + "method": "POST", + "params": {}, + "headers": { + "Authorization": "Token token=dummyApiKey", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert" + }, + "statusCode": 200 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/freshmarketer/router/data.ts b/test/integrations/destinations/freshmarketer/router/data.ts new file mode 100644 index 0000000000..03690b6e27 --- /dev/null +++ b/test/integrations/destinations/freshmarketer/router/data.ts @@ -0,0 +1,304 @@ +export const data = [ + { + name: 'freshmarketer', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + domain: 'rudderstack-476952domain3105.myfreshworks.com', + }, + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-06-22T10:57:58Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + advertisingId: 'T0T0T072-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, + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + locale: 'en-US', + os: { name: 'iOS', version: '14.4.1' }, + screen: { density: 2 }, + }, + traits: { + email: 'testuser@google.com', + first_name: 'Rk', + last_name: 'Mishra', + mobileNumber: '1-926-555-9504', + lifecycleStageId: 71010794467, + phone: '9988776655', + owner_id: '70000090119', + }, + type: 'identify', + sentAt: '2022-04-22T10:57:58Z', + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + domain: 'rudderstack-476952domain3105.myfreshworks.com', + }, + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-06-22T10:57:58Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + advertisingId: 'T0T0T072-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, + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + locale: 'en-US', + os: { name: 'iOS', version: '14.4.1' }, + screen: { density: 2 }, + }, + traits: { + email: 'testuser@google.com', + first_name: 'Rk', + last_name: 'Mishra', + mobileNumber: '1-926-555-9504', + lifecycleStageId: 71010794467, + phone: '9988776655', + owner_id: '70000090119', + }, + type: 'identify', + sentAt: '2022-04-22T10:57:58Z', + }, + }, + { + destination: { + Config: { apiKey: 'dummyApiKey', domain: 'domain-rudder.myfreshworks.com' }, + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + messageId: 'sadjb-1e2r3fhgb-12bvbbj', + originalTimestamp: '2022-06-22T10:57:58Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + advertisingId: 'T0T0T072-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, + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + locale: 'en-US', + os: { name: 'iOS', version: '14.4.1' }, + screen: { density: 2 }, + traits: { email: 'testuser@google.com' }, + }, + traits: { + groupType: 'accounts', + name: 'Mark Twain', + phone: '919191919191', + numberOfEmployees: 51, + annualRevenue: 1000, + address: 'Red Colony', + city: 'Colony', + state: 'Haryana', + }, + type: 'group', + sentAt: '2022-04-22T10:57:58Z', + }, + }, + ], + destType: 'freshmarketer', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert', + headers: { + Authorization: 'Token token=dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + contact: { + emails: 'testuser@google.com', + first_name: 'Rk', + last_name: 'Mishra', + work_number: '9988776655', + external_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99099', + mobile_number: '1-926-555-9504', + created_at: '2022-06-22T10:57:58Z', + updated_at: '2022-06-22T10:57:58Z', + lifecycle_stage_id: 71010794467, + }, + unique_identifier: { emails: 'testuser@google.com' }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + domain: 'rudderstack-476952domain3105.myfreshworks.com', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert', + headers: { + Authorization: 'Token token=dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + contact: { + emails: 'testuser@google.com', + first_name: 'Rk', + last_name: 'Mishra', + work_number: '9988776655', + external_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99099', + mobile_number: '1-926-555-9504', + created_at: '2022-06-22T10:57:58Z', + updated_at: '2022-06-22T10:57:58Z', + lifecycle_stage_id: 71010794467, + }, + unique_identifier: { emails: 'testuser@google.com' }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + domain: 'rudderstack-476952domain3105.myfreshworks.com', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + FORM: {}, + JSON: { + contact: { + sales_accounts: [ + { + id: 70003771198, + name: 'div-quer', + avatar: null, + partial: true, + website: null, + is_primary: true, + last_contacted: null, + record_type_id: '71010794477', + }, + { + id: 70003825177, + name: 'BisleriGroup', + avatar: null, + partial: true, + website: null, + is_primary: false, + last_contacted: null, + record_type_id: '71010794477', + }, + { id: 70003771396, is_primary: false }, + ], + }, + unique_identifier: { emails: 'testuser@google.com' }, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Token token=dummyApiKey', + }, + version: '1', + endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert', + }, + metadata: [{ jobId: 3, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { apiKey: 'dummyApiKey', domain: 'domain-rudder.myfreshworks.com' }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/freshsales/network.ts b/test/integrations/destinations/freshsales/network.ts new file mode 100644 index 0000000000..f6043b265f --- /dev/null +++ b/test/integrations/destinations/freshsales/network.ts @@ -0,0 +1,484 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert', + method: 'POST' + }, + httpRes: { + data: { + "sales_account": { + "id": 70003771396, + "name": "postman2.0", + "address": "Red Colony", + "city": "Pune", + "state": "Goa", + "zipcode": null, + "country": null, + "number_of_employees": 11, + "annual_revenue": 1000, + "website": null, + "owner_id": null, + "phone": "919191919191", + "open_deals_amount": null, + "open_deals_count": null, + "won_deals_amount": null, + "won_deals_count": null, + "last_contacted": null, + "last_contacted_mode": null, + "facebook": null, + "twitter": null, + "linkedin": null, + "links": { + "conversations": "/crm/sales/sales_accounts/70003771396/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", + "document_associations": "/crm/sales/sales_accounts/70003771396/document_associations", + "notes": "/crm/sales/sales_accounts/70003771396/notes?include=creater", + "tasks": "/crm/sales/sales_accounts/70003771396/tasks?include=creater,owner,updater,targetable,users,task_type", + "appointments": "/crm/sales/sales_accounts/70003771396/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note" + }, + "custom_field": {}, + "created_at": "2022-08-17T04:15:00-04:00", + "updated_at": "2022-08-24T06:03:31-04:00", + "avatar": null, + "parent_sales_account_id": null, + "recent_note": null, + "last_contacted_via_sales_activity": null, + "last_contacted_sales_activity_mode": null, + "completed_sales_sequences": null, + "active_sales_sequences": null, + "last_assigned_at": null, + "tags": [], + "is_deleted": false, + "team_user_ids": null, + "has_connections": false, + "record_type_id": "71010794477" + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert?include=sales_accounts', + method: 'POST' + }, + httpRes: { + data: { + "contact": { + "id": 70042006456, + "first_name": "Rk", + "last_name": "Mishra", + "display_name": "Rk Mishra", + "avatar": null, + "job_title": null, + "city": null, + "state": null, + "zipcode": null, + "country": null, + "email": "testuser@google.com", + "emails": [ + { + "id": 70037311213, + "value": "testuser@google.com", + "is_primary": true, + "label": null, + "_destroy": false + } + ], + "time_zone": "IST", + "work_number": "9988776655", + "mobile_number": "19265559504", + "address": null, + "last_seen": null, + "lead_score": 26, + "last_contacted": null, + "open_deals_amount": null, + "won_deals_amount": null, + "links": { + "conversations": "/crm/sales/contacts/70042006456/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", + "timeline_feeds": "/crm/sales/contacts/70042006456/timeline_feeds", + "document_associations": "/crm/sales/contacts/70042006456/document_associations", + "notes": "/crm/sales/contacts/70042006456/notes?include=creater", + "tasks": "/crm/sales/contacts/70042006456/tasks?include=creater,owner,updater,targetable,users,task_type", + "appointments": "/crm/sales/contacts/70042006456/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note", + "reminders": "/crm/sales/contacts/70042006456/reminders?include=creater,owner,updater,targetable", + "duplicates": "/crm/sales/contacts/70042006456/duplicates", + "connections": "/crm/sales/contacts/70042006456/connections" + }, + "last_contacted_sales_activity_mode": null, + "custom_field": {}, + "created_at": "2022-08-09T03:22:12-04:00", + "updated_at": "2022-08-30T00:33:27-04:00", + "keyword": "drilling", + "medium": "facebook", + "last_contacted_mode": null, + "recent_note": null, + "won_deals_count": null, + "last_contacted_via_sales_activity": null, + "completed_sales_sequences": null, + "active_sales_sequences": null, + "web_form_ids": null, + "open_deals_count": null, + "last_assigned_at": "2022-08-29T05:51:24-04:00", + "tags": [], + "facebook": null, + "twitter": null, + "linkedin": null, + "is_deleted": false, + "team_user_ids": null, + "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "work_email": null, + "subscription_status": 1, + "subscription_types": "2;3;4;5;1", + "customer_fit": 2, + "record_type_id": "71010794476", + "whatsapp_subscription_status": 2, + "sms_subscription_status": 2, + "last_seen_chat": null, + "first_seen_chat": null, + "locale": null, + "total_sessions": null, + "phone_numbers": [], + "sales_accounts": [ + { + "partial": true, + "id": 70003771198, + "name": "div-quer", + "avatar": null, + "website": null, + "last_contacted": null, + "record_type_id": "71010794477", + "is_primary": true + }, + { + "partial": true, + "id": 70003825177, + "name": "BisleriGroup", + "avatar": null, + "website": null, + "last_contacted": null, + "record_type_id": "71010794477", + "is_primary": false + } + ] + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/selector/sales_activity_types', + method: 'GET' + }, + httpRes: { + data: { + "sales_activity_types": [ + { + "partial": true, + "id": 70000666879, + "name": "own-calender", + "internal_name": "cappointment", + "show_in_conversation": true, + "position": 1, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000663932, + "name": "fb-support", + "internal_name": "facebook", + "show_in_conversation": true, + "position": 2, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000663746, + "name": "twitter sales", + "internal_name": "twitter", + "show_in_conversation": true, + "position": 3, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000646396, + "name": "linked sales", + "internal_name": "linkedin", + "show_in_conversation": true, + "position": 4, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000642330, + "name": "facebook sales", + "internal_name": "facebook", + "show_in_conversation": true, + "position": 5, + "is_default": false, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612897, + "name": "Chat", + "internal_name": "chat", + "show_in_conversation": true, + "position": 6, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612898, + "name": "Phone", + "internal_name": "phone", + "show_in_conversation": true, + "position": 7, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612899, + "name": "Meeting", + "internal_name": "appointment", + "show_in_conversation": true, + "position": 8, + "is_default": true, + "is_checkedin": true + }, + { + "partial": true, + "id": 70000612900, + "name": "Task", + "internal_name": "task", + "show_in_conversation": true, + "position": 9, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612901, + "name": "Email", + "internal_name": "email", + "show_in_conversation": true, + "position": 10, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612902, + "name": "SMS Outgoing", + "internal_name": "sms_outgoing", + "show_in_conversation": true, + "position": 11, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612903, + "name": "Reminder", + "internal_name": "reminder", + "show_in_conversation": false, + "position": 12, + "is_default": true, + "is_checkedin": false + }, + { + "partial": true, + "id": 70000612904, + "name": "SMS Incoming", + "internal_name": "sms_incoming", + "show_in_conversation": true, + "position": 13, + "is_default": true, + "is_checkedin": false + } + ] + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert', + method: 'POST' + }, + httpRes: { + data: { + "contact": { + "id": 70054866612, + "first_name": null, + "last_name": null, + "display_name": "jamessampleton120@gmail.com", + "avatar": null, + "job_title": null, + "city": null, + "state": null, + "zipcode": null, + "country": null, + "email": "jamessampleton120@gmail.com", + "emails": [ + { + "id": 70047409219, + "value": "jamessampleton120@gmail.com", + "is_primary": true, + "label": null, + "_destroy": false + } + ], + "time_zone": null, + "work_number": null, + "mobile_number": null, + "address": null, + "last_seen": null, + "lead_score": 0, + "last_contacted": null, + "open_deals_amount": null, + "won_deals_amount": null, + "links": { + "conversations": "/crm/sales/contacts/70054866612/conversations/all?include=email_conversation_recipients%2Ctargetable%2Cphone_number%2Cphone_caller%2Cnote%2Cuser&per_page=3", + "timeline_feeds": "/crm/sales/contacts/70054866612/timeline_feeds", + "document_associations": "/crm/sales/contacts/70054866612/document_associations", + "notes": "/crm/sales/contacts/70054866612/notes?include=creater", + "tasks": "/crm/sales/contacts/70054866612/tasks?include=creater,owner,updater,targetable,users,task_type", + "appointments": "/crm/sales/contacts/70054866612/appointments?include=creater,owner,updater,targetable,appointment_attendees,conference,note", + "reminders": "/crm/sales/contacts/70054866612/reminders?include=creater,owner,updater,targetable", + "duplicates": "/crm/sales/contacts/70054866612/duplicates", + "connections": "/crm/sales/contacts/70054866612/connections" + }, + "last_contacted_sales_activity_mode": null, + "custom_field": {}, + "created_at": "2022-10-11T08:42:15-04:00", + "updated_at": "2022-10-11T08:42:15-04:00", + "keyword": null, + "medium": null, + "last_contacted_mode": null, + "recent_note": null, + "won_deals_count": null, + "last_contacted_via_sales_activity": null, + "completed_sales_sequences": null, + "active_sales_sequences": null, + "web_form_ids": null, + "open_deals_count": null, + "last_assigned_at": null, + "tags": [], + "facebook": null, + "twitter": null, + "linkedin": null, + "is_deleted": false, + "team_user_ids": null, + "external_id": null, + "work_email": null, + "subscription_status": 1, + "subscription_types": "2;3;4;5;1", + "customer_fit": 0, + "record_type_id": "71012139284", + "whatsapp_subscription_status": 2, + "sms_subscription_status": 2, + "last_seen_chat": null, + "first_seen_chat": null, + "locale": null, + "total_sessions": null, + "phone_numbers": [] + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/lists', + method: 'GET' + }, + httpRes: { + data: { + "lists": [ + { + "id": 70000053624, + "name": "Sample list" + }, + { + "id": 70000056575, + "name": "list1-test" + }, + { + "id": 70000058627, + "name": "Jio 5G Group" + }, + { + "id": 70000058628, + "name": "Airtel 5G Group" + }, + { + "id": 70000059716, + "name": "Voda 5G" + } + ], + "meta": { + "total_pages": 1, + "total": 5 + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://domain-rudder.myfreshworks.com/crm/sales/api/selector/lifecycle_stages', + method: 'GET' + }, + httpRes: { + data: { + "lifecycle_stages": [ + { + "id": 71012139274, + "name": "Sales Qualified Lead start", + "position": 1, + "disabled": false, + "default": true, + "type": "Sales Qualified Lead", + "contact_status_ids": [70000697858, 70000697859, 70000697860] + }, + { + "id": 71012139273, + "name": "Lead", + "position": 2, + "disabled": false, + "default": true, + "type": "Lead", + "contact_status_ids": [70000697854, 70000697855, 70000697856, 70000697857] + }, + { + "id": 71012806409, + "name": "final Customer", + "position": 3, + "disabled": false, + "default": false, + "type": "Custom", + "contact_status_ids": [70000736543, 70000736544] + }, + { + "id": 71012139275, + "name": "Customer", + "position": 4, + "disabled": false, + "default": true, + "type": "Customer", + "contact_status_ids": [70000697861, 70000697862] + } + ] + }, + status: 200 + }, + } +]; \ No newline at end of file diff --git a/test/integrations/destinations/freshsales/processor/data.ts b/test/integrations/destinations/freshsales/processor/data.ts new file mode 100644 index 0000000000..e1436e12b3 --- /dev/null +++ b/test/integrations/destinations/freshsales/processor/data.ts @@ -0,0 +1,2668 @@ +export const data = [ + { + "name": "freshsales", + "description": "Track call, event is not supported.", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn" + }, + "event": { + "name": "Add to Cart" + }, + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Event is a required field and should be a string", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Identify call for creating new user", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "rudderstack-476952domain3105.myfreshworks.com" + } + }, + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "email": "testuser@google.com", + "first_name": "Rk", + "last_name": "Mishra", + "mobileNumber": "1-926-555-9504", + "lifecycleStageId": 71010794467, + "phone": "9988776655", + "owner_id": "70000090119" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "contact": { + "emails": "testuser@google.com", + "last_name": "Mishra", + "created_at": "2022-06-22T10:57:58Z", + "first_name": "Rk", + "updated_at": "2022-06-22T10:57:58Z", + "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "work_number": "9988776655", + "mobile_number": "1-926-555-9504", + "lifecycle_stage_id": 71010794467 + }, + "unique_identifier": { + "emails": "testuser@google.com" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Identify call with numbers in lifecycleStageId, ownerId", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "rudderstack-476952domain3105.myfreshworks.com" + } + }, + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "email": "testuser@google.com", + "first_name": "Rk", + "last_name": "Mishra", + "mobileNumber": "1-926-555-9504", + "lifecycleStageId": 71010794467, + "phone": "9988776655", + "owner_id": "70000090119" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "contact": { + "emails": "testuser@google.com", + "last_name": "Mishra", + "created_at": "2022-06-22T10:57:58Z", + "first_name": "Rk", + "updated_at": "2022-06-22T10:57:58Z", + "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "work_number": "9988776655", + "mobile_number": "1-926-555-9504", + "lifecycle_stage_id": 71010794467 + }, + "unique_identifier": { + "emails": "testuser@google.com" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Identify call with wrong data type in lifecycleStageId, ownerId", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "rudderstack-476952domain3105.myfreshworks.com" + } + }, + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "email": "testuser@google.com", + "first_name": "Rk", + "last_name": "Mishra", + "mobileNumber": "1-926-555-9504", + "lifecycleStageId": "rudderSample", + "phone": "9988776655", + "ownerId": "rudderSample" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert", + "headers": { + "Authorization": "Token token=dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "contact": { + "emails": "testuser@google.com", + "first_name": "Rk", + "last_name": "Mishra", + "work_number": "9988776655", + "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "mobile_number": "1-926-555-9504", + "created_at": "2022-06-22T10:57:58Z", + "updated_at": "2022-06-22T10:57:58Z" + }, + "unique_identifier": { + "emails": "testuser@google.com" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Identify call, email is not provided.", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "rudderstack-476952domain3105.myfreshworks.com" + } + }, + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "first_name": "Rk", + "last_name": "Mishra", + "mobileNumber": "1-926-555-9504", + "lifecycleStageId": "rudderSample", + "phone": "9988776655", + "owner_id": "rudderSample" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"email\"", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Group call: testing with mock api", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "testuser@google.com" + } + }, + "traits": { + "groupType": "accounts", + "name": "Mark Twain", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "contact": { + "sales_accounts": [ + { + "id": 70003771198, + "name": "div-quer", + "avatar": null, + "partial": true, + "website": null, + "is_primary": true, + "last_contacted": null, + "record_type_id": "71010794477" + }, + { + "id": 70003825177, + "name": "BisleriGroup", + "avatar": null, + "partial": true, + "website": null, + "is_primary": false, + "last_contacted": null, + "record_type_id": "71010794477" + }, + { + "id": 70003771396, + "is_primary": false + } + ] + }, + "unique_identifier": { + "emails": "testuser@google.com" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Group call: name is required field.", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "testuser@google.com" + } + }, + "traits": { + "groupType": "accounts", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"name\"", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "missing message type", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "testuser4google.com" + } + }, + "traits": { + "name": "Mark Twain", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Message Type is not present. Aborting message.", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Wrong message type", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "testuser4google.com" + } + }, + "traits": { + "name": "Mark Twain", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Colony", + "state": "Haryana" + }, + "type": "page", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "message type page not supported", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Group call: user email is missing", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + }, + "message": { + "messageId": "sadjb-1e2r3fhgb-12bvbbj", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + }, + "traits": {} + }, + "traits": { + "groupType": "accounts", + "name": "div-quer", + "phone": "919191919191", + "numberOfEmployees": 51, + "annualRevenue": 1000, + "address": "Red Colony", + "city": "Lal colony", + "state": "Haryana" + }, + "type": "group", + "sentAt": "2022-04-22T10:57:58Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert", + "headers": { + "Authorization": "Token token=dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "unique_identifier": { + "name": "div-quer" + }, + "sales_account": { + "name": "div-quer", + "phone": "919191919191", + "number_of_employees": 51, + "annual_revenue": 1000, + "address": "", + "city": "Lal colony", + "state": "Haryana", + "created_at": "2022-06-22T10:57:58Z", + "updated_at": "2022-06-22T10:57:58Z" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Identify call: Email is not present", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2022-06-22T10:57:58Z", + "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "advertisingId": "T0T0T072-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 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "os": { + "name": "iOS", + "version": "14.4.1" + }, + "screen": { + "density": 2 + } + }, + "traits": { + "first_name": "Rk", + "last_name": "Narayan", + "mobileNumber": "1-926-555-9504", + "phone": "9988776655" + }, + "type": "identify", + "sentAt": "2022-04-22T10:57:58Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"email\"", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call, event is not supported.", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn" + }, + "event": "Add to Cart", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "event name Add to Cart is not supported. Aborting!", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: some required properties is missing for sales_activity", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"properties.title\"", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: for salesActivityName", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "salesActivityName": "own-calender", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "test", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com", + "rudderEventsToFreshsalesEvents": [ + { + "from": "test", + "to": "sales_activity" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "sales_activity": { + "title": "new Contact", + "created_at": "2020-10-20T08:14:28.778Z", + "end_date": "2022-06-04T17:30:00+05:30", + "owner_id": "70054866612", + "start_date": "2021-05-04T17:00:00+05:30", + "updated_at": "2020-10-20T08:14:28.778Z", + "targetable_id": 70054866612, + "targetable_type": "Contact", + "sales_activity_name": "own-calender", + "sales_activity_type_id": 70000666879 + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "userId": "", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: lifecycle_stage_id", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "email": "jamessampleton3@gmail.com", + "lifecycleStageId": "71012139273", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert", + "headers": { + "Authorization": "Token token=dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "contact": { + "lifecycle_stage_id": "71012139273" + }, + "unique_identifier": { + "emails": "jamessampleton3@gmail.com" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: In lifecycle stage, email is missing", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "lifecycleStageId": "71012139273", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "email is required for updating life Cycle Stages. Aborting!", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: Either of lifecycleStageName or lifecycleStageId is required", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "jamessampleton3@gmail.com", + "properties": { + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Either of lifecycleStageName or lifecycleStageId is required. Aborting!", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: Either of sales activity name or sales activity type id is required", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Either of sales activity name or sales activity type id is required. Aborting!", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: Either of email or targetable_id is required for creating sales activity.", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "salesActivityName": "own-calender", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Either of email or targetable_id is required for creating sales activity. Aborting!", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: sales activity with salesActivityTypeId", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "jamessampleton3@gmail.com", + "properties": { + "salesActivityTypeId": "70000663932", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "sales_activity": { + "title": "new Contact", + "created_at": "2020-10-20T08:14:28.778Z", + "end_date": "2022-06-04T17:30:00+05:30", + "owner_id": "70054866612", + "start_date": "2021-05-04T17:00:00+05:30", + "updated_at": "2020-10-20T08:14:28.778Z", + "targetable_id": 70054866612, + "targetable_type": "Contact", + "sales_activity_type_id": "70000663932" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: updated sales activity with salesActivityTypeId and targetableId", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "id": "70052305908", + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "salesActivityTypeId": "70000663932", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "sales_activity": { + "title": "new Contact", + "created_at": "2020-10-20T08:14:28.778Z", + "end_date": "2022-06-04T17:30:00+05:30", + "owner_id": "70054866612", + "start_date": "2021-05-04T17:00:00+05:30", + "updated_at": "2020-10-20T08:14:28.778Z", + "targetable_id": "70052305908", + "targetable_type": "Contact", + "sales_activity_type_id": "70000663932" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Unsupported message Type", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "type": "page", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "jamessampleton3@gmail.com", + "properties": { + "lifecycleStageId": "71012139273", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "message type page not supported", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: with wrong sales activity name", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + }, + "externalId": { + "type": "Contact" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "email": "test@rudderstack.com", + "properties": { + "product_name": "Shirt", + "brand": "Wrogn", + "salesActivityName": "own-list", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612" + }, + "event": "sales_activity", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "sales Activity own-list doesn't exists. Aborting!", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: update contacts with sales Activity name", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "email": "jamessampleton6@gmail.com", + "lifecycleStageName": "final Customer", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "contact": { + "lifecycle_stage_id": 71012806409 + }, + "unique_identifier": { + "emails": "jamessampleton6@gmail.com" + } + }, + "JSON_ARRAY": {} + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Content-Type": "application/json", + "Authorization": "Token token=dummyApiKey" + }, + "version": "1", + "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "freshsales", + "description": "Track call: with wrong lifecycleStageName", + "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", + "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": "/destinations/amplitude", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/amplitude", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8", + "originalTimestamp": "2020-10-20T08:14:28.778Z", + "anonymousId": "my-anonymous-id-new", + "userId": "newUserIdAlias", + "properties": { + "email": "jamessampleton6@gmail.com", + "lifecycleStageName": "final ExCustomer", + "title": "new Contact", + "startDate": "2021-05-04T17:00:00+05:30", + "endDate": "2022-06-04T17:30:00+05:30", + "ownerId": "70054866612", + "targetableType": "Contact" + }, + "event": "lifecycle_stage", + "previousId": "sampleusrRudder3", + "sentAt": "2020-10-20T08:14:28.778Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "domain": "domain-rudder.myfreshworks.com" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "failed to fetch lifeCycleStages with final ExCustomer", + "statTags": { + "destType": "FRESHSALES", + "errorCategory": "network", + "errorType": "aborted", + "feature": "processor", + "implementation": "native", + "meta": "instrumentation", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/freshsales/router/data.ts b/test/integrations/destinations/freshsales/router/data.ts new file mode 100644 index 0000000000..8548d337b3 --- /dev/null +++ b/test/integrations/destinations/freshsales/router/data.ts @@ -0,0 +1,175 @@ +export const data = [ + { + name: 'freshsales', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + context: { + device: { name: 'Mi', token: 'dummyDeviceToken' }, + os: { name: 'android' }, + traits: { + address: { + city: 'city', + country: 'country', + postalCode: 'postalCode', + state: 'state', + street: 'street', + }, + email: 'user112@mail.com', + firstName: 'sample1', + lastName: 'user1', + }, + }, + messageId: '8184ebd7-3a19-45a3-a340-d6f449c63d27', + originalTimestamp: '2022-08-30T11:28:48.429+05:30', + receivedAt: '2022-08-30T11:28:43.648+05:30', + request_ip: '[::1]', + rudderId: 'ed33ef22-569d-44b1-a6cb-063c69dca8f0', + sentAt: '2022-08-30T11:28:48.429+05:30', + timestamp: '2022-08-30T11:28:43.647+05:30', + type: 'identify', + userId: 'user113', + }, + destination: { + ID: '2E3xCNR3sae33y3AkGzuQ3ym05v', + Name: 'test', + DestinationDefinition: { + ID: '2E3x3AwySRvh6vXgYslvYApyFPb', + Name: 'FRESHSALES', + DisplayName: 'Freshsales', + Config: { + destConfig: { defaultConfig: ['apiKey', 'domain'] }, + excludeKeys: [], + includeKeys: ['apiKey', 'domain'], + saveDestinationResponse: true, + supportedMessageTypes: ['identify', 'group'], + supportedSourceTypes: [ + 'amp', + 'android', + 'cordova', + 'cloud', + 'flutter', + 'ios', + 'reactnative', + 'unity', + 'warehouse', + 'web', + ], + transformAt: 'processor', + transformAtV1: 'processor', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'hrkjfergeferf', + domain: 'rudderstack-479541159204968909.myfreshworks.com', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + RevisionID: '2E3xCLWeb83vOGDh0mkN4Auei3i', + }, + metadata: { userId: 'u1' }, + }, + ], + destType: 'freshsales', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://rudderstack-479541159204968909.myfreshworks.com/crm/sales/api/contacts/upsert', + headers: { + Authorization: 'Token token=hrkjfergeferf', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + contact: { + emails: 'user112@mail.com', + first_name: 'sample1', + last_name: 'user1', + external_id: 'user113', + address: 'street city state country postalCode', + city: 'city', + state: 'state', + country: 'country', + zipcode: 'postalCode', + created_at: '2022-08-30T11:28:43.647+05:30', + updated_at: '2022-08-30T11:28:43.647+05:30', + }, + unique_identifier: { emails: 'user112@mail.com' }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2E3xCNR3sae33y3AkGzuQ3ym05v', + Name: 'test', + DestinationDefinition: { + ID: '2E3x3AwySRvh6vXgYslvYApyFPb', + Name: 'FRESHSALES', + DisplayName: 'Freshsales', + Config: { + destConfig: { defaultConfig: ['apiKey', 'domain'] }, + excludeKeys: [], + includeKeys: ['apiKey', 'domain'], + saveDestinationResponse: true, + supportedMessageTypes: ['identify', 'group'], + supportedSourceTypes: [ + 'amp', + 'android', + 'cordova', + 'cloud', + 'flutter', + 'ios', + 'reactnative', + 'unity', + 'warehouse', + 'web', + ], + transformAt: 'processor', + transformAtV1: 'processor', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'hrkjfergeferf', + domain: 'rudderstack-479541159204968909.myfreshworks.com', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + RevisionID: '2E3xCLWeb83vOGDh0mkN4Auei3i', + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/ga/processor/data.ts b/test/integrations/destinations/ga/processor/data.ts index aa468b5038..d2ccfa4a5b 100644 --- a/test/integrations/destinations/ga/processor/data.ts +++ b/test/integrations/destinations/ga/processor/data.ts @@ -9976,4 +9976,4 @@ export const data = [ } } } -].map((d) => ({ ...d, mockFns })) \ No newline at end of file +].map((d) => ({ ...d, mockFns })) diff --git a/test/integrations/destinations/ga/router/data.ts b/test/integrations/destinations/ga/router/data.ts index f0c2b86377..912d5490e7 100644 --- a/test/integrations/destinations/ga/router/data.ts +++ b/test/integrations/destinations/ga/router/data.ts @@ -1,487 +1,350 @@ export const mockFns = (_) => { - // @ts-ignore - jest - .useFakeTimers() - .setSystemTime(new Date('2023-09-29')); + // @ts-ignore + jest.useFakeTimers().setSystemTime(new Date('2023-09-29')); }; export const data = [ - { - name: 'ga', - description: 'Test 0', - feature: 'router', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - input: [ - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Rudder 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-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "name", - "to": "contentGroup2" - } - ] - }, - "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", - "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": "/abc", - "referrer": "q", - "search": "", - "title": "a", - "url": "https://www.example.com/abc" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ], - destType: 'ga', + { + name: 'ga', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + channel: 'web', + context: { + traits: { name: 'Rudder 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 }, }, - method: 'POST', + properties: { plan: 'standard plan', name: 'rudder test' }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { + trackingID: 'UA-165994240-1', + doubleClick: true, + enhancedLinkAttribution: true, + classic: true, + ignoredReferrers: '', + serverClassic: false, + includeSearch: true, + trackCategorizedPages: true, + trackNamedPages: true, + sampleRate: '100', + siteSpeedSampleRate: '1', + setAllMappedProps: true, + enableServerSideIdentify: true, + serverSideIdentifyEventCategory: 'name', + serverSideIdentifyEventAction: 'action1', + anonymizeIp: true, + domain: 'domain', + enhancedEcommerce: true, + nonInteraction: true, + optimize: 'abc123', + sendUserId: true, + useGoogleAmpClientId: true, + 'web-useNativeSDK': true, + dimensions: [ + { from: 'name', to: 'dimension1' }, + { from: 'custom2', to: 'dimension2' }, + ], + metrics: [ + { from: 'email', to: 'metric1' }, + { from: 'trait2', to: 'metric2' }, + ], + resetCustomDimensionsOnPage: [ + { resetCustomDimensionsOnPage: 'abc' }, + { resetCustomDimensionsOnPage: 'xyz' }, + ], + contentGroupings: [ + { from: 'plan', to: 'contentGroup1' }, + { from: 'name', to: 'contentGroup2' }, + ], + }, + 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', + 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: '/abc', + referrer: 'q', + search: '', + title: 'a', + url: 'https://www.example.com/abc', + }, + integrations: { All: true }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { + Config: { + trackingID: 'UA-165994240-1', + doubleClick: true, + enhancedLinkAttribution: true, + classic: true, + ignoredReferrers: '', + serverClassic: false, + includeSearch: true, + trackCategorizedPages: true, + trackNamedPages: true, + sampleRate: '100', + siteSpeedSampleRate: '1', + setAllMappedProps: true, + enableServerSideIdentify: true, + serverSideIdentifyEventCategory: 'cat1', + serverSideIdentifyEventAction: 'action1', + anonymizeIp: true, + domain: 'domain', + enhancedEcommerce: true, + nonInteraction: true, + optimize: 'abc123', + sendUserId: true, + useGoogleAmpClientId: true, + 'web-useNativeSDK': true, + dimensions: [ + { from: 'name', to: 'dimension1' }, + { from: 'custom2', to: 'dimension2' }, + ], + metrics: [ + { from: 'email', to: 'metric1' }, + { from: 'trait2', to: 'metric2' }, + ], + resetCustomDimensionsOnPage: [ + { resetCustomDimensionsOnPage: 'abc' }, + { resetCustomDimensionsOnPage: 'xyz' }, + ], + contentGroupings: [ + { from: 'plan', to: 'contentGroup1' }, + { from: 'prop2', to: 'contentGroup2' }, + ], + }, + Enabled: true, + }, }, + ], + destType: 'ga', }, - output: { - response: { - status: 200, - body: { - output: [ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "action1", - "ec": "Rudder Test", - "cd1": "Rudder Test", - "cg2": "Rudder Test", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "uid": "123456", - "cid": "00000000000000000000000000", - "ni": 1, - "uip": "0.0.0.0", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ul": "en-US", - "qt": 124893881701, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "name", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "v": "1", - "t": "pageview", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "uip": "0.0.0.0", - "ul": "en-US", - "dh": "www.example.com", - "dl": "https://www.example.com/abc", - "dp": "%2Fabc", - "dr": "q", - "dt": "a", - "qt": 124893881701, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/collect', + headers: {}, + params: { + ea: 'action1', + ec: 'Rudder Test', + cd1: 'Rudder Test', + cg2: 'Rudder Test', + v: '1', + t: 'event', + tid: 'UA-165994240-1', + ds: 'web', + an: 'RudderLabs JavaScript SDK', + av: '1.0.0', + aiid: 'com.rudderlabs.javascript', + npa: 1, + aip: 1, + uid: '123456', + cid: '00000000000000000000000000', + ni: 1, + uip: '0.0.0.0', + ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ul: 'en-US', + qt: 124893881701, + }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, + files: {}, + userId: '00000000000000000000000000', + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + trackingID: 'UA-165994240-1', + doubleClick: true, + enhancedLinkAttribution: true, + classic: true, + ignoredReferrers: '', + serverClassic: false, + includeSearch: true, + trackCategorizedPages: true, + trackNamedPages: true, + sampleRate: '100', + siteSpeedSampleRate: '1', + setAllMappedProps: true, + enableServerSideIdentify: true, + serverSideIdentifyEventCategory: 'name', + serverSideIdentifyEventAction: 'action1', + anonymizeIp: true, + domain: 'domain', + enhancedEcommerce: true, + nonInteraction: true, + optimize: 'abc123', + sendUserId: true, + useGoogleAmpClientId: true, + 'web-useNativeSDK': true, + dimensions: [ + { from: 'name', to: 'dimension1' }, + { from: 'custom2', to: 'dimension2' }, + ], + metrics: [ + { from: 'email', to: 'metric1' }, + { from: 'trait2', to: 'metric2' }, + ], + resetCustomDimensionsOnPage: [ + { resetCustomDimensionsOnPage: 'abc' }, + { resetCustomDimensionsOnPage: 'xyz' }, + ], + contentGroupings: [ + { from: 'plan', to: 'contentGroup1' }, + { from: 'name', to: 'contentGroup2' }, + ], + }, + Enabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/collect', + headers: {}, + params: { + v: '1', + t: 'pageview', + tid: 'UA-165994240-1', + ds: 'web', + an: 'RudderLabs JavaScript SDK', + av: '1.0.0', + aiid: 'com.rudderlabs.javascript', + npa: 1, + aip: 1, + cid: '00000000000000000000000000', + ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + uid: '12345', + uip: '0.0.0.0', + ul: 'en-US', + dh: 'www.example.com', + dl: 'https://www.example.com/abc', + dp: '%2Fabc', + dr: 'q', + dt: 'a', + qt: 124893881701, + }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, + files: {}, + userId: '00000000000000000000000000', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + trackingID: 'UA-165994240-1', + doubleClick: true, + enhancedLinkAttribution: true, + classic: true, + ignoredReferrers: '', + serverClassic: false, + includeSearch: true, + trackCategorizedPages: true, + trackNamedPages: true, + sampleRate: '100', + siteSpeedSampleRate: '1', + setAllMappedProps: true, + enableServerSideIdentify: true, + serverSideIdentifyEventCategory: 'cat1', + serverSideIdentifyEventAction: 'action1', + anonymizeIp: true, + domain: 'domain', + enhancedEcommerce: true, + nonInteraction: true, + optimize: 'abc123', + sendUserId: true, + useGoogleAmpClientId: true, + 'web-useNativeSDK': true, + dimensions: [ + { from: 'name', to: 'dimension1' }, + { from: 'custom2', to: 'dimension2' }, + ], + metrics: [ + { from: 'email', to: 'metric1' }, + { from: 'trait2', to: 'metric2' }, + ], + resetCustomDimensionsOnPage: [ + { resetCustomDimensionsOnPage: 'abc' }, + { resetCustomDimensionsOnPage: 'xyz' }, + ], + contentGroupings: [ + { from: 'plan', to: 'contentGroup1' }, + { from: 'prop2', to: 'contentGroup2' }, + ], }, + Enabled: true, + }, }, + ], }, - } + }, + }, + }, ].map((d) => ({ ...d, mockFns })); diff --git a/test/integrations/destinations/ga360/processor/data.ts b/test/integrations/destinations/ga360/processor/data.ts index 4ed196d8c5..66de4079ff 100644 --- a/test/integrations/destinations/ga360/processor/data.ts +++ b/test/integrations/destinations/ga360/processor/data.ts @@ -1,9456 +1,9456 @@ export const mockFns = (_) => { - // @ts-ignore - jest - .useFakeTimers() - .setSystemTime(new Date('2023-09-29')); + // @ts-ignore + jest + .useFakeTimers() + .setSystemTime(new Date('2023-09-29')); }; export const data = [ - { - "name": "ga360", - "description": "Test 0", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Rudder 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-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "name", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "action1", - "ec": "Rudder Test", - "cd1": "Rudder Test", - "cg2": "Rudder Test", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "uid": "123456", - "cid": "00000000000000000000000000", - "ni": 1, - "uip": "0.0.0.0", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ul": "en-US", - "qt": 124901802438 - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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": "/abc", - "referrer": "q", - "search": "", - "title": "a", - "url": "https://www.example.com/abc" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "v": "1", - "t": "pageview", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "uip": "0.0.0.0", - "ul": "en-US", - "dh": "www.example.com", - "dl": "https://www.example.com/abc", - "dp": "%2Fabc", - "dr": "q", - "dt": "a", - "qt": 124893881701, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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": "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "test track event GA3", - "properties": { - "category": "test-category", - "user_actual_role": "system_admin, system_user", - "user_actual_id": 12345 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ec": "test-category", - "ni": 1, - "v": "1", - "el": "event", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ea": "test track event GA3", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "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": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "purchase", - "tr": 99.99, - "ev": 100, - "pr1id": "p-298", - "pr1cd1": "my product", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr2id": "p-299", - "pr2cd1": "other product", - "pr2nm": "other product", - "pr2pr": 24.75, - "ea": "order completed", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ti": "rudderstackorder1", - "ts": 13.99, - "tt": 20.99, - "cu": "INR", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ni": 1, - "pr1qt": 1, - "pr2qt": 3, - "ul": "en-US", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "cat 1", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "product added", - "ec": "cat 1", - "pa": "add", - "pr1cd1": "my product 1", - "pr1id": "p-298", - "cd1": "my product 1", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "pr1nm": "my product 1", - "pr1ca": "cat 1", - "cu": "CAD", - "pr1ps": 4.5, - "pr1pr": 24.75, - "pr1qt": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ni": 1, - "ul": "en-US", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product removed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "cat 1", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "product removed", - "ec": "cat 1", - "pa": "remove", - "pr1cd1": "my product 1", - "pr1id": "p-298", - "cd1": "my product 1", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "pr1nm": "my product 1", - "pr1ca": "cat 1", - "cu": "CAD", - "pr1ps": 4.5, - "pr1pr": 24.75, - "pr1qt": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product viewed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "cat 1", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "product viewed", - "ec": "cat 1", - "pa": "detail", - "pr1cd1": "my product 1", - "pr1id": "p-298", - "cd1": "my product 1", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "pr1nm": "my product 1", - "pr1ca": "cat 1", - "cu": "CAD", - "pr1ps": 4.5, - "pr1pr": 24.75, - "pr1qt": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product removed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "cat 1", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "product removed", - "ec": "cat 1", - "pa": "remove", - "pr1cd1": "my product 1", - "pr1id": "p-298", - "cd1": "my product 1", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "pr1nm": "my product 1", - "pr1ca": "cat 1", - "cu": "CAD", - "pr1ps": 4.5, - "pr1pr": 24.75, - "pr1qt": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product viewed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "cat 1", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "product viewed", - "ec": "cat 1", - "pa": "detail", - "pr1cd1": "my product 1", - "pr1id": "p-298", - "cd1": "my product 1", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "pr1nm": "my product 1", - "pr1ca": "cat 1", - "cu": "CAD", - "pr1ps": 4.5, - "pr1pr": 24.75, - "pr1qt": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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": "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list filtered", - "properties": { - "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" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "product list filtered", - "ec": "cat 1", - "pa": "detail", - "il1pi1id": "507f1f77bcf86cd799439011", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "il1nm": "1234", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "uid": "12345", - "il1pi1qt": 1, - "il1pi1va": "department:beauty,price:under::price:desc", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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": "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "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": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "product list viewed", - "ec": "cat 1", - "pa": "detail", - "il1pi1id": "507f1f77bcf86cd799439011", - "il1pi1ps": 10, - "il1pi2id": "507f1f77bcf86cdef799439011", - "il1pi2ps": -10, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "il1nm": "1234", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "uid": "12345", - "il1pi1qt": 1, - "il1pi1va": "department:beauty,price:under::price:desc", - "il1pi2qt": 1, - "il1pi2va": "department:beauty,price:under::price:desc", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product clicked", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product", - "category": "cat 1", - "sku": "p-298", - "list": "search results", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "product clicked", - "ec": "cat 1", - "pa": "click", - "pr1cd1": "my product", - "pr1id": "p-298", - "cd1": "my product", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "pr1nm": "my product", - "pr1ca": "cat 1", - "cu": "CAD", - "pr1pr": 24.75, - "pr1qt": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "pal": "search results", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "promotion viewed", - "properties": { - "currency": "CAD", - "promotion_id": "PROMO_1234", - "name": "my product", - "creative": "summer_banner2", - "position": "banner_slot1", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "promotion viewed", - "ec": "EnhancedEcommerce", - "cu": "CAD", - "promoa": "view", - "pa": "view", - "cd1": "my product", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "promo1id": "PROMO_1234", - "promo1cr": "summer_banner2", - "promo1ps": "banner_slot1", - "promo1nm": "my product", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "promotion clicked", - "properties": { - "currency": "CAD", - "promotion_id": "PROMO_1234", - "name": "my product", - "creative": "summer_banner2", - "position": "banner_slot1", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "promotion clicked", - "ec": "EnhancedEcommerce", - "cu": "CAD", - "promoa": "promo_click", - "pa": "promo_click", - "cd1": "my product", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "promo1id": "PROMO_1234", - "promo1cr": "summer_banner2", - "promo1ps": "banner_slot1", - "promo1nm": "my product", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout started", - "properties": { - "currency": "CAD", - "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": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "checkout", - "pr1id": "p-298", - "pr1cd1": "my product", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr2id": "p-299", - "pr2cd1": "my product 2", - "pr2nm": "my product 2", - "pr2pr": 24.75, - "ea": "checkout started", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "cu": "CAD", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "cos": 1, - "pr1qt": 1, - "pr2qt": 1, - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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": { - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order updated", - "properties": { - "currency": "CAD", - "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": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "checkout", - "pr1id": "p-298", - "pr1cd1": "my product", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr2id": "p-299", - "pr2cd1": "my product 2", - "pr2nm": "my product 2", - "pr2pr": 24.75, - "ea": "order updated", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "cu": "CAD", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "cos": 1, - "pr1qt": 1, - "pr2qt": 1, - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout step viewed", - "properties": { - "currency": "CAD", - "step": 1 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "checkout", - "ea": "checkout step viewed", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "cos": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout step completed", - "properties": { - "currency": "CAD", - "step": 1, - "paymentMethod": "Visa" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "checkout_option", - "ea": "checkout step completed", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "cos": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order refunded", - "properties": { - "products": [ - { - "quantity": 1, - "sku": "p-298" - }, - { - "quantity": 1, - "sku": "p-299" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ea": "order refunded", - "ec": "EnhancedEcommerce", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "pa": "refund", - "pr1id": "p-298", - "pr1qt": 1, - "pr2id": "p-299", - "ul": "en-US", - "pr2qt": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 19", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order starterefundedd", - "properties": { - "products": [ - { - "quantity": 1, - "sku": "p-298" - }, - { - "quantity": 1, - "sku": "p-299" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ea": "order starterefundedd", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 20", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order starterefundedd", - "properties": { - "products": [ - { - "quantity": 1, - "sku": "p-298" - }, - { - "quantity": 1, - "sku": "p-299" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ea": "order starterefundedd", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order starterefundedd", - "properties": { - "products": [ - { - "quantity": 1, - "sku": "p-298" - }, - { - "quantity": 1, - "sku": "p-299" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "aip": 1, - "cid": "00000000000000000000000000", - "ea": "order starterefundedd", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order starterefundedd", - "properties": { - "products": [ - { - "quantity": 1, - "sku": "p-298" - }, - { - "quantity": 1, - "sku": "p-299" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "cid": "00000000000000000000000000", - "ea": "order starterefundedd", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order starterefundedd", - "properties": { - "products": [ - { - "quantity": 1, - "sku": "p-298" - }, - { - "quantity": 1, - "sku": "p-299" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ea": "order starterefundedd", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "linkid test", - "properties": { - "linkid": "abc123", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "linkid": "abc123", - "cid": "00000000000000000000000000", - "ea": "linkid test", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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": { - "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 - }, - "campaign": { - "name": "sampleName", - "source": "sampleSource", - "medium": "sampleMedium", - "content": "sampleContent", - "term": "sampleTerm" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "campaign test", - "properties": { - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "cn": "sampleName", - "cs": "sampleSource", - "cm": "sampleMedium", - "cc": "sampleContent", - "ck": "sampleTerm", - "cid": "00000000000000000000000000", - "ea": "campaign test", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 26", - "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 - }, - "campaign": { - "name": "sampleName", - "source": "sampleSource", - "medium": "sampleMedium", - "content": "sampleContent", - "term": "sampleTerm" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "event": "campaign test", - "properties": { - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "cn": "sampleName", - "cs": "sampleSource", - "cm": "sampleMedium", - "cc": "sampleContent", - "ck": "sampleTerm", - "cid": "00000000000000000000000000", - "ea": "campaign test", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "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 - }, - "campaign": { - "name": "sampleName", - "source": "sampleSource", - "medium": "sampleMedium", - "content": "sampleContent", - "term": "sampleTerm" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "event": "campaign test", - "properties": { - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ul": "en-US", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "cn": "sampleName", - "cs": "sampleSource", - "cm": "sampleMedium", - "cc": "sampleContent", - "ck": "sampleTerm", - "cid": "00000000000000000000000000", - "ea": "campaign test", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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.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": "GA Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "identify", - "messageId": "bc8a6af8-37fd-46a9-9592-ea29a256435f", - "originalTimestamp": "2020-06-22T11:30:32.493Z", - "anonymousId": "38e169a1-3234-46f7-9ceb-c1a6a69005fe", - "userId": "123", - "integrations": { - "All": true - }, - "sentAt": "2020-06-22T11:30:32.494Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "User Enriched", - "dt": "GA Ecommerce Test", - "ec": "All", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.1.2", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "uid": "123", - "cid": "38e169a1-3234-46f7-9ceb-c1a6a69005fe", - "ni": 1, - "ua": "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", - "ul": "en-GB", - "qt": 103120167507, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "38e169a1-3234-46f7-9ceb-c1a6a69005fe" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "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": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "v": "1", - "t": "pageview", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "uip": "0.0.0.0", - "qt": 124893881701, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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", - "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": "/abc", - "referrer": "", - "search": "?xyz=1", - "title": "", - "url": "https://www.example.com/abc" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "v": "1", - "t": "pageview", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "uip": "0.0.0.0", - "dh": "www.example.com", - "dl": "https://www.example.com/abc", - "dp": "%2Fabc%3Fxyz%3D1", - "qt": 124893881701, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "integrations": { - "All": true - }, - "event": "sample event", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ea": "sample event", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "uip": "0.0.0.0", - "qt": 124893881701, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Order Refunded", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "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": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "refund", - "ev": 100, - "pr1id": "p-298", - "pr1cd1": "my product", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr1qt": 1, - "pr2id": "p-299", - "pr2cd1": "other product", - "pr2nm": "other product", - "pr2pr": 24.75, - "pr2qt": 3, - "ea": "Order Refunded", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "ti": "rudderstackorder1", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 33", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Order Refunded", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ev": 100, - "pa": "refund", - "ti": "rudderstackorder1", - "ea": "Order Refunded", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 34", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Order Refunded", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ev": 100, - "pa": "refund", - "ti": "rudderstackorder1", - "ea": "Order Refunded", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 35", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Order Refunded", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298", - "product_id": "1" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299", - "product_id": "2" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ev": 100, - "pa": "refund", - "pr1id": "1", - "pr1cd1": "my product", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr1qt": 1, - "pr2id": "2", - "pr2cd1": "other product", - "pr2nm": "other product", - "pr2pr": 24.75, - "pr2qt": 3, - "ea": "Order Refunded", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "ti": "rudderstackorder1", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Cart Shared", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298", - "product_id": "1" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299", - "product_id": "2" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ev": 100, - "ea": "Cart Shared", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "st": " 1 2", - "ul": "en-US", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Product Shared", - "properties": { - "product_id": "rudderstackorder1", - "total": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "url": "https://www.example.com/abc" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ev": 100, - "ea": "Product Shared", - "ec": "All", - "ni": 1, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "st": "https://www.example.com/abc", - "dh": "www.example.com", - "dl": "https://www.example.com/abc", - "dp": "%2Fabc", - "ul": "en-US", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Product List Clicked", - "properties": { - "list_id": "Sample Product List", - "category": "Sample Product List", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298", - "product_id": "1" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299", - "product_id": "2" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "Product List Clicked", - "ec": "Sample Product List", - "pa": "click", - "il1pi1id": "1", - "pr1cd1": "my product", - "il1pi1nm": "my product", - "il1pi1pr": 24.75, - "il1pi2id": "2", - "pr2cd1": "other product", - "il1pi2nm": "other product", - "il1pi2pr": 24.75, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "il1nm": "Sample Product List", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "uid": "12345", - "ni": 1, - "il1pi2qt": 3, - "il1pi1qt": 1, - "ul": "en-US", - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Product List Clicked", - "properties": { - "list_id": "Sample Product List", - "category": "Sample Product List", - "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": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "Product List Clicked", - "ec": "Sample Product List", - "pa": "click", - "il1pi1id": "p-298", - "pr1cd1": "my product", - "il1pi1nm": "my product", - "il1pi1pr": 24.75, - "il1pi2id": "p-299", - "pr2cd1": "other product", - "il1pi2nm": "other product", - "il1pi2pr": 24.75, - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "il1nm": "Sample Product List", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "uid": "12345", - "ul": "en-US", - "il1pi2qt": 3, - "il1pi1qt": 1, - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Product List Clicked", - "properties": { - "list_id": "Sample Product List", - "category": "Sample Product List", - "products": [] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ni": 1, - "ea": "Product List Clicked", - "ec": "Sample Product List", - "pa": "click", - "el": "event", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ul": "en-US", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "il1nm": "Sample Product List", - "uid": "12345", - "cid": "00000000000000000000000000", - "qt": 124893881700 - }, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Order Cancelled", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298", - "product_id": "1" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299", - "product_id": "2" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "refund", - "ev": 100, - "tr": 99.99, - "pr1id": "1", - "pr1cd1": "my product", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr2id": "2", - "pr2cd1": "other product", - "pr2nm": "other product", - "pr2pr": 24.75, - "ea": "Order Cancelled", - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ti": "rudderstackorder1", - "ts": 13.99, - "tt": 20.99, - "cu": "INR", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "pr1qt": 1, - "pr2qt": 3, - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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": { - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Order Cancelled", - "properties": { - "order_id": "rudderstackorder1", - "value": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298", - "product_id": "1" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299", - "product_id": "2" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "refund", - "tr": 99.99, - "pr1id": "1", - "pr1cd1": "my product", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr2id": "2", - "pr2cd1": "other product", - "pr2nm": "other product", - "pr2pr": 24.75, - "ea": "Order Cancelled", - "ev": 100, - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ti": "rudderstackorder1", - "ts": 13.99, - "tt": 20.99, - "cu": "INR", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "pr1qt": 1, - "pr2qt": 3, - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Order Cancelled", - "properties": { - "order_id": "rudderstackorder1", - "revenue": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298", - "product_id": "1" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299", - "product_id": "2" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "pa": "refund", - "tr": 99.99, - "pr1id": "1", - "pr1cd1": "my product", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr2id": "2", - "pr2cd1": "other product", - "pr2nm": "other product", - "pr2pr": 24.75, - "ea": "Order Cancelled", - "ev": 100, - "ec": "EnhancedEcommerce", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ti": "rudderstackorder1", - "ts": 13.99, - "tt": 20.99, - "cu": "INR", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "pr1qt": 1, - "pr2qt": 3, - "ni": 1, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Order Cancelled", - "properties": { - "order_id": "rudderstackorder1", - "revenue": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "No product information supplied for transaction event", - "statTags": { - "destType": "GA360", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "ga360", - "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" - }, - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Cart Viewed", - "properties": { - "order_id": "rudderstackorder1", - "revenue": 99.99, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298", - "product_id": "1" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299", - "product_id": "2" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "Cart Viewed", - "ev": 100, - "ec": "EnhancedEcommerce", - "pa": "detail", - "v": "1", - "t": "event", - "el": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "cid": "00000000000000000000000000", - "uid": "12345", - "ul": "en-US", - "ni": 1, - "pr1cd1": "my product", - "pr1id": "1", - "pr1nm": "my product", - "pr1pr": 24.75, - "pr1qt": 1, - "pr2cd1": "other product", - "pr2id": "2", - "pr2nm": "other product", - "pr2pr": 24.75, - "pr2qt": 3, - "qt": 124893881700, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 46", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "traits": { - "name1": "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-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "traits": { - "name1": "Test" - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "server side identify is not on", - "statTags": { - "destType": "GA360", - "errorCategory": "dataValidation", - "errorType": "configuration", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 47", - "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": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "name": "homescreen" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "cd1": "homescreen", - "v": "1", - "t": "screenview", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "cd": "homescreen", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "ul": "en-US", - "uip": "0.0.0.0", - "qt": 124893881701, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 48", - "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": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "newtype", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "name": "homescreen" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "Message type newtype not supported", - "statTags": { - "destType": "GA360", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 49", - "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-10-14T09:03:17.562Z", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "userId": "12345", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "action1", - "ec": "Test", - "ni": 1, - "cd1": "Test", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ul": "en-US", - "uid": "12345", - "cid": "827ccb0eea8a706c4c34a16891f84e7b", - "uip": "0.0.0.0", - "qt": 124901802438 - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 50", - "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-10-14T09:03:17.562Z", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "disableMd5": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "userId": "12345", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "action1", - "ec": "Test", - "ni": 1, - "cd1": "Test", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ul": "en-US", - "uid": "12345", - "uip": "0.0.0.0", - "qt": 124901802438 - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 51", - "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-10-14T09:03:17.562Z", - "userId": "12345", - "integrations": { - "All": true, - "GA": { - "clientId": "clientId" - }, - "Google Analytics": { - "clientId": "clientId" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "userId": "12345", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "action1", - "ec": "Test", - "ni": 1, - "cd1": "Test", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ul": "en-US", - "uid": "12345", - "cid": "clientId", - "uip": "0.0.0.0", - "qt": 124901802438 - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "ga360", - "description": "Test 52", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "externalId": [ - { - "id": "externalClientId", - "type": "gaExternalId" - } - ], - "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-10-14T09:03:17.562Z", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "userId": "12345", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "action1", - "ec": "Test", - "ni": 1, - "cd1": "Test", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ul": "en-US", - "uid": "12345", - "cid": "externalClientId", - "uip": "0.0.0.0", - "qt": 124901802438 - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - } -].map((d) => ({ ...d, mockFns })) \ No newline at end of file + { + "name": "ga360", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "traits": { + "name": "Rudder 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-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "name", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "name", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "action1", + "ec": "Rudder Test", + "cd1": "Rudder Test", + "cg2": "Rudder Test", + "v": "1", + "t": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "uid": "123456", + "cid": "00000000000000000000000000", + "ni": 1, + "uip": "0.0.0.0", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "ul": "en-US", + "qt": 124901802438 + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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": "/abc", + "referrer": "q", + "search": "", + "title": "a", + "url": "https://www.example.com/abc" + }, + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "v": "1", + "t": "pageview", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "uip": "0.0.0.0", + "ul": "en-US", + "dh": "www.example.com", + "dl": "https://www.example.com/abc", + "dp": "%2Fabc", + "dr": "q", + "dt": "a", + "qt": 124893881701, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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": "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "test track event GA3", + "properties": { + "category": "test-category", + "user_actual_role": "system_admin, system_user", + "user_actual_id": 12345 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ec": "test-category", + "ni": 1, + "v": "1", + "el": "event", + "t": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ea": "test track event GA3", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order completed", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "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": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "purchase", + "tr": 99.99, + "ev": 100, + "pr1id": "p-298", + "pr1cd1": "my product", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr2id": "p-299", + "pr2cd1": "other product", + "pr2nm": "other product", + "pr2pr": 24.75, + "ea": "order completed", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ti": "rudderstackorder1", + "ts": 13.99, + "tt": 20.99, + "cu": "INR", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ni": 1, + "pr1qt": 1, + "pr2qt": 3, + "ul": "en-US", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product added", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "name": "my product 1", + "category": "cat 1", + "sku": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "product added", + "ec": "cat 1", + "pa": "add", + "pr1cd1": "my product 1", + "pr1id": "p-298", + "cd1": "my product 1", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "pr1nm": "my product 1", + "pr1ca": "cat 1", + "cu": "CAD", + "pr1ps": 4.5, + "pr1pr": 24.75, + "pr1qt": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ni": 1, + "ul": "en-US", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product removed", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "name": "my product 1", + "category": "cat 1", + "sku": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "product removed", + "ec": "cat 1", + "pa": "remove", + "pr1cd1": "my product 1", + "pr1id": "p-298", + "cd1": "my product 1", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "pr1nm": "my product 1", + "pr1ca": "cat 1", + "cu": "CAD", + "pr1ps": 4.5, + "pr1pr": 24.75, + "pr1qt": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product viewed", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "name": "my product 1", + "category": "cat 1", + "sku": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "product viewed", + "ec": "cat 1", + "pa": "detail", + "pr1cd1": "my product 1", + "pr1id": "p-298", + "cd1": "my product 1", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "pr1nm": "my product 1", + "pr1ca": "cat 1", + "cu": "CAD", + "pr1ps": 4.5, + "pr1pr": 24.75, + "pr1qt": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product removed", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "name": "my product 1", + "category": "cat 1", + "sku": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "product removed", + "ec": "cat 1", + "pa": "remove", + "pr1cd1": "my product 1", + "pr1id": "p-298", + "cd1": "my product 1", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "pr1nm": "my product 1", + "pr1ca": "cat 1", + "cu": "CAD", + "pr1ps": 4.5, + "pr1pr": 24.75, + "pr1qt": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product viewed", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "name": "my product 1", + "category": "cat 1", + "sku": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "product viewed", + "ec": "cat 1", + "pa": "detail", + "pr1cd1": "my product 1", + "pr1id": "p-298", + "cd1": "my product 1", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "pr1nm": "my product 1", + "pr1ca": "cat 1", + "cu": "CAD", + "pr1ps": 4.5, + "pr1pr": 24.75, + "pr1qt": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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": "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product list filtered", + "properties": { + "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" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "product list filtered", + "ec": "cat 1", + "pa": "detail", + "il1pi1id": "507f1f77bcf86cd799439011", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "il1nm": "1234", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "uid": "12345", + "il1pi1qt": 1, + "il1pi1va": "department:beauty,price:under::price:desc", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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": "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product list viewed", + "properties": { + "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": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "product list viewed", + "ec": "cat 1", + "pa": "detail", + "il1pi1id": "507f1f77bcf86cd799439011", + "il1pi1ps": 10, + "il1pi2id": "507f1f77bcf86cdef799439011", + "il1pi2ps": -10, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "il1nm": "1234", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "uid": "12345", + "il1pi1qt": 1, + "il1pi1va": "department:beauty,price:under::price:desc", + "il1pi2qt": 1, + "il1pi2va": "department:beauty,price:under::price:desc", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product clicked", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "name": "my product", + "category": "cat 1", + "sku": "p-298", + "list": "search results", + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "product clicked", + "ec": "cat 1", + "pa": "click", + "pr1cd1": "my product", + "pr1id": "p-298", + "cd1": "my product", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "pr1nm": "my product", + "pr1ca": "cat 1", + "cu": "CAD", + "pr1pr": 24.75, + "pr1qt": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "pal": "search results", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "promotion viewed", + "properties": { + "currency": "CAD", + "promotion_id": "PROMO_1234", + "name": "my product", + "creative": "summer_banner2", + "position": "banner_slot1", + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "promotion viewed", + "ec": "EnhancedEcommerce", + "cu": "CAD", + "promoa": "view", + "pa": "view", + "cd1": "my product", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "promo1id": "PROMO_1234", + "promo1cr": "summer_banner2", + "promo1ps": "banner_slot1", + "promo1nm": "my product", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "promotion clicked", + "properties": { + "currency": "CAD", + "promotion_id": "PROMO_1234", + "name": "my product", + "creative": "summer_banner2", + "position": "banner_slot1", + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "promotion clicked", + "ec": "EnhancedEcommerce", + "cu": "CAD", + "promoa": "promo_click", + "pa": "promo_click", + "cd1": "my product", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "promo1id": "PROMO_1234", + "promo1cr": "summer_banner2", + "promo1ps": "banner_slot1", + "promo1nm": "my product", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "checkout started", + "properties": { + "currency": "CAD", + "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": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "checkout", + "pr1id": "p-298", + "pr1cd1": "my product", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr2id": "p-299", + "pr2cd1": "my product 2", + "pr2nm": "my product 2", + "pr2pr": 24.75, + "ea": "checkout started", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "cu": "CAD", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "cos": 1, + "pr1qt": 1, + "pr2qt": 1, + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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": { + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order updated", + "properties": { + "currency": "CAD", + "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": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "checkout", + "pr1id": "p-298", + "pr1cd1": "my product", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr2id": "p-299", + "pr2cd1": "my product 2", + "pr2nm": "my product 2", + "pr2pr": 24.75, + "ea": "order updated", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "cu": "CAD", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "cos": 1, + "pr1qt": 1, + "pr2qt": 1, + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "checkout step viewed", + "properties": { + "currency": "CAD", + "step": 1 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "checkout", + "ea": "checkout step viewed", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "cos": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "checkout step completed", + "properties": { + "currency": "CAD", + "step": 1, + "paymentMethod": "Visa" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "checkout_option", + "ea": "checkout step completed", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "cos": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order refunded", + "properties": { + "products": [ + { + "quantity": 1, + "sku": "p-298" + }, + { + "quantity": 1, + "sku": "p-299" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ea": "order refunded", + "ec": "EnhancedEcommerce", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "pa": "refund", + "pr1id": "p-298", + "pr1qt": 1, + "pr2id": "p-299", + "ul": "en-US", + "pr2qt": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 19", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order starterefundedd", + "properties": { + "products": [ + { + "quantity": 1, + "sku": "p-298" + }, + { + "quantity": 1, + "sku": "p-299" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ea": "order starterefundedd", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 20", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order starterefundedd", + "properties": { + "products": [ + { + "quantity": 1, + "sku": "p-298" + }, + { + "quantity": 1, + "sku": "p-299" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ea": "order starterefundedd", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order starterefundedd", + "properties": { + "products": [ + { + "quantity": 1, + "sku": "p-298" + }, + { + "quantity": 1, + "sku": "p-299" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "aip": 1, + "cid": "00000000000000000000000000", + "ea": "order starterefundedd", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order starterefundedd", + "properties": { + "products": [ + { + "quantity": 1, + "sku": "p-298" + }, + { + "quantity": 1, + "sku": "p-299" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "cid": "00000000000000000000000000", + "ea": "order starterefundedd", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order starterefundedd", + "properties": { + "products": [ + { + "quantity": 1, + "sku": "p-298" + }, + { + "quantity": 1, + "sku": "p-299" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ea": "order starterefundedd", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; 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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "linkid test", + "properties": { + "linkid": "abc123", + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "linkid": "abc123", + "cid": "00000000000000000000000000", + "ea": "linkid test", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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": { + "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 + }, + "campaign": { + "name": "sampleName", + "source": "sampleSource", + "medium": "sampleMedium", + "content": "sampleContent", + "term": "sampleTerm" + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "campaign test", + "properties": { + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "cn": "sampleName", + "cs": "sampleSource", + "cm": "sampleMedium", + "cc": "sampleContent", + "ck": "sampleTerm", + "cid": "00000000000000000000000000", + "ea": "campaign test", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 26", + "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 + }, + "campaign": { + "name": "sampleName", + "source": "sampleSource", + "medium": "sampleMedium", + "content": "sampleContent", + "term": "sampleTerm" + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "event": "campaign test", + "properties": { + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "cn": "sampleName", + "cs": "sampleSource", + "cm": "sampleMedium", + "cc": "sampleContent", + "ck": "sampleTerm", + "cid": "00000000000000000000000000", + "ea": "campaign test", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "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 + }, + "campaign": { + "name": "sampleName", + "source": "sampleSource", + "medium": "sampleMedium", + "content": "sampleContent", + "term": "sampleTerm" + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "event": "campaign test", + "properties": { + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ul": "en-US", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "cn": "sampleName", + "cs": "sampleSource", + "cm": "sampleMedium", + "cc": "sampleContent", + "ck": "sampleTerm", + "cid": "00000000000000000000000000", + "ea": "campaign test", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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.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": "GA Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + } + }, + "type": "identify", + "messageId": "bc8a6af8-37fd-46a9-9592-ea29a256435f", + "originalTimestamp": "2020-06-22T11:30:32.493Z", + "anonymousId": "38e169a1-3234-46f7-9ceb-c1a6a69005fe", + "userId": "123", + "integrations": { + "All": true + }, + "sentAt": "2020-06-22T11:30:32.494Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "User Enriched", + "dt": "GA Ecommerce Test", + "ec": "All", + "v": "1", + "t": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.1.2", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "uid": "123", + "cid": "38e169a1-3234-46f7-9ceb-c1a6a69005fe", + "ni": 1, + "ua": "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", + "ul": "en-GB", + "qt": 103120167507, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "38e169a1-3234-46f7-9ceb-c1a6a69005fe" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "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": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "v": "1", + "t": "pageview", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "uip": "0.0.0.0", + "qt": 124893881701, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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", + "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": "/abc", + "referrer": "", + "search": "?xyz=1", + "title": "", + "url": "https://www.example.com/abc" + }, + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "v": "1", + "t": "pageview", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "uip": "0.0.0.0", + "dh": "www.example.com", + "dl": "https://www.example.com/abc", + "dp": "%2Fabc%3Fxyz%3D1", + "qt": 124893881701, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "integrations": { + "All": true + }, + "event": "sample event", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ea": "sample event", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "uip": "0.0.0.0", + "qt": 124893881701, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Order Refunded", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "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": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "refund", + "ev": 100, + "pr1id": "p-298", + "pr1cd1": "my product", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr1qt": 1, + "pr2id": "p-299", + "pr2cd1": "other product", + "pr2nm": "other product", + "pr2pr": 24.75, + "pr2qt": 3, + "ea": "Order Refunded", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "ti": "rudderstackorder1", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 33", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Order Refunded", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ev": 100, + "pa": "refund", + "ti": "rudderstackorder1", + "ea": "Order Refunded", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 34", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Order Refunded", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ev": 100, + "pa": "refund", + "ti": "rudderstackorder1", + "ea": "Order Refunded", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 35", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Order Refunded", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298", + "product_id": "1" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299", + "product_id": "2" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ev": 100, + "pa": "refund", + "pr1id": "1", + "pr1cd1": "my product", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr1qt": 1, + "pr2id": "2", + "pr2cd1": "other product", + "pr2nm": "other product", + "pr2pr": 24.75, + "pr2qt": 3, + "ea": "Order Refunded", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "ti": "rudderstackorder1", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Cart Shared", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298", + "product_id": "1" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299", + "product_id": "2" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ev": 100, + "ea": "Cart Shared", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "st": " 1 2", + "ul": "en-US", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Product Shared", + "properties": { + "product_id": "rudderstackorder1", + "total": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "url": "https://www.example.com/abc" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ev": 100, + "ea": "Product Shared", + "ec": "All", + "ni": 1, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "st": "https://www.example.com/abc", + "dh": "www.example.com", + "dl": "https://www.example.com/abc", + "dp": "%2Fabc", + "ul": "en-US", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Product List Clicked", + "properties": { + "list_id": "Sample Product List", + "category": "Sample Product List", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298", + "product_id": "1" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299", + "product_id": "2" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "Product List Clicked", + "ec": "Sample Product List", + "pa": "click", + "il1pi1id": "1", + "pr1cd1": "my product", + "il1pi1nm": "my product", + "il1pi1pr": 24.75, + "il1pi2id": "2", + "pr2cd1": "other product", + "il1pi2nm": "other product", + "il1pi2pr": 24.75, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "il1nm": "Sample Product List", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "uid": "12345", + "ni": 1, + "il1pi2qt": 3, + "il1pi1qt": 1, + "ul": "en-US", + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Product List Clicked", + "properties": { + "list_id": "Sample Product List", + "category": "Sample Product List", + "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": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "Product List Clicked", + "ec": "Sample Product List", + "pa": "click", + "il1pi1id": "p-298", + "pr1cd1": "my product", + "il1pi1nm": "my product", + "il1pi1pr": 24.75, + "il1pi2id": "p-299", + "pr2cd1": "other product", + "il1pi2nm": "other product", + "il1pi2pr": 24.75, + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "il1nm": "Sample Product List", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "uid": "12345", + "ul": "en-US", + "il1pi2qt": 3, + "il1pi1qt": 1, + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Product List Clicked", + "properties": { + "list_id": "Sample Product List", + "category": "Sample Product List", + "products": [] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ni": 1, + "ea": "Product List Clicked", + "ec": "Sample Product List", + "pa": "click", + "el": "event", + "v": "1", + "t": "event", + "tid": "UA-165994240-1", + "ds": "web", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "ul": "en-US", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "il1nm": "Sample Product List", + "uid": "12345", + "cid": "00000000000000000000000000", + "qt": 124893881700 + }, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Order Cancelled", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298", + "product_id": "1" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299", + "product_id": "2" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "refund", + "ev": 100, + "tr": 99.99, + "pr1id": "1", + "pr1cd1": "my product", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr2id": "2", + "pr2cd1": "other product", + "pr2nm": "other product", + "pr2pr": 24.75, + "ea": "Order Cancelled", + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ti": "rudderstackorder1", + "ts": 13.99, + "tt": 20.99, + "cu": "INR", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "pr1qt": 1, + "pr2qt": 3, + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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": { + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Order Cancelled", + "properties": { + "order_id": "rudderstackorder1", + "value": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298", + "product_id": "1" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299", + "product_id": "2" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "refund", + "tr": 99.99, + "pr1id": "1", + "pr1cd1": "my product", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr2id": "2", + "pr2cd1": "other product", + "pr2nm": "other product", + "pr2pr": 24.75, + "ea": "Order Cancelled", + "ev": 100, + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ti": "rudderstackorder1", + "ts": 13.99, + "tt": 20.99, + "cu": "INR", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "pr1qt": 1, + "pr2qt": 3, + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Order Cancelled", + "properties": { + "order_id": "rudderstackorder1", + "revenue": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298", + "product_id": "1" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299", + "product_id": "2" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "pa": "refund", + "tr": 99.99, + "pr1id": "1", + "pr1cd1": "my product", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr2id": "2", + "pr2cd1": "other product", + "pr2nm": "other product", + "pr2pr": 24.75, + "ea": "Order Cancelled", + "ev": 100, + "ec": "EnhancedEcommerce", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "ti": "rudderstackorder1", + "ts": 13.99, + "tt": 20.99, + "cu": "INR", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "pr1qt": 1, + "pr2qt": 3, + "ni": 1, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Order Cancelled", + "properties": { + "order_id": "rudderstackorder1", + "revenue": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "No product information supplied for transaction event", + "statTags": { + "destType": "GA360", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "ga360", + "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" + }, + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Cart Viewed", + "properties": { + "order_id": "rudderstackorder1", + "revenue": 99.99, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298", + "product_id": "1" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299", + "product_id": "2" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "Cart Viewed", + "ev": 100, + "ec": "EnhancedEcommerce", + "pa": "detail", + "v": "1", + "t": "event", + "el": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "cid": "00000000000000000000000000", + "uid": "12345", + "ul": "en-US", + "ni": 1, + "pr1cd1": "my product", + "pr1id": "1", + "pr1nm": "my product", + "pr1pr": 24.75, + "pr1qt": 1, + "pr2cd1": "other product", + "pr2id": "2", + "pr2nm": "other product", + "pr2pr": 24.75, + "pr2qt": 3, + "qt": 124893881700, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 46", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "traits": { + "name1": "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-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "traits": { + "name1": "Test" + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "serverSideIdentifyEventCategory": "name", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "server side identify is not on", + "statTags": { + "destType": "GA360", + "errorCategory": "dataValidation", + "errorType": "configuration", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 47", + "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": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "screen", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "properties": { + "name": "homescreen" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "cd1": "homescreen", + "v": "1", + "t": "screenview", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "cid": "00000000000000000000000000", + "cd": "homescreen", + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "uid": "12345", + "ul": "en-US", + "uip": "0.0.0.0", + "qt": 124893881701, + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "00000000000000000000000000" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 48", + "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": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "newtype", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "properties": { + "name": "homescreen" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "cat1", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Message type newtype not supported", + "statTags": { + "destType": "GA360", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 49", + "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-10-14T09:03:17.562Z", + "userId": "12345", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "name", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "userId": "12345", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "action1", + "ec": "Test", + "ni": 1, + "cd1": "Test", + "v": "1", + "t": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "ul": "en-US", + "uid": "12345", + "cid": "827ccb0eea8a706c4c34a16891f84e7b", + "uip": "0.0.0.0", + "qt": 124901802438 + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 50", + "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-10-14T09:03:17.562Z", + "userId": "12345", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "name", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "disableMd5": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "userId": "12345", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "action1", + "ec": "Test", + "ni": 1, + "cd1": "Test", + "v": "1", + "t": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "ul": "en-US", + "uid": "12345", + "uip": "0.0.0.0", + "qt": 124901802438 + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 51", + "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-10-14T09:03:17.562Z", + "userId": "12345", + "integrations": { + "All": true, + "GA": { + "clientId": "clientId" + }, + "Google Analytics": { + "clientId": "clientId" + } + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "name", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "userId": "12345", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "action1", + "ec": "Test", + "ni": 1, + "cd1": "Test", + "v": "1", + "t": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "ul": "en-US", + "uid": "12345", + "cid": "clientId", + "uip": "0.0.0.0", + "qt": 124901802438 + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "ga360", + "description": "Test 52", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "externalId": [ + { + "id": "externalClientId", + "type": "gaExternalId" + } + ], + "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-10-14T09:03:17.562Z", + "userId": "12345", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "trackingID": "UA-165994240-1", + "doubleClick": true, + "enhancedLinkAttribution": true, + "classic": true, + "ignoredReferrers": "", + "serverClassic": false, + "includeSearch": true, + "trackCategorizedPages": true, + "trackNamedPages": true, + "sampleRate": "100", + "siteSpeedSampleRate": "1", + "setAllMappedProps": true, + "enableServerSideIdentify": true, + "serverSideIdentifyEventCategory": "name", + "serverSideIdentifyEventAction": "action1", + "anonymizeIp": true, + "domain": "domain", + "enhancedEcommerce": true, + "nonInteraction": true, + "optimize": "abc123", + "sendUserId": true, + "useGoogleAmpClientId": true, + "web-useNativeSDK": true, + "dimensions": [ + { + "from": "name", + "to": "dimension1" + }, + { + "from": "custom2", + "to": "dimension2" + } + ], + "metrics": [ + { + "from": "email", + "to": "metric1" + }, + { + "from": "trait2", + "to": "metric2" + } + ], + "resetCustomDimensionsOnPage": [ + { + "resetCustomDimensionsOnPage": "abc" + }, + { + "resetCustomDimensionsOnPage": "xyz" + } + ], + "contentGroupings": [ + { + "from": "plan", + "to": "contentGroup1" + }, + { + "from": "prop2", + "to": "contentGroup2" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "userId": "12345", + "method": "POST", + "endpoint": "https://www.google-analytics.com/collect", + "headers": {}, + "params": { + "ea": "action1", + "ec": "Test", + "ni": 1, + "cd1": "Test", + "v": "1", + "t": "event", + "tid": "UA-165994240-1", + "ds": "web", + "an": "RudderLabs JavaScript SDK", + "av": "1.0.0", + "aiid": "com.rudderlabs.javascript", + "npa": 1, + "aip": 1, + "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "ul": "en-US", + "uid": "12345", + "cid": "externalClientId", + "uip": "0.0.0.0", + "qt": 124901802438 + }, + "body": { + "JSON": {}, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + } +].map((d) => ({ ...d, mockFns })) diff --git a/test/integrations/destinations/ga360/router/data.ts b/test/integrations/destinations/ga360/router/data.ts index 15086b6b2f..e56fccaeb8 100644 --- a/test/integrations/destinations/ga360/router/data.ts +++ b/test/integrations/destinations/ga360/router/data.ts @@ -1,487 +1,350 @@ export const mockFns = (_) => { - // @ts-ignore - jest - .useFakeTimers() - .setSystemTime(new Date('2023-09-29')); + // @ts-ignore + jest.useFakeTimers().setSystemTime(new Date('2023-09-29')); }; export const data = [ - { - name: 'ga360', - description: 'Test 0', - feature: 'router', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - input: [ - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Rudder 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-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "name", - "to": "contentGroup2" - } - ] - }, - "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", - "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": "/abc", - "referrer": "q", - "search": "", - "title": "a", - "url": "https://www.example.com/abc" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ], - destType: 'ga360', + { + name: 'ga360', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + channel: 'web', + context: { + traits: { name: 'Rudder 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 }, }, - method: 'POST', + properties: { plan: 'standard plan', name: 'rudder test' }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { + trackingID: 'UA-165994240-1', + doubleClick: true, + enhancedLinkAttribution: true, + classic: true, + ignoredReferrers: '', + serverClassic: false, + includeSearch: true, + trackCategorizedPages: true, + trackNamedPages: true, + sampleRate: '100', + siteSpeedSampleRate: '1', + setAllMappedProps: true, + enableServerSideIdentify: true, + serverSideIdentifyEventCategory: 'name', + serverSideIdentifyEventAction: 'action1', + anonymizeIp: true, + domain: 'domain', + enhancedEcommerce: true, + nonInteraction: true, + optimize: 'abc123', + sendUserId: true, + useGoogleAmpClientId: true, + 'web-useNativeSDK': true, + dimensions: [ + { from: 'name', to: 'dimension1' }, + { from: 'custom2', to: 'dimension2' }, + ], + metrics: [ + { from: 'email', to: 'metric1' }, + { from: 'trait2', to: 'metric2' }, + ], + resetCustomDimensionsOnPage: [ + { resetCustomDimensionsOnPage: 'abc' }, + { resetCustomDimensionsOnPage: 'xyz' }, + ], + contentGroupings: [ + { from: 'plan', to: 'contentGroup1' }, + { from: 'name', to: 'contentGroup2' }, + ], + }, + 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', + 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: '/abc', + referrer: 'q', + search: '', + title: 'a', + url: 'https://www.example.com/abc', + }, + integrations: { All: true }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { + Config: { + trackingID: 'UA-165994240-1', + doubleClick: true, + enhancedLinkAttribution: true, + classic: true, + ignoredReferrers: '', + serverClassic: false, + includeSearch: true, + trackCategorizedPages: true, + trackNamedPages: true, + sampleRate: '100', + siteSpeedSampleRate: '1', + setAllMappedProps: true, + enableServerSideIdentify: true, + serverSideIdentifyEventCategory: 'cat1', + serverSideIdentifyEventAction: 'action1', + anonymizeIp: true, + domain: 'domain', + enhancedEcommerce: true, + nonInteraction: true, + optimize: 'abc123', + sendUserId: true, + useGoogleAmpClientId: true, + 'web-useNativeSDK': true, + dimensions: [ + { from: 'name', to: 'dimension1' }, + { from: 'custom2', to: 'dimension2' }, + ], + metrics: [ + { from: 'email', to: 'metric1' }, + { from: 'trait2', to: 'metric2' }, + ], + resetCustomDimensionsOnPage: [ + { resetCustomDimensionsOnPage: 'abc' }, + { resetCustomDimensionsOnPage: 'xyz' }, + ], + contentGroupings: [ + { from: 'plan', to: 'contentGroup1' }, + { from: 'prop2', to: 'contentGroup2' }, + ], + }, + Enabled: true, + }, }, + ], + destType: 'ga360', }, - output: { - response: { - status: 200, - body: { - output: [ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "ea": "action1", - "ec": "Rudder Test", - "cd1": "Rudder Test", - "cg2": "Rudder Test", - "v": "1", - "t": "event", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "uid": "123456", - "cid": "00000000000000000000000000", - "ni": 1, - "uip": "0.0.0.0", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "ul": "en-US", - "qt": 124901802438, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "name", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "name", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://www.google-analytics.com/collect", - "headers": {}, - "params": { - "v": "1", - "t": "pageview", - "tid": "UA-165994240-1", - "ds": "web", - "an": "RudderLabs JavaScript SDK", - "av": "1.0.0", - "aiid": "com.rudderlabs.javascript", - "npa": 1, - "aip": 1, - "cid": "00000000000000000000000000", - "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "uid": "12345", - "uip": "0.0.0.0", - "ul": "en-US", - "dh": "www.example.com", - "dl": "https://www.example.com/abc", - "dp": "%2Fabc", - "dr": "q", - "dt": "a", - "qt": 124893881701, - }, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "00000000000000000000000000" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "trackingID": "UA-165994240-1", - "doubleClick": true, - "enhancedLinkAttribution": true, - "classic": true, - "ignoredReferrers": "", - "serverClassic": false, - "includeSearch": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "sampleRate": "100", - "siteSpeedSampleRate": "1", - "setAllMappedProps": true, - "enableServerSideIdentify": true, - "serverSideIdentifyEventCategory": "cat1", - "serverSideIdentifyEventAction": "action1", - "anonymizeIp": true, - "domain": "domain", - "enhancedEcommerce": true, - "nonInteraction": true, - "optimize": "abc123", - "sendUserId": true, - "useGoogleAmpClientId": true, - "web-useNativeSDK": true, - "dimensions": [ - { - "from": "name", - "to": "dimension1" - }, - { - "from": "custom2", - "to": "dimension2" - } - ], - "metrics": [ - { - "from": "email", - "to": "metric1" - }, - { - "from": "trait2", - "to": "metric2" - } - ], - "resetCustomDimensionsOnPage": [ - { - "resetCustomDimensionsOnPage": "abc" - }, - { - "resetCustomDimensionsOnPage": "xyz" - } - ], - "contentGroupings": [ - { - "from": "plan", - "to": "contentGroup1" - }, - { - "from": "prop2", - "to": "contentGroup2" - } - ] - }, - "Enabled": true - } - } - ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/collect', + headers: {}, + params: { + ea: 'action1', + ec: 'Rudder Test', + cd1: 'Rudder Test', + cg2: 'Rudder Test', + v: '1', + t: 'event', + tid: 'UA-165994240-1', + ds: 'web', + an: 'RudderLabs JavaScript SDK', + av: '1.0.0', + aiid: 'com.rudderlabs.javascript', + npa: 1, + aip: 1, + uid: '123456', + cid: '00000000000000000000000000', + ni: 1, + uip: '0.0.0.0', + ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ul: 'en-US', + qt: 124901802438, + }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, + files: {}, + userId: '00000000000000000000000000', + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + trackingID: 'UA-165994240-1', + doubleClick: true, + enhancedLinkAttribution: true, + classic: true, + ignoredReferrers: '', + serverClassic: false, + includeSearch: true, + trackCategorizedPages: true, + trackNamedPages: true, + sampleRate: '100', + siteSpeedSampleRate: '1', + setAllMappedProps: true, + enableServerSideIdentify: true, + serverSideIdentifyEventCategory: 'name', + serverSideIdentifyEventAction: 'action1', + anonymizeIp: true, + domain: 'domain', + enhancedEcommerce: true, + nonInteraction: true, + optimize: 'abc123', + sendUserId: true, + useGoogleAmpClientId: true, + 'web-useNativeSDK': true, + dimensions: [ + { from: 'name', to: 'dimension1' }, + { from: 'custom2', to: 'dimension2' }, + ], + metrics: [ + { from: 'email', to: 'metric1' }, + { from: 'trait2', to: 'metric2' }, + ], + resetCustomDimensionsOnPage: [ + { resetCustomDimensionsOnPage: 'abc' }, + { resetCustomDimensionsOnPage: 'xyz' }, + ], + contentGroupings: [ + { from: 'plan', to: 'contentGroup1' }, + { from: 'name', to: 'contentGroup2' }, + ], + }, + Enabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/collect', + headers: {}, + params: { + v: '1', + t: 'pageview', + tid: 'UA-165994240-1', + ds: 'web', + an: 'RudderLabs JavaScript SDK', + av: '1.0.0', + aiid: 'com.rudderlabs.javascript', + npa: 1, + aip: 1, + cid: '00000000000000000000000000', + ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + uid: '12345', + uip: '0.0.0.0', + ul: 'en-US', + dh: 'www.example.com', + dl: 'https://www.example.com/abc', + dp: '%2Fabc', + dr: 'q', + dt: 'a', + qt: 124893881701, + }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, + files: {}, + userId: '00000000000000000000000000', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + trackingID: 'UA-165994240-1', + doubleClick: true, + enhancedLinkAttribution: true, + classic: true, + ignoredReferrers: '', + serverClassic: false, + includeSearch: true, + trackCategorizedPages: true, + trackNamedPages: true, + sampleRate: '100', + siteSpeedSampleRate: '1', + setAllMappedProps: true, + enableServerSideIdentify: true, + serverSideIdentifyEventCategory: 'cat1', + serverSideIdentifyEventAction: 'action1', + anonymizeIp: true, + domain: 'domain', + enhancedEcommerce: true, + nonInteraction: true, + optimize: 'abc123', + sendUserId: true, + useGoogleAmpClientId: true, + 'web-useNativeSDK': true, + dimensions: [ + { from: 'name', to: 'dimension1' }, + { from: 'custom2', to: 'dimension2' }, + ], + metrics: [ + { from: 'email', to: 'metric1' }, + { from: 'trait2', to: 'metric2' }, + ], + resetCustomDimensionsOnPage: [ + { resetCustomDimensionsOnPage: 'abc' }, + { resetCustomDimensionsOnPage: 'xyz' }, + ], + contentGroupings: [ + { from: 'plan', to: 'contentGroup1' }, + { from: 'prop2', to: 'contentGroup2' }, + ], }, + Enabled: true, + }, }, + ], }, - } + }, + }, + }, ].map((d) => ({ ...d, mockFns })); diff --git a/test/integrations/destinations/ga4/mocks.ts b/test/integrations/destinations/ga4/mocks.ts new file mode 100644 index 0000000000..7b47fe9f44 --- /dev/null +++ b/test/integrations/destinations/ga4/mocks.ts @@ -0,0 +1,3 @@ +export const defaultMockFns = () => { + jest.spyOn(Date, 'now').mockImplementation(() => new Date('2022-04-29T05:17:09Z').valueOf()); +}; diff --git a/test/integrations/destinations/ga4/processor/data.ts b/test/integrations/destinations/ga4/processor/data.ts new file mode 100644 index 0000000000..f96ca9e74a --- /dev/null +++ b/test/integrations/destinations/ga4/processor/data.ts @@ -0,0 +1,14903 @@ +import { defaultMockFns } from '../mocks'; +export const data = [ + { + name: 'ga4', + description: "(gtag) check all property mappings for 'Products Searched' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99v4f979fb997ce453373900f891', + }, + ], + 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', + }, + type: 'track', + event: 'Products Searched', + properties: { + query: 't-shirts', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-22T10:57:58Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + timestamp_micros: 1650950229000000, + events: [ + { + name: 'search', + params: { + search_term: 't-shirts', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'product list viewed' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + rudderId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99v4f979fb997ce453373900f891', + }, + ], + 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', + }, + type: 'track', + event: 'product list viewed', + properties: { + list_id: 'related_products', + category: 'Related_products', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'view_item_list', + params: { + item_list_id: 'related_products', + item_list_name: 'Related_products', + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'promotion viewed' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'promotion viewed', + properties: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '0', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'client_id', + events: [ + { + name: 'view_promotion', + params: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 0, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'promotion clicked' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'promotion clicked', + properties: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '0', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'select_promotion', + params: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 0, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) exclude only 'products' property from 'promotion clicked' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'promotion clicked', + properties: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'select_promotion', + params: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'product clicked' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product clicked', + properties: { + list_id: 'related_products', + category: 'Related_products', + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + timezone: { + name: 'Europe/Tallinn', + }, + engagementTimeMsec: 100, + sessionId: 655, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'select_item', + params: { + item_list_id: 'related_products', + item_list_name: 'Related_products', + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Related_products', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + timezone_name: 'Europe/Tallinn', + engagement_time_msec: 100, + session_id: 655, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'product viewed' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product viewed', + properties: { + currency: 'USD', + total: '7.77', + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'view_item', + params: { + currency: 'USD', + value: 7.77, + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'promotion clicked' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'promotion clicked', + properties: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '0', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + typesOfClient: 'gtag', + firebaseAppId: '1:17864591371:android:7a9520d3c78962e21f9fee', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'client_id', + events: [ + { + name: 'select_promotion', + params: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 0, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(firebase) check all property mappings for 'promotion clicked' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'promotion clicked', + properties: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '0', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + typesOfClient: 'firebase', + firebaseAppId: '1:17864591371:android:7a9520d3c78962e21f9fee', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + firebase_app_id: '1:17864591371:android:7a9520d3c78962e21f9fee', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + app_instance_id: 'f0dd99b6f979fb551ce583373900f937', + events: [ + { + name: 'select_promotion', + params: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 0, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'product added' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + total: '7.77', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'add_to_cart', + params: { + currency: 'USD', + value: 7.77, + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'product removed' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product removed', + properties: { + currency: 'USD', + total: '7.77', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + engagementTimeMsec: 100, + sessionId: 655, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'remove_from_cart', + params: { + currency: 'USD', + value: 7.77, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + engagement_time_msec: 100, + session_id: 655, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'cart viewed' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'cart viewed', + properties: { + currency: 'USD', + total: '7.77', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'view_cart', + params: { + currency: 'USD', + value: 7.77, + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'checkout started' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'checkout started', + properties: { + currency: 'USD', + total: 7.77, + coupon: 'SUMMER_FUN', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'begin_checkout', + params: { + currency: 'USD', + value: 7.77, + coupon: 'SUMMER_FUN', + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + "(gtag) check all property mappings for 'payment info entered' -> 'add_payment_info' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'payment info entered', + properties: { + currency: 'USD', + value: '7.77', + coupon: 'SUMMER_FUN', + payment_method: 'Credit Card', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + params: { + currency: 'USD', + value: 7.77, + coupon: 'SUMMER_FUN', + payment_type: 'Credit Card', + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + name: 'add_payment_info', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + "(gtag) check all property mappings for 'checkout Step Completed' -> 'add_shipping_info' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'checkout Step Completed', + properties: { + currency: 'USD', + value: '7.77', + coupon: 'SUMMER_FUN', + shipping_method: 'Ground', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + params: { + currency: 'USD', + value: 7.77, + coupon: 'SUMMER_FUN', + shipping_tier: 'Ground', + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + name: 'add_shipping_info', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'order completed' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'order completed', + properties: { + currency: 'USD', + order_id: 'T_12345', + total: 12.21, + affiliation: 'Google Store', + coupon: 'SUMMER_FUN', + shipping: 3.33, + tax: 1.11, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'purchase', + params: { + currency: 'USD', + transaction_id: 'T_12345', + value: 12.21, + affiliation: 'Google Store', + coupon: 'SUMMER_FUN', + shipping: 3.33, + tax: 1.11, + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'order refunded' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'order refunded', + properties: { + currency: 'USD', + order_id: 'T_12345', + total: 12.21, + affiliation: 'Google Store', + coupon: 'SUMMER_FUN', + shipping: 3.33, + tax: 1.11, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'refund', + params: { + currency: 'USD', + transaction_id: 'T_12345', + value: 12.21, + affiliation: 'Google Store', + coupon: 'SUMMER_FUN', + shipping: 3.33, + tax: 1.11, + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) exclude only 'products' property from 'order refunded' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'order refunded', + properties: { + currency: 'USD', + order_id: 'T_12345', + total: 12.21, + affiliation: 'Google Store', + coupon: 'SUMMER_FUN', + shipping: 3.33, + tax: 1.11, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'refund', + params: { + currency: 'USD', + transaction_id: 'T_12345', + value: 12.21, + affiliation: 'Google Store', + coupon: 'SUMMER_FUN', + shipping: 3.33, + tax: 1.11, + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'product added to wishlist' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product added to wishlist', + properties: { + currency: 'USD', + total: '7.77', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'add_to_wishlist', + params: { + currency: 'USD', + value: 7.77, + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'product_shared' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product_shared', + properties: { + share_via: 'Twitter', + content_type: 'image', + item_id: 'C_12345', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'share', + params: { + method: 'Twitter', + content_type: 'image', + item_id: 'C_12345', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send only 'product_shared' event name without it's properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product_shared', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'share', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'cart Shared' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'cart Shared', + properties: { + share_via: 'Twitter', + content_type: 'image', + item_id: 'C_12345', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'share', + params: { + method: 'Twitter', + content_type: 'image', + item_id: 'C_12345', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send only 'cart Shared' event name with empty properties: {}", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'cart Shared', + properties: {}, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'share', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) check all property mappings for group call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'group', + properties: { + group_id: 'G_12345', + engagementTimeMsec: 100, + sessionId: 655, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'group', + params: { + group_id: 'G_12345', + engagement_time_msec: 100, + session_id: 655, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) group: send only group event name without it's properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'group', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'group', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'earn virtual currency' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'earn virtual currency', + properties: { + virtual_currency_name: 'Gems', + value: 5, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'earn_virtual_currency', + params: { + virtual_currency_name: 'Gems', + value: 5, + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send only 'earn virtual currency' event name without it's properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'earn virtual currency', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'earn_virtual_currency', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'generate_lead' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'generate_lead', + properties: { + currency: 'USD', + value: 99.99, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'generate_lead', + params: { + currency: 'USD', + value: 99.99, + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'level_up' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'level_up', + properties: { + level: 5, + character: 'Player 1', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'level_up', + params: { + level: 5, + character: 'Player 1', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send only 'level_up' event name without it's properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'level_up', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'level_up', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'login' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'login', + properties: { + method: 'Google', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'login', + params: { + method: 'Google', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send only 'login' event name without it's properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'login', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'login', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'post_score' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'post_score', + properties: { + score: 10000, + level: 5, + character: 'Player 1', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'post_score', + params: { + score: 10000, + level: 5, + character: 'Player 1', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send only 'login' event name with its required `score` properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'post_score', + properties: { + score: 10000, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'post_score', + params: { + score: 10000, + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'select_content' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'select_content', + properties: { + content_type: 'product', + item_id: 'I_12345', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'select_content', + params: { + content_type: 'product', + item_id: 'I_12345', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send only 'group' event name without it's properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'select_content', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'select_content', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'sign_up' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'sign_up', + properties: { + method: 'Google', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'sign_up', + params: { + method: 'Google', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send only 'sign_up' event name without it's properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'sign_up', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'sign_up', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'spend_virtual_currency' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'spend_virtual_currency', + properties: { + value: 5, + virtual_currency_name: 'Gems', + item_name: 'Starter Boost', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'spend_virtual_currency', + params: { + value: 5, + virtual_currency_name: 'Gems', + item_name: 'Starter Boost', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + "(gtag) send only 'spend_virtual_currency' event name with it's required 'value' and 'virtual_currency_name' properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'spend_virtual_currency', + properties: { + value: 5, + virtual_currency_name: 'Gems', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'spend_virtual_currency', + params: { + value: 5, + virtual_currency_name: 'Gems', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send 'tutorial_begin' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'tutorial_begin', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'tutorial_begin', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send 'tutorial_complete' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'tutorial_complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'tutorial_complete', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send all properties for 'unlock_achievement' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'unlock_achievement', + properties: { + achievement_id: 'A_12345', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'unlock_achievement', + params: { + achievement_id: 'A_12345', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) send all properties for 'view_search_results' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'view_search_results', + properties: { + search_term: 'Clothing', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'view_search_results', + params: { + search_term: 'Clothing', + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) pass only 'products: [...]' property for 'view_search_results' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'view_search_results', + properties: { + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'view_search_results', + params: { + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + "(gtag) pass custom event name 'rudderstack event' to GA4 along with custom properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'rudderstack event', + properties: { + total: '10', + timezone: { + name: 'Europe/Tallinn', + }, + engagementTimeMsec: 100, + sessionId: 655, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'rudderstack_event', + params: { + total: '10', + timezone_name: 'Europe/Tallinn', + engagement_time_msec: 100, + session_id: 655, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + "(gtag) pass custom event name 'rudderstack event' to GA4 along with custom properties and user_properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'rudderstack event', + properties: { + total: '10', + user_properties: { + price: '19', + }, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + user_properties: { + price: { + value: '19', + }, + }, + events: [ + { + name: 'rudderstack_event', + params: { + total: '10', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '[Error]: (gtag) pass reserved event name to GA4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'ad_click', + properties: { + total: '10', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'track:: Reserved event names are not allowed', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '[Exclusion]: (gtag) pass reserved property name to GA4 for custom events', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'rudderstack event', + properties: { + firebase_conversion: 'firebase_conversion', + google_id: '1234', + ga_value: 'ga_value', + value: '10', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'rudderstack_event', + params: { + value: '10', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + '[Exclusion]: (gtag) pass reserved property name and reserved properties in `user_properties` to GA4 for custom events', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'rudderstack event', + properties: { + firebase_conversion: 'firebase_conversion', + google_id: '1234', + ga_value: 'ga_value', + value: '10', + user_properties: { + first_open_time: 'first_open_time', + user_id: 'user_id', + firebase_value: 'firebase_value', + price: '100', + }, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + user_properties: { + price: { + value: '100', + }, + }, + events: [ + { + name: 'rudderstack_event', + params: { + value: '10', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '[Error]: (gtag) pass reserved event names along with reserved properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'app_remove', + properties: { + firebase_conversion: 'firebase_conversion', + google_id: '1234', + ga_value: 'ga_value', + value: '10', + user_properties: { + first_open_time: 'first_open_time', + user_id: 'user_id', + firebase_value: 'firebase_value', + price: '100', + }, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'track:: Reserved event names are not allowed', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '[Error] (gtag) pass reserved custom prefix names to GA4 events', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'firebase_event1', + properties: { + firebase_conversion: 'firebase_conversion', + google_id: '1234', + ga_value: 'ga_value', + value: '10', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Reserved custom prefix names are not allowed', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'product added' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + total: '7.77', + google_data: 'google_data', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'add_to_cart', + params: { + currency: 'USD', + value: 7.77, + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) pass custom event name with its properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'rudderstack event', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'rudderstack_event', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) map 'product added' properties to ga4 'add_to_cart' items array", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + properties: { + affiliation: 'Google Merchandise Store', + brand: 'Google', + category: 'Related_products', + coupon: 'SUMMER_FUN', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + list_id: 'related_products', + location_id: 'L_12345', + name: 'Monopoly: 3rd Edition', + position: '1', + price: '19', + product_id: '507f1f77bcf86cd799439011', + products: [], + quantity: '2', + total: '7.77', + variant: 'green', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + client_id: 'client_id', + events: [ + { + name: 'add_to_cart', + params: { + currency: 'USD', + engagement_time_msec: 1, + items: [ + { + affiliation: 'Google Merchandise Store', + coupon: 'SUMMER_FUN', + currency: 'USD', + discount: 2.22, + index: 1, + item_brand: 'Google', + item_category: 'Related_products', + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_id: '507f1f77bcf86cd799439011', + item_list_id: 'related_products', + item_list_name: 'Related Products', + item_name: 'Monopoly: 3rd Edition', + item_variant: 'green', + location_id: 'L_12345', + price: 19, + quantity: 2, + }, + ], + list_id: 'related_products', + value: 7.77, + }, + }, + ], + non_personalized_ads: true, + timestamp_micros: 1650950229000000, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://www.google-analytics.com/mp/collect', + files: {}, + headers: { + 'Content-Type': 'application/json', + HOST: 'www.google-analytics.com', + }, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + '(gtag) pass event name with invalid data type for products: {...} properties (when products parameter is optional)', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + total: '7.77', + products: { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + affiliation: 'Google Merchandise Store', + brand: 'Google', + category: 'Related_products', + coupon: 'SUMMER_FUN', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + list_id: 'related_products', + location_id: 'L_12345', + name: 'Monopoly: 3rd Edition', + position: '1', + price: '19', + product_id: '507f1f77bcf86cd799439011', + quantity: '2', + variant: 'green', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + client_id: 'client_id', + events: [ + { + name: 'add_to_cart', + params: { + currency: 'USD', + engagement_time_msec: 1, + items: [ + { + affiliation: 'Google Merchandise Store', + coupon: 'SUMMER_FUN', + currency: 'USD', + discount: 2.22, + index: 1, + item_brand: 'Google', + item_category: 'Related_products', + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_id: '507f1f77bcf86cd799439011', + item_list_id: 'related_products', + item_list_name: 'Related Products', + item_name: 'Monopoly: 3rd Edition', + item_variant: 'green', + location_id: 'L_12345', + price: 19, + quantity: 2, + }, + ], + list_id: 'related_products', + value: 7.77, + }, + }, + ], + non_personalized_ads: true, + timestamp_micros: 1650950229000000, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://www.google-analytics.com/mp/collect', + files: {}, + headers: { + 'Content-Type': 'application/json', + HOST: 'www.google-analytics.com', + }, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + '[Error] (gtag) pass event name to GA4 with missing fields i.e required in products: [..]', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + total: '7.77', + products: [ + { + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'One of product_id or name is required', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: + '[Error] (gtag) pass event name to GA4 with missing fields i.e required in properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'Product Viewed', + properties: { + currency: 'USD', + total: '7.77', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'One of product_id or name is required', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '[Error] (gtag) missing API Secret', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'tutotial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'API Secret not found. Aborting ', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '[Error] (gtag) missing measurementId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'tutotial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: '', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'measurementId must be provided. Aborting', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '(gtag) firing group event with event name. should take event name by default', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'group', + event: 'tutorial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'client_id', + events: [ + { + name: 'join_group', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '[Error] (gtag) payload has missing message.type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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: 'tutotial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Message Type is not present. Aborting message.', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '[Error] (gtag) payload has missing event name', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event name is required', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '(gtag) taking client_id from anonymousId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + ], + 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', + }, + type: 'track', + event: 'tutotial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + events: [ + { + name: 'tutotial_complete', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '[Error] (firebase) payload has missing ga4AppInstanceId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + 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', + }, + type: 'track', + event: 'tutotial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: '', + firebaseAppId: '1:17864591371:android:7a9520d3c78962e21f9fee', + blockPageViewEvent: false, + typesOfClient: 'firebase', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'ga4AppInstanceId must be provided under externalId', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '[Error] (firebase) pass reserved event name', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'app_store_subscription_cancel', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: '', + firebaseAppId: '1:17864591371:android:7a9520d3c78962e21f9fee', + blockPageViewEvent: false, + typesOfClient: 'firebase', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Reserved custom event names are not allowed', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'tutorial complete' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'tutorial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + non_personalized_ads: true, + events: [ + { + name: 'tutorial_complete', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) check all property mappings for 'cart viewed' event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'cart viewed', + properties: { + currency: 'USD', + total: '7.77', + products: [ + { + product_id: 0, + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'view_cart', + params: { + currency: 'USD', + value: 7.77, + engagement_time_msec: 1, + items: [ + { + item_id: 0, + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '[Error]: (firebase) missing firebaseAppId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'promotion clicked', + properties: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '0', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: '', + typesOfClient: 'firebase', + firebaseAppId: '', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'firebaseAppId must be provided. Aborting', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '(gtag) firing page call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + rudderId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + ], + 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', + }, + type: 'page', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + events: [ + { + name: 'page_view', + params: { + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) firing page call with custom properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + rudderId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + ], + 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', + }, + type: 'page', + event: 'page view', + properties: { + view: 'login', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + events: [ + { + name: 'page_view', + params: { + view: 'login', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '[Error]: (gtag) pass timestamp more than 72 hours into the past', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-20T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'tutotial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + typesOfClient: 'gtag', + blockPageViewEvent: false, + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Allowed timestamp is [72 hours] into the past', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '[Error]: (gtag) pass timestamp more than 15 min into the future', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-05-05T15:47:57Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'tutotial complete', + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + typesOfClient: 'gtag', + blockPageViewEvent: false, + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Allowed timestamp is [15 minutes] into the future', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: + '(gtag) pass custom properties along with products: [..] parameters to GA4 standard events along with its stated ones', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'order completed', + properties: { + checkout_id: '12345', + order_id: '1234', + myCustomProp: 'My arbitray value', + affiliation: 'Apple Store', + total: 20, + revenue: 15, + shipping: 22, + tax: 1, + discount: 1.5, + coupon: 'ImagePro', + currency: 'USD', + products: [ + { + product_id: '123', + sku: 'G-32', + name: 'Monopoly', + price: 14, + quantity: 1, + category: 'Games', + item_category2: 'Board games', + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.jpg', + }, + ], + timezone: { + name: 'Europe/Tallinn', + }, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'purchase', + params: { + checkout_id: '12345', + transaction_id: '1234', + myCustomProp: 'My arbitray value', + affiliation: 'Apple Store', + value: 20, + shipping: 22, + tax: 1, + discount: 1.5, + coupon: 'ImagePro', + currency: 'USD', + engagement_time_msec: 1, + items: [ + { + item_id: '123', + sku: 'G-32', + item_name: 'Monopoly', + price: 14, + quantity: 1, + item_category: 'Games', + item_category2: 'Board games', + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.jpg', + }, + ], + timezone_name: 'Europe/Tallinn', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + '(gtag) pass custom properties excluding products: [..] parameter to GA4 standard events along with its stated ones', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'promotion clicked', + properties: { + 'customProp-1': 'check-1', + 'customProp-2': 'check-2', + timezone: { + name: 'Europe/Tallinn', + }, + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + client_id: 'client_id', + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + events: [ + { + name: 'select_promotion', + params: { + 'customProp-1': 'check-1', + 'customProp-2': 'check-2', + timezone_name: 'Europe/Tallinn', + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: "(gtag) message type group -> 'join_group' with custom event", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'group', + traits: { + custom1: 1234, + custom2: 'custom2', + timezone: { + name: 'Europe/Tallinn', + }, + engagementTimeMsec: 100, + sessionId: 655, + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'client_id', + events: [ + { + name: 'join_group', + params: { + custom1: 1234, + custom2: 'custom2', + timezone_name: 'Europe/Tallinn', + engagement_time_msec: 100, + session_id: 655, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag): check args keyword for price x currency multiplication', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + price: 2.4, + quantity: 2, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'client_id', + events: [ + { + name: 'add_to_cart', + params: { + currency: 'USD', + value: 4.8, + engagement_time_msec: 1, + items: [ + { + item_id: '507f1f77bcf86cd799439011', + item_name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + item_category: 'Apparel', + item_brand: 'Google', + item_variant: 'green', + price: 19, + quantity: 2, + index: 1, + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + price: 2.4, + quantity: 2, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + "(gtag): take page properties from context.page for 'page' call along with custom properties", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + rudderId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + page: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + referrer: 'morkey', + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + ], + 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', + }, + type: 'page', + integrations: { + All: true, + }, + properties: { + cust1: 1234, + engagementTimeMsec: 100, + sessionId: 655, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + events: [ + { + name: 'page_view', + params: { + page_referrer: 'morkey', + page_title: 'miphone', + page_location: 'http://morkey.in', + cust1: 1234, + engagement_time_msec: 100, + session_id: 655, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '[Error] GA4: event not as string', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2022-04-26T05:17:09Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: { + name: 'promotion_viewed', + }, + properties: { + creative_name: 'Summer Banner', + creative_slot: 'featured_app_1', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '0', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + promotion_id: 'P_12345', + promotion_name: 'Summer Sale', + creative_name: 'summer_banner2', + creative_slot: 'featured_app_1', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-04-20T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'track:: event name should be string', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '[Error] GA4: client_id not found in all four path', + 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: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + price: 2.4, + quantity: 2, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: true, + sendLoginSignup: true, + newOrExistingUserTrait: 'firstLogin', + loginSignupMethod: 'method', + generateLead: true, + generateLeadValueTrait: 'value', + generateLeadCurrencyTrait: 'currency', + clientIdFieldIdentifier: 'properties.client_id', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'ga4ClientId, anonymousId or messageId must be provided', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: + "client_id isn't sent from the path defined in the webapp config, falling back to default values i.e here it is anonymousId", + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + price: 2.4, + quantity: 2, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: true, + sendLoginSignup: true, + newOrExistingUserTrait: 'firstLogin', + loginSignupMethod: 'method', + generateLead: true, + generateLeadValueTrait: 'value', + generateLeadCurrencyTrait: 'currency', + clientIdFieldIdentifier: 'properties.client_id', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'add_to_cart', + params: { + items: [ + { + index: 1, + price: 19, + coupon: 'SUMMER_FUN', + item_id: '507f1f77bcf86cd799439011', + currency: 'USD', + discount: 2.22, + quantity: 2, + item_name: 'Monopoly: 3rd Edition', + item_brand: 'Google', + affiliation: 'Google Merchandise Store', + location_id: 'L_12345', + item_list_id: 'related_products', + item_variant: 'green', + item_category: 'Apparel', + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_name: 'Related Products', + }, + ], + price: 2.4, + value: 4.8, + currency: 'USD', + quantity: 2, + engagement_time_msec: 1, + }, + }, + ], + client_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + 'any custom or item property with array value, is flattened with underscore delimeter', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: 'product added', + originalTimestamp: '2022-04-26T05:17:09Z', + properties: { + currency: 'USD', + total: '7.77', + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + address: { + city: 'kolkata', + district: '24pgs', + }, + categoryLevels: ['Furniture', 'Bedroom Furniture', 'Dressers & Chests'], + products: [ + { + product_id: '1234', + product_details: { + colour: 'red', + shape: 'rectangle', + }, + productLevels: ['test1', 'test2', 'test3'], + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2022-11-14T15:20:57Z', + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: false, + sendLoginSignup: false, + generateLead: false, + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + timestamp_micros: 1650950229000000, + non_personalized_ads: true, + client_id: 'client_id', + events: [ + { + name: 'add_to_cart', + params: { + currency: 'USD', + value: 7.77, + items: [ + { + item_id: '1234', + product_details_colour: 'red', + product_details_shape: 'rectangle', + productLevels_0: 'test1', + productLevels_1: 'test2', + productLevels_2: 'test3', + }, + ], + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + address_city: 'kolkata', + address_district: '24pgs', + categoryLevels_0: 'Furniture', + categoryLevels_1: 'Bedroom Furniture', + categoryLevels_2: 'Dressers & Chests', + engagement_time_msec: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: 'extract session_id from context.sessionId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + sessionId: 16678456735, + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + price: 2.4, + quantity: 2, + client_id: 'client@1234', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: true, + sendLoginSignup: true, + newOrExistingUserTrait: 'firstLogin', + loginSignupMethod: 'method', + generateLead: true, + generateLeadValueTrait: 'value', + generateLeadCurrencyTrait: 'currency', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'add_to_cart', + params: { + items: [ + { + index: 1, + price: 19, + coupon: 'SUMMER_FUN', + item_id: '507f1f77bcf86cd799439011', + currency: 'USD', + discount: 2.22, + quantity: 2, + item_name: 'Monopoly: 3rd Edition', + item_brand: 'Google', + affiliation: 'Google Merchandise Store', + location_id: 'L_12345', + item_list_id: 'related_products', + item_variant: 'green', + item_category: 'Apparel', + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_name: 'Related Products', + }, + ], + price: 2.4, + value: 4.8, + currency: 'USD', + quantity: 2, + session_id: 16678456735, + engagement_time_msec: 1, + client_id: 'client@1234', + }, + }, + ], + client_id: 'client_id', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) send integer userId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + userId: 34567, + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + sessionId: 16678456735, + }, + type: 'track', + event: 'product added', + properties: { + currency: 'USD', + price: 2.4, + quantity: 2, + client_id: 'client@1234', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'Monopoly: 3rd Edition', + coupon: 'SUMMER_FUN', + category: 'Apparel', + brand: 'Google', + variant: 'green', + price: '19', + quantity: '2', + position: '1', + affiliation: 'Google Merchandise Store', + currency: 'USD', + discount: 2.22, + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_id: 'related_products', + item_list_name: 'Related Products', + location_id: 'L_12345', + }, + ], + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + blockPageViewEvent: false, + typesOfClient: 'gtag', + extendPageViewParams: false, + sendUserId: false, + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + enableServerSideIdentify: true, + sendLoginSignup: true, + newOrExistingUserTrait: 'firstLogin', + loginSignupMethod: 'method', + generateLead: true, + generateLeadValueTrait: 'value', + generateLeadCurrencyTrait: 'currency', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'add_to_cart', + params: { + items: [ + { + index: 1, + price: 19, + coupon: 'SUMMER_FUN', + item_id: '507f1f77bcf86cd799439011', + currency: 'USD', + discount: 2.22, + quantity: 2, + item_name: 'Monopoly: 3rd Edition', + item_brand: 'Google', + affiliation: 'Google Merchandise Store', + location_id: 'L_12345', + item_list_id: 'related_products', + item_variant: 'green', + item_category: 'Apparel', + item_category2: 'Adult', + item_category3: 'Shirts', + item_category4: 'Crew', + item_category5: 'Short sleeve', + item_list_name: 'Related Products', + }, + ], + price: 2.4, + value: 4.8, + currency: 'USD', + quantity: 2, + session_id: 16678456735, + engagement_time_msec: 1, + client_id: 'client@1234', + }, + }, + ], + client_id: 'client_id', + user_id: '34567', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) login event with user_properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + anonymousId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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: { + campaign: 'advertizing', + }, + 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', + }, + type: 'track', + event: 'login', + properties: { + method: 'facebook', + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'login', + params: { + method: 'facebook', + engagement_time_msec: 1, + }, + }, + ], + user_id: 'user@1', + user_properties: { + campaign: { + value: 'advertizing', + }, + }, + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) sign_up event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + anonymousId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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: { + campaign: 'advertizing', + }, + 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', + }, + type: 'track', + event: 'sign_up', + properties: { + method: 'google', + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'sign_up', + params: { + method: 'google', + engagement_time_msec: 1, + }, + }, + ], + user_id: 'user@1', + user_properties: { + campaign: { + value: 'advertizing', + }, + }, + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) generate_lead event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + anonymousId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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: { + campaign: 'advertizing', + }, + 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', + }, + type: 'track', + event: 'generate_lead', + properties: { + source: 'instagram', + value: 20, + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'generate_lead', + params: { + currency: 'USD', + value: 20, + source: 'instagram', + engagement_time_msec: 1, + }, + }, + ], + user_id: 'user@1', + user_properties: { + campaign: { + value: 'advertizing', + }, + }, + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) track call with page information such as url, title, referrer', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + anonymousId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + page: { + initial_referrer: '$direct', + path: '/', + referrer: '$direct', + tab_url: 'https://www.rudderstack.com/', + title: 'Document', + url: 'https://www.rudderstack.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', + }, + type: 'track', + event: 'generate_lead', + properties: { + source: 'instagram', + value: 20, + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'generate_lead', + params: { + currency: 'USD', + value: 20, + source: 'instagram', + page_location: 'https://www.rudderstack.com/', + page_referrer: '$direct', + page_title: 'Document', + engagement_time_msec: 1, + }, + }, + ], + user_id: 'user@1', + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + '(gtag) track event with hybrid connection mode using buffer cloud mode event approach', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + anonymousId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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: { + campaign: 'advertizing', + }, + 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', + }, + type: 'track', + event: 'generate_lead', + properties: { + source: 'instagram', + value: 20, + }, + integrations: { + All: true, + 'Google Analytics 4 (GA4)': { + clientId: '554581488.1683172875', + sessionId: '1683172875', + }, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + connectionMode: 'hybrid', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'generate_lead', + params: { + currency: 'USD', + value: 20, + source: 'instagram', + session_id: '1683172875', + engagement_time_msec: 1, + }, + }, + ], + user_id: 'user@1', + user_properties: { + campaign: { + value: 'advertizing', + }, + }, + client_id: '554581488.1683172875', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: + '(gtag) track event with hybrid connection mode using override client_id and session_id approach', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + anonymousId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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: { + campaign: 'advertizing', + }, + 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', + sessionId: 1683172874065, + }, + type: 'track', + event: 'generate_lead', + properties: { + source: 'instagram', + value: 20, + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + connectionMode: 'hybrid', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'generate_lead', + params: { + currency: 'USD', + value: 20, + source: 'instagram', + session_id: 1683172874065, + engagement_time_msec: 1, + }, + }, + ], + user_id: 'user@1', + user_properties: { + campaign: { + value: 'advertizing', + }, + }, + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) firing group calls with GA4 hybrid mode connection', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'group', + event: 'tutorial complete', + integrations: { + 'Google Analytics 4': { + clientId: '4718026.1683606287', + sessionId: '1683606287', + sessionNumber: 1, + }, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + connectionMode: 'hybrid', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://www.google-analytics.com/mp/collect', + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + body: { + JSON: { + non_personalized_ads: true, + client_id: '4718026.1683606287', + events: [ + { + name: 'join_group', + params: { + engagement_time_msec: 1, + session_id: '1683606287', + session_number: 1, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) sign_up event with all data types of user_properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + anonymousId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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: { + campaign: 'advertizing', + name: 'rudder', + age: 45, + hobby: ['dancing', 'singing', 'reading'], + enableEURegion: false, + isEnterpriseUser: { + value: false, + }, + }, + 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', + }, + type: 'track', + event: 'sign_up', + properties: { + method: 'google', + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6BET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'sign_up', + params: { + method: 'google', + engagement_time_msec: 1, + }, + }, + ], + user_id: 'user@1', + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + user_properties: { + age: { + value: 45, + }, + name: { + value: 'rudder', + }, + campaign: { + value: 'advertizing', + }, + enableEURegion: { + value: false, + }, + }, + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '[Error]: (gtag) event name starts with numbers', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + type: 'track', + event: '1234_sign_up', + properties: { + total: '10', + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + connectionMode: 'cloud', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Event name must start with a letter and can only contain letters, numbers, and underscores', + statTags: { + destType: 'GA4', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'ga4', + description: '(gtag) event having multiple empty array and object parameters', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'logIn', + userId: 'user@1', + group_id: 'group@1', + anon_id: '78e95d6d-58c0-4237-b99e-2ef510b6d502', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + externalId: [ + { + type: 'ga4AppInstanceId', + id: 'f0dd99b6f979fb551ce583373900f937', + }, + { + type: 'ga4ClientId', + id: 'client_id', + }, + ], + 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', + }, + properties: { + user_interest: 'Moderate', + company_interest: '', + profile: [ + { + is_6qa: true, + product: null, + product_fit: 'Moderate', + product_stage: 'Purchase', + intent_score: 89, + profile_score: 52, + product_display$name: 'rudderstack', + }, + ], + user_company: 'Analytics consulting', + user_account: '1', + user_id_mappings: '330098|245252|461224|282599', + company_naics_6sense: '5173', + usr_consent: null, + firebase_user_id: 'kdgMnP', + google_user_id: 'G-123456', + company_domain: 'consulting.net', + company_region: 'New Zealand', + user_product_interests: { + ids: [], + list: [ + { + id: 330098, + name: [], + }, + { + id: 245252, + name: {}, + }, + ], + names: [], + }, + company_country: {}, + company_industry: 'Business Analytics', + company_revenue: '$5M - $10M', + company_annual_revenue: '5568000', + company_sic_description: '', + company_naics_description: [], + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'dummyApiSecret', + measurementId: 'G-T40PE6KET4', + firebaseAppId: '', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + connectionMode: 'cloud', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'login', + params: { + company_annual_revenue: '5568000', + company_domain: 'consulting.net', + company_industry: 'Business Analytics', + company_naics_6sense: '5173', + company_region: 'New Zealand', + company_revenue: '$5M - $10M', + engagement_time_msec: 1, + profile_0_intent_score: 89, + profile_0_is_6qa: true, + profile_0_product_display$name: 'rudderstack', + profile_0_product_fit: 'Moderate', + profile_0_product_stage: 'Purchase', + profile_0_profile_score: 52, + user_account: '1', + user_company: 'Analytics consulting', + user_id_mappings: '330098|245252|461224|282599', + user_interest: 'Moderate', + user_product_interests_list_0_id: 330098, + user_product_interests_list_1_id: 245252, + }, + }, + ], + user_id: 'user@1', + client_id: 'client_id', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'dummyApiSecret', + measurement_id: 'G-T40PE6KET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'ga4', + description: '(gtag) campaign_details custom event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + anonymousId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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, + }, + campaign: { + id: 'google_1234', + name: 'Summer_fun', + source: 'google', + medium: 'cpc', + term: 'summer+travel', + content: 'logo link', + }, + 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', + }, + type: 'track', + event: 'Campaign Details', + properties: {}, + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiSecret: 'QyWKGHj8QhG2L4ePAPiXCA', + measurementId: 'G-T40PE6BET4', + typesOfClient: 'gtag', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'campaign_details', + params: { + campaign_id: 'google_1234', + campaign: 'Summer_fun', + source: 'google', + medium: 'cpc', + term: 'summer+travel', + content: 'logo link', + engagement_time_msec: 1, + }, + }, + ], + user_id: 'user@1', + client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + non_personalized_ads: true, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: { + api_secret: 'QyWKGHj8QhG2L4ePAPiXCA', + measurement_id: 'G-T40PE6BET4', + }, + headers: { + HOST: 'www.google-analytics.com', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://www.google-analytics.com/mp/collect', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + mockFns: defaultMockFns, + }, +]; diff --git a/test/integrations/destinations/gainsight/network.ts b/test/integrations/destinations/gainsight/network.ts new file mode 100644 index 0000000000..c8adf871b9 --- /dev/null +++ b/test/integrations/destinations/gainsight/network.ts @@ -0,0 +1,71 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://demo-domain.gainsightcloud.com/v1/data/objects/query/Company', + method: 'POST', + }, + httpRes: { + data: { + "result": true, + "errorCode": null, + "errorDesc": null, + "requestId": "47d9c8be-4912-4610-806c-0eec22b73236", + "data": { + "records": [] + }, + "message": null + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://demo-domain.gainsightcloud.com/v1/data/objects/Company', + method: 'POST', + }, + httpRes: { + data: { + "result": true, + "errorCode": null, + "errorDesc": null, + "requestId": "3ce46d4a-6a83-4a92-97b3-d9788a296af8", + "data": { + "count": 1, + "errors": null, + "records": [ + { + "Gsid": "1P0203VCESP7AUQMV9E953G" + } + ] + }, + "message": null + }, + status: 200 + }, + }, + { + httpReq: { + url: "https://demo-domain.gainsightcloud.com/v1/data/objects/Company?keys=Name", + method: 'GET', + }, + httpRes: { + data: { + "result": true, + "errorCode": null, + "errorDesc": null, + "requestId": "30630809-40a7-45d2-9673-ac2e80d06f33", + "data": { + "count": 1, + "errors": null, + "records": [ + { + "Gsid": "1P0203VCESP7AUQMV9E953G" + } + ] + }, + "message": null + }, + status: 200 + }, + } +]; diff --git a/test/integrations/destinations/gainsight/processor/data.ts b/test/integrations/destinations/gainsight/processor/data.ts new file mode 100644 index 0000000000..fbeb01f593 --- /dev/null +++ b/test/integrations/destinations/gainsight/processor/data.ts @@ -0,0 +1,970 @@ +export const data = [ + { + "name": "gainsight", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "personMap": [], + "companyMap": [], + "eventNameMap": [], + "eventVersionMap": [] + } + }, + "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": "cosmo@krammer.com", + "name": "Cosmo Krammer", + "linkedinUrl": "https://linkedin.com/cosmo-krammer", + "location": "New York", + "emailOptOut": true, + "masterAvatarTypeCode": 10 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "Email": "cosmo@krammer.com", + "Name": "Cosmo Krammer", + "LinkedinUrl": "https://linkedin.com/cosmo-krammer", + "Location": "New York", + "EmailOptOut": true, + "MasterAvatarTypeCode": 10 + } + }, + "type": "REST", + "files": {}, + "method": "PUT", + "params": {}, + "headers": { + "Accesskey": "sample-access-key", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "gainsight", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "personMap": [ + { + "from": "age", + "to": "age__gc" + } + ], + "companyMap": [], + "eventNameMap": [], + "eventVersionMap": [] + } + }, + "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": "cosmo@krammer.com", + "name": "Cosmo Krammer", + "linkedinUrl": "https://linkedin.com/cosmo-krammer", + "location": "New York", + "emailOptOut": true, + "masterAvatarTypeCode": 10, + "age": 35, + "randomKey": "this should be dropped" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "Email": "cosmo@krammer.com", + "Name": "Cosmo Krammer", + "LinkedinUrl": "https://linkedin.com/cosmo-krammer", + "Location": "New York", + "EmailOptOut": true, + "MasterAvatarTypeCode": 10, + "age__gc": 35 + } + }, + "type": "REST", + "files": {}, + "method": "PUT", + "params": {}, + "headers": { + "Accesskey": "sample-access-key", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "gainsight", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "personMap": [], + "companyMap": [], + "eventNameMap": [], + "eventVersionMap": [] + } + }, + "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": { + "name": "Cosmo Krammer", + "linkedinUrl": "https://linkedin.com/cosmo-krammer", + "location": "New York", + "emailOptOut": true, + "masterAvatarTypeCode": 10 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "email is required for identify", + "statTags": { + "destType": "GAINSIGHT", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "gainsight", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "sharedSecret": "sample-shared-secret", + "eventNameMap": [ + { + "from": "Ticket Resolved", + "to": "Ticket Resolved Event" + } + ], + "eventVersionMap": [ + { + "from": "Ticket Resolved", + "to": "1.0.0" + } + ], + "topicName": "Ticket Actions", + "tenantId": "sample-tenant-id", + "personMap": [], + "companyMap": [] + } + }, + "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": "track", + "event": "Ticket Resolved", + "properties": { + "ticketId": "sample-ticket-id", + "actionEmail": "sample@email.com", + "status": "resovled" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "ticketId": "sample-ticket-id", + "actionEmail": "sample@email.com", + "status": "resovled" + } + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Accesskey": "sample-access-key", + "tenantId": "sample-tenant-id", + "sharedSecret": "sample-shared-secret", + "Content-Type": "application/json", + "topicName": "Ticket Actions", + "eventName": "Ticket Resolved Event", + "eventVersion": "1.0.0" + }, + "version": "1", + "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/eventManager/event", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "gainsight", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "sharedSecret": "sample-shared-secret", + "personMap": [], + "companyMap": [], + "eventNameMap": [], + "eventVersionMap": [] + } + }, + "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 + }, + "traits": { + "email": "krammer@seinfeld.com" + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "anon_id", + "type": "group", + "traits": { + "name": "Kramerica Industries", + "industry": "Sitcom", + "employees": "100", + "status": "complete", + "companyType": "spoof" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "Email": "krammer@seinfeld.com", + "companies": [ + { + "Company_ID": "1P0203VCESP7AUQMV9E953G" + } + ] + } + }, + "type": "REST", + "files": {}, + "method": "PUT", + "params": {}, + "headers": { + "Accesskey": "sample-access-key", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "gainsight", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "sharedSecret": "sample-shared-secret", + "personMap": [], + "companyMap": [], + "eventNameMap": [], + "eventVersionMap": [] + } + }, + "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 + }, + "traits": { + "email": "krammer@seinfeld.com" + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "anon_id", + "type": "group", + "traits": { + "name": "Seinfeld Corps", + "industry": "TV Series", + "employees": "50", + "status": "complete" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "Email": "krammer@seinfeld.com", + "companies": [ + { + "Company_ID": "1P0203VCESP7AUQMV9E953G" + } + ] + } + }, + "type": "REST", + "files": {}, + "method": "PUT", + "params": {}, + "headers": { + "Accesskey": "sample-access-key", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "gainsight", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "personMap": [], + "companyMap": [], + "eventNameMap": [], + "eventVersionMap": [] + } + }, + "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": "cosmo@krammer.com", + "firstname": "Cosmo", + "lastname": "Krammer", + "linkedinUrl": "https://linkedin.com/cosmo-krammer", + "location": "New York", + "emailOptOut": true, + "masterAvatarTypeCode": 10 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "Email": "cosmo@krammer.com", + "FirstName": "Cosmo", + "LastName": "Krammer", + "Name": "Cosmo Krammer", + "LinkedinUrl": "https://linkedin.com/cosmo-krammer", + "Location": "New York", + "EmailOptOut": true, + "MasterAvatarTypeCode": 10 + } + }, + "type": "REST", + "files": {}, + "method": "PUT", + "params": {}, + "headers": { + "Accesskey": "sample-access-key", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "gainsight", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "sharedSecret": "sample-shared-secret", + "eventNameMap": [ + { + "from": "Ticket Resolved", + "to": "Ticket Resolved Event" + } + ], + "eventVersionMap": [ + { + "from": "Ticket Resolved", + "to": "1.0.0" + } + ], + "topicName": "Ticket Actions", + "tenantId": "sample-tenant-id", + "personMap": [], + "companyMap": [], + "contractId": "externalId-shall-get-precedence" + } + }, + "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 + }, + "externalId": [ + { + "type": "gainsightEventContractId", + "id": "sample-contract-id" + } + ] + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "anon_id", + "type": "track", + "event": "Ticket Resolved", + "properties": { + "ticketId": "sample-ticket-id", + "actionEmail": "sample@email.com", + "status": "resovled" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "ticketId": "sample-ticket-id", + "actionEmail": "sample@email.com", + "status": "resovled" + } + }, + "type": "REST", + "files": {}, + "method": "POST", + "params": {}, + "headers": { + "Accesskey": "sample-access-key", + "tenantId": "sample-tenant-id", + "sharedSecret": "sample-shared-secret", + "Content-Type": "application/json", + "topicName": "Ticket Actions", + "eventName": "Ticket Resolved Event", + "eventVersion": "1.0.0", + "contractId": "sample-contract-id" + }, + "version": "1", + "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/eventManager/event", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "gainsight", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "domain": "demo-domain.gainsightcloud.com", + "accessKey": "sample-access-key", + "personMap": [ + { + "from": "car", + "to": "car__gc" + } + ], + "companyMap": [], + "eventNameMap": [], + "eventVersionMap": [] + } + }, + "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": { + "name": "Bruce Wayne", + "email": "ceo@waynefoundation.com", + "car": "Batmobile", + "comments": "I am Batman!", + "lastName": "Wayne", + "location": "Gotham Central", + "firstName": "Bruce", + "linkedinUrl": "https://www.linkedin.com/in/notyourBatman/" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {}, + "JSON": { + "Name": "Bruce Wayne", + "Email": "ceo@waynefoundation.com", + "car__gc": "Batmobile", + "Comments": "I am Batman!", + "LastName": "Wayne", + "Location": "Gotham Central", + "FirstName": "Bruce", + "LinkedinUrl": "https://www.linkedin.com/in/notyourBatman/" + } + }, + "type": "REST", + "files": {}, + "method": "PUT", + "params": {}, + "headers": { + "Accesskey": "sample-access-key", + "Content-Type": "application/json" + }, + "version": "1", + "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people", + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/gainsight/router/data.ts b/test/integrations/destinations/gainsight/router/data.ts new file mode 100644 index 0000000000..9550fa892b --- /dev/null +++ b/test/integrations/destinations/gainsight/router/data.ts @@ -0,0 +1,436 @@ +export const data = [ + { + name: 'gainsight', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'identify', + sentAt: '2021-05-28T11:22:01.842Z', + userId: 'live-test', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.18', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'file:///Users/anurajguha/workspace/simple-html-test/index.html', + path: '/Users/anurajguha/workspace/simple-html-test/index.html', + title: 'Test', + search: '', + tab_url: 'file:///Users/anurajguha/workspace/simple-html-test/index.html', + referrer: '$direct', + initial_referrer: '$direct', + referring_domain: '', + initial_referring_domain: '', + }, + locale: 'en-GB', + screen: { density: 2 }, + traits: { + name: 'Cosmo Krammer', + email: 'cosmo@krammer.com', + location: 'New York', + emailOptOut: true, + linkedinUrl: 'https://linkedin.com/cosmo-krammer', + masterAvatarTypeCode: 10, + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36', + }, + rudderId: '94d40f2f-5787-4798-8a03-34f3b02f5ede', + messageId: '8274e525-d99c-4f55-b67a-bbc890d1444c', + timestamp: '2021-05-28T16:52:01.859+05:30', + receivedAt: '2021-05-28T16:52:01.859+05:30', + request_ip: '[::1]', + anonymousId: '1585ea2f-dddc-4d23-935f-c1196405d61e', + integrations: { All: true }, + originalTimestamp: '2021-05-28T11:22:01.842Z', + }, + metadata: { + userId: '94d40f2f-5787-4798-8a03-34f3b02f5ede', + jobId: 1, + sourceId: '1syvMwC0K62eIb4yAV9kFJtbDEA', + destinationId: '1syvZAuiGo4l1SIsil0TxDEx34G', + attemptNum: 0, + receivedAt: '2021-05-28T16:52:01.859+05:30', + createdAt: '2021-05-28T11:22:02.463Z', + firstAttemptedAt: '', + transformAt: 'router', + }, + destination: { + ID: '1syvZAuiGo4l1SIsil0TxDEx34G', + Name: 'gainsight-dev-dest', + DestinationDefinition: { + ID: '1syuhEt4I8jpvlwJc4lr1IiLjPu', + Name: 'GAINSIGHT', + DisplayName: 'Gainsight', + Config: { + destConfig: { + defaultConfig: [ + 'accessKey', + 'sharedSecret', + 'tenantId', + 'domain', + 'personMap', + 'companyMap', + 'topicName', + 'eventNameMap', + 'eventVersionMap', + 'contractId', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['accessKey', 'sharedSecret'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accessKey: 'sample-access-key', + contractId: '', + domain: 'demo-account.gainsightcloud.com', + sharedSecret: '', + tenantId: '', + topicName: '', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + message: { + type: 'track', + event: 'Demo Request', + sentAt: '2021-05-28T11:52:12.893Z', + userId: '', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.18', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'file:///Users/anurajguha/workspace/simple-html-test/index.html', + path: '/Users/anurajguha/workspace/simple-html-test/index.html', + title: 'Test', + search: '', + tab_url: 'file:///Users/anurajguha/workspace/simple-html-test/index.html', + referrer: '$direct', + initial_referrer: '$direct', + referring_domain: '', + initial_referring_domain: '', + }, + locale: 'en-GB', + screen: { density: 2 }, + traits: {}, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36', + }, + rudderId: '1a30a93f-916b-4c39-ad20-1ce7bbbd7754', + messageId: 'f5619b1a-8704-42a8-bab9-92bbeaa44896', + timestamp: '2021-05-28T17:22:12.905+05:30', + properties: { email: 'sample@user.com', status: 'active' }, + receivedAt: '2021-05-28T17:22:12.905+05:30', + request_ip: '[::1]', + anonymousId: '1585ea2f-dddc-4d23-935f-c1196405d61e', + integrations: { All: true }, + originalTimestamp: '2021-05-28T11:52:12.893Z', + }, + metadata: { + userId: '1a30a93f-916b-4c39-ad20-1ce7bbbd7754', + jobId: 2, + sourceId: '1syvMwC0K62eIb4yAV9kFJtbDEA', + destinationId: '1syvZAuiGo4l1SIsil0TxDEx34G', + attemptNum: 0, + receivedAt: '2021-05-28T17:22:12.905+05:30', + createdAt: '2021-05-28T11:52:15.283Z', + firstAttemptedAt: '', + transformAt: 'router', + }, + destination: { + ID: '1syvZAuiGo4l1SIsil0TxDEx34G', + Name: 'gainsight-dev-dest', + DestinationDefinition: { + ID: '1syuhEt4I8jpvlwJc4lr1IiLjPu', + Name: 'GAINSIGHT', + DisplayName: 'Gainsight', + Config: { + destConfig: { + defaultConfig: [ + 'accessKey', + 'sharedSecret', + 'tenantId', + 'domain', + 'personMap', + 'companyMap', + 'topicName', + 'eventNameMap', + 'eventVersionMap', + 'contractId', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['accessKey', 'sharedSecret'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accessKey: 'sample-access-key', + contractId: 'sample-contract-id', + domain: 'demo-account.gainsightcloud.com', + eventNameMap: [{ from: 'Demo Request', to: 'Product Demo' }], + eventVersionMap: [{ from: 'Demo Request', to: '1.0.0' }], + sharedSecret: 'sample-shared-secret', + tenantId: 'sample-tenant-id', + topicName: 'Support Tickets', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + ], + destType: 'gainsight', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://demo-account.gainsightcloud.com/v1.0/api/people', + headers: { Accesskey: 'sample-access-key', 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + Email: 'cosmo@krammer.com', + Name: 'Cosmo Krammer', + LinkedinUrl: 'https://linkedin.com/cosmo-krammer', + Location: 'New York', + EmailOptOut: true, + MasterAvatarTypeCode: 10, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + userId: '94d40f2f-5787-4798-8a03-34f3b02f5ede', + jobId: 1, + sourceId: '1syvMwC0K62eIb4yAV9kFJtbDEA', + destinationId: '1syvZAuiGo4l1SIsil0TxDEx34G', + attemptNum: 0, + receivedAt: '2021-05-28T16:52:01.859+05:30', + createdAt: '2021-05-28T11:22:02.463Z', + firstAttemptedAt: '', + transformAt: 'router', + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1syvZAuiGo4l1SIsil0TxDEx34G', + Name: 'gainsight-dev-dest', + DestinationDefinition: { + ID: '1syuhEt4I8jpvlwJc4lr1IiLjPu', + Name: 'GAINSIGHT', + DisplayName: 'Gainsight', + Config: { + destConfig: { + defaultConfig: [ + 'accessKey', + 'sharedSecret', + 'tenantId', + 'domain', + 'personMap', + 'companyMap', + 'topicName', + 'eventNameMap', + 'eventVersionMap', + 'contractId', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['accessKey', 'sharedSecret'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accessKey: 'sample-access-key', + contractId: '', + domain: 'demo-account.gainsightcloud.com', + sharedSecret: '', + tenantId: '', + topicName: '', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://demo-account.gainsightcloud.com/v1.0/api/eventManager/event', + headers: { + sharedSecret: 'sample-shared-secret', + topicName: 'Support Tickets', + tenantId: 'sample-tenant-id', + 'Content-Type': 'application/json', + eventName: 'Product Demo', + eventVersion: '1.0.0', + contractId: 'sample-contract-id', + Accesskey: 'sample-access-key', + }, + params: {}, + body: { + JSON: { email: 'sample@user.com', status: 'active' }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + userId: '1a30a93f-916b-4c39-ad20-1ce7bbbd7754', + jobId: 2, + sourceId: '1syvMwC0K62eIb4yAV9kFJtbDEA', + destinationId: '1syvZAuiGo4l1SIsil0TxDEx34G', + attemptNum: 0, + receivedAt: '2021-05-28T17:22:12.905+05:30', + createdAt: '2021-05-28T11:52:15.283Z', + firstAttemptedAt: '', + transformAt: 'router', + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1syvZAuiGo4l1SIsil0TxDEx34G', + Name: 'gainsight-dev-dest', + DestinationDefinition: { + ID: '1syuhEt4I8jpvlwJc4lr1IiLjPu', + Name: 'GAINSIGHT', + DisplayName: 'Gainsight', + Config: { + destConfig: { + defaultConfig: [ + 'accessKey', + 'sharedSecret', + 'tenantId', + 'domain', + 'personMap', + 'companyMap', + 'topicName', + 'eventNameMap', + 'eventVersionMap', + 'contractId', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['accessKey', 'sharedSecret'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accessKey: 'sample-access-key', + contractId: 'sample-contract-id', + domain: 'demo-account.gainsightcloud.com', + eventNameMap: [{ from: 'Demo Request', to: 'Product Demo' }], + eventVersionMap: [{ from: 'Demo Request', to: '1.0.0' }], + sharedSecret: 'sample-shared-secret', + tenantId: 'sample-tenant-id', + topicName: 'Support Tickets', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/gainsight_px/network.ts b/test/integrations/destinations/gainsight_px/network.ts new file mode 100644 index 0000000000..d9dd6bbaa0 --- /dev/null +++ b/test/integrations/destinations/gainsight_px/network.ts @@ -0,0 +1,222 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.aptrinsic.com/v1/users/sample-user-id', + method: 'GET', + }, + httpRes: { + data: { + "aptrinsicId": "347c4c87-98c7-4ca6-a6da-678ed6924c22", + "identifyId": "sample-user-id", + "type": "USER", + "gender": "MALE", + "email": "user@email.com", + "firstName": "Sample", + "lastName": "User", + "lastSeenDate": 0, + "signUpDate": 1624431528295, + "firstVisitDate": 0, + "title": "engineer", + "phone": "", + "score": 0, + "role": "", + "subscriptionId": "", + "accountId": "", + "numberOfVisits": 1, + "location": { + "countryName": "USA", + "countryCode": "US", + "stateName": "", + "stateCode": "", + "city": "New York", + "street": "", + "postalCode": "", + "continent": "", + "regionName": "", + "timeZone": "", + "coordinates": { + "latitude": 0.0, + "longitude": 0.0 + } + }, + "propertyKeys": ["AP-XABC-123"], + "createDate": 1624431528295, + "lastModifiedDate": 1624431528295, + "customAttributes": null, + "globalUnsubscribe": false, + "sfdcContactId": "", + "lastVisitedUserAgentData": null, + "id": "sample-user-id", + "lastInferredLocation": { + "countryName": "", + "countryCode": "", + "stateName": "", + "stateCode": "", + "city": "", + "street": "", + "postalCode": "", + "continent": "", + "regionName": "", + "timeZone": "", + "coordinates": { + "latitude": 0.0, + "longitude": 0.0 + } + } + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://api.aptrinsic.com/v1/accounts/ecorp-id', + method: 'GET', + }, + httpRes: { + data: { + "id": "ecorp-id", + "name": "ECorp", + "trackedSubscriptionId": "", + "sfdcId": "", + "lastSeenDate": 0, + "dunsNumber": "", + "industry": "software", + "numberOfEmployees": 400, + "sicCode": "", + "website": "www.ecorp.com", + "naicsCode": "", + "plan": "premium", + "location": { + "countryName": "", + "countryCode": "", + "stateName": "", + "stateCode": "", + "city": "", + "street": "", + "postalCode": "", + "continent": "", + "regionName": "", + "timeZone": "", + "coordinates": { + "latitude": 0.0, + "longitude": 0.0 + } + }, + "numberOfUsers": 0, + "propertyKeys": ["AP-XABC-123"], + "createDate": 1624261864923, + "lastModifiedDate": 1624261864923, + "customAttributes": null, + "parentGroupId": "" + }, + status: 200 + }, + }, + { + httpReq: { + url: 'https://api.aptrinsic.com/v1/accounts/ecorp-id', + method: 'PUT', + }, + httpRes: { + data: { + "id": "ecorp-id", + "name": "ECorp", + "trackedSubscriptionId": "", + "sfdcId": "", + "lastSeenDate": 0, + "dunsNumber": "", + "industry": "software", + "numberOfEmployees": 400, + "sicCode": "", + "website": "www.ecorp.com", + "naicsCode": "", + "plan": "premium", + "location": { + "countryName": "", + "countryCode": "", + "stateName": "", + "stateCode": "", + "city": "", + "street": "", + "postalCode": "", + "continent": "", + "regionName": "", + "timeZone": "", + "coordinates": { + "latitude": 0.0, + "longitude": 0.0 + } + }, + "numberOfUsers": 0, + "propertyKeys": ["AP-XABC-123"], + "createDate": 1624261864923, + "lastModifiedDate": 1624261864923, + "customAttributes": null, + "parentGroupId": "" + }, + status: 204 + }, + }, + { + httpReq: { + url: 'https://api.aptrinsic.com/v1/users/absent-id', + method: 'GET', + }, + httpRes: { + data: { + externalapierror: { + status: "NOT_FOUND", + message: "User was not found for parameters {id=absent-id}", + debugMessage: null, + subErrors: null + } + }, + status: 404 + }, + }, + { + httpReq: { + url: 'https://api.aptrinsic.com/v1/users/stanley-kubrick', + method: 'GET', + }, + httpRes: { + data: { + "id": "ecorp-id", + "name": "ECorp", + "trackedSubscriptionId": "", + "sfdcId": "", + "lastSeenDate": 0, + "dunsNumber": "", + "industry": "software", + "numberOfEmployees": 400, + "sicCode": "", + "website": "www.ecorp.com", + "naicsCode": "", + "plan": "premium", + "location": { + "countryName": "", + "countryCode": "", + "stateName": "", + "stateCode": "", + "city": "", + "street": "", + "postalCode": "", + "continent": "", + "regionName": "", + "timeZone": "", + "coordinates": { + "latitude": 0.0, + "longitude": 0.0 + } + }, + "numberOfUsers": 0, + "propertyKeys": ["AP-XABC-123"], + "createDate": 1624261864923, + "lastModifiedDate": 1624261864923, + "customAttributes": null, + "parentGroupId": "" + }, + status: 200 + }, + } +]; diff --git a/test/integrations/destinations/gainsight_px/processor/data.ts b/test/integrations/destinations/gainsight_px/processor/data.ts new file mode 100644 index 0000000000..3dfe86aa98 --- /dev/null +++ b/test/integrations/destinations/gainsight_px/processor/data.ts @@ -0,0 +1,2165 @@ +export const data = [ + { + name: 'gainsight_px', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: '', + to: '', + }, + ], + globalContextMap: [ + { + from: 'projectId', + to: 'p-123', + }, + { + from: 'tag', + to: 'sample-category-tag', + }, + ], + }, + }, + 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, + }, + }, + userId: 'sample-user-id', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + type: 'track', + event: 'Product Added', + properties: { + product_id: '123', + sku: 'F16', + category: 'Games', + name: 'Game', + brand: 'Gamepro', + variant: '111', + price: 13.49, + quantity: 11, + coupon: 'DISC21', + position: 1, + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.png', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + attributes: { + product_id: '123', + sku: 'F16', + category: 'Games', + name: 'Game', + brand: 'Gamepro', + variant: '111', + price: 13.49, + quantity: 11, + coupon: 'DISC21', + position: 1, + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.png', + }, + propertyKey: 'AP-XABC-123', + userType: 'USER', + identifyId: 'sample-user-id', + date: 1571043797562, + eventName: 'Product Added', + globalContext: { + projectId: 'p-123', + tag: 'sample-category-tag', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/events/custom', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: '', + to: '', + }, + ], + globalContextMap: [ + { + from: 'projectId', + to: 'p-123', + }, + { + from: 'tag', + to: 'sample-category-tag', + }, + ], + }, + }, + message: { + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + version: '1.27.0', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:8887/', + path: '/', + title: 'RudderStack in 5', + search: '', + tab_url: 'http://127.0.0.1:8887/', + referrer: '$direct', + initial_referrer: '$direct', + referring_domain: '', + initial_referring_domain: '', + }, + locale: 'en-US', + screen: { + width: 1512, + height: 982, + density: 2, + innerWidth: 774, + innerHeight: 774, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.27.0', + }, + campaign: {}, + sessionId: 1679967592314, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36', + properties: { + email: '84@84.com', + price: '56.0', + quantity: '5', + }, + }, + userId: 'sample-user-id', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + type: 'track', + event: 'Marketing - Plan Change Events', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + attributes: {}, + url: 'http://127.0.0.1:8887/', + propertyKey: 'AP-XABC-123', + userType: 'USER', + identifyId: 'sample-user-id', + referrer: '$direct', + date: 1571043797562, + sessionId: 1679967592314, + eventName: 'Marketing - Plan Change Events', + globalContext: { + projectId: 'p-123', + tag: 'sample-category-tag', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/events/custom', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: '', + to: '', + }, + ], + globalContextMap: [ + { + from: 'projectId', + to: 'p-123', + }, + { + from: 'tag', + to: 'sample-category-tag', + }, + ], + }, + }, + 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, + }, + }, + userId: 'sample-user-id', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + type: 'track', + event: 'Track Me', + properties: { + description: 'Sample Track call', + globalContext: { + testOverride: 'some-value', + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + attributes: { + description: 'Sample Track call', + }, + propertyKey: 'AP-XABC-123', + userType: 'USER', + identifyId: 'sample-user-id', + date: 1571043797562, + eventName: 'Track Me', + globalContext: { + testOverride: 'some-value', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/events/custom', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: 'hobbyCustomField', + to: 'hobby', + }, + ], + globalContextMap: [], + }, + }, + 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', + userId: 'sample-user-id', + anonymousId: 'sample-anon-id', + type: 'identify', + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + title: 'engineer', + countryName: 'USA', + countryCode: 'US', + city: 'New York', + hobbyCustomField: 'Sample Hobby', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + title: 'engineer', + propertyKeys: ['AP-XABC-123'], + location: { + countryName: 'USA', + countryCode: 'US', + city: 'New York', + }, + customAttributes: { + hobby: 'Sample Hobby', + }, + }, + }, + type: 'REST', + files: {}, + method: 'PUT', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/users/sample-user-id', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [], + globalContextMap: [], + }, + }, + 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, + }, + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + medium: null, + }, + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + userId: 'sample-user-id', + groupId: 'ecorp-id', + type: 'group', + traits: { + name: 'ECorp', + industry: 'software', + numberOfEmployees: 400, + website: 'www.ecorp.com', + plan: 'premium', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + accountId: 'ecorp-id', + }, + }, + type: 'REST', + files: {}, + method: 'PUT', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/users/sample-user-id', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: 'hobbyCustomField', + to: 'hobby', + }, + ], + globalContextMap: [], + }, + }, + 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', + type: 'identify', + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + title: 'engineer', + countryName: 'USA', + countryCode: 'US', + city: 'New York', + hobbyCustomField: 'Sample Hobby', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'userId or anonymousId is required for identify', + statTags: { + destType: 'GAINSIGHT_PX', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: '', + to: '', + }, + ], + globalContextMap: [ + { + from: 'projectId', + to: 'p-123', + }, + { + from: 'tag', + to: 'sample-category-tag', + }, + ], + }, + }, + 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', + type: 'track', + event: 'Product Added', + properties: { + product_id: '123', + sku: 'F16', + category: 'Games', + name: 'Game', + brand: 'Gamepro', + variant: '111', + price: 13.49, + quantity: 11, + coupon: 'DISC21', + position: 1, + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.png', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Missing required value from "userId"', + statTags: { + destType: 'GAINSIGHT_PX', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [], + globalContextMap: [], + }, + }, + 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, + }, + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + }, + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + userId: 'sample-user-id', + type: 'group', + traits: { + name: 'ECorp', + industry: 'software', + numberOfEmployees: 400, + website: 'www.ecorp.com', + plan: 'premium', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'groupId is required for group', + statTags: { + destType: 'GAINSIGHT_PX', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: '', + to: '', + }, + ], + globalContextMap: [ + { + from: 'projectId', + to: 'p-123', + }, + { + from: 'tag', + to: 'sample-category-tag', + }, + ], + }, + }, + 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, + }, + }, + userId: 'sample-user-id', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + type: 'track', + event: 'Stringify Test', + properties: { + description: 'Stringify test for object values', + nested: { + a: [1, 2, 3], + b: { + c: 1, + }, + }, + arr: [1, 2, 3], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + attributes: { + description: 'Stringify test for object values', + nested: '{"a":[1,2,3],"b":{"c":1}}', + arr: '[1,2,3]', + }, + propertyKey: 'AP-XABC-123', + userType: 'USER', + identifyId: 'sample-user-id', + date: 1571043797562, + eventName: 'Stringify Test', + globalContext: { + projectId: 'p-123', + tag: 'sample-category-tag', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/events/custom', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: '', + to: '', + }, + ], + globalContextMap: [ + { + from: 'projectId', + to: 'p-123', + }, + { + from: 'tag', + to: 'sample-category-tag', + }, + ], + }, + }, + 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, + }, + }, + userId: 'sample-user-id', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + type: 'track', + event: 'Stringify Test', + properties: { + description: 'Stringify test for object values', + nested: { + a: [1, 2, 3], + b: { + c: 1, + }, + }, + arr: [1, 2, 3], + globalContext: { + someKey: 'someVal', + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + attributes: { + description: 'Stringify test for object values', + nested: '{"a":[1,2,3],"b":{"c":1}}', + arr: '[1,2,3]', + }, + propertyKey: 'AP-XABC-123', + userType: 'USER', + identifyId: 'sample-user-id', + date: 1571043797562, + eventName: 'Stringify Test', + globalContext: { + someKey: 'someVal', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/events/custom', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [], + globalContextMap: [], + }, + }, + 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, + }, + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + }, + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + userId: 'absent-id', + groupId: 'ecorp-id', + type: 'group', + traits: { + name: 'ECorp', + industry: 'software', + numberOfEmployees: 400, + website: 'www.ecorp.com', + plan: 'premium', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'aborting group call: {"status":"NOT_FOUND","message":"User was not found for parameters {id=absent-id}","debugMessage":null,"subErrors":null}', + statTags: { + destType: 'GAINSIGHT_PX', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: 'hobbyCustomField', + to: 'hobby', + }, + ], + globalContextMap: [], + }, + }, + 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', + userId: 'absent-id', + anonymousId: 'sample-anon-id', + type: 'identify', + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + title: 'engineer', + countryName: 'USA', + countryCode: 'US', + city: 'New York', + hobbyCustomField: 'Sample Hobby', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + identifyId: 'absent-id', + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + createDate: 1571043797562, + title: 'engineer', + propertyKeys: ['AP-XABC-123'], + location: { + countryName: 'USA', + countryCode: 'US', + city: 'New York', + }, + customAttributes: { + hobby: 'Sample Hobby', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/users', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: '', + to: '', + }, + ], + globalContextMap: [], + }, + }, + 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', + userId: 'absent-id', + anonymousId: 'sample-anon-id', + type: 'identify', + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + title: 'engineer', + countryName: 'USA', + countryCode: 'US', + city: 'New York', + hobbyCustomField: 'Sample Hobby', + accountId: 1234, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + identifyId: 'absent-id', + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + createDate: 1571043797562, + title: 'engineer', + propertyKeys: ['AP-XABC-123'], + accountId: '1234', + location: { + countryName: 'USA', + countryCode: 'US', + city: 'New York', + }, + customAttributes: {}, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/users', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [], + globalContextMap: [], + }, + }, + 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, + }, + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + }, + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'sample-anon-id', + userId: 'absent-id', + groupId: 'ecorp-id', + type: 'group', + traits: { + name: 'ECorp', + industry: 'software', + numberOfEmployees: 400, + website: 'www.ecorp.com', + plan: 'premium', + term: null, + }, + integrations: { + All: true, + GAINSIGHT_PX: { + limitAPIForGroup: true, + }, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.aptrinsic.com/v1/users/absent-id', + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + accountId: 'ecorp-id', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 14 : existing user with no createdAt field in traits but signUpDate exists', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: 'hobbyCustomField', + to: 'hobby', + }, + ], + globalContextMap: [], + }, + }, + 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', + userId: 'sample-user-id', + anonymousId: 'sample-anon-id', + type: 'identify', + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + title: 'engineer', + countryName: 'USA', + countryCode: 'US', + city: 'New York', + hobbyCustomField: 'Sample Hobby', + term: null, + campaign: '', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1624431528295, + title: 'engineer', + propertyKeys: ['AP-XABC-123'], + location: { + countryName: 'USA', + countryCode: 'US', + city: 'New York', + }, + customAttributes: { + hobby: 'Sample Hobby', + }, + }, + }, + type: 'REST', + files: {}, + method: 'PUT', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/users/sample-user-id', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 15 : new user with no signUpDate and createDate in traits', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'sample-api-key', + productTagKey: 'AP-XABC-123', + accountAttributeMap: [ + { + from: '', + to: '', + }, + ], + userAttributeMap: [ + { + from: 'hobbyCustomField', + to: 'hobby', + }, + ], + globalContextMap: [], + }, + }, + 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', + userId: 'absent-id', + anonymousId: 'sample-anon-id', + type: 'identify', + traits: { + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + title: 'engineer', + countryName: 'USA', + countryCode: 'US', + city: 'New York', + hobbyCustomField: 'Sample Hobby', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + identifyId: 'absent-id', + type: 'USER', + gender: 'MALE', + email: 'user@email.com', + firstName: 'Sample', + lastName: 'User', + signUpDate: 1571043797562, + createDate: 1571043797562, + title: 'engineer', + propertyKeys: ['AP-XABC-123'], + location: { + countryName: 'USA', + countryCode: 'US', + city: 'New York', + }, + customAttributes: { + hobby: 'Sample Hobby', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.aptrinsic.com/v1/users', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'gainsight_px', + description: 'Test 16 : existing user with no signUpDate and createDate in traits', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + Name: 'gainsight-px-dest', + DestinationDefinition: { + ID: '1uLuOdwPCqtei55ZKXewwPhjQPf', + Name: 'GAINSIGHT_PX', + DisplayName: 'Gainsight PX', + Config: { + destConfig: { + defaultConfig: [ + 'apiKey', + 'productTagKey', + 'userAttributeMap', + 'accountAttributeMap', + 'globalContextMap', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'productTagKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accountAttributeMap: [ + { + from: 'cultureCustomField', + to: 'culture', + }, + ], + apiKey: 'sample-api-key', + eventDelivery: false, + eventDeliveryTS: 1624472902670, + globalContextMap: [ + { + from: 'kubrickTest', + to: 'value', + }, + ], + productTagKey: 'AP-SAMPLE-2', + userAttributeMap: [ + { + from: 'hobbyCustomField', + to: 'hobby', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'identify', + sentAt: '2021-06-25T08:59:52.891Z', + userId: 'stanley-kubrick', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.18', + namespace: 'com.rudderlabs.javascript', + }, + page: { + title: 'Test', + search: '', + path: 'index.html', + url: 'http://127.0.0.1:3003/index.html', + tab_url: 'http://127.0.0.1:3003/index.html', + referrer: '$direct', + initial_referrer: '$direct', + referring_domain: '', + initial_referring_domain: '', + }, + locale: 'en-GB', + screen: { + width: 1920, + height: 1080, + density: 1, + innerWidth: 1920, + innerHeight: 436, + }, + traits: { + name: 'Stanley Kubrick', + email: 'stanley@kubrick.com', + score: 100, + title: 'Director/Film Maker', + gender: 'Male', + countryCode: 'US', + countryName: 'USA', + hobbyCustomField: 'Making films. Being a genius', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.18', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', + }, + rudderId: '9a7820d0-0ff2-4451-b655-682cec15cbd2', + messageId: 'ff90d62e-a6e3-4e23-af20-03b4a249ef48', + timestamp: '2021-06-25T14:29:52.911+05:30', + receivedAt: '2021-06-25T14:29:52.911+05:30', + request_ip: '[::1]', + anonymousId: '1585ea2f-dddc-4d23-935f-c1196405d61e', + integrations: { + All: true, + }, + originalTimestamp: '2021-06-25T08:59:52.891Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.aptrinsic.com/v1/users/stanley-kubrick', + userId: '', + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + email: 'stanley@kubrick.com', + gender: 'MALE', + title: 'Director/Film Maker', + score: 100, + location: { + countryName: 'USA', + countryCode: 'US', + }, + firstName: 'Stanley', + lastName: 'Kubrick', + customAttributes: { + hobby: 'Making films. Being a genius', + }, + propertyKeys: ['AP-SAMPLE-2'], + type: 'USER', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/gainsight_px/router/data.ts b/test/integrations/destinations/gainsight_px/router/data.ts new file mode 100644 index 0000000000..7dc131127d --- /dev/null +++ b/test/integrations/destinations/gainsight_px/router/data.ts @@ -0,0 +1,466 @@ +export const data = [ + { + name: 'gainsight_px', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'identify', + sentAt: '2021-06-25T08:59:52.891Z', + userId: 'stanley-kubrick', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.18', + namespace: 'com.rudderlabs.javascript', + }, + page: { + title: 'Test', + search: '', + path: 'index.html', + url: 'http://127.0.0.1:3003/index.html', + tab_url: 'http://127.0.0.1:3003/index.html', + referrer: '$direct', + initial_referrer: '$direct', + referring_domain: '', + initial_referring_domain: '', + }, + locale: 'en-GB', + screen: { + width: 1920, + height: 1080, + density: 1, + innerWidth: 1920, + innerHeight: 436, + }, + traits: { + name: 'Stanley Kubrick', + email: 'stanley@kubrick.com', + score: 100, + title: 'Director/Film Maker', + gender: 'Male', + countryCode: 'US', + countryName: 'USA', + hobbyCustomField: 'Making films. Being a genius', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', + }, + rudderId: '9a7820d0-0ff2-4451-b655-682cec15cbd2', + messageId: 'ff90d62e-a6e3-4e23-af20-03b4a249ef48', + timestamp: '2021-06-25T14:29:52.911+05:30', + receivedAt: '2021-06-25T14:29:52.911+05:30', + request_ip: '[::1]', + anonymousId: '1585ea2f-dddc-4d23-935f-c1196405d61e', + integrations: { All: true }, + originalTimestamp: '2021-06-25T08:59:52.891Z', + }, + metadata: { + userId: '9a7820d0-0ff2-4451-b655-682cec15cbd2', + jobId: 1, + sourceId: '1s9eG8UCer6YSKsD8ZlQCyLa3pj', + destinationId: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + attemptNum: 0, + receivedAt: '2021-06-25T14:29:52.911+05:30', + createdAt: '2021-06-25T08:59:56.329Z', + firstAttemptedAt: '', + transformAt: 'router', + }, + destination: { + ID: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + Name: 'gainsight-px-dest', + DestinationDefinition: { + ID: '1uLuOdwPCqtei55ZKXewwPhjQPf', + Name: 'GAINSIGHT_PX', + DisplayName: 'Gainsight PX', + Config: { + destConfig: { + defaultConfig: [ + 'apiKey', + 'productTagKey', + 'userAttributeMap', + 'accountAttributeMap', + 'globalContextMap', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'productTagKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accountAttributeMap: [{ from: 'cultureCustomField', to: 'culture' }], + apiKey: 'sample-api-key', + eventDelivery: false, + eventDeliveryTS: 1624472902670, + globalContextMap: [{ from: 'kubrickTest', to: 'value' }], + productTagKey: 'AP-SAMPLE-2', + userAttributeMap: [{ from: 'hobbyCustomField', to: 'hobby' }], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + message: { + type: 'track', + event: 'nested test2', + sentAt: '2021-06-26T10:41:22.316Z', + userId: 'adifhas9734', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.18', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'file:///Users/anurajguha/workspace/simple-html-test/index.html', + path: '/Users/anurajguha/workspace/simple-html-test/index.html', + title: 'Test', + search: '', + tab_url: 'file:///Users/anurajguha/workspace/simple-html-test/index.html', + referrer: '$direct', + initial_referrer: '$direct', + referring_domain: '', + initial_referring_domain: '', + }, + locale: 'en-GB', + screen: { + width: 1920, + height: 1080, + density: 1, + innerWidth: 1920, + innerHeight: 585, + }, + traits: { + name: 'Update test unique', + phone: '9900990899', + lastname: 'user6', + firstname: 'test', + previousCompany: 'testprevCompany2', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', + }, + rudderId: 'a27a8a8a-9e81-4898-beeb-e6041fc1552d', + messageId: '595dae36-5e4f-4feb-a2e4-8a7849615d38', + timestamp: '2021-06-26T16:11:22.335+05:30', + properties: { + array: [1, 2, 3], + nested: { json: 'test' }, + status: 'testing', + description: 'Example track call', + fullyNested: [ + { a: 1, b: 2 }, + { a: 1, b: [1, 2, 3] }, + ], + }, + receivedAt: '2021-06-26T16:11:22.335+05:30', + request_ip: '[::1]', + anonymousId: '1585ea2f-dddc-4d23-935f-c1196405d61e', + integrations: { All: true }, + originalTimestamp: '2021-06-26T10:41:22.316Z', + }, + metadata: { + userId: 'a27a8a8a-9e81-4898-beeb-e6041fc1552d', + jobId: 2, + sourceId: '1s9eG8UCer6YSKsD8ZlQCyLa3pj', + destinationId: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + attemptNum: 0, + receivedAt: '2021-06-26T16:11:22.335+05:30', + createdAt: '2021-06-26T10:41:24.126Z', + firstAttemptedAt: '', + transformAt: 'router', + }, + destination: { + ID: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + Name: 'gainsight-px-dest', + DestinationDefinition: { + ID: '1uLuOdwPCqtei55ZKXewwPhjQPf', + Name: 'GAINSIGHT_PX', + DisplayName: 'Gainsight PX', + Config: { + destConfig: { + defaultConfig: [ + 'apiKey', + 'productTagKey', + 'userAttributeMap', + 'accountAttributeMap', + 'globalContextMap', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'productTagKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accountAttributeMap: [{ from: 'cultureCustomField', to: 'culture' }], + apiKey: 'sample-api-key', + eventDelivery: false, + eventDeliveryTS: 1624472902670, + globalContextMap: [{ from: 'kubrickTest', to: 'value' }], + productTagKey: 'AP-SAMPLE-2', + userAttributeMap: [{ from: 'hobbyCustomField', to: 'hobby' }], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + ], + destType: 'gainsight_px', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.aptrinsic.com/v1/users/stanley-kubrick', + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + email: 'stanley@kubrick.com', + gender: 'MALE', + title: 'Director/Film Maker', + score: 100, + location: { countryName: 'USA', countryCode: 'US' }, + firstName: 'Stanley', + lastName: 'Kubrick', + customAttributes: { hobby: 'Making films. Being a genius' }, + propertyKeys: ['AP-SAMPLE-2'], + type: 'USER', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + userId: '9a7820d0-0ff2-4451-b655-682cec15cbd2', + jobId: 1, + sourceId: '1s9eG8UCer6YSKsD8ZlQCyLa3pj', + destinationId: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + attemptNum: 0, + receivedAt: '2021-06-25T14:29:52.911+05:30', + createdAt: '2021-06-25T08:59:56.329Z', + firstAttemptedAt: '', + transformAt: 'router', + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + Name: 'gainsight-px-dest', + DestinationDefinition: { + ID: '1uLuOdwPCqtei55ZKXewwPhjQPf', + Name: 'GAINSIGHT_PX', + DisplayName: 'Gainsight PX', + Config: { + destConfig: { + defaultConfig: [ + 'apiKey', + 'productTagKey', + 'userAttributeMap', + 'accountAttributeMap', + 'globalContextMap', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'productTagKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accountAttributeMap: [{ from: 'cultureCustomField', to: 'culture' }], + apiKey: 'sample-api-key', + eventDelivery: false, + eventDeliveryTS: 1624472902670, + globalContextMap: [{ from: 'kubrickTest', to: 'value' }], + productTagKey: 'AP-SAMPLE-2', + userAttributeMap: [{ from: 'hobbyCustomField', to: 'hobby' }], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.aptrinsic.com/v1/events/custom', + headers: { + 'X-APTRINSIC-API-KEY': 'sample-api-key', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + identifyId: 'adifhas9734', + eventName: 'nested test2', + date: 1624704082335, + attributes: { + array: '[1,2,3]', + nested: '{"json":"test"}', + status: 'testing', + description: 'Example track call', + fullyNested: '[{"a":1,"b":2},{"a":1,"b":[1,2,3]}]', + }, + url: 'file:///Users/anurajguha/workspace/simple-html-test/index.html', + referrer: '$direct', + propertyKey: 'AP-SAMPLE-2', + userType: 'USER', + globalContext: { kubrickTest: 'value' }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + userId: 'a27a8a8a-9e81-4898-beeb-e6041fc1552d', + jobId: 2, + sourceId: '1s9eG8UCer6YSKsD8ZlQCyLa3pj', + destinationId: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + attemptNum: 0, + receivedAt: '2021-06-26T16:11:22.335+05:30', + createdAt: '2021-06-26T10:41:24.126Z', + firstAttemptedAt: '', + transformAt: 'router', + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1uLy1tqsoo9RhL1zLiqLQTKBIKL', + Name: 'gainsight-px-dest', + DestinationDefinition: { + ID: '1uLuOdwPCqtei55ZKXewwPhjQPf', + Name: 'GAINSIGHT_PX', + DisplayName: 'Gainsight PX', + Config: { + destConfig: { + defaultConfig: [ + 'apiKey', + 'productTagKey', + 'userAttributeMap', + 'accountAttributeMap', + 'globalContextMap', + ], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'productTagKey'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + accountAttributeMap: [{ from: 'cultureCustomField', to: 'culture' }], + apiKey: 'sample-api-key', + eventDelivery: false, + eventDeliveryTS: 1624472902670, + globalContextMap: [{ from: 'kubrickTest', to: 'value' }], + productTagKey: 'AP-SAMPLE-2', + userAttributeMap: [{ from: 'hobbyCustomField', to: 'hobby' }], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/gcs_datalake/processor/data.ts b/test/integrations/destinations/gcs_datalake/processor/data.ts index 2148d5a3e6..4f5d144b29 100644 --- a/test/integrations/destinations/gcs_datalake/processor/data.ts +++ b/test/integrations/destinations/gcs_datalake/processor/data.ts @@ -1,191 +1,191 @@ export const data = [ - { - name: 'gcs_datalake', - description: 'No Message type', - feature: 'processor', - module: 'destination', - version: 'v0', - input: { - request: { - body: [ - { - "message": { - "receivedAt": "2023-09-29T15:07:16.650Z", - "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-10-14T11:15:18.300Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "Product List Clicked", - "properties": { - "list_id": "Sample Product List", - "category": "Sample Product List", - "products": [] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "bucketName": "ps-data-mdm-prod-rudderstack", - "prefix": "", - "namespace": "", - "credentials": "randomcreds", - "syncFrequency": "30", - "tableSuffix": "", - "timeWindowLayout": "2006/01/02/15" - }, - "Enabled": true - } - }, - ], - method: 'POST', - }, - pathSuffix: '', - }, - output: { - response: { - status: 200, - body: [ - { - "output": { - "metadata": { - "table": "tracks", - "columns": { - "uuid_ts": "datetime", - "context_app_build": "string", - "context_app_name": "string", - "context_app_namespace": "string", - "context_app_version": "string", - "context_traits_email": "string", - "context_library_name": "string", - "context_library_version": "string", - "context_user_agent": "string", - "context_locale": "string", - "context_screen_density": "int", - "event_text": "string", - "id": "string", - "anonymous_id": "string", - "user_id": "string", - "sent_at": "datetime", - "received_at": "datetime", - "original_timestamp": "datetime", - "channel": "string", - "event": "string" - }, - "receivedAt": "2023-09-29T15:07:16.650Z" - }, - "data": { - "context_app_build": "1.0.0", - "context_app_name": "RudderLabs JavaScript SDK", - "context_app_namespace": "com.rudderlabs.javascript", - "context_app_version": "1.0.0", - "context_traits_email": "test@rudderstack.com", - "context_library_name": "RudderLabs JavaScript SDK", - "context_library_version": "1.0.0", - "context_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", - "context_locale": "en-US", - "context_screen_density": 2, - "event_text": "Product List Clicked", - "id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymous_id": "00000000000000000000000000", - "user_id": "12345", - "sent_at": "2019-10-14T11:15:53.296Z", - "received_at": "2023-09-29T15:07:16.650Z", - "original_timestamp": "2019-10-14T11:15:18.300Z", - "channel": "web", - "event": "product_list_clicked" - }, - "userId": "" - }, - "statusCode": 200 - }, - { - "output": { - "metadata": { - "table": "product_list_clicked", - "columns": { - "uuid_ts": "datetime", - "list_id": "string", - "category": "string", - "context_app_build": "string", - "context_app_name": "string", - "context_app_namespace": "string", - "context_app_version": "string", - "context_traits_email": "string", - "context_library_name": "string", - "context_library_version": "string", - "context_user_agent": "string", - "context_locale": "string", - "context_screen_density": "int", - "event_text": "string", - "id": "string", - "anonymous_id": "string", - "user_id": "string", - "sent_at": "datetime", - "received_at": "datetime", - "original_timestamp": "datetime", - "channel": "string", - "event": "string" - }, - "receivedAt": "2023-09-29T15:07:16.650Z" - }, - "data": { - "list_id": "Sample Product List", - "category": "Sample Product List", - "context_app_build": "1.0.0", - "context_app_name": "RudderLabs JavaScript SDK", - "context_app_namespace": "com.rudderlabs.javascript", - "context_app_version": "1.0.0", - "context_traits_email": "test@rudderstack.com", - "context_library_name": "RudderLabs JavaScript SDK", - "context_library_version": "1.0.0", - "context_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", - "context_locale": "en-US", - "context_screen_density": 2, - "event_text": "Product List Clicked", - "id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "anonymous_id": "00000000000000000000000000", - "user_id": "12345", - "sent_at": "2019-10-14T11:15:53.296Z", - "received_at": "2023-09-29T15:07:16.650Z", - "original_timestamp": "2019-10-14T11:15:18.300Z", - "channel": "web", - "event": "product_list_clicked" - }, - "userId": "" - }, - "statusCode": 200 - } - ], - }, - }, - } + { + name: 'gcs_datalake', + description: 'No Message type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + "message": { + "receivedAt": "2023-09-29T15:07:16.650Z", + "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-10-14T11:15:18.300Z", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "Product List Clicked", + "properties": { + "list_id": "Sample Product List", + "category": "Sample Product List", + "products": [] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "bucketName": "ps-data-mdm-prod-rudderstack", + "prefix": "", + "namespace": "", + "credentials": "randomcreds", + "syncFrequency": "30", + "tableSuffix": "", + "timeWindowLayout": "2006/01/02/15" + }, + "Enabled": true + } + }, + ], + method: 'POST', + }, + pathSuffix: '', + }, + output: { + response: { + status: 200, + body: [ + { + "output": { + "metadata": { + "table": "tracks", + "columns": { + "uuid_ts": "datetime", + "context_app_build": "string", + "context_app_name": "string", + "context_app_namespace": "string", + "context_app_version": "string", + "context_traits_email": "string", + "context_library_name": "string", + "context_library_version": "string", + "context_user_agent": "string", + "context_locale": "string", + "context_screen_density": "int", + "event_text": "string", + "id": "string", + "anonymous_id": "string", + "user_id": "string", + "sent_at": "datetime", + "received_at": "datetime", + "original_timestamp": "datetime", + "channel": "string", + "event": "string" + }, + "receivedAt": "2023-09-29T15:07:16.650Z" + }, + "data": { + "context_app_build": "1.0.0", + "context_app_name": "RudderLabs JavaScript SDK", + "context_app_namespace": "com.rudderlabs.javascript", + "context_app_version": "1.0.0", + "context_traits_email": "test@rudderstack.com", + "context_library_name": "RudderLabs JavaScript SDK", + "context_library_version": "1.0.0", + "context_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", + "context_locale": "en-US", + "context_screen_density": 2, + "event_text": "Product List Clicked", + "id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "anonymous_id": "00000000000000000000000000", + "user_id": "12345", + "sent_at": "2019-10-14T11:15:53.296Z", + "received_at": "2023-09-29T15:07:16.650Z", + "original_timestamp": "2019-10-14T11:15:18.300Z", + "channel": "web", + "event": "product_list_clicked" + }, + "userId": "" + }, + "statusCode": 200 + }, + { + "output": { + "metadata": { + "table": "product_list_clicked", + "columns": { + "uuid_ts": "datetime", + "list_id": "string", + "category": "string", + "context_app_build": "string", + "context_app_name": "string", + "context_app_namespace": "string", + "context_app_version": "string", + "context_traits_email": "string", + "context_library_name": "string", + "context_library_version": "string", + "context_user_agent": "string", + "context_locale": "string", + "context_screen_density": "int", + "event_text": "string", + "id": "string", + "anonymous_id": "string", + "user_id": "string", + "sent_at": "datetime", + "received_at": "datetime", + "original_timestamp": "datetime", + "channel": "string", + "event": "string" + }, + "receivedAt": "2023-09-29T15:07:16.650Z" + }, + "data": { + "list_id": "Sample Product List", + "category": "Sample Product List", + "context_app_build": "1.0.0", + "context_app_name": "RudderLabs JavaScript SDK", + "context_app_namespace": "com.rudderlabs.javascript", + "context_app_version": "1.0.0", + "context_traits_email": "test@rudderstack.com", + "context_library_name": "RudderLabs JavaScript SDK", + "context_library_version": "1.0.0", + "context_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", + "context_locale": "en-US", + "context_screen_density": 2, + "event_text": "Product List Clicked", + "id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "anonymous_id": "00000000000000000000000000", + "user_id": "12345", + "sent_at": "2019-10-14T11:15:53.296Z", + "received_at": "2023-09-29T15:07:16.650Z", + "original_timestamp": "2019-10-14T11:15:18.300Z", + "channel": "web", + "event": "product_list_clicked" + }, + "userId": "" + }, + "statusCode": 200 + } + ], + }, + }, + } ]; diff --git a/test/integrations/destinations/gladly/processor/data.ts b/test/integrations/destinations/gladly/processor/data.ts index 211fa78134..e81af999fb 100644 --- a/test/integrations/destinations/gladly/processor/data.ts +++ b/test/integrations/destinations/gladly/processor/data.ts @@ -780,7 +780,7 @@ export const data = [ body: { JSON: { address: 'Pakistan', - emails: [{original: 'abc'}], + emails: [{ original: 'abc' }], id: 'user@10', }, XML: {}, diff --git a/test/integrations/destinations/gladly/router/data.ts b/test/integrations/destinations/gladly/router/data.ts index d3339d8108..462edd9772 100644 --- a/test/integrations/destinations/gladly/router/data.ts +++ b/test/integrations/destinations/gladly/router/data.ts @@ -22,32 +22,21 @@ export const data = [ lastName: 'Rudderlabs', address: 'california usa', }, - externalId: [ - { - id: 'user@1', - type: 'GladlyCustomerId', - }, - ], + externalId: [{ id: 'user@1', type: 'GladlyCustomerId' }], }, type: 'identify', originalTimestamp: '2023-11-10T14:42:44.724Z', timestamp: '2023-11-22T10:12:44.75705:30', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { apiToken: 'testApiToken', userName: 'testUserName', domain: 'rudderlabs.us-uat.gladly.qa', }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, { message: { @@ -62,32 +51,21 @@ export const data = [ lastName: 'Rudderstack', address: 'New York, USA', }, - externalId: [ - { - id: 'user@2', - type: 'GladlyCustomerId', - }, - ], + externalId: [{ id: 'user@2', type: 'GladlyCustomerId' }], }, type: 'identify', originalTimestamp: '2023-11-10T14:42:44.724Z', timestamp: '2023-11-22T10:12:44.75705:30', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { apiToken: 'testApiToken', userName: 'testUserName', domain: 'rudderlabs.us-uat.gladly.qa', }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, }, { message: { @@ -100,32 +78,21 @@ export const data = [ lastName: 'Rudderstack', address: 'New York, USA', }, - externalId: [ - { - id: 'user@3', - type: 'GladlyCustomerId', - }, - ], + externalId: [{ id: 'user@3', type: 'GladlyCustomerId' }], }, type: 'identify', originalTimestamp: '2023-11-10T14:42:44.724Z', timestamp: '2023-11-22T10:12:44.75705:30', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { apiToken: 'testApiToken', userName: 'testUserName', domain: 'rudderlabs.us-uat.gladly.qa', }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, }, ], destType: 'gladly', @@ -145,21 +112,11 @@ export const data = [ FORM: {}, JSON: { address: 'california usa', - customAttributes: { - age: 23, - }, - emails: [ - { - original: 'test@rudderlabs.com', - }, - ], + customAttributes: { age: 23 }, + emails: [{ original: 'test@rudderlabs.com' }], externalCustomerId: 'externalCustomer@1', id: 'user@1', - phones: [ - { - original: '+91 9999999999', - }, - ], + phones: [{ original: '+91 9999999999' }], }, JSON_ARRAY: {}, XML: {}, @@ -181,17 +138,9 @@ export const data = [ domain: 'rudderlabs.us-uat.gladly.qa', userName: 'testUserName', }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, { @@ -201,20 +150,10 @@ export const data = [ FORM: {}, JSON: { address: 'New York, USA', - customAttributes: { - age: 23, - }, - emails: [ - { - original: 'test+2@rudderlabs.com', - }, - ], + customAttributes: { age: 23 }, + emails: [{ original: 'test+2@rudderlabs.com' }], externalCustomerId: 'externalCustomer@2', - phones: [ - { - original: '+91 9999999998', - }, - ], + phones: [{ original: '+91 9999999998' }], }, JSON_ARRAY: {}, XML: {}, @@ -236,17 +175,9 @@ export const data = [ domain: 'rudderlabs.us-uat.gladly.qa', userName: 'testUserName', }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statusCode: 200, }, { @@ -257,11 +188,7 @@ export const data = [ JSON: { address: 'New York, USA', externalCustomerId: 'externalCustomer@3', - phones: [ - { - original: '+91 9999999988', - }, - ], + phones: [{ original: '+91 9999999988' }], }, JSON_ARRAY: {}, XML: {}, @@ -283,17 +210,9 @@ export const data = [ domain: 'rudderlabs.us-uat.gladly.qa', userName: 'testUserName', }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], statusCode: 200, }, ], @@ -316,13 +235,8 @@ export const data = [ userId: 'externalCustomer@1', channel: 'web', context: { - externalId: [ - { - id: 'externalCustomer@1', - identifierType: 'externalCustomerId', - }, - ], - mappedToDestination: true + externalId: [{ id: 'externalCustomer@1', identifierType: 'externalCustomerId' }], + mappedToDestination: true, }, traits: { id: 'user@1', @@ -337,32 +251,21 @@ export const data = [ timestamp: '2023-11-22T10:12:44.75705:30', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { apiToken: 'testApiToken', userName: 'testUserName', domain: 'rudderlabs.us-uat.gladly.qa', }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, { message: { userId: 'externalCustomer@2', channel: 'web', context: { - externalId: [ - { - id: 'externalCustomer@2', - identifierType: 'externalCustomerId', - }, - ], + externalId: [{ id: 'externalCustomer@2', identifierType: 'externalCustomerId' }], mappedToDestination: true, }, traits: { @@ -378,32 +281,21 @@ export const data = [ timestamp: '2023-11-22T10:12:44.75705:30', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { apiToken: 'testApiToken', userName: 'testUserName', domain: 'rudderlabs.us-uat.gladly.qa', }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, }, { message: { userId: 'externalCustomer@3', channel: 'web', context: { - externalId: [ - { - id: 'externalCustomer@3', - identifierType: 'externalCustomerId', - }, - ], + externalId: [{ id: 'externalCustomer@3', identifierType: 'externalCustomerId' }], mappedToDestination: true, }, traits: { @@ -418,20 +310,14 @@ export const data = [ timestamp: '2023-11-22T10:12:44.75705:30', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { apiToken: 'testApiToken', userName: 'testUserName', domain: 'rudderlabs.us-uat.gladly.qa', }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, }, ], destType: 'gladly', @@ -451,18 +337,10 @@ export const data = [ FORM: {}, JSON: { address: 'california usa', - emails: [ - { - original: 'test@rudderlabs.com', - }, - ], + emails: [{ original: 'test@rudderlabs.com' }], externalCustomerId: 'externalCustomer@1', id: 'user@1', - phones: [ - { - original: '+91 9999999999', - }, - ], + phones: [{ original: '+91 9999999999' }], }, JSON_ARRAY: {}, XML: {}, @@ -484,17 +362,9 @@ export const data = [ domain: 'rudderlabs.us-uat.gladly.qa', userName: 'testUserName', }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, { @@ -504,17 +374,9 @@ export const data = [ FORM: {}, JSON: { address: 'New York, USA', - emails: [ - { - original: 'test+2@rudderlabs.com', - }, - ], + emails: [{ original: 'test+2@rudderlabs.com' }], externalCustomerId: 'externalCustomer@2', - phones: [ - { - original: '+91 9999999998', - }, - ], + phones: [{ original: '+91 9999999998' }], }, JSON_ARRAY: {}, XML: {}, @@ -536,17 +398,9 @@ export const data = [ domain: 'rudderlabs.us-uat.gladly.qa', userName: 'testUserName', }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statusCode: 200, }, { @@ -557,11 +411,7 @@ export const data = [ JSON: { address: 'New York, USA', externalCustomerId: 'externalCustomer@3', - phones: [ - { - original: '+91 9999999988', - }, - ], + phones: [{ original: '+91 9999999988' }], }, JSON_ARRAY: {}, XML: {}, @@ -583,17 +433,9 @@ export const data = [ domain: 'rudderlabs.us-uat.gladly.qa', userName: 'testUserName', }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], statusCode: 200, }, ], diff --git a/test/integrations/destinations/google_adwords_enhanced_conversions/dataDelivery/data.ts b/test/integrations/destinations/google_adwords_enhanced_conversions/dataDelivery/data.ts index c9bfac233d..b544baaebd 100644 --- a/test/integrations/destinations/google_adwords_enhanced_conversions/dataDelivery/data.ts +++ b/test/integrations/destinations/google_adwords_enhanced_conversions/dataDelivery/data.ts @@ -1,290 +1,307 @@ export const data = [ - { - name: 'google_adwords_enhanced_conversions', - description: 'Test 0', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadConversionAdjustments", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "0987654321" + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 0', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/1234567890:uploadConversionAdjustments', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + params: { + event: 'Product Added', + customerId: '1234567890', + destination: 'google_adwords_enhanced_conversions', + }, + body: { + JSON: { + partialFailure: true, + conversionAdjustments: [ + { + gclidDateTimePair: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + }, + restatementValue: { + adjustedValue: 10, + currency: 'INR', + }, + order_id: '10000', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', + }, }, - "params": { - "event": "Product Added", - "customerId": "1234567890", - "destination": "google_adwords_enhanced_conversions" - }, - "body": { - "JSON": { - "partialFailure": true, - "conversionAdjustments": [ - { - "gclidDateTimePair": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00" - }, - "restatementValue": { - "adjustedValue": 10, - "currency": "INR" - }, - "order_id": "10000", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da", - "hashedLastName": "1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4", - "state": "UK", - "city": "London", - "hashedStreetAddress": "9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550" - } - } - ], - "adjustmentType": "ENHANCEMENT" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} + ], + adjustmentType: 'ENHANCEMENT', }, - method: 'POST', + ], }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 401, - body: { - output: { - "message": "\"\"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.\" during Google_adwords_enhanced_conversions response transformation\"", - "authErrorCategory": "REFRESH_TOKEN", - "destinationResponse": [ - { - "error": { - "code": 401, - "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", - "status": "UNAUTHENTICATED" - } - } - ], - "statTags": { - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - }, - "status": 401 - } + method: 'POST', + }, + }, + output: { + response: { + status: 401, + body: { + output: { + message: + '""Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project." during Google_adwords_enhanced_conversions response transformation"', + authErrorCategory: 'REFRESH_TOKEN', + destinationResponse: [ + { + error: { + code: 401, + message: + 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', + status: 'UNAUTHENTICATED', }, + }, + ], + statTags: { + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', }, + status: 401, + }, }, + }, }, - { - name: 'google_adwords_enhanced_conversions', - description: 'Test 1', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567899:uploadConversionAdjustments", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "0987654321" + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 1', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/1234567899:uploadConversionAdjustments', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + params: { + event: 'Product Added', + customerId: '1234567899', + destination: 'google_adwords_enhanced_conversions', + }, + body: { + JSON: { + partialFailure: true, + conversionAdjustments: [ + { + gclidDateTimePair: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + }, + restatementValue: { + adjustedValue: 10, + currency: 'INR', + }, + order_id: '10000', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', + }, }, - "params": { - "event": "Product Added", - "customerId": "1234567899", - "destination": "google_adwords_enhanced_conversions" - }, - "body": { - "JSON": { - "partialFailure": true, - "conversionAdjustments": [ - { - "gclidDateTimePair": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00" - }, - "restatementValue": { - "adjustedValue": 10, - "currency": "INR" - }, - "order_id": "10000", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da", - "hashedLastName": "1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4", - "state": "UK", - "city": "London", - "hashedStreetAddress": "9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550" - } - } - ], - "adjustmentType": "ENHANCEMENT" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} + ], + adjustmentType: 'ENHANCEMENT', }, - method: 'POST', + ], }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 200, - body: { - "output": { - "destinationResponse": { - "response": [ - { - "results": [ - { - "adjustmentDateTime": "2021-01-01 12:32:45-08:00", - "adjustmentType": "ENHANCEMENT", - "conversionAction": "customers/7693729833/conversionActions/874224905", - "gclidDateTimePair": { - "conversionDateTime": "2021-01-01 12:32:45-08:00", - "gclid": "1234", - }, - "orderId": "12345", - }, - ], - }, - ], - "status": 200, - }, - "message": "Request Processed Successfully", - "status": 200, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + destinationResponse: { + response: [ + { + results: [ + { + adjustmentDateTime: '2021-01-01 12:32:45-08:00', + adjustmentType: 'ENHANCEMENT', + conversionAction: 'customers/7693729833/conversionActions/874224905', + gclidDateTimePair: { + conversionDateTime: '2021-01-01 12:32:45-08:00', + gclid: '1234', + }, + orderId: '12345', }, + ], }, + ], + status: 200, }, + message: 'Request Processed Successfully', + status: 200, + }, }, + }, }, - { - name: 'google_adwords_enhanced_conversions', - description: 'Test 2', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567891:uploadConversionAdjustments", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "0987654321" + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 2', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/1234567891:uploadConversionAdjustments', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + params: { + event: 'Product Added', + customerId: '1234567891', + destination: 'google_adwords_enhanced_conversions', + }, + body: { + JSON: { + partialFailure: true, + conversionAdjustments: [ + { + gclidDateTimePair: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + }, + restatementValue: { + adjustedValue: 10, + currency: 'INR', + }, + order_id: '10000', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', + }, }, - "params": { - "event": "Product Added", - "customerId": "1234567891", - "destination": "google_adwords_enhanced_conversions" - }, - "body": { - "JSON": { - "partialFailure": true, - "conversionAdjustments": [ - { - "gclidDateTimePair": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00" - }, - "restatementValue": { - "adjustedValue": 10, - "currency": "INR" - }, - "order_id": "10000", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da", - "hashedLastName": "1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4", - "state": "UK", - "city": "London", - "hashedStreetAddress": "9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550" - } - } - ], - "adjustmentType": "ENHANCEMENT" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} + ], + adjustmentType: 'ENHANCEMENT', }, - method: 'POST', + ], }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 400, - body: { - "output": { - "destinationResponse": [ - { - results: [ - { - "conversionAction": { - "id": 123434342, - } - } - ] - } - ], - "message": "\" during Google_adwords_enhanced_conversions response transformation", - "statTags": { - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "destinationId": "Non-determininable", - "errorCategory": "network", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination", - "workspaceId": "Non-determininable", - }, - "status": 400, + method: 'POST', + }, + }, + output: { + response: { + status: 400, + body: { + output: { + destinationResponse: [ + { + results: [ + { + conversionAction: { + id: 123434342, }, - }, + }, + ], + }, + ], + message: '" during Google_adwords_enhanced_conversions response transformation', + statTags: { + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', }, + status: 400, + }, }, - } + }, + }, + }, ]; diff --git a/test/integrations/destinations/google_adwords_enhanced_conversions/network.ts b/test/integrations/destinations/google_adwords_enhanced_conversions/network.ts index ca49ea30ab..672cd73bf7 100644 --- a/test/integrations/destinations/google_adwords_enhanced_conversions/network.ts +++ b/test/integrations/destinations/google_adwords_enhanced_conversions/network.ts @@ -1,236 +1,276 @@ export const networkCallsData = [ - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/1234567890/googleAds:searchStream', - data: { - query: `SELECT conversion_action.id FROM conversion_action WHERE conversion_action.name = 'Product Added'`, - }, - headers: { - Authorization: 'Bearer abcd1234', - 'Content-Type': 'application/json', - 'developer-token': 'ijkl91011', - 'login-customer-id': '0987654321', - }, - method: 'POST', - }, - httpRes: { - "data": [ - { - "error": { - "code": 401, - "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", - "status": "UNAUTHENTICATED" - } - } - ], - "status": 401 + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/1234567890/googleAds:searchStream', + data: { + query: `SELECT conversion_action.id FROM conversion_action WHERE conversion_action.name = 'Product Added'`, + }, + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + method: 'POST', + }, + httpRes: { + data: [ + { + error: { + code: 401, + message: + 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', + status: 'UNAUTHENTICATED', + }, }, + ], + status: 401, }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/1234567899/googleAds:searchStream', - data: { - query: `SELECT conversion_action.id FROM conversion_action WHERE conversion_action.name = 'Product Added'` - }, - params: { destination: 'google_adwords_enhanced_conversion' }, - headers: { - Authorization: 'Bearer abcd1234', - 'Content-Type': 'application/json', - 'developer-token': 'ijkl91011', - 'login-customer-id': '0987654321', + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/1234567899/googleAds:searchStream', + data: { + query: `SELECT conversion_action.id FROM conversion_action WHERE conversion_action.name = 'Product Added'`, + }, + params: { destination: 'google_adwords_enhanced_conversion' }, + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + method: 'POST', + }, + httpRes: { + data: [ + { + results: [ + { + conversionAction: { + id: 123434342, + }, }, - method: 'POST', - }, - httpRes: { - data: [{ - results: [{ - conversionAction: { - id: 123434342 - } - }] - }], - status: 200, + ], }, + ], + status: 200, }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/1234567899:uploadConversionAdjustments', - data: { - conversionAdjustments: [{ - adjustmentDateTime: '2022-01-01 12:32:45-08:00', - adjustmentType: 'ENHANCEMENT', - conversionAction: 'customers/1234567899/conversionActions/123434342', - gclidDateTimePair: { - conversionDateTime: '2022-01-01 12:32:45-08:00', - gclid: 'gclid1234' - }, - order_id: '10000', - restatementValue: { adjustedValue: 10, currency: 'INR' }, - userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', - userIdentifiers: [{ - addressInfo: { - hashedFirstName: 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', - hashedLastName: '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', - state: 'UK', - city: 'London', - hashedStreetAddress: '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550' - } - }] - }], - partialFailure: true + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/1234567899:uploadConversionAdjustments', + data: { + conversionAdjustments: [ + { + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + adjustmentType: 'ENHANCEMENT', + conversionAction: 'customers/1234567899/conversionActions/123434342', + gclidDateTimePair: { + conversionDateTime: '2022-01-01 12:32:45-08:00', + gclid: 'gclid1234', }, - params: { destination: 'google_adwords_enhanced_conversion' }, - headers: { - Authorization: 'Bearer abcd1234', - 'Content-Type': 'application/json', - 'developer-token': 'ijkl91011', - 'login-customer-id': '0987654321', + order_id: '10000', + restatementValue: { adjustedValue: 10, currency: 'INR' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', + }, + }, + ], + }, + ], + partialFailure: true, + }, + params: { destination: 'google_adwords_enhanced_conversion' }, + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + method: 'POST', + }, + httpRes: { + data: [ + { + results: [ + { + adjustmentType: 'ENHANCEMENT', + conversionAction: 'customers/7693729833/conversionActions/874224905', + adjustmentDateTime: '2021-01-01 12:32:45-08:00', + gclidDateTimePair: { + gclid: '1234', + conversionDateTime: '2021-01-01 12:32:45-08:00', + }, + orderId: '12345', }, - method: 'POST', - }, - httpRes: { - data: [{ - results: [{ - "adjustmentType": "ENHANCEMENT", - "conversionAction": "customers/7693729833/conversionActions/874224905", - "adjustmentDateTime": "2021-01-01 12:32:45-08:00", - "gclidDateTimePair": { - "gclid": "1234", - "conversionDateTime": "2021-01-01 12:32:45-08:00" - }, - "orderId": "12345" - }] - }], - status: 200, + ], }, + ], + status: 200, }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/1234567891/googleAds:searchStream', - data: { - query: `SELECT conversion_action.id FROM conversion_action WHERE conversion_action.name = 'Product Added'` - }, - params: { destination: 'google_adwords_enhanced_conversion' }, - headers: { - Authorization: 'Bearer abcd1234', - 'Content-Type': 'application/json', - 'developer-token': 'ijkl91011', - 'login-customer-id': '0987654321', + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/1234567891/googleAds:searchStream', + data: { + query: `SELECT conversion_action.id FROM conversion_action WHERE conversion_action.name = 'Product Added'`, + }, + params: { destination: 'google_adwords_enhanced_conversion' }, + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + method: 'POST', + }, + httpRes: { + data: [ + { + results: [ + { + conversionAction: { + id: 123434342, + }, }, - method: 'POST', - }, - httpRes: { - data: [{ - results: [{ - conversionAction: { - id: 123434342 - } - }] - }], - status: 200, + ], }, + ], + status: 200, }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/1234567891:uploadConversionAdjustments', - data: { - conversionAdjustments: [{ - adjustmentDateTime: '2022-01-01 12:32:45-08:00', - adjustmentType: 'ENHANCEMENT', - conversionAction: 'customers/1234567891/conversionActions/123434342', - gclidDateTimePair: { - conversionDateTime: '2022-01-01 12:32:45-08:00', - gclid: 'gclid1234' - }, - order_id: '10000', - restatementValue: { adjustedValue: 10, currency: 'INR' }, - userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', - userIdentifiers: [{ - addressInfo: { - hashedFirstName: 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', - hashedLastName: '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', - state: 'UK', - city: 'London', - hashedStreetAddress: '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550' - } - }] - }], - partialFailure: true - }, - params: { - destination: 'google_adwords_enhanced_conversion', - + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/1234567891:uploadConversionAdjustments', + data: { + conversionAdjustments: [ + { + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + adjustmentType: 'ENHANCEMENT', + conversionAction: 'customers/1234567891/conversionActions/123434342', + gclidDateTimePair: { + conversionDateTime: '2022-01-01 12:32:45-08:00', + gclid: 'gclid1234', }, - headers: { - Authorization: 'Bearer abcd1234', - 'Content-Type': 'application/json', - 'developer-token': 'ijkl91011', - 'login-customer-id': '0987654321', + order_id: '10000', + restatementValue: { adjustedValue: 10, currency: 'INR' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', + }, + }, + ], + }, + ], + partialFailure: true, + }, + params: { + destination: 'google_adwords_enhanced_conversion', + }, + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + method: 'POST', + }, + httpRes: { + data: [ + { + results: [ + { + conversionAction: { + id: 123434342, + }, }, - method: 'POST', - }, - httpRes: { - data: [{ - results: [{ - conversionAction: { - id: 123434342 - } - }] - }], - status: 400, + ], }, + ], + status: 400, }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions', - data: { - conversionAdjustments: [{ - adjustmentDateTime: '2022-01-01 12:32:45-08:00', - adjustmentType: 'ENHANCEMENT', - conversionAction: 'customers/1234567891/conversionActions/123434342', - gclidDateTimePair: { - conversionDateTime: '2022-01-01 12:32:45-08:00', - gclid: 'gclid1234' - }, - order_id: '10000', - restatementValue: { adjustedValue: 10, currency: 'INR' }, - userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', - userIdentifiers: [{ - addressInfo: { - hashedFirstName: 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', - hashedLastName: '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', - state: 'UK', - city: 'London', - hashedStreetAddress: '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550' - } - }] - }], - partialFailure: true + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/1234567891:uploadClickConversions', + data: { + conversionAdjustments: [ + { + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + adjustmentType: 'ENHANCEMENT', + conversionAction: 'customers/1234567891/conversionActions/123434342', + gclidDateTimePair: { + conversionDateTime: '2022-01-01 12:32:45-08:00', + gclid: 'gclid1234', }, - params: { - destination: 'google_adwords_enhanced_conversion', - - }, - headers: { - Authorization: 'Bearer abcd1234', - 'Content-Type': 'application/json', - 'developer-token': 'ijkl91011', - 'login-customer-id': '0987654321', + order_id: '10000', + restatementValue: { adjustedValue: 10, currency: 'INR' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', + }, + }, + ], + }, + ], + partialFailure: true, + }, + params: { + destination: 'google_adwords_enhanced_conversion', + }, + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '0987654321', + }, + method: 'POST', + }, + httpRes: { + data: [ + { + results: [ + { + conversionAction: { + id: 123434342, + }, }, - method: 'POST', + ], }, - httpRes: { - data: [{ - results: [{ - conversionAction: { - id: 123434342 - } - }] - }], - status: 400, - }, - } + ], + status: 400, + }, + }, ]; - - - diff --git a/test/integrations/destinations/google_adwords_enhanced_conversions/processor/data.ts b/test/integrations/destinations/google_adwords_enhanced_conversions/processor/data.ts index 09a9b406f6..0a9542a5d5 100644 --- a/test/integrations/destinations/google_adwords_enhanced_conversions/processor/data.ts +++ b/test/integrations/destinations/google_adwords_enhanced_conversions/processor/data.ts @@ -1,1694 +1,1726 @@ export const data = [ - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 0", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "123-456-7890", - "subAccount": true, - "loginCustomerId": "123-456-7890", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "countryCode": "us", - "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": "Page View", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadConversionAdjustments", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "1234567890" - }, - "params": { - "event": "Page View", - "customerId": "1234567890" - }, - "body": { - "JSON": { - "conversionAdjustments": [ - { - "gclidDateTimePair": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00" - }, - "restatementValue": { - "adjustedValue": 10, - "currencyCode": "INR" - }, - "orderId": "10000", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "userIdentifiers": [ - { - "hashedPhoneNumber": "04387707e6cbed8c4538c81cc570ed9252d579469f36c273839b26d784e4bdbe" - }, - { - "addressInfo": { - "hashedFirstName": "a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da", - "hashedLastName": "1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4", - "state": "UK", - "city": "London", - "countryCode": "us", - "hashedStreetAddress": "9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550" - } - } - ], - "adjustmentType": "ENHANCEMENT" - } - ], - "partialFailure": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "statusCode": 200 - } - ] - } - } + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '123-456-7890', + subAccount: true, + loginCustomerId: '123-456-7890', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + countryCode: 'us', + 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: 'Page View', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 1", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/1234567890:uploadConversionAdjustments', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '1234567890', + }, + params: { + event: 'Page View', + customerId: '1234567890', + }, + body: { + JSON: { + conversionAdjustments: [ { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } + gclidDateTimePair: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + }, + restatementValue: { + adjustedValue: 10, + currencyCode: 'INR', + }, + orderId: '10000', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + hashedPhoneNumber: + '04387707e6cbed8c4538c81cc570ed9252d579469f36c273839b26d784e4bdbe', }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "11", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "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": "Checkout Started", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + countryCode: 'us', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', + }, }, - "statusCode": 400, - "error": "Conversion named \"Checkout Started\" was not specified in the RudderStack destination configuration", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration", - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } + ], + adjustmentType: 'ENHANCEMENT', + }, + ], + partialFailure: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 200, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 2", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "11", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "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 - } - }, - "event": "Product Added", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "statusCode": 400, - "error": "Any of email, phone, firstName, lastName, city, street, countryCode, postalCode or streetAddress is required in traits.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '11', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + 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: 'Checkout Started', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 3", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "11", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "firstName": "John", - "lastName": "Gomes", - "address": { - "city": "London", - "state": "UK", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK", - "country": "us" - } - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; 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": "Product Added", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currencyCode": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": "true", - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadConversionAdjustments", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "11" - }, - "params": { - "event": "Product Added", - "customerId": "1234567890" - }, - "body": { - "JSON": { - "conversionAdjustments": [ - { - "gclidDateTimePair": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00" - }, - "restatementValue": { - "adjustedValue": 10, - "currencyCode": "INR" - }, - "orderId": "10000", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da", - "hashedLastName": "1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4", - "state": "UK", - "city": "London", - "countryCode": "us", - "hashedStreetAddress": "b28c94b2195c8ed259f0b415aaee3f39b0b2920a4537611499fa044956917a21" - } - } - ], - "adjustmentType": "ENHANCEMENT" - } - ], - "partialFailure": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "statusCode": 200 - } - ] - } - } + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 400, + error: + 'Conversion named "Checkout Started" was not specified in the RudderStack destination configuration', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 4", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "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": "Product Added", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currencyCode": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "orderId": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "statusCode": 400, - "error": "LoginCustomerId is required as subAccount is true.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration", - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '11', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + 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, + }, + }, + event: 'Product Added', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 5", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "type": "identify", - "traits": { - "status": "elizabeth" - }, - "userId": "emrichardson820+22822@gmail.com", - "channel": "sources", - "context": { - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - }, - "externalId": [ - { - "id": "emrichardson820+22822@gmail.com", - "type": "MAILCHIMP-92e1f1ad2c", - "identifierType": "email_address" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a", - "messageId": "b3bee036-fc26-4f6d-9867-c17f85708a82" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "statusCode": 400, - "error": "Message Type identify is not supported. Aborting message.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 400, + error: + 'Any of email, phone, firstName, lastName, city, street, countryCode, postalCode or streetAddress is required in traits.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 6", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": null - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "11", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "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": "Page View", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": null - }, - "statusCode": 500, - "error": "OAuth - access token not found", - "statTags": { - "errorCategory": "platform", - "errorType": "oAuthSecret", - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '11', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + firstName: 'John', + lastName: 'Gomes', + address: { + city: 'London', + state: 'UK', + streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', + country: 'us', + }, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; 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: 'Product Added', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currencyCode: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: 'true', + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 7", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/1234567890:uploadConversionAdjustments', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '11', + }, + params: { + event: 'Product Added', + customerId: '1234567890', + }, + body: { + JSON: { + conversionAdjustments: [ { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } + gclidDateTimePair: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + }, + restatementValue: { + adjustedValue: 10, + currencyCode: 'INR', + }, + orderId: '10000', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + countryCode: 'us', + hashedStreetAddress: + 'b28c94b2195c8ed259f0b415aaee3f39b0b2920a4537611499fa044956917a21', + }, }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "123-456-7890", - "subAccount": true, - "loginCustomerId": "123-456-7890", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "countryCode": "us", - "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": "Product Viewed", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "orde_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "statusCode": 400, - "error": "Conversion named \"Product Viewed\" was not specified in the RudderStack destination configuration", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration", - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } + ], + adjustmentType: 'ENHANCEMENT', + }, + ], + partialFailure: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 200, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 8", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "requireHash": true, - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "123-456-7890", - "subAccount": true, - "loginCustomerId": "123-456-7890", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "countryCode": "us", - "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": "Page View", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadConversionAdjustments", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "1234567890" - }, - "params": { - "event": "Page View", - "customerId": "1234567890" - }, - "body": { - "JSON": { - "conversionAdjustments": [ - { - "gclidDateTimePair": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00" - }, - "restatementValue": { - "adjustedValue": 10, - "currencyCode": "INR" - }, - "orderId": "10000", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "userIdentifiers": [ - { - "hashedPhoneNumber": "04387707e6cbed8c4538c81cc570ed9252d579469f36c273839b26d784e4bdbe" - }, - { - "addressInfo": { - "hashedFirstName": "a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da", - "hashedLastName": "1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4", - "state": "UK", - "city": "London", - "countryCode": "us", - "hashedStreetAddress": "9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550" - } - } - ], - "adjustmentType": "ENHANCEMENT" - } - ], - "partialFailure": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "statusCode": 200 - } - ] - } - } + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + 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: 'Product Added', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currencyCode: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + orderId: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 9", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "requireHash": false, - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "123-456-7890", - "subAccount": true, - "loginCustomerId": "123-456-7890", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "countryCode": "us", - "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": "Page View", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 400, + error: 'LoginCustomerId is required as subAccount is true.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + type: 'identify', + traits: { + status: 'elizabeth', + }, + userId: 'emrichardson820+22822@gmail.com', + channel: 'sources', + context: { + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + externalId: [ + { + id: 'emrichardson820+22822@gmail.com', + type: 'MAILCHIMP-92e1f1ad2c', + identifierType: 'email_address', + }, + ], + mappedToDestination: 'true', + }, + recordId: '1', + rudderId: '4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a', + messageId: 'b3bee036-fc26-4f6d-9867-c17f85708a82', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 400, + error: 'Message Type identify is not supported. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: null, + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '11', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + 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: 'Page View', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: null, + }, + statusCode: 500, + error: 'OAuth - access token not found', + statTags: { + errorCategory: 'platform', + errorType: 'oAuthSecret', + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '123-456-7890', + subAccount: true, + loginCustomerId: '123-456-7890', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + countryCode: 'us', + 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: 'Product Viewed', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + orde_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 400, + error: + 'Conversion named "Product Viewed" was not specified in the RudderStack destination configuration', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + requireHash: true, + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '123-456-7890', + subAccount: true, + loginCustomerId: '123-456-7890', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + countryCode: 'us', + 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: 'Page View', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/1234567890:uploadConversionAdjustments', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '1234567890', + }, + params: { + event: 'Page View', + customerId: '1234567890', + }, + body: { + JSON: { + conversionAdjustments: [ { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadConversionAdjustments", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "1234567890" - }, - "params": { - "event": "Page View", - "customerId": "1234567890" - }, - "body": { - "JSON": { - "conversionAdjustments": [ - { - "gclidDateTimePair": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00" - }, - "restatementValue": { - "adjustedValue": 10, - "currencyCode": "INR" - }, - "orderId": "10000", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "userIdentifiers": [ - { - "hashedPhoneNumber": "912382193" - }, - { - "addressInfo": { - "hashedFirstName": "John", - "hashedLastName": "Gomes", - "state": "UK", - "city": "London", - "countryCode": "us", - "hashedStreetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - } - } - ], - "adjustmentType": "ENHANCEMENT" - } - ], - "partialFailure": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" + gclidDateTimePair: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + }, + restatementValue: { + adjustedValue: 10, + currencyCode: 'INR', + }, + orderId: '10000', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + hashedPhoneNumber: + '04387707e6cbed8c4538c81cc570ed9252d579469f36c273839b26d784e4bdbe', }, - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + countryCode: 'us', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', + }, }, - "statusCode": 200 - } - ] - } - } + ], + adjustmentType: 'ENHANCEMENT', + }, + ], + partialFailure: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + requireHash: false, + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '123-456-7890', + subAccount: true, + loginCustomerId: '123-456-7890', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + countryCode: 'us', + 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: 'Page View', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, }, - { - "name": "google_adwords_enhanced_conversions", - "description": "Test 10", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/1234567890:uploadConversionAdjustments', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '1234567890', + }, + params: { + event: 'Page View', + customerId: '1234567890', + }, + body: { + JSON: { + conversionAdjustments: [ { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } + gclidDateTimePair: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + }, + restatementValue: { + adjustedValue: 10, + currencyCode: 'INR', + }, + orderId: '10000', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + hashedPhoneNumber: '912382193', }, - "destination": { - "Config": { - "requireHash": false, - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "123-456-7890", - "subAccount": true, - "loginCustomerId": "123-456-7890", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "countryCode": "us", - "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": "Page View", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } + { + addressInfo: { + hashedFirstName: 'John', + hashedLastName: 'Gomes', + state: 'UK', + city: 'London', + countryCode: 'us', + hashedStreetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', + }, }, - "statusCode": 400, - "error": "Missing required value from [\"properties.orderId\",\"properties.order_id\"]", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - } -] \ No newline at end of file + ], + adjustmentType: 'ENHANCEMENT', + }, + ], + partialFailure: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + destination: { + Config: { + requireHash: false, + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '123-456-7890', + subAccount: true, + loginCustomerId: '123-456-7890', + listOfConversions: [ + { + conversions: 'Page View', + }, + { + conversions: 'Product Added', + }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + countryCode: 'us', + 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: 'Page View', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + }, + statusCode: 400, + error: 'Missing required value from ["properties.orderId","properties.order_id"]', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/google_adwords_enhanced_conversions/router/data.ts b/test/integrations/destinations/google_adwords_enhanced_conversions/router/data.ts index efaa0072e2..62ee03c46d 100644 --- a/test/integrations/destinations/google_adwords_enhanced_conversions/router/data.ts +++ b/test/integrations/destinations/google_adwords_enhanced_conversions/router/data.ts @@ -1,447 +1,408 @@ export const data = [ - { - name: 'google_adwords_enhanced_conversions', - description: 'Test 0', - feature: 'router', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - input: [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - }, - "jobId": 1 - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "11", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "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": "Page View", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - }, - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - }, - "jobId": 2 - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "type": "identify", - "traits": { - "status": "elizabeth" - }, - "userId": "emrichardson820+22822@gmail.com", - "channel": "sources", - "context": { - "sources": { - "job_id": "24c5HJxHomh6YCngEOCgjS5r1KX/Syncher", - "task_id": "vw_rs_mailchimp_mocked_hg_data", - "version": "v1.8.1", - "batch_id": "f252c69d-c40d-450e-bcd2-2cf26cb62762", - "job_run_id": "c8el40l6e87v0c4hkbl0", - "task_run_id": "c8el40l6e87v0c4hkblg" - }, - "externalId": [ - { - "id": "emrichardson820+22822@gmail.com", - "type": "MAILCHIMP-92e1f1ad2c", - "identifierType": "email_address" - } - ], - "mappedToDestination": "true" - }, - "recordId": "1", - "rudderId": "4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a", - "messageId": "b3bee036-fc26-4f6d-9867-c17f85708a82" - } - }, - { - "metadata": { - "secret": {}, - "jobId": 3 - }, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "11", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "phone": "912382193", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "UK", - "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": "Page View", - "type": "track", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "adjustedValue": "10", - "currency": "INR", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "partialFailure": true, - "campaignId": "1", - "templateId": "0", - "order_id": 10000, - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg", - "quantity": "2" - }, - { - "product_id": "507f1f77bcf86cd7994390112", - "sku": "45790-322", - "name": "Monopoly: 3rd Edition2", - "price": "192", - "quantity": 22, - "position": "12", - "category": "Cars2", - "url": "https://www.example.com/product/path2", - "image_url": "https://www.example.com/product/path.jpg2" - } - ] - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - } - }, - ], - destType: 'google_adwords_enhanced_conversions', + { + name: 'google_adwords_enhanced_conversions', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', }, - method: 'POST', + jobId: 1, + userId: 'u1', + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '11', + listOfConversions: [ + { conversions: 'Page View' }, + { conversions: 'Product Added' }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + 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: 'Page View', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { All: true }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + }, + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 2, + userId: 'u1', + }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '', + listOfConversions: [ + { conversions: 'Page View' }, + { conversions: 'Product Added' }, + ], + authStatus: 'active', + }, + }, + message: { + type: 'identify', + traits: { status: 'elizabeth' }, + userId: 'emrichardson820+22822@gmail.com', + channel: 'sources', + context: { + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + externalId: [ + { + id: 'emrichardson820+22822@gmail.com', + type: 'MAILCHIMP-92e1f1ad2c', + identifierType: 'email_address', + }, + ], + mappedToDestination: 'true', + }, + recordId: '1', + rudderId: '4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a', + messageId: 'b3bee036-fc26-4f6d-9867-c17f85708a82', + }, + }, + { + metadata: { secret: {}, jobId: 3, userId: 'u1' }, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '11', + listOfConversions: [ + { conversions: 'Page View' }, + { conversions: 'Product Added' }, + ], + authStatus: 'active', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + phone: '912382193', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'UK', + 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: 'Page View', + type: 'track', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', + adjustedValue: '10', + currency: 'INR', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + partialFailure: true, + campaignId: '1', + templateId: '0', + order_id: 10000, + total: 1000, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + sku: '45790-32', + name: 'Monopoly: 3rd Edition', + price: '19', + position: '1', + category: 'cars', + url: 'https://www.example.com/product/path', + image_url: 'https://www.example.com/product/path.jpg', + quantity: '2', + }, + { + product_id: '507f1f77bcf86cd7994390112', + sku: '45790-322', + name: 'Monopoly: 3rd Edition2', + price: '192', + quantity: 22, + position: '12', + category: 'Cars2', + url: 'https://www.example.com/product/path2', + image_url: 'https://www.example.com/product/path.jpg2', + }, + ], + }, + integrations: { All: true }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, }, + ], + destType: 'google_adwords_enhanced_conversions', }, - output: { - response: { - status: 200, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/1234567890:uploadConversionAdjustments', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl91011', + 'login-customer-id': '11', + }, + params: { event: 'Page View', customerId: '1234567890' }, body: { - output: [ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadConversionAdjustments", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "11" - }, - "params": { "event": "Page View", "customerId": "1234567890" }, - "body": { - "JSON": { - "partialFailure": true, - "conversionAdjustments": [ - { - "gclidDateTimePair": { - "gclid": "gclid1234", - "conversionDateTime": "2022-01-01 12:32:45-08:00" - }, - "restatementValue": { - "adjustedValue": 10, - "currencyCode": "INR" - }, - "orderId": "10000", - "adjustmentDateTime": "2022-01-01 12:32:45-08:00", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "userIdentifiers": [ - { - "hashedPhoneNumber": "04387707e6cbed8c4538c81cc570ed9252d579469f36c273839b26d784e4bdbe" - }, - { - "addressInfo": { - "hashedFirstName": "a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da", - "hashedLastName": "1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4", - "state": "UK", - "city": "London", - "hashedStreetAddress": "9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550" - } - } - ], - "adjustmentType": "ENHANCEMENT" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - }, - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "11", - "listOfConversions": [{ "conversions": "Page View" }, { "conversions": "Product Added" }], - "authStatus": "active" - } - } - }, - { - "metadata": [ - { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - }, - "jobId": 2 - } - ], - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } - }, - "batched": false, - "statusCode": 400, - "error": "Message Type identify is not supported. Aborting message.", - "statTags": { - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "router", - "implementation": "native", - "module": "destination", - } + JSON: { + partialFailure: true, + conversionAdjustments: [ + { + gclidDateTimePair: { + gclid: 'gclid1234', + conversionDateTime: '2022-01-01 12:32:45-08:00', }, - { - "metadata": [ - { - "secret": {}, - "jobId": 3 - } - ], - "destination": { - "Config": { - "rudderAccountId": "25u5whFH7gVTnCiAjn4ykoCLGoC", - "customerId": "1234567890", - "subAccount": true, - "loginCustomerId": "11", - "listOfConversions": [ - { - "conversions": "Page View" - }, - { - "conversions": "Product Added" - } - ], - "authStatus": "active" - } + restatementValue: { adjustedValue: 10, currencyCode: 'INR' }, + orderId: '10000', + adjustmentDateTime: '2022-01-01 12:32:45-08:00', + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + userIdentifiers: [ + { + hashedPhoneNumber: + '04387707e6cbed8c4538c81cc570ed9252d579469f36c273839b26d784e4bdbe', + }, + { + addressInfo: { + hashedFirstName: + 'a8cfcd74832004951b4408cdb0a5dbcd8c7e52d43f7fe244bf720582e05241da', + hashedLastName: + '1c574b17eefa532b6d61c963550a82d2d3dfca4a7fb69e183374cfafd5328ee4', + state: 'UK', + city: 'London', + hashedStreetAddress: + '9a4d2e50828448f137f119a3ebdbbbab8d6731234a67595fdbfeb2a2315dd550', }, - "batched": false, - "statusCode": 500, - "error": "OAuth - access token not found", - "statTags": { - "destType": "GOOGLE_ADWORDS_ENHANCED_CONVERSIONS", - "errorCategory": "platform", - "errorType": "oAuthSecret", - "feature": "router", - "implementation": "native", - "module": "destination", - } - } - ] - , + }, + ], + adjustmentType: 'ENHANCEMENT', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 1, + userId: 'u1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '11', + listOfConversions: [ + { conversions: 'Page View' }, + { conversions: 'Product Added' }, + ], + authStatus: 'active', + }, + }, + }, + { + metadata: [ + { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 2, + userId: 'u1', + }, + ], + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '', + listOfConversions: [ + { conversions: 'Page View' }, + { conversions: 'Product Added' }, + ], + authStatus: 'active', + }, + }, + batched: false, + statusCode: 400, + error: 'Message Type identify is not supported. Aborting message.', + statTags: { + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + }, + { + metadata: [{ secret: {}, jobId: 3, userId: 'u1' }], + destination: { + Config: { + rudderAccountId: '25u5whFH7gVTnCiAjn4ykoCLGoC', + customerId: '1234567890', + subAccount: true, + loginCustomerId: '11', + listOfConversions: [ + { conversions: 'Page View' }, + { conversions: 'Product Added' }, + ], + authStatus: 'active', }, + }, + batched: false, + statusCode: 500, + error: 'OAuth - access token not found', + statTags: { + destType: 'GOOGLE_ADWORDS_ENHANCED_CONVERSIONS', + errorCategory: 'platform', + errorType: 'oAuthSecret', + feature: 'router', + implementation: 'native', + module: 'destination', + }, }, + ], }, - } + }, + }, + }, ]; diff --git a/test/integrations/destinations/google_adwords_offline_conversions/dataDelivery/data.ts b/test/integrations/destinations/google_adwords_offline_conversions/dataDelivery/data.ts index 284632ae09..36cd0ad801 100644 --- a/test/integrations/destinations/google_adwords_offline_conversions/dataDelivery/data.ts +++ b/test/integrations/destinations/google_adwords_offline_conversions/dataDelivery/data.ts @@ -1,750 +1,750 @@ export const data = [ - { - name: 'google_adwords_offline_conversions', - description: 'Test 0', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/11122233331/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "logincustomerid" - }, - "params": { - "customerId": "1112223333", - "event": "Sign-up - click" - }, - "body": { - "JSON": { - "addConversionPayload": { - "enable_partial_failure": false, - "enable_warnings": false, - "operations": [ - { - "create": { - "transaction_attribute": { - "CUSTOM_KEY": "CUSTOM_VALUE", - "currency_code": "INR", - "order_id": "order id", - "store_attribute": { - "store_code": "store code" - }, - "transaction_amount_micros": "100000000", - "transaction_date_time": "2019-10-14 11:15:18+00:00" - }, - "userIdentifiers": [ - { - "hashedEmail": "6db61e6dcbcf2390e4a46af26f26a133a3bee45021422fc7ae86e9136f14110", - "userIdentifierSource": "UNSPECIFIED" - } - ] - } - } - ], - "validate_only": false - }, - "createJobPayload": { - "job": { - "storeSalesMetadata": { - "custom_key": "CUSTOM_KEY", - "loyaltyFraction": 1, - "transaction_upload_fraction": "1" - }, - "type": "STORE_SALES_UPLOAD_FIRST_PARTY" - } - }, - "event": "1112223333", - "executeJobPayload": { - "validate_only": false - }, - "isStoreConversion": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - method: 'POST', - }, - }, - output: { - response: { - status: 400, - body: { - "output": { - "status": 400, - "message": "[Google Ads Offline Conversions]:: Request contains an invalid argument. during google_ads_offline_store_conversions Add Conversion", - "destinationResponse": { - "error": { - "code": 400, - "details": [ - { - "@type": "type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", - "errors": [ - { - "errorCode": { - "offlineUserDataJobError": "INVALID_SHA256_FORMAT" - }, - "message": "The SHA256 encoded value is malformed.", - "location": { - "fieldPathElements": [ - { - "fieldName": "operations", - "index": 0 - }, - { - "fieldName": "create" - }, - { - "fieldName": "user_identifiers", - "index": 0 - }, - { - "fieldName": "hashed_email" - } - ] - } - } - ], - "requestId": "68697987" - } - ], - "message": "Request contains an invalid argument.", - "status": "INVALID_ARGUMENT" - } - }, - "statTags": { - "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS", - "destinationId": "Non-determininable", - "errorCategory": "network", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination", - "workspaceId": "Non-determininable", - } - } - }, - }, - }, - }, - { - name: 'google_adwords_offline_conversions', - description: 'Test 1', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1112223333/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "logincustomerid" - }, - "params": { - "customerId": "1112223333", - "event": "Sign-up - click" - }, - "body": { - "JSON": { - "addConversionPayload": { - "enable_partial_failure": false, - "enable_warnings": false, - "operations": [ - { - "create": { - "transaction_attribute": { - "CUSTOM_KEY": "CUSTOM_VALUE", - "currency_code": "INR", - "order_id": "order id", - "store_attribute": { - "store_code": "store code" - }, - "transaction_amount_micros": "100000000", - "transaction_date_time": "2019-10-14 11:15:18+00:00" - }, - "userIdentifiers": [ - { - "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110", - "userIdentifierSource": "UNSPECIFIED" - } - ] - } - } - ], - "validate_only": false - }, - "createJobPayload": { - "job": { - "storeSalesMetadata": { - "custom_key": "CUSTOM_KEY", - "loyaltyFraction": 1, - "transaction_upload_fraction": "1" - }, - "type": "STORE_SALES_UPLOAD_FIRST_PARTY" - } - }, - "event": "1112223333", - "executeJobPayload": { - "validate_only": false - }, - "isStoreConversion": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - }, - output: { - response: { - status: 200, - body: { - "output": { - "status": 200, - "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully", - "destinationResponse": { - "response": { - "name": "customers/111-222-3333/operations/abcd=" - }, - "status": 200 - } - } - }, - }, - }, - }, - { - name: 'google_adwords_offline_conversions', - description: 'Test 2', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/customerid/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011", - "login-customer-id": "logincustomerid" - }, - "params": { - "customerId": "1112223333", - "event": "Sign-up - click" - }, - "body": { - "JSON": { - "addConversionPayload": { - "enable_partial_failure": false, - "enable_warnings": false, - "operations": [ - { - "create": { - "transaction_attribute": { - "CUSTOM_KEY": "CUSTOM_VALUE", - "currency_code": "INR", - "order_id": "order id", - "store_attribute": { - "store_code": "store code" - }, - "transaction_amount_micros": "100000000", - "transaction_date_time": "2019-10-14 11:15:18+00:00" - }, - "userIdentifiers": [ - { - "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110", - "userIdentifierSource": "UNSPECIFIED" - } - ] - } - } - ], - "validate_only": false - }, - "createJobPayload": { - "job": { - "storeSalesMetadata": { - "custom_key": "CUSTOM_KEY", - "loyaltyFraction": 1, - "transaction_upload_fraction": "1" - }, - "type": "STORE_SALES_UPLOAD_FIRST_PARTY" - } - }, - "event": "1112223333", - "executeJobPayload": { - "validate_only": false - }, - "isStoreConversion": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - }, - output: { - response: { - status: 401, - body: { - "output": { - "status": 401, - "message": "[Google Ads Offline Conversions]:: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. during google_ads_offline_store_conversions Job Creation", - "authErrorCategory": "REFRESH_TOKEN", - "destinationResponse": { - "error": { - "code": 401, - "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", - "status": "UNAUTHENTICATED" - } - }, - "statTags": { - "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS", - "destinationId": "Non-determininable", - "errorCategory": "network", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination", - "workspaceId": "Non-determininable" - } - } - } - }, - }, - }, - { - name: 'google_adwords_offline_conversions', - description: 'Test 3', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadClickConversions", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011" - }, - "params": { - "event": "Sign-up - click", - "customerId": "1234567890", - "customVariables": [ - { - "from": "value", - "to": "revenue" - }, - { - "from": "total", - "to": "cost" - } - ], - "properties": { - "gbraid": "gbraid", - "wbraid": "wbraid", - "externalAttributionCredit": 10, - "externalAttributionModel": "externalAttributionModel", - "conversionCustomVariable": "conversionCustomVariable", - "value": "value", - "merchantId": "9876merchantId", - "feedCountryCode": "feedCountryCode", - "feedLanguageCode": "feedLanguageCode", - "localTransactionCost": 20, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "quantity": "2", - "price": "50", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - } - ], - "userIdentifierSource": "FIRST_PARTY", - "conversionEnvironment": "WEB", - "gclid": "gclid", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "conversionValue": "1", - "currency": "GBP", - "orderId": "PL-123QR" - } - }, - "body": { - "JSON": { - "conversions": [ - { - "gbraid": "gbraid", - "wbraid": "wbraid", - "externalAttributionData": { - "externalAttributionCredit": 10, - "externalAttributionModel": "externalAttributionModel" - }, - "cartData": { - "merchantId": 9876, - "feedCountryCode": "feedCountryCode", - "feedLanguageCode": "feedLanguageCode", - "localTransactionCost": 20, - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "quantity": 2, - "unitPrice": 50 - } - ] - }, - "userIdentifiers": [ - { - "userIdentifierSource": "FIRST_PARTY", - "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110" - } - ], - "conversionEnvironment": "WEB", - "gclid": "gclid", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "conversionValue": 1, - "currencyCode": "GBP", - "orderId": "PL-123QR" - } - ], - "partialFailure": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - }, - output: { - response: { - status: 401, - body: { - "output": { - "status": 401, - "message": "[Google Ads Offline Conversions]:: [{\"error\":{\"code\":401,\"message\":\"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.\",\"status\":\"UNAUTHENTICATED\"}}] during google_ads_offline_conversions response transformation", - "authErrorCategory": "REFRESH_TOKEN", - "destinationResponse": [ - { - "error": { - "code": 401, - "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", - "status": "UNAUTHENTICATED" - } - } - ], - "statTags": { - "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS", - "destinationId": "Non-determininable", - "errorCategory": "network", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination", - "workspaceId": "Non-determininable", - } - } - } - }, - }, - }, - { - name: 'google_adwords_offline_conversions', - description: 'Test 4', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - "request": { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011" - }, - "params": { - "event": "Sign-up - click", - "customerId": "1234567891", - "customVariables": [ - { - "from": "Value", - "to": "revenue" - }, - { - "from": "total", - "to": "cost" - } - ], - "properties": { - "gbraid": "gbraid", - "wbraid": "wbraid", - "externalAttributionCredit": 10, - "externalAttributionModel": "externalAttributionModel", - "conversionCustomVariable": "conversionCustomVariable", - "Value": "value", - "merchantId": "9876merchantId", - "feedCountryCode": "feedCountryCode", - "feedLanguageCode": "feedLanguageCode", - "localTransactionCost": 20, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "quantity": "2", - "price": "50", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - } - ], - "userIdentifierSource": "FIRST_PARTY", - "conversionEnvironment": "WEB", - "gclid": "gclid", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "conversionValue": "1", - "currency": "GBP", - "orderId": "PL-123QR" - } - }, - "body": { - "JSON": { - "conversions": [ - { - "gbraid": "gbraid", - "wbraid": "wbraid", - "externalAttributionData": { - "externalAttributionCredit": 10, - "externalAttributionModel": "externalAttributionModel" - }, - "cartData": { - "merchantId": 9876, - "feedCountryCode": "feedCountryCode", - "feedLanguageCode": "feedLanguageCode", - "localTransactionCost": 20, - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "quantity": 2, - "unitPrice": 50 - } - ] - }, - "userIdentifiers": [ - { - "userIdentifierSource": "FIRST_PARTY", - "hashedPhoneNumber": "04e1dabb7c1348b72bfa87da179c9697c69af74827649266a5da8cdbb367abcd" - } - ], - "conversionEnvironment": "WEB", - "gclid": "gclid", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "conversionValue": 1, - "currencyCode": "GBP", - "orderId": "PL-123QR" - } - ], - "partialFailure": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } - }, - output: { - response: { - status: 200, - body: { - "output": { - "status": 200, - "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully", - "destinationResponse": { - "response": [ - { - "adjustmentType": "ENHANCEMENT", - "conversionAction": "customers/1234567891/conversionActions/874224905", - "adjustmentDateTime": "2021-01-01 12:32:45-08:00", - "gclidDateTimePair": { - "gclid": "1234", - "conversionDateTime": "2021-01-01 12:32:45-08:00" - }, - "orderId": "12345" - } - ], - "status": 200 - } - } - } - }, - }, - }, - { - name: 'google_adwords_offline_conversions', - description: 'Test 5', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - "request": { - "body": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl91011" - }, - "params": { - "event": "Sign-up - click", - "customerId": "1234567891", - "customVariables": [], - "properties": { - "gbraid": "gbraid", - "wbraid": "wbraid", - "externalAttributionCredit": 10, - "externalAttributionModel": "externalAttributionModel", - "conversionCustomVariable": "conversionCustomVariable", - "value": "value", - "merchantId": "9876merchantId", - "feedCountryCode": "feedCountryCode", - "feedLanguageCode": "feedLanguageCode", - "localTransactionCost": 20, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "quantity": "2", - "price": "50", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "position": "1", - "category": "cars", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - } - ], - "userIdentifierSource": "FIRST_PARTY", - "conversionEnvironment": "WEB", - "gclid": "gclid", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "conversionValue": "1", - "currency": "GBP", - "orderId": "PL-123QR" - } - }, - "body": { - "JSON": { - "conversions": [ - { - "gbraid": "gbraid", - "wbraid": "wbraid", - "externalAttributionData": { - "externalAttributionCredit": 10, - "externalAttributionModel": "externalAttributionModel" - }, - "cartData": { - "merchantId": 9876, - "feedCountryCode": "feedCountryCode", - "feedLanguageCode": "feedLanguageCode", - "localTransactionCost": 20, - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "quantity": 2, - "unitPrice": 50 - } - ] - }, - "userIdentifiers": [ - { - "userIdentifierSource": "FIRST_PARTY", - "hashedPhoneNumber": "04e1dabb7c1348b72bfa87da179c9697c69af74827649266a5da8cdbb367abcd" - } - ], - "conversionEnvironment": "WEB", - "gclid": "gclid", - "conversionDateTime": "2022-01-01 12:32:45-08:00", - "conversionValue": 1, - "currencyCode": "GBP", - "orderId": "PL-123QR" - } - ], - "partialFailure": true - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } - }, - output: { - response: { - status: 200, - body: { - "output": { - "destinationResponse": { - "response": [ - { - "adjustmentDateTime": "2021-01-01 12:32:45-08:00", - "adjustmentType": "ENHANCEMENT", - "conversionAction": "customers/1234567891/conversionActions/874224905", - "gclidDateTimePair": { - "conversionDateTime": "2021-01-01 12:32:45-08:00", - "gclid": "1234" - }, - "orderId": "12345" - } - ], - "status": 200 - }, - "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully", - "status": 200 - } - } - }, - }, - } + { + name: 'google_adwords_offline_conversions', + description: 'Test 0', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://googleads.googleapis.com/v14/customers/11122233331/offlineUserDataJobs", + "headers": { + "Authorization": "Bearer abcd1234", + "Content-Type": "application/json", + "developer-token": "ijkl91011", + "login-customer-id": "logincustomerid" + }, + "params": { + "customerId": "1112223333", + "event": "Sign-up - click" + }, + "body": { + "JSON": { + "addConversionPayload": { + "enable_partial_failure": false, + "enable_warnings": false, + "operations": [ + { + "create": { + "transaction_attribute": { + "CUSTOM_KEY": "CUSTOM_VALUE", + "currency_code": "INR", + "order_id": "order id", + "store_attribute": { + "store_code": "store code" + }, + "transaction_amount_micros": "100000000", + "transaction_date_time": "2019-10-14 11:15:18+00:00" + }, + "userIdentifiers": [ + { + "hashedEmail": "6db61e6dcbcf2390e4a46af26f26a133a3bee45021422fc7ae86e9136f14110", + "userIdentifierSource": "UNSPECIFIED" + } + ] + } + } + ], + "validate_only": false + }, + "createJobPayload": { + "job": { + "storeSalesMetadata": { + "custom_key": "CUSTOM_KEY", + "loyaltyFraction": 1, + "transaction_upload_fraction": "1" + }, + "type": "STORE_SALES_UPLOAD_FIRST_PARTY" + } + }, + "event": "1112223333", + "executeJobPayload": { + "validate_only": false + }, + "isStoreConversion": true + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + }, + method: 'POST', + }, + }, + output: { + response: { + status: 400, + body: { + "output": { + "status": 400, + "message": "[Google Ads Offline Conversions]:: Request contains an invalid argument. during google_ads_offline_store_conversions Add Conversion", + "destinationResponse": { + "error": { + "code": 400, + "details": [ + { + "@type": "type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure", + "errors": [ + { + "errorCode": { + "offlineUserDataJobError": "INVALID_SHA256_FORMAT" + }, + "message": "The SHA256 encoded value is malformed.", + "location": { + "fieldPathElements": [ + { + "fieldName": "operations", + "index": 0 + }, + { + "fieldName": "create" + }, + { + "fieldName": "user_identifiers", + "index": 0 + }, + { + "fieldName": "hashed_email" + } + ] + } + } + ], + "requestId": "68697987" + } + ], + "message": "Request contains an invalid argument.", + "status": "INVALID_ARGUMENT" + } + }, + "statTags": { + "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS", + "destinationId": "Non-determininable", + "errorCategory": "network", + "errorType": "aborted", + "feature": "dataDelivery", + "implementation": "native", + "module": "destination", + "workspaceId": "Non-determininable", + } + } + }, + }, + }, + }, + { + name: 'google_adwords_offline_conversions', + description: 'Test 1', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + "body": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://googleads.googleapis.com/v14/customers/1112223333/offlineUserDataJobs", + "headers": { + "Authorization": "Bearer abcd1234", + "Content-Type": "application/json", + "developer-token": "ijkl91011", + "login-customer-id": "logincustomerid" + }, + "params": { + "customerId": "1112223333", + "event": "Sign-up - click" + }, + "body": { + "JSON": { + "addConversionPayload": { + "enable_partial_failure": false, + "enable_warnings": false, + "operations": [ + { + "create": { + "transaction_attribute": { + "CUSTOM_KEY": "CUSTOM_VALUE", + "currency_code": "INR", + "order_id": "order id", + "store_attribute": { + "store_code": "store code" + }, + "transaction_amount_micros": "100000000", + "transaction_date_time": "2019-10-14 11:15:18+00:00" + }, + "userIdentifiers": [ + { + "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110", + "userIdentifierSource": "UNSPECIFIED" + } + ] + } + } + ], + "validate_only": false + }, + "createJobPayload": { + "job": { + "storeSalesMetadata": { + "custom_key": "CUSTOM_KEY", + "loyaltyFraction": 1, + "transaction_upload_fraction": "1" + }, + "type": "STORE_SALES_UPLOAD_FIRST_PARTY" + } + }, + "event": "1112223333", + "executeJobPayload": { + "validate_only": false + }, + "isStoreConversion": true + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + } + }, + }, + output: { + response: { + status: 200, + body: { + "output": { + "status": 200, + "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully", + "destinationResponse": { + "response": { + "name": "customers/111-222-3333/operations/abcd=" + }, + "status": 200 + } + } + }, + }, + }, + }, + { + name: 'google_adwords_offline_conversions', + description: 'Test 2', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + "body": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://googleads.googleapis.com/v14/customers/customerid/offlineUserDataJobs", + "headers": { + "Authorization": "Bearer abcd1234", + "Content-Type": "application/json", + "developer-token": "ijkl91011", + "login-customer-id": "logincustomerid" + }, + "params": { + "customerId": "1112223333", + "event": "Sign-up - click" + }, + "body": { + "JSON": { + "addConversionPayload": { + "enable_partial_failure": false, + "enable_warnings": false, + "operations": [ + { + "create": { + "transaction_attribute": { + "CUSTOM_KEY": "CUSTOM_VALUE", + "currency_code": "INR", + "order_id": "order id", + "store_attribute": { + "store_code": "store code" + }, + "transaction_amount_micros": "100000000", + "transaction_date_time": "2019-10-14 11:15:18+00:00" + }, + "userIdentifiers": [ + { + "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110", + "userIdentifierSource": "UNSPECIFIED" + } + ] + } + } + ], + "validate_only": false + }, + "createJobPayload": { + "job": { + "storeSalesMetadata": { + "custom_key": "CUSTOM_KEY", + "loyaltyFraction": 1, + "transaction_upload_fraction": "1" + }, + "type": "STORE_SALES_UPLOAD_FIRST_PARTY" + } + }, + "event": "1112223333", + "executeJobPayload": { + "validate_only": false + }, + "isStoreConversion": true + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + } + }, + }, + output: { + response: { + status: 401, + body: { + "output": { + "status": 401, + "message": "[Google Ads Offline Conversions]:: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. during google_ads_offline_store_conversions Job Creation", + "authErrorCategory": "REFRESH_TOKEN", + "destinationResponse": { + "error": { + "code": 401, + "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", + "status": "UNAUTHENTICATED" + } + }, + "statTags": { + "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS", + "destinationId": "Non-determininable", + "errorCategory": "network", + "errorType": "aborted", + "feature": "dataDelivery", + "implementation": "native", + "module": "destination", + "workspaceId": "Non-determininable" + } + } + } + }, + }, + }, + { + name: 'google_adwords_offline_conversions', + description: 'Test 3', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + "body": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadClickConversions", + "headers": { + "Authorization": "Bearer abcd1234", + "Content-Type": "application/json", + "developer-token": "ijkl91011" + }, + "params": { + "event": "Sign-up - click", + "customerId": "1234567890", + "customVariables": [ + { + "from": "value", + "to": "revenue" + }, + { + "from": "total", + "to": "cost" + } + ], + "properties": { + "gbraid": "gbraid", + "wbraid": "wbraid", + "externalAttributionCredit": 10, + "externalAttributionModel": "externalAttributionModel", + "conversionCustomVariable": "conversionCustomVariable", + "value": "value", + "merchantId": "9876merchantId", + "feedCountryCode": "feedCountryCode", + "feedLanguageCode": "feedLanguageCode", + "localTransactionCost": 20, + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "quantity": "2", + "price": "50", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "position": "1", + "category": "cars", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + } + ], + "userIdentifierSource": "FIRST_PARTY", + "conversionEnvironment": "WEB", + "gclid": "gclid", + "conversionDateTime": "2022-01-01 12:32:45-08:00", + "conversionValue": "1", + "currency": "GBP", + "orderId": "PL-123QR" + } + }, + "body": { + "JSON": { + "conversions": [ + { + "gbraid": "gbraid", + "wbraid": "wbraid", + "externalAttributionData": { + "externalAttributionCredit": 10, + "externalAttributionModel": "externalAttributionModel" + }, + "cartData": { + "merchantId": 9876, + "feedCountryCode": "feedCountryCode", + "feedLanguageCode": "feedLanguageCode", + "localTransactionCost": 20, + "items": [ + { + "productId": "507f1f77bcf86cd799439011", + "quantity": 2, + "unitPrice": 50 + } + ] + }, + "userIdentifiers": [ + { + "userIdentifierSource": "FIRST_PARTY", + "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110" + } + ], + "conversionEnvironment": "WEB", + "gclid": "gclid", + "conversionDateTime": "2022-01-01 12:32:45-08:00", + "conversionValue": 1, + "currencyCode": "GBP", + "orderId": "PL-123QR" + } + ], + "partialFailure": true + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + } + }, + }, + output: { + response: { + status: 401, + body: { + "output": { + "status": 401, + "message": "[Google Ads Offline Conversions]:: [{\"error\":{\"code\":401,\"message\":\"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.\",\"status\":\"UNAUTHENTICATED\"}}] during google_ads_offline_conversions response transformation", + "authErrorCategory": "REFRESH_TOKEN", + "destinationResponse": [ + { + "error": { + "code": 401, + "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", + "status": "UNAUTHENTICATED" + } + } + ], + "statTags": { + "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS", + "destinationId": "Non-determininable", + "errorCategory": "network", + "errorType": "aborted", + "feature": "dataDelivery", + "implementation": "native", + "module": "destination", + "workspaceId": "Non-determininable", + } + } + } + }, + }, + }, + { + name: 'google_adwords_offline_conversions', + description: 'Test 4', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + "request": { + "body": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions", + "headers": { + "Authorization": "Bearer abcd1234", + "Content-Type": "application/json", + "developer-token": "ijkl91011" + }, + "params": { + "event": "Sign-up - click", + "customerId": "1234567891", + "customVariables": [ + { + "from": "Value", + "to": "revenue" + }, + { + "from": "total", + "to": "cost" + } + ], + "properties": { + "gbraid": "gbraid", + "wbraid": "wbraid", + "externalAttributionCredit": 10, + "externalAttributionModel": "externalAttributionModel", + "conversionCustomVariable": "conversionCustomVariable", + "Value": "value", + "merchantId": "9876merchantId", + "feedCountryCode": "feedCountryCode", + "feedLanguageCode": "feedLanguageCode", + "localTransactionCost": 20, + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "quantity": "2", + "price": "50", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "position": "1", + "category": "cars", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + } + ], + "userIdentifierSource": "FIRST_PARTY", + "conversionEnvironment": "WEB", + "gclid": "gclid", + "conversionDateTime": "2022-01-01 12:32:45-08:00", + "conversionValue": "1", + "currency": "GBP", + "orderId": "PL-123QR" + } + }, + "body": { + "JSON": { + "conversions": [ + { + "gbraid": "gbraid", + "wbraid": "wbraid", + "externalAttributionData": { + "externalAttributionCredit": 10, + "externalAttributionModel": "externalAttributionModel" + }, + "cartData": { + "merchantId": 9876, + "feedCountryCode": "feedCountryCode", + "feedLanguageCode": "feedLanguageCode", + "localTransactionCost": 20, + "items": [ + { + "productId": "507f1f77bcf86cd799439011", + "quantity": 2, + "unitPrice": 50 + } + ] + }, + "userIdentifiers": [ + { + "userIdentifierSource": "FIRST_PARTY", + "hashedPhoneNumber": "04e1dabb7c1348b72bfa87da179c9697c69af74827649266a5da8cdbb367abcd" + } + ], + "conversionEnvironment": "WEB", + "gclid": "gclid", + "conversionDateTime": "2022-01-01 12:32:45-08:00", + "conversionValue": 1, + "currencyCode": "GBP", + "orderId": "PL-123QR" + } + ], + "partialFailure": true + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + } + } + }, + output: { + response: { + status: 200, + body: { + "output": { + "status": 200, + "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully", + "destinationResponse": { + "response": [ + { + "adjustmentType": "ENHANCEMENT", + "conversionAction": "customers/1234567891/conversionActions/874224905", + "adjustmentDateTime": "2021-01-01 12:32:45-08:00", + "gclidDateTimePair": { + "gclid": "1234", + "conversionDateTime": "2021-01-01 12:32:45-08:00" + }, + "orderId": "12345" + } + ], + "status": 200 + } + } + } + }, + }, + }, + { + name: 'google_adwords_offline_conversions', + description: 'Test 5', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + "request": { + "body": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions", + "headers": { + "Authorization": "Bearer abcd1234", + "Content-Type": "application/json", + "developer-token": "ijkl91011" + }, + "params": { + "event": "Sign-up - click", + "customerId": "1234567891", + "customVariables": [], + "properties": { + "gbraid": "gbraid", + "wbraid": "wbraid", + "externalAttributionCredit": 10, + "externalAttributionModel": "externalAttributionModel", + "conversionCustomVariable": "conversionCustomVariable", + "value": "value", + "merchantId": "9876merchantId", + "feedCountryCode": "feedCountryCode", + "feedLanguageCode": "feedLanguageCode", + "localTransactionCost": 20, + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "quantity": "2", + "price": "50", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "position": "1", + "category": "cars", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + } + ], + "userIdentifierSource": "FIRST_PARTY", + "conversionEnvironment": "WEB", + "gclid": "gclid", + "conversionDateTime": "2022-01-01 12:32:45-08:00", + "conversionValue": "1", + "currency": "GBP", + "orderId": "PL-123QR" + } + }, + "body": { + "JSON": { + "conversions": [ + { + "gbraid": "gbraid", + "wbraid": "wbraid", + "externalAttributionData": { + "externalAttributionCredit": 10, + "externalAttributionModel": "externalAttributionModel" + }, + "cartData": { + "merchantId": 9876, + "feedCountryCode": "feedCountryCode", + "feedLanguageCode": "feedLanguageCode", + "localTransactionCost": 20, + "items": [ + { + "productId": "507f1f77bcf86cd799439011", + "quantity": 2, + "unitPrice": 50 + } + ] + }, + "userIdentifiers": [ + { + "userIdentifierSource": "FIRST_PARTY", + "hashedPhoneNumber": "04e1dabb7c1348b72bfa87da179c9697c69af74827649266a5da8cdbb367abcd" + } + ], + "conversionEnvironment": "WEB", + "gclid": "gclid", + "conversionDateTime": "2022-01-01 12:32:45-08:00", + "conversionValue": 1, + "currencyCode": "GBP", + "orderId": "PL-123QR" + } + ], + "partialFailure": true + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + } + } + }, + output: { + response: { + status: 200, + body: { + "output": { + "destinationResponse": { + "response": [ + { + "adjustmentDateTime": "2021-01-01 12:32:45-08:00", + "adjustmentType": "ENHANCEMENT", + "conversionAction": "customers/1234567891/conversionActions/874224905", + "gclidDateTimePair": { + "conversionDateTime": "2021-01-01 12:32:45-08:00", + "gclid": "1234" + }, + "orderId": "12345" + } + ], + "status": 200 + }, + "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully", + "status": 200 + } + } + }, + }, + } ]; diff --git a/test/integrations/destinations/google_adwords_offline_conversions/router/data.ts b/test/integrations/destinations/google_adwords_offline_conversions/router/data.ts index c5d2f2f524..1536af8187 100644 --- a/test/integrations/destinations/google_adwords_offline_conversions/router/data.ts +++ b/test/integrations/destinations/google_adwords_offline_conversions/router/data.ts @@ -41,21 +41,13 @@ export const data = [ postalCode: 'EC3M', streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, event: 'Promotion Clicked', type: 'track', @@ -94,9 +86,7 @@ export const data = [ conversionValue: '1', currency: 'GBP', }, - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, @@ -106,55 +96,26 @@ export const data = [ refresh_token: 'efgh5678', developer_token: 'ijkl91011', }, + userId: 'u1', }, destination: { Config: { customerId: '962-581-2972', eventsToOfflineConversionsTypeMapping: [ - { - from: 'Sign up completed', - to: 'click', - }, - { - from: 'Download', - to: 'call', - }, - { - from: 'Promotion Clicked', - to: 'click', - }, - { - from: 'Product Searched', - to: 'call', - }, + { from: 'Sign up completed', to: 'click' }, + { from: 'Download', to: 'call' }, + { from: 'Promotion Clicked', to: 'click' }, + { from: 'Product Searched', to: 'call' }, ], eventsToConversionsNamesMapping: [ - { - from: 'Sign up completed', - to: 'Sign-up - click', - }, - { - from: 'Download', - to: 'Page view', - }, - { - from: 'Promotion Clicked', - to: 'Sign-up - click', - }, - { - from: 'Product Searched', - to: 'search', - }, + { from: 'Sign up completed', to: 'Sign-up - click' }, + { from: 'Download', to: 'Page view' }, + { from: 'Promotion Clicked', to: 'Sign-up - click' }, + { from: 'Product Searched', to: 'search' }, ], customVariables: [ - { - from: 'value', - to: 'revenue', - }, - { - from: 'total', - to: 'cost', - }, + { from: 'value', to: 'revenue' }, + { from: 'total', to: 'cost' }, ], UserIdentifierSource: 'THIRD_PARTY', conversionEnvironment: 'WEB', @@ -195,21 +156,13 @@ export const data = [ postalCode: 'EC3M', streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, event: 'Product Searched', type: 'track', @@ -240,19 +193,15 @@ export const data = [ userIdentifierSource: 'FIRST_PARTY', conversionEnvironment: 'WEB', gclid: 'gclid', - conversionCustomVariable: 'conversionCustomVariable', value: 'value', - callerId: 'callerId', callStartDateTime: '2022-08-28 15:01:30+05:30', conversionDateTime: '2022-01-01 12:32:45-08:00', conversionValue: '1', currency: 'GBP', }, - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, @@ -262,55 +211,26 @@ export const data = [ refresh_token: 'efgh5678', developer_token: 'ijkl91011', }, + userId: 'u1', }, destination: { Config: { customerId: '962-581-2972', eventsToOfflineConversionsTypeMapping: [ - { - from: 'Sign up completed', - to: 'click', - }, - { - from: 'Download', - to: 'call', - }, - { - from: 'Promotion Clicked', - to: 'click', - }, - { - from: 'Product Searched', - to: 'call', - }, + { from: 'Sign up completed', to: 'click' }, + { from: 'Download', to: 'call' }, + { from: 'Promotion Clicked', to: 'click' }, + { from: 'Product Searched', to: 'call' }, ], eventsToConversionsNamesMapping: [ - { - from: 'Sign up completed', - to: 'Sign-up - click', - }, - { - from: 'Download', - to: 'Page view', - }, - { - from: 'Promotion Clicked', - to: 'Sign-up - click', - }, - { - from: 'Product Searched', - to: 'search', - }, + { from: 'Sign up completed', to: 'Sign-up - click' }, + { from: 'Download', to: 'Page view' }, + { from: 'Promotion Clicked', to: 'Sign-up - click' }, + { from: 'Product Searched', to: 'search' }, ], customVariables: [ - { - from: 'value', - to: 'revenue', - }, - { - from: 'total', - to: 'cost', - }, + { from: 'value', to: 'revenue' }, + { from: 'total', to: 'cost' }, ], UserIdentifierSource: 'THIRD_PARTY', conversionEnvironment: 'WEB', @@ -324,11 +244,7 @@ export const data = [ { message: { channel: 'web', - context: { - traits: { - firstName: 'John', - }, - }, + context: { traits: { firstName: 'John' } }, event: 'Product Clicked', type: 'track', messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', @@ -348,9 +264,7 @@ export const data = [ callerId: '1234', callStartDateTime: '2019-10-14T11:15:18.299Z', }, - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, @@ -361,6 +275,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 1, + userId: 'u1', }, destination: { Config: { @@ -405,11 +320,7 @@ export const data = [ { message: { channel: 'web', - context: { - traits: { - firstName: 'John', - }, - }, + context: { traits: { firstName: 'John' } }, event: 'Order Completed', type: 'track', messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', @@ -429,9 +340,7 @@ export const data = [ callerId: '1234', callStartDateTime: '2019-10-14T11:15:18.299Z', }, - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, @@ -442,6 +351,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 2, + userId: 'u1', }, destination: { Config: { @@ -486,11 +396,7 @@ export const data = [ { message: { channel: 'web', - context: { - traits: { - firstName: 'John', - }, - }, + context: { traits: { firstName: 'John' } }, event: 'Order Completed', type: 'track', messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', @@ -510,9 +416,7 @@ export const data = [ callerId: '1234', callStartDateTime: '2019-10-14T11:15:18.299Z', }, - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, @@ -523,6 +427,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 3, + userId: 'u1', }, destination: { Config: { @@ -656,6 +561,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 1, + userId: 'u1', }, { secret: { @@ -664,6 +570,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 2, + userId: 'u1', }, ], batched: true, @@ -807,6 +714,7 @@ export const data = [ refresh_token: 'efgh5678', developer_token: 'ijkl91011', }, + userId: 'u1', }, ], batched: false, @@ -916,6 +824,7 @@ export const data = [ refresh_token: 'efgh5678', developer_token: 'ijkl91011', }, + userId: 'u1', }, ], batched: false, @@ -1005,6 +914,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 2, + userId: 'u1', }, ], batched: false, @@ -1058,6 +968,7 @@ export const data = [ developer_token: 'ijkl91011', }, jobId: 3, + userId: 'u1', }, ], batched: false, diff --git a/test/integrations/destinations/google_adwords_remarketing_lists/dataDelivery/data.ts b/test/integrations/destinations/google_adwords_remarketing_lists/dataDelivery/data.ts index b41d725799..414e46ea19 100644 --- a/test/integrations/destinations/google_adwords_remarketing_lists/dataDelivery/data.ts +++ b/test/integrations/destinations/google_adwords_remarketing_lists/dataDelivery/data.ts @@ -1,247 +1,261 @@ export const data = [ - { - name: 'google_adwords_remarketing_lists', - description: 'Test 0', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "destination": "google_adwords_remarketing_lists", - "listId": "709078448", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "hashedEmail": "85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "e56d336922eaab3be8c1244dbaa713e134a8eba50ddbd4f50fd2fe18d72595cd" - } - } - ] - } - } - ] + { + name: 'google_adwords_remarketing_lists', + description: 'Test 0', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + destination: 'google_adwords_remarketing_lists', + listId: '709078448', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + '85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + hashedEmail: + '85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + 'e56d336922eaab3be8c1244dbaa713e134a8eba50ddbd4f50fd2fe18d72595cd', }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} + }, + ], + }, }, - method: 'POST' + ], }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 200, - body: { - "output": { - "status": 200, - "message": "Request Processed Successfully", - "destinationResponse": { "response": "", "status": 200 } - } - }, - }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + status: 200, + message: 'Request Processed Successfully', + destinationResponse: { response: '', status: 200 }, + }, }, + }, }, - { - name: 'google_adwords_remarketing_lists', - description: 'Test 1', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729834/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "709078448", - "customerId": "7693729833", - "destination": "google_adwords_remarketing_lists" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "abcd@testmail.com" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 1', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://googleads.googleapis.com/v15/customers/7693729834/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: '709078448', + customerId: '7693729833', + destination: 'google_adwords_remarketing_lists', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: 'abcd@testmail.com', + }, + ], + }, }, - method: 'POST' + ], }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 400, - body: { - output: { - "status": 400, - "message": "Request contains an invalid argument. during ga_audience response transformation", - "destinationResponse": { - "error": { - "code": 400, - "details": [ - { - "@type": "type.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure", - "errors": [ - { - "errorCode": { - "offlineUserDataJobError": "INVALID_SHA256_FORMAT" - }, - "message": "The SHA256 encoded value is malformed.", - "location": { - "fieldPathElements": [ - { "fieldName": "operations", "index": 0 }, - { "fieldName": "remove" }, - { "fieldName": "user_identifiers", "index": 0 }, - { "fieldName": "hashed_email" } - ] - } - } - ] - } - ], - "message": "Request contains an invalid argument.", - "status": "INVALID_ARGUMENT" - } + method: 'POST', + }, + }, + output: { + response: { + status: 400, + body: { + output: { + status: 400, + message: + 'Request contains an invalid argument. during ga_audience response transformation', + destinationResponse: { + error: { + code: 400, + details: [ + { + '@type': 'type.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure', + errors: [ + { + errorCode: { + offlineUserDataJobError: 'INVALID_SHA256_FORMAT', }, - "statTags": { - "destType": "GOOGLE_ADWORDS_REMARKETING_LISTS", - "errorCategory": "network", - "destinationId": "Non-determininable", - "workspaceId": "Non-determininable", - "errorType": "aborted", - "feature": "dataDelivery", - "implementation": "native", - "module": "destination" - } - }, - }, + message: 'The SHA256 encoded value is malformed.', + location: { + fieldPathElements: [ + { fieldName: 'operations', index: 0 }, + { fieldName: 'remove' }, + { fieldName: 'user_identifiers', index: 0 }, + { fieldName: 'hashed_email' }, + ], + }, + }, + ], + }, + ], + message: 'Request contains an invalid argument.', + status: 'INVALID_ARGUMENT', + }, + }, + statTags: { + destType: 'GOOGLE_ADWORDS_REMARKETING_LISTS', + errorCategory: 'network', + destinationId: 'Non-determininable', + workspaceId: 'Non-determininable', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', }, + }, }, + }, }, - { - name: 'google_adwords_remarketing_lists', - description: 'Test 2', - feature: 'dataDelivery', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "709078448", - "customerId": "7693729833", - "destination": "google_adwords_remarketing_lists" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "hashedEmail": "85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "e56d336922eaab3be8c1244dbaa713e134a8eba50ddbd4f50fd2fe18d72595cd" - } - } - ] - } - } - ] + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 2', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: '709078448', + customerId: '7693729833', + destination: 'google_adwords_remarketing_lists', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + remove: { + userIdentifiers: [ + { + hashedEmail: + '85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + hashedEmail: + '85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + 'e56d336922eaab3be8c1244dbaa713e134a8eba50ddbd4f50fd2fe18d72595cd', }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} + }, + ], + }, }, - method: 'POST' + ], }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, }, - output: { - response: { - status: 200, - body: { - output: { - "status": 200, - "message": "Request Processed Successfully", - "destinationResponse": { "response": "", "status": 200 } - }, - }, - }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + status: 200, + message: 'Request Processed Successfully', + destinationResponse: { response: '', status: 200 }, + }, }, - } + }, + }, + }, ]; diff --git a/test/integrations/destinations/google_adwords_remarketing_lists/network.ts b/test/integrations/destinations/google_adwords_remarketing_lists/network.ts index 11cbfa7cd8..8e1edd21aa 100644 --- a/test/integrations/destinations/google_adwords_remarketing_lists/network.ts +++ b/test/integrations/destinations/google_adwords_remarketing_lists/network.ts @@ -1,115 +1,204 @@ import { enhanceRequestOptions, getFormData } from '../../../../src/adapters/network'; export const networkCallsData = [ - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs:create', - data: { "job": { "type": "CUSTOMER_MATCH_USER_LIST", "customerMatchUserListMetadata": { "userList": "customers/7693729833/userLists/709078448" } } }, - headers: { "Authorization": "Bearer dummy-access", "Content-Type": "application/json", "developer-token": "dummy-dev-token" }, - method: 'POST', - }, - httpRes: { - "status": 200, - "data": { - "resourceName": "customers/9249589672/offlineUserDataJobs/18025019461" - } + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs:create', + data: { + job: { + type: 'CUSTOMER_MATCH_USER_LIST', + customerMatchUserListMetadata: { userList: 'customers/7693729833/userLists/709078448' }, }, + }, + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + method: 'POST', }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs/18025019461:addOperations', - data: { "enablePartialFailure": true, "operations": [{ "create": { "userIdentifiers": [{ "hashedEmail": "85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05" }, { "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" }, { "hashedEmail": "85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05" }, { "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" }, { "addressInfo": { "hashedFirstName": "e56d336922eaab3be8c1244dbaa713e134a8eba50ddbd4f50fd2fe18d72595cd" } }] } }] }, - headers: { "Authorization": "Bearer dummy-access", "Content-Type": "application/json", "developer-token": "dummy-dev-token" }, - method: 'POST', - }, - httpRes: { - "status": 200, - "data": {} - }, + httpRes: { + status: 200, + data: { + resourceName: 'customers/9249589672/offlineUserDataJobs/18025019461', + }, }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs/18025019461:run', - headers: { "Authorization": "Bearer dummy-access", "Content-Type": "application/json", "developer-token": "dummy-dev-token" }, - method: 'POST', - }, - httpRes: { - "status": 200, - }, + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs/18025019461:addOperations', + data: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { hashedEmail: '85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05' }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { hashedEmail: '85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05' }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + 'e56d336922eaab3be8c1244dbaa713e134a8eba50ddbd4f50fd2fe18d72595cd', + }, + }, + ], + }, + }, + ], + }, + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + method: 'POST', }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/7693729834/offlineUserDataJobs:create', - data: { "job": { "type": "CUSTOMER_MATCH_USER_LIST", "customerMatchUserListMetadata": { "userList": "customers/7693729833/userLists/709078448" } } }, - headers: { "Authorization": "Bearer dummy-access", "Content-Type": "application/json", "developer-token": "dummy-dev-token" }, - method: 'POST', - }, - httpRes: { - "status": 200, - "data": { - "resourceName": "customers/9249589672/offlineUserDataJobs/18025019462" - } - }, + httpRes: { + status: 200, + data: {}, + }, + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs/18025019461:run', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + method: 'POST', }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/7693729834/offlineUserDataJobs/18025019462:addOperations', - data: { "enablePartialFailure": true, "operations": [{ "create": { "userIdentifiers": [{ "hashedEmail": "abcd@testmail.com" }] } }] }, - headers: { "Authorization": "Bearer dummy-access", "Content-Type": "application/json", "developer-token": "dummy-dev-token" }, - method: 'POST', + httpRes: { + status: 200, + }, + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/7693729834/offlineUserDataJobs:create', + data: { + job: { + type: 'CUSTOMER_MATCH_USER_LIST', + customerMatchUserListMetadata: { userList: 'customers/7693729833/userLists/709078448' }, }, - httpRes: { - "data": { - "error": { - "code": 400, - "details": [ - { - "@type": "type.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure", - "errors": [ - { - "errorCode": { - "offlineUserDataJobError": "INVALID_SHA256_FORMAT" - }, - "message": "The SHA256 encoded value is malformed.", - "location": { - "fieldPathElements": [ - { - "fieldName": "operations", - "index": 0 - }, - { - "fieldName": "remove" - }, - { - "fieldName": "user_identifiers", - "index": 0 - }, - { - "fieldName": "hashed_email" - } - ] - } - } - ] - } + }, + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + method: 'POST', + }, + httpRes: { + status: 200, + data: { + resourceName: 'customers/9249589672/offlineUserDataJobs/18025019462', + }, + }, + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/7693729834/offlineUserDataJobs/18025019462:addOperations', + data: { + enablePartialFailure: true, + operations: [{ create: { userIdentifiers: [{ hashedEmail: 'abcd@testmail.com' }] } }], + }, + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + method: 'POST', + }, + httpRes: { + data: { + error: { + code: 400, + details: [ + { + '@type': 'type.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure', + errors: [ + { + errorCode: { + offlineUserDataJobError: 'INVALID_SHA256_FORMAT', + }, + message: 'The SHA256 encoded value is malformed.', + location: { + fieldPathElements: [ + { + fieldName: 'operations', + index: 0, + }, + { + fieldName: 'remove', + }, + { + fieldName: 'user_identifiers', + index: 0, + }, + { + fieldName: 'hashed_email', + }, ], - "message": "Request contains an invalid argument.", - "status": "INVALID_ARGUMENT" - } + }, + }, + ], }, - "status": 400 + ], + message: 'Request contains an invalid argument.', + status: 'INVALID_ARGUMENT', }, + }, + status: 400, }, - { - httpReq: { - url: 'https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs/18025019461:addOperations', - data: { "enablePartialFailure": true, "operations": [{ "remove": { "userIdentifiers": [{ "hashedEmail": "85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05" }, { "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" }, { "hashedEmail": "85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05" }, { "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" }, { "addressInfo": { "hashedFirstName": "e56d336922eaab3be8c1244dbaa713e134a8eba50ddbd4f50fd2fe18d72595cd" } }] } }] }, - headers: { "Authorization": "Bearer dummy-access", "Content-Type": "application/json", "developer-token": "dummy-dev-token" }, - method: 'POST', - }, - httpRes: { - "status": 200, - "data": {} - }, - } -]; \ No newline at end of file + }, + { + httpReq: { + url: 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs/18025019461:addOperations', + data: { + enablePartialFailure: true, + operations: [ + { + remove: { + userIdentifiers: [ + { hashedEmail: '85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05' }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { hashedEmail: '85cc9fefa1eff1baab55d10df0cecff2acb25344867a5d0f96e1b1c5e2f10f05' }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + 'e56d336922eaab3be8c1244dbaa713e134a8eba50ddbd4f50fd2fe18d72595cd', + }, + }, + ], + }, + }, + ], + }, + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + method: 'POST', + }, + httpRes: { + status: 200, + data: {}, + }, + }, +]; diff --git a/test/integrations/destinations/google_adwords_remarketing_lists/processor/data.ts b/test/integrations/destinations/google_adwords_remarketing_lists/processor/data.ts index a6733f5daf..804efec220 100644 --- a/test/integrations/destinations/google_adwords_remarketing_lists/processor/data.ts +++ b/test/integrations/destinations/google_adwords_remarketing_lists/processor/data.ts @@ -1,10453 +1,12096 @@ export const data = [ - { - "name": "google_adwords_remarketing_lists", - "description": "Test 0", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "hashedLastName": "dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 1", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "769-372-9833", - "loginCustomerId": "870-483-0944", - "subAccount": true, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "userID" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245", - "thirdPartyUserId": "useri1234" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token", - "login-customer-id": "8704830944" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "thirdPartyUserId": "useri1234" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 2", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "mobileDeviceID" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245", - "thirdPartyUserId": "useri1234", - "mobileId": "abcd-1234-567h" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "mobileId": "abcd-1234-567h" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 3", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "mobileDeviceID" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "abc@abc.com", - "phone": "@09876543210", - "firstName": "abc", - "lastName": "efg", - "country": "US", - "postalCode": "1245", - "thirdPartyUserId": "useri1234" - }, - { - "email": "def@abc.com", - "phone": "@09876543210", - "firstName": "def", - "lastName": "ghi", - "country": "US", - "postalCode": "1245", - "thirdPartyUserId": "useri1234" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245", - "thirdPartyUserId": "useri1234" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 400, - "error": "Neither 'add' nor 'remove' property is present inside 'listData' or there are no attributes inside 'add' or 'remove' properties matching with the schema fields. Aborting message.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "GOOGLE_ADWORDS_REMARKETING_LISTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 4", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "mobileDeviceID" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "remove": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245", - "thirdPartyUserId": "useri1234" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 400, - "error": "Neither 'add' nor 'remove' property is present inside 'listData' or there are no attributes inside 'add' or 'remove' properties matching with the schema fields. Aborting message.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "GOOGLE_ADWORDS_REMARKETING_LISTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 5", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "mobileDeviceID" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "properties": { - "listData": { - "remove": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245", - "thirdPartyUserId": "useri1234" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 400, - "error": "Message Type is not present. Aborting message.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "GOOGLE_ADWORDS_REMARKETING_LISTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 6", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "mobileDeviceID" - } - }, - "message": { - "type": "audiencelist", - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "properties": { - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 400, - "error": "listData is not present inside properties. Aborting message.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "GOOGLE_ADWORDS_REMARKETING_LISTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 7", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": true, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "mobileDeviceID" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "add": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 400, - "error": "loginCustomerId is required as subAccount is true.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration", - "destType": "GOOGLE_ADWORDS_REMARKETING_LISTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 8", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "add": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 9", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "add": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ], - "remove": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - }, - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 10", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "add": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ], - "remove": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - }, - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 11", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "remove": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 12", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "delete": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 400, - "error": "Neither 'add' nor 'remove' property is present inside 'listData' or there are no attributes inside 'add' or 'remove' properties matching with the schema fields. Aborting message.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "GOOGLE_ADWORDS_REMARKETING_LISTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 13", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "remove": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ], - "add": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - }, - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - }, - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 14", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "remove": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ], - "add": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - }, - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 15", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelisT", - "properties": { - "listData": { - "remove": [ - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": null, - "lastName": "jkl", - "country": "US", - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ], - "add": [ - { - "email": "ghi@abc.com", - "phone": null, - "firstName": "ghi", - "lastName": "jkl", - "country": null, - "mobileId": "1245" - }, - { - "email": "ghi@abc.com", - "phone": "@09876543210", - "firstName": "ghi", - "lastName": "jkl", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - }, - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1" - } - }, - { - "hashedEmail": "a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb", - "hashedLastName": "268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 16", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "test@abc.com", - "phone": false, - "firstName": "test", - "lastName": null, - "country": "US", - "postalCode": 0 - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "list111", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419" - }, - { - "addressInfo": { - "hashedFirstName": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "countryCode": "US", - "postalCode": 0 - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 17", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": null - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "secret": null - }, - "statusCode": 500, - "error": "OAuth - access token not found", - "statTags": { - "errorCategory": "platform", - "errorType": "oAuthSecret", - "destType": "GOOGLE_ADWORDS_REMARKETING_LISTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 18", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "listId": "list111", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General", - "audienceId": "aud1234" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "sudip@abc.com", - "phone": false, - "firstName": "sudip", - "lastName": null, - "country": "US", - "postalCode": 0 - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "aud1234", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c" - }, - { - "addressInfo": { - "hashedFirstName": "a512ebb75e941411945c9a18bca4ecc315830e0b5cff8a525472c86c1f540844", - "countryCode": "US", - "postalCode": 0 - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 19", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "anonymousId": "24ed22ae-0681-4882-8c33-012e298e1c17", - "channel": "sources", - "context": { - "destinationFields": "email", - "externalId": [ - { - "identifierType": "email", - "type": "GOOGLE_ADWORDS_REMARKETING_LISTS-830441345" - } - ], - "mappedToDestination": "true", - "sources": { - "job_id": "2UcqQB4ygGtTBAvwCWl7xz8dJgt", - "job_run_id": "cjmsdip7m95b7aee7tpg", - "task_run_id": "cjmsdip7m95b7aee7tq0", - "version": "master" - } - }, - "event": "Add_Audience", - "messageId": "bd2d67ca-0c9a-4d3b-a2f8-35a3c3f75ba7", - "properties": { - "listData": { - "remove": [ - { - "email": "test1@mail.com" - }, - { - "email": "test5@xmail.com" - }, - { - "email": "test3@mail.com" - } - ] - } - }, - "recordId": "a071551c-87e0-48a7-aa5c-7c4144cec5cf/1/5", - "rudderId": "5e9ada0e-5f50-4cb8-a015-f6842a7615fd", - "sentAt": "2023-08-29 10:22:06.395377223 +0000 UTC", - "type": "audienceList", - "userId": "23423423" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "830441345", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "78310d2dd727b704ff9d9c4742d01941b1217b89f45ab71d1e9bf5a010144048" - }, - { - "hashedEmail": "34a6406a076b943abfb9e97a6761e0c6b8cf049ab15b013412c57cf8370b5436" - }, - { - "hashedEmail": "8075d00e5f006b95eb090bf50f5246bc3c18c3d771fa1edf967b033b274b8d84" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "google_adwords_remarketing_lists", - "description": "Test 20", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "destination": { - "Config": { - "rudderAccountId": "rudder-acc-id", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": [ - "email", - "phone", - "addressInfo" - ], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "anonymousId": "24ed22ae-0681-4882-8c33-012e298e1c17", - "channel": "sources", - "context": { - "destinationFields": "email", - "externalId": [ - { - "identifierType": "email", - "type": "GOOGLE_ADWORDS_REMARKETING_LISTS-830441345" - } - ], - "mappedToDestination": "true", - "sources": { - "job_id": "2UcqQB4ygGtTBAvwCWl7xz8dJgt", - "job_run_id": "cjmsdip7m95b7aee7tpg", - "task_run_id": "cjmsdip7m95b7aee7tq0", - "version": "master" - } - }, - "event": "Add_Audience", - "messageId": "bd2d67ca-0c9a-4d3b-a2f8-35a3c3f75ba7", - "properties": { - "listData": { - "add": [ - { - "email": "test1@mail.com" - }, - { - "email": "test5@xmail.com" - }, - { - "email": "test3@mail.com" - } - ] - } - }, - "recordId": "a071551c-87e0-48a7-aa5c-7c4144cec5cf/1/5", - "rudderId": "5e9ada0e-5f50-4cb8-a015-f6842a7615fd", - "sentAt": "2023-08-29 10:22:06.395377223 +0000 UTC", - "type": "audienceList", - "userId": "23423423" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer dummy-access", - "Content-Type": "application/json", - "developer-token": "dummy-dev-token" - }, - "params": { - "listId": "830441345", - "customerId": "7693729833" - }, - "body": { - "JSON": { - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "78310d2dd727b704ff9d9c4742d01941b1217b89f45ab71d1e9bf5a010144048" - }, - { - "hashedEmail": "34a6406a076b943abfb9e97a6761e0c6b8cf049ab15b013412c57cf8370b5436" - }, - { - "hashedEmail": "8075d00e5f006b95eb090bf50f5246bc3c18c3d771fa1edf967b033b274b8d84" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "secret": { - "access_token": "dummy-access", - "refresh_token": "dummy-refresh", - "developer_token": "dummy-dev-token" - } - }, - "statusCode": 200 - } - ] - } - } - } -] \ No newline at end of file + { + name: 'google_adwords_remarketing_lists', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'd3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + hashedLastName: + 'dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '769-372-9833', + loginCustomerId: '870-483-0944', + subAccount: true, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'userID', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + thirdPartyUserId: 'useri1234', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + 'login-customer-id': '8704830944', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + thirdPartyUserId: 'useri1234', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'mobileDeviceID', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + thirdPartyUserId: 'useri1234', + mobileId: 'abcd-1234-567h', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + mobileId: 'abcd-1234-567h', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'mobileDeviceID', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'abc@abc.com', + phone: '@09876543210', + firstName: 'abc', + lastName: 'efg', + country: 'US', + postalCode: '1245', + thirdPartyUserId: 'useri1234', + }, + { + email: 'def@abc.com', + phone: '@09876543210', + firstName: 'def', + lastName: 'ghi', + country: 'US', + postalCode: '1245', + thirdPartyUserId: 'useri1234', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + thirdPartyUserId: 'useri1234', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 400, + error: + "Neither 'add' nor 'remove' property is present inside 'listData' or there are no attributes inside 'add' or 'remove' properties matching with the schema fields. Aborting message.", + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'GOOGLE_ADWORDS_REMARKETING_LISTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'mobileDeviceID', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + remove: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + thirdPartyUserId: 'useri1234', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 400, + error: + "Neither 'add' nor 'remove' property is present inside 'listData' or there are no attributes inside 'add' or 'remove' properties matching with the schema fields. Aborting message.", + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'GOOGLE_ADWORDS_REMARKETING_LISTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'mobileDeviceID', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + properties: { + listData: { + remove: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + thirdPartyUserId: 'useri1234', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 400, + error: 'Message Type is not present. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'GOOGLE_ADWORDS_REMARKETING_LISTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'mobileDeviceID', + }, + }, + message: { + type: 'audiencelist', + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + properties: { + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 400, + error: 'listData is not present inside properties. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'GOOGLE_ADWORDS_REMARKETING_LISTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: true, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'mobileDeviceID', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + add: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 400, + error: 'loginCustomerId is required as subAccount is true.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'GOOGLE_ADWORDS_REMARKETING_LISTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + add: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + add: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + remove: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + add: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + remove: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + remove: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + delete: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 400, + error: + "Neither 'add' nor 'remove' property is present inside 'listData' or there are no attributes inside 'add' or 'remove' properties matching with the schema fields. Aborting message.", + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'GOOGLE_ADWORDS_REMARKETING_LISTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + remove: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + add: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 14', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + remove: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + add: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelisT', + properties: { + listData: { + remove: [ + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: null, + lastName: 'jkl', + country: 'US', + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + add: [ + { + email: 'ghi@abc.com', + phone: null, + firstName: 'ghi', + lastName: 'jkl', + country: null, + mobileId: '1245', + }, + { + email: 'ghi@abc.com', + phone: '@09876543210', + firstName: 'ghi', + lastName: 'jkl', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + remove: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + }, + }, + { + hashedEmail: + 'a3d3807256168f51fc644aef9bda6c7f15c850702be01cf4c77af26a37aec026', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '50ae61e841fac4e8f9e40baf2ad36ec868922ea48368c18f9535e47db56dd7fb', + hashedLastName: + '268f277c6d766d31334fda0f7a5533a185598d269e61c76a805870244828a5f1', + countryCode: 'US', + postalCode: '1245', + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 16', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'test@abc.com', + phone: false, + firstName: 'test', + lastName: null, + country: 'US', + postalCode: 0, + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'list111', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + 'd3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419', + }, + { + addressInfo: { + hashedFirstName: + '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + countryCode: 'US', + postalCode: 0, + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 17', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: null, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + secret: null, + }, + statusCode: 500, + error: 'OAuth - access token not found', + statTags: { + errorCategory: 'platform', + errorType: 'oAuthSecret', + destType: 'GOOGLE_ADWORDS_REMARKETING_LISTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 18', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + listId: 'list111', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + audienceId: 'aud1234', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'sudip@abc.com', + phone: false, + firstName: 'sudip', + lastName: null, + country: 'US', + postalCode: 0, + }, + ], + }, + enablePartialFailure: true, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: 'aud1234', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + '938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c', + }, + { + addressInfo: { + hashedFirstName: + 'a512ebb75e941411945c9a18bca4ecc315830e0b5cff8a525472c86c1f540844', + countryCode: 'US', + postalCode: 0, + }, + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 19', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + anonymousId: '24ed22ae-0681-4882-8c33-012e298e1c17', + channel: 'sources', + context: { + destinationFields: 'email', + externalId: [ + { + identifierType: 'email', + type: 'GOOGLE_ADWORDS_REMARKETING_LISTS-830441345', + }, + ], + mappedToDestination: 'true', + sources: { + job_id: '2UcqQB4ygGtTBAvwCWl7xz8dJgt', + job_run_id: 'cjmsdip7m95b7aee7tpg', + task_run_id: 'cjmsdip7m95b7aee7tq0', + version: 'master', + }, + }, + event: 'Add_Audience', + messageId: 'bd2d67ca-0c9a-4d3b-a2f8-35a3c3f75ba7', + properties: { + listData: { + remove: [ + { + email: 'test1@mail.com', + }, + { + email: 'test5@xmail.com', + }, + { + email: 'test3@mail.com', + }, + ], + }, + }, + recordId: 'a071551c-87e0-48a7-aa5c-7c4144cec5cf/1/5', + rudderId: '5e9ada0e-5f50-4cb8-a015-f6842a7615fd', + sentAt: '2023-08-29 10:22:06.395377223 +0000 UTC', + type: 'audienceList', + userId: '23423423', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: '830441345', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + operations: [ + { + remove: { + userIdentifiers: [ + { + hashedEmail: + '78310d2dd727b704ff9d9c4742d01941b1217b89f45ab71d1e9bf5a010144048', + }, + { + hashedEmail: + '34a6406a076b943abfb9e97a6761e0c6b8cf049ab15b013412c57cf8370b5436', + }, + { + hashedEmail: + '8075d00e5f006b95eb090bf50f5246bc3c18c3d771fa1edf967b033b274b8d84', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 20', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + anonymousId: '24ed22ae-0681-4882-8c33-012e298e1c17', + channel: 'sources', + context: { + destinationFields: 'email', + externalId: [ + { + identifierType: 'email', + type: 'GOOGLE_ADWORDS_REMARKETING_LISTS-830441345', + }, + ], + mappedToDestination: 'true', + sources: { + job_id: '2UcqQB4ygGtTBAvwCWl7xz8dJgt', + job_run_id: 'cjmsdip7m95b7aee7tpg', + task_run_id: 'cjmsdip7m95b7aee7tq0', + version: 'master', + }, + }, + event: 'Add_Audience', + messageId: 'bd2d67ca-0c9a-4d3b-a2f8-35a3c3f75ba7', + properties: { + listData: { + add: [ + { + email: 'test1@mail.com', + }, + { + email: 'test5@xmail.com', + }, + { + email: 'test3@mail.com', + }, + ], + }, + }, + recordId: 'a071551c-87e0-48a7-aa5c-7c4144cec5cf/1/5', + rudderId: '5e9ada0e-5f50-4cb8-a015-f6842a7615fd', + sentAt: '2023-08-29 10:22:06.395377223 +0000 UTC', + type: 'audienceList', + userId: '23423423', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: '830441345', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + '78310d2dd727b704ff9d9c4742d01941b1217b89f45ab71d1e9bf5a010144048', + }, + { + hashedEmail: + '34a6406a076b943abfb9e97a6761e0c6b8cf049ab15b013412c57cf8370b5436', + }, + { + hashedEmail: + '8075d00e5f006b95eb090bf50f5246bc3c18c3d771fa1edf967b033b274b8d84', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 20: adding consent object', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + anonymousId: '24ed22ae-0681-4882-8c33-012e298e1c17', + channel: 'sources', + context: { + destinationFields: 'email', + externalId: [ + { + identifierType: 'email', + type: 'GOOGLE_ADWORDS_REMARKETING_LISTS-830441345', + }, + ], + mappedToDestination: 'true', + sources: { + job_id: '2UcqQB4ygGtTBAvwCWl7xz8dJgt', + job_run_id: 'cjmsdip7m95b7aee7tpg', + task_run_id: 'cjmsdip7m95b7aee7tq0', + version: 'master', + }, + }, + event: 'Add_Audience', + messageId: 'bd2d67ca-0c9a-4d3b-a2f8-35a3c3f75ba7', + properties: { + userDataConsent: 'UNSPECIFIED', + personalizationConsent: 'GRANTED', + listData: { + add: [ + { + email: 'test1@mail.com', + }, + { + email: 'test5@xmail.com', + }, + { + email: 'test3@mail.com', + }, + ], + }, + }, + recordId: 'a071551c-87e0-48a7-aa5c-7c4144cec5cf/1/5', + rudderId: '5e9ada0e-5f50-4cb8-a015-f6842a7615fd', + sentAt: '2023-08-29 10:22:06.395377223 +0000 UTC', + type: 'audienceList', + userId: '23423423', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: '830441345', + customerId: '7693729833', + consent: { + adUserData: 'UNSPECIFIED', + adPersonalization: 'GRANTED', + }, + }, + body: { + JSON: { + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + '78310d2dd727b704ff9d9c4742d01941b1217b89f45ab71d1e9bf5a010144048', + }, + { + hashedEmail: + '34a6406a076b943abfb9e97a6761e0c6b8cf049ab15b013412c57cf8370b5436', + }, + { + hashedEmail: + '8075d00e5f006b95eb090bf50f5246bc3c18c3d771fa1edf967b033b274b8d84', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'google_adwords_remarketing_lists', + description: 'Test 20 : consent field values are discarded if it does not match allowed values', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + destination: { + Config: { + rudderAccountId: 'rudder-acc-id', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + anonymousId: '24ed22ae-0681-4882-8c33-012e298e1c17', + channel: 'sources', + context: { + destinationFields: 'email', + externalId: [ + { + identifierType: 'email', + type: 'GOOGLE_ADWORDS_REMARKETING_LISTS-830441345', + }, + ], + mappedToDestination: 'true', + sources: { + job_id: '2UcqQB4ygGtTBAvwCWl7xz8dJgt', + job_run_id: 'cjmsdip7m95b7aee7tpg', + task_run_id: 'cjmsdip7m95b7aee7tq0', + version: 'master', + }, + }, + event: 'Add_Audience', + messageId: 'bd2d67ca-0c9a-4d3b-a2f8-35a3c3f75ba7', + properties: { + userDataConsent: 'RANDOM', + personalizationConsent: 'RANDOM', + listData: { + add: [ + { + email: 'test1@mail.com', + }, + { + email: 'test5@xmail.com', + }, + { + email: 'test3@mail.com', + }, + ], + }, + }, + recordId: 'a071551c-87e0-48a7-aa5c-7c4144cec5cf/1/5', + rudderId: '5e9ada0e-5f50-4cb8-a015-f6842a7615fd', + sentAt: '2023-08-29 10:22:06.395377223 +0000 UTC', + type: 'audienceList', + userId: '23423423', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer dummy-access', + 'Content-Type': 'application/json', + 'developer-token': 'dummy-dev-token', + }, + params: { + listId: '830441345', + customerId: '7693729833', + consent: {}, + }, + body: { + JSON: { + operations: [ + { + create: { + userIdentifiers: [ + { + hashedEmail: + '78310d2dd727b704ff9d9c4742d01941b1217b89f45ab71d1e9bf5a010144048', + }, + { + hashedEmail: + '34a6406a076b943abfb9e97a6761e0c6b8cf049ab15b013412c57cf8370b5436', + }, + { + hashedEmail: + '8075d00e5f006b95eb090bf50f5246bc3c18c3d771fa1edf967b033b274b8d84', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + secret: { + access_token: 'dummy-access', + refresh_token: 'dummy-refresh', + developer_token: 'dummy-dev-token', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/google_adwords_remarketing_lists/router/data.ts b/test/integrations/destinations/google_adwords_remarketing_lists/router/data.ts index 3d3de6a587..8c12225400 100644 --- a/test/integrations/destinations/google_adwords_remarketing_lists/router/data.ts +++ b/test/integrations/destinations/google_adwords_remarketing_lists/router/data.ts @@ -1,555 +1,556 @@ export const data = [ - { - name: 'google_adwords_remarketing_lists', - description: 'Test 0', - feature: 'router', - module: 'destination', - version: 'v0', - input: { - request: { - body: { - input: [ - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl9101" - }, - "jobId": 1 - }, - "destination": { - "Config": { - "rudderAccountId": "258Yea7usSKNpbkIaesL9oJ9iYw", - "listId": "7090784486", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": ["email", "phone", "addressInfo"], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl9101" - }, - "jobId": 2 - }, - "destination": { - "Config": { - "rudderAccountId": "258Yea7usSKNpbkIaesL9oJ9iYw", - "listId": "7090784486", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": ["email", "phone", "addressInfo"], - "isHashRequired": true, - "typeOfList": "userID" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245", - "thirdPartyUserId": "useri1234" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl9101" - }, - "jobId": 3 - }, - "destination": { - "Config": { - "rudderAccountId": "258Yea7usSKNpbkIaesL9oJ9iYw", - "listId": "7090784486", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": ["email", "phone", "addressInfo"], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "remove": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "metadata": { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl9101" - }, - "jobId": 4 - }, - "destination": { - "Config": { - "rudderAccountId": "258Yea7usSKNpbkIaesL9oJ9iYw", - "listId": "7090784486", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": ["email", "phone", "addressInfo"], - "isHashRequired": true, - "typeOfList": "General" - } - }, - "message": { - "userId": "user 1", - "anonymousId": "anon-id-new", - "event": "event1", - "type": "audiencelist", - "properties": { - "listData": { - "remove": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245" - } - ], - "add": [ - { - "email": "test@abc.com", - "phone": "@09876543210", - "firstName": "test", - "lastName": "rudderlabs", - "country": "US", - "postalCode": "1245" - } - ] - }, - "enablePartialFailure": true - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } + { + name: 'google_adwords_remarketing_lists', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl9101', + }, + jobId: 1, + userId: 'u1', + }, + destination: { + Config: { + rudderAccountId: '258Yea7usSKNpbkIaesL9oJ9iYw', + listId: '7090784486', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl9101', + }, + jobId: 2, + userId: 'u1', + }, + destination: { + Config: { + rudderAccountId: '258Yea7usSKNpbkIaesL9oJ9iYw', + listId: '7090784486', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'userID', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + thirdPartyUserId: 'useri1234', + }, + ], + }, + enablePartialFailure: true, + }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl9101', + }, + jobId: 3, + userId: 'u1', + }, + destination: { + Config: { + rudderAccountId: '258Yea7usSKNpbkIaesL9oJ9iYw', + listId: '7090784486', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + remove: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + }, ], - destType: 'google_adwords_remarketing_lists', + }, + enablePartialFailure: true, }, - method: 'POST', + context: { ip: '14.5.67.21', library: { name: 'http' } }, + timestamp: '2020-02-02T00:23:09.544Z', + }, }, + { + metadata: { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl9101', + }, + jobId: 4, + userId: 'u1', + }, + destination: { + Config: { + rudderAccountId: '258Yea7usSKNpbkIaesL9oJ9iYw', + listId: '7090784486', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + remove: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + }, + ], + add: [ + { + email: 'test@abc.com', + phone: '@09876543210', + firstName: 'test', + lastName: 'rudderlabs', + country: 'US', + postalCode: '1245', + }, + ], + }, + enablePartialFailure: true, + }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + destType: 'google_adwords_remarketing_lists', }, - output: { - response: { - status: 200, - body: { - output: [ + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl9101', + }, + params: { listId: '7090784486', customerId: '7693729833', consent: {} }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl9101" - }, - "params": { "listId": "7090784486", "customerId": "7693729833" }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "hashedLastName": "dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl9101" - }, - "jobId": 1 - } + create: { + userIdentifiers: [ + { + hashedEmail: + 'd3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + hashedLastName: + 'dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251', + countryCode: 'US', + postalCode: '1245', + }, + }, ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "258Yea7usSKNpbkIaesL9oJ9iYw", - "listId": "7090784486", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": ["email", "phone", "addressInfo"], - "isHashRequired": true, - "typeOfList": "General" - } - } + }, }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl9101', + }, + jobId: 1, + userId: 'u1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + rudderAccountId: '258Yea7usSKNpbkIaesL9oJ9iYw', + listId: '7090784486', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl9101', + }, + params: { listId: '7090784486', customerId: '7693729833', consent: {} }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ + { create: { userIdentifiers: [{ thirdPartyUserId: 'useri1234' }] } }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl9101', + }, + jobId: 2, + userId: 'u1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + rudderAccountId: '258Yea7usSKNpbkIaesL9oJ9iYw', + listId: '7090784486', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'userID', + }, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl9101', + }, + params: { listId: '7090784486', customerId: '7693729833', consent: {} }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl9101" - }, - "params": { "listId": "7090784486", "customerId": "7693729833" }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "thirdPartyUserId": "useri1234" - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl9101" - }, - "jobId": 2 - } + remove: { + userIdentifiers: [ + { + hashedEmail: + 'd3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + hashedLastName: + 'dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251', + countryCode: 'US', + postalCode: '1245', + }, + }, ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "258Yea7usSKNpbkIaesL9oJ9iYw", - "listId": "7090784486", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": ["email", "phone", "addressInfo"], - "isHashRequired": true, - "typeOfList": "userID" - } - } + }, }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl9101', + }, + jobId: 3, + userId: 'u1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + rudderAccountId: '258Yea7usSKNpbkIaesL9oJ9iYw', + listId: '7090784486', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', + }, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl9101', + }, + params: { listId: '7090784486', customerId: '7693729833', consent: {} }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl9101" - }, - "params": { "listId": "7090784486", "customerId": "7693729833" }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "hashedLastName": "dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl9101" - }, - "jobId": 3 - } + remove: { + userIdentifiers: [ + { + hashedEmail: + 'd3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + hashedLastName: + 'dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251', + countryCode: 'US', + postalCode: '1245', + }, + }, ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "258Yea7usSKNpbkIaesL9oJ9iYw", - "listId": "7090784486", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": ["email", "phone", "addressInfo"], - "isHashRequired": true, - "typeOfList": "General" - } - } + }, }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://googleads.googleapis.com/v15/customers/7693729833/offlineUserDataJobs', + headers: { + Authorization: 'Bearer abcd1234', + 'Content-Type': 'application/json', + 'developer-token': 'ijkl9101', + }, + params: { listId: '7090784486', customerId: '7693729833', consent: {} }, + body: { + JSON: { + enablePartialFailure: true, + operations: [ { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl9101" - }, - "params": { "listId": "7090784486", "customerId": "7693729833" }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "remove": { - "userIdentifiers": [ - { - "hashedEmail": "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "hashedLastName": "dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} + create: { + userIdentifiers: [ + { + hashedEmail: + 'd3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419', + }, + { + hashedPhoneNumber: + '8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45', + }, + { + addressInfo: { + hashedFirstName: + '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', + hashedLastName: + 'dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251', + countryCode: 'US', + postalCode: '1245', }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://googleads.googleapis.com/v14/customers/7693729833/offlineUserDataJobs", - "headers": { - "Authorization": "Bearer abcd1234", - "Content-Type": "application/json", - "developer-token": "ijkl9101" - }, - "params": { "listId": "7090784486", "customerId": "7693729833" }, - "body": { - "JSON": { - "enablePartialFailure": true, - "operations": [ - { - "create": { - "userIdentifiers": [ - { - "hashedEmail": "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419" - }, - { - "hashedPhoneNumber": "8846dcb6ab2d73a0e67dbd569fa17cec2d9d391e5b05d1dd42919bc21ae82c45" - }, - { - "addressInfo": { - "hashedFirstName": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", - "hashedLastName": "dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251", - "countryCode": "US", - "postalCode": "1245" - } - } - ] - } - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } + }, ], - "metadata": [ - { - "secret": { - "access_token": "abcd1234", - "refresh_token": "efgh5678", - "developer_token": "ijkl9101" - }, - "jobId": 4 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "rudderAccountId": "258Yea7usSKNpbkIaesL9oJ9iYw", - "listId": "7090784486", - "customerId": "7693729833", - "loginCustomerId": "", - "subAccount": false, - "userSchema": ["email", "phone", "addressInfo"], - "isHashRequired": true, - "typeOfList": "General" - } - } - } - ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + secret: { + access_token: 'abcd1234', + refresh_token: 'efgh5678', + developer_token: 'ijkl9101', + }, + jobId: 4, + userId: 'u1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + rudderAccountId: '258Yea7usSKNpbkIaesL9oJ9iYw', + listId: '7090784486', + customerId: '7693729833', + loginCustomerId: '', + subAccount: false, + userSchema: ['email', 'phone', 'addressInfo'], + isHashRequired: true, + typeOfList: 'General', }, + }, }, + ], }, - } + }, + }, + }, ]; diff --git a/test/integrations/destinations/google_cloud_function/router/data.ts b/test/integrations/destinations/google_cloud_function/router/data.ts index 0661d4cb15..50a559e27c 100644 --- a/test/integrations/destinations/google_cloud_function/router/data.ts +++ b/test/integrations/destinations/google_cloud_function/router/data.ts @@ -20,9 +20,7 @@ export const data = [ maxBatchSize: '2', }, }, - metadata: { - jobId: '1', - }, + metadata: { jobId: '1', userId: 'u1' }, message: { channel: 'web', context: { @@ -32,21 +30,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -61,9 +51,7 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -77,9 +65,7 @@ export const data = [ maxBatchSize: '2', }, }, - metadata: { - jobId: '2', - }, + metadata: { jobId: '2', userId: 'u1' }, message: { channel: 'web', context: { @@ -89,21 +75,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -118,9 +96,7 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -135,9 +111,7 @@ export const data = [ maxBatchSize: '2', }, }, - metadata: { - jobId: '3', - }, + metadata: { jobId: '3', userId: 'u1' }, message: { channel: 'web', context: { @@ -147,21 +121,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -176,9 +142,7 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -204,21 +168,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -233,9 +189,7 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, { @@ -247,21 +201,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -276,13 +222,14 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, ], - metadata: [{ jobId: '1' }, { jobId: '3' }], + metadata: [ + { jobId: '1', userId: 'u1' }, + { jobId: '3', userId: 'u1' }, + ], batched: true, statusCode: 200, destination: { @@ -306,7 +253,7 @@ export const data = [ maxBatchSize: '2', }, }, - metadata: [{ jobId: '2' }], + metadata: [{ jobId: '2', userId: 'u1' }], batched: false, statusCode: 400, error: '[GCF]:: Url not found. Aborting', @@ -345,9 +292,7 @@ export const data = [ maxBatchSize: '2', }, }, - metadata: { - jobId: '1', - }, + metadata: { jobId: '1', userId: 'u1' }, message: { channel: 'web', context: { @@ -357,21 +302,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -386,9 +323,7 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -402,9 +337,7 @@ export const data = [ maxBatchSize: '2', }, }, - metadata: { - jobId: '2', - }, + metadata: { jobId: '2', userId: 'u1' }, message: { channel: 'web', context: { @@ -414,21 +347,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -443,9 +368,7 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -460,9 +383,7 @@ export const data = [ maxBatchSize: '2', }, }, - metadata: { - jobId: '3', - }, + metadata: { jobId: '3', userId: 'u1' }, message: { channel: 'web', context: { @@ -472,21 +393,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -501,9 +414,7 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -529,21 +440,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -558,9 +461,7 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, { @@ -572,21 +473,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -601,13 +494,14 @@ export const data = [ emailOptOut: true, masterAvatarTypeCode: 10, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, ], - metadata: [{ jobId: '1' }, { jobId: '3' }], + metadata: [ + { jobId: '1', userId: 'u1' }, + { jobId: '3', userId: 'u1' }, + ], batched: true, statusCode: 200, destination: { @@ -631,7 +525,7 @@ export const data = [ maxBatchSize: '2', }, }, - metadata: [{ jobId: '2' }], + metadata: [{ jobId: '2', userId: 'u1' }], batched: false, statusCode: 400, error: '[GCF]:: Url not found. Aborting', diff --git a/test/integrations/destinations/googlesheets/router/data.ts b/test/integrations/destinations/googlesheets/router/data.ts index 20fe270e5f..bdc686efda 100644 --- a/test/integrations/destinations/googlesheets/router/data.ts +++ b/test/integrations/destinations/googlesheets/router/data.ts @@ -14,62 +14,20 @@ export const data = [ Config: { credentials: '{ sheets credentials }', eventKeyMap: [ - { - from: 'firstName', - to: 'First Name', - }, - { - from: 'lastName', - to: 'Last Name', - }, - { - from: 'birthday', - to: 'Birthday', - }, - { - from: 'address.city', - to: 'City', - }, - { - from: 'address.country', - to: 'Country', - }, - { - from: 'revenue', - to: 'Revenue', - }, - { - from: 'offer', - to: 'Offer', - }, - { - from: 'title', - to: 'Title Page', - }, - { - from: 'Cart Value', - to: 'Cart Value', - }, - { - from: 'revenue', - to: 'Revenue', - }, - { - from: 'context.app.build', - to: 'App Build', - }, - { - from: 'context.app.name', - to: 'App Name', - }, - { - from: 'context.library.name', - to: 'Library Name', - }, - { - from: 'context.ip', - to: 'IP', - }, + { from: 'firstName', to: 'First Name' }, + { from: 'lastName', to: 'Last Name' }, + { from: 'birthday', to: 'Birthday' }, + { from: 'address.city', to: 'City' }, + { from: 'address.country', to: 'Country' }, + { from: 'revenue', to: 'Revenue' }, + { from: 'offer', to: 'Offer' }, + { from: 'title', to: 'Title Page' }, + { from: 'Cart Value', to: 'Cart Value' }, + { from: 'revenue', to: 'Revenue' }, + { from: 'context.app.build', to: 'App Build' }, + { from: 'context.app.name', to: 'App Name' }, + { from: 'context.library.name', to: 'Library Name' }, + { from: 'context.ip', to: 'IP' }, ], sheetId: 'rudder_sheet_id', sheetName: 'rudder_sheet', @@ -121,10 +79,7 @@ export const data = [ married: true, customerType: 'Prime', custom_tags: ['Test_User', 'Interested_User', 'DIY_Hobby'], - custom_mappings: { - Office: 'Trastkiv', - Country: 'Russia', - }, + custom_mappings: { Office: 'Trastkiv', Country: 'Russia' }, address: { city: 'kolkata', country: 'India', @@ -136,71 +91,27 @@ export const data = [ integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, { destination: { Config: { credentials: '{ sheets credentials }', eventKeyMap: [ - { - from: 'firstName', - to: 'First Name', - }, - { - from: 'lastName', - to: 'Last Name', - }, - { - from: 'birthday', - to: 'Birthday', - }, - { - from: 'address.city', - to: 'City', - }, - { - from: 'address.country', - to: 'Country', - }, - { - from: 'revenue', - to: 'Revenue', - }, - { - from: 'offer', - to: 'Offer', - }, - { - from: 'title', - to: 'Title Page', - }, - { - from: 'Cart Value', - to: 'Cart Value', - }, - { - from: 'revenue', - to: 'Revenue', - }, - { - from: 'context.app.build', - to: 'App Build', - }, - { - from: 'context.app.name', - to: 'App Name', - }, - { - from: 'context.library.name', - to: 'Library Name', - }, - { - from: 'context.ip', - to: 'IP', - }, + { from: 'firstName', to: 'First Name' }, + { from: 'lastName', to: 'Last Name' }, + { from: 'birthday', to: 'Birthday' }, + { from: 'address.city', to: 'City' }, + { from: 'address.country', to: 'Country' }, + { from: 'revenue', to: 'Revenue' }, + { from: 'offer', to: 'Offer' }, + { from: 'title', to: 'Title Page' }, + { from: 'Cart Value', to: 'Cart Value' }, + { from: 'revenue', to: 'Revenue' }, + { from: 'context.app.build', to: 'App Build' }, + { from: 'context.app.name', to: 'App Name' }, + { from: 'context.library.name', to: 'Library Name' }, + { from: 'context.ip', to: 'IP' }, ], sheetId: 'rudder_sheet_id', sheetName: 'rudder_sheet', @@ -232,26 +143,16 @@ export const data = [ name: 'generic_x86', type: 'android', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '0.1.4', - }, + library: { name: 'com.rudderstack.android.sdk.core', version: '0.1.4' }, locale: 'en-US', - network: { - carrier: 'Android', - bluetooth: false, - cellular: true, - wifi: true, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, os: { name: 'Android', version: '9' }, screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Kolkata', }, timestamp: '2020-02-02T00:23:09.544Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, }, ], destType: 'googlesheets', @@ -272,50 +173,17 @@ export const data = [ attributeKey: 'messageId', attributeValue: '84e26acc-56a5-4835-8233-591137fca468', }, - '1': { - attributeKey: 'First Name', - attributeValue: 'James', - }, - '2': { - attributeKey: 'Last Name', - attributeValue: 'Doe', - }, - '3': { - attributeKey: 'Birthday', - attributeValue: '1614775793', - }, - '4': { - attributeKey: 'City', - attributeValue: 'kolkata', - }, - '5': { - attributeKey: 'Country', - attributeValue: 'India', - }, - '6': { - attributeKey: 'Revenue', - attributeValue: '', - }, - '7': { - attributeKey: 'Offer', - attributeValue: '', - }, - '8': { - attributeKey: 'Title Page', - attributeValue: '', - }, - '9': { - attributeKey: 'Cart Value', - attributeValue: '', - }, - '10': { - attributeKey: 'Revenue', - attributeValue: '', - }, - '11': { - attributeKey: 'App Build', - attributeValue: '1.0.0', - }, + '1': { attributeKey: 'First Name', attributeValue: 'James' }, + '2': { attributeKey: 'Last Name', attributeValue: 'Doe' }, + '3': { attributeKey: 'Birthday', attributeValue: '1614775793' }, + '4': { attributeKey: 'City', attributeValue: 'kolkata' }, + '5': { attributeKey: 'Country', attributeValue: 'India' }, + '6': { attributeKey: 'Revenue', attributeValue: '' }, + '7': { attributeKey: 'Offer', attributeValue: '' }, + '8': { attributeKey: 'Title Page', attributeValue: '' }, + '9': { attributeKey: 'Cart Value', attributeValue: '' }, + '10': { attributeKey: 'Revenue', attributeValue: '' }, + '11': { attributeKey: 'App Build', attributeValue: '1.0.0' }, '12': { attributeKey: 'App Name', attributeValue: 'RudderLabs JavaScript SDK', @@ -324,74 +192,29 @@ export const data = [ attributeKey: 'Library Name', attributeValue: 'RudderLabs JavaScript SDK', }, - '14': { - attributeKey: 'IP', - attributeValue: '0.0.0.0', - }, + '14': { attributeKey: 'IP', attributeValue: '0.0.0.0' }, }, }, { message: { - '0': { - attributeKey: 'messageId', - attributeValue: '', - }, - '1': { - attributeKey: 'First Name', - attributeValue: '', - }, - '2': { - attributeKey: 'Last Name', - attributeValue: '', - }, - '3': { - attributeKey: 'Birthday', - attributeValue: '', - }, - '4': { - attributeKey: 'City', - attributeValue: '', - }, - '5': { - attributeKey: 'Country', - attributeValue: '', - }, - '6': { - attributeKey: 'Revenue', - attributeValue: 5.99, - }, - '7': { - attributeKey: 'Offer', - attributeValue: 'Discount', - }, - '8': { - attributeKey: 'Title Page', - attributeValue: '', - }, - '9': { - attributeKey: 'Cart Value', - attributeValue: '', - }, - '10': { - attributeKey: 'Revenue', - attributeValue: 5.99, - }, - '11': { - attributeKey: 'App Build', - attributeValue: '1', - }, - '12': { - attributeKey: 'App Name', - attributeValue: 'RudderAndroidClient', - }, + '0': { attributeKey: 'messageId', attributeValue: '' }, + '1': { attributeKey: 'First Name', attributeValue: '' }, + '2': { attributeKey: 'Last Name', attributeValue: '' }, + '3': { attributeKey: 'Birthday', attributeValue: '' }, + '4': { attributeKey: 'City', attributeValue: '' }, + '5': { attributeKey: 'Country', attributeValue: '' }, + '6': { attributeKey: 'Revenue', attributeValue: 5.99 }, + '7': { attributeKey: 'Offer', attributeValue: 'Discount' }, + '8': { attributeKey: 'Title Page', attributeValue: '' }, + '9': { attributeKey: 'Cart Value', attributeValue: '' }, + '10': { attributeKey: 'Revenue', attributeValue: 5.99 }, + '11': { attributeKey: 'App Build', attributeValue: '1' }, + '12': { attributeKey: 'App Name', attributeValue: 'RudderAndroidClient' }, '13': { attributeKey: 'Library Name', attributeValue: 'com.rudderstack.android.sdk.core', }, - '14': { - attributeKey: 'IP', - attributeValue: '14.5.67.21', - }, + '14': { attributeKey: 'IP', attributeValue: '14.5.67.21' }, }, }, ], @@ -399,12 +222,8 @@ export const data = [ spreadSheet: 'rudder_sheet', }, metadata: [ - { - jobId: 1, - }, - { - jobId: 2, - }, + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, ], batched: true, statusCode: 200, @@ -412,62 +231,20 @@ export const data = [ Config: { credentials: '{ sheets credentials }', eventKeyMap: [ - { - from: 'firstName', - to: 'First Name', - }, - { - from: 'lastName', - to: 'Last Name', - }, - { - from: 'birthday', - to: 'Birthday', - }, - { - from: 'address.city', - to: 'City', - }, - { - from: 'address.country', - to: 'Country', - }, - { - from: 'revenue', - to: 'Revenue', - }, - { - from: 'offer', - to: 'Offer', - }, - { - from: 'title', - to: 'Title Page', - }, - { - from: 'Cart Value', - to: 'Cart Value', - }, - { - from: 'revenue', - to: 'Revenue', - }, - { - from: 'context.app.build', - to: 'App Build', - }, - { - from: 'context.app.name', - to: 'App Name', - }, - { - from: 'context.library.name', - to: 'Library Name', - }, - { - from: 'context.ip', - to: 'IP', - }, + { from: 'firstName', to: 'First Name' }, + { from: 'lastName', to: 'Last Name' }, + { from: 'birthday', to: 'Birthday' }, + { from: 'address.city', to: 'City' }, + { from: 'address.country', to: 'Country' }, + { from: 'revenue', to: 'Revenue' }, + { from: 'offer', to: 'Offer' }, + { from: 'title', to: 'Title Page' }, + { from: 'Cart Value', to: 'Cart Value' }, + { from: 'revenue', to: 'Revenue' }, + { from: 'context.app.build', to: 'App Build' }, + { from: 'context.app.name', to: 'App Name' }, + { from: 'context.library.name', to: 'Library Name' }, + { from: 'context.ip', to: 'IP' }, ], sheetId: 'rudder_sheet_id', sheetName: 'rudder_sheet', diff --git a/test/integrations/destinations/heap/router/data.ts b/test/integrations/destinations/heap/router/data.ts index 24efbf4b15..3aa8fae2ca 100644 --- a/test/integrations/destinations/heap/router/data.ts +++ b/test/integrations/destinations/heap/router/data.ts @@ -11,9 +11,7 @@ export const data = [ input: [ { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -24,9 +22,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -38,28 +34,15 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + 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', - }, + integrations: { All: true }, + traits: { anonymousId: 'sampath', email: 'sampath@gmail.com' }, messageId: 'fca2e71a-5d30-48e1-ba45-761c16e3820f', originalTimestamp: '2020-01-16T13:21:59.076Z', receivedAt: '2020-01-16T18:52:03.871+05:30', @@ -72,9 +55,7 @@ export const data = [ }, { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -85,9 +66,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 3, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -99,35 +78,19 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, - traits: { - anonymousId: 'sampath', - email: 'sampath@gmail.com', - }, + os: { name: '', 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: 'Send Transactional Email', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'c0c5b892-0d54-449f-b85f-ebb39ff04e67', originalTimestamp: '2020-01-16T13:23:20.844Z', - properties: { - subject: 'Welcome to My App!', - variation: 'A', - }, + properties: { subject: 'Welcome to My App!', variation: 'A' }, receivedAt: '2020-01-16T18:53:23.804+05:30', request_ip: '[::1]:62312', sentAt: '2020-01-16T13:23:23.782Z', @@ -138,9 +101,7 @@ export const data = [ }, { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -151,9 +112,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 4, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -165,29 +124,16 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, - traits: { - anonymousId: 'sampath', - email: 'sampath@gmail.com', - }, + os: { name: '', 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: 'Send Transactional Email', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'c0c5b892-0d54-449f-b85f-ebb39ff04e67', originalTimestamp: '2020-01-16T13:23:20.844Z', properties: { @@ -219,18 +165,12 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://heapanalytics.com/api/add_user_properties', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - }, + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, params: {}, body: { JSON: { identity: 'sampath', - properties: { - anonymousId: 'sampath', - email: 'sampath@gmail.com', - }, + properties: { anonymousId: 'sampath', email: 'sampath@gmail.com' }, app_id: '', }, XML: {}, @@ -240,17 +180,11 @@ export const data = [ files: {}, userId: 'sampath', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -268,19 +202,13 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://heapanalytics.com/api/track', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - }, + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, params: {}, body: { JSON: { identity: 'sampath', event: 'Send Transactional Email', - properties: { - subject: 'Welcome to My App!', - variation: 'A', - }, + properties: { subject: 'Welcome to My App!', variation: 'A' }, app_id: '', timestamp: '2020-01-16T18:53:20.866+05:30', }, @@ -291,17 +219,11 @@ export const data = [ files: {}, userId: 'sampath', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -319,19 +241,13 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://heapanalytics.com/api/track', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - }, + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, params: {}, body: { JSON: { identity: 'sampath', event: 'Send Transactional Email', - properties: { - subject: 'Welcome to My App!', - variation: 'A', - }, + properties: { subject: 'Welcome to My App!', variation: 'A' }, app_id: '', timestamp: '2020-01-16T18:53:20.866+05:30', idempotency_key: '1234', @@ -343,17 +259,11 @@ export const data = [ files: {}, userId: 'sampath', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 4, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -382,9 +292,7 @@ export const data = [ input: [ { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -395,9 +303,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -409,28 +315,15 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + 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', - }, + integrations: { All: true }, + traits: { anonymousId: 'sampath', email: 'sampath@gmail.com' }, messageId: 'fca2e71a-5d30-48e1-ba45-761c16e3820f', originalTimestamp: '2020-01-16T13:21:59.076Z', receivedAt: '2020-01-16T18:52:03.871+05:30', @@ -443,9 +336,7 @@ export const data = [ }, { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -456,9 +347,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 3, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -470,35 +359,19 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, - traits: { - anonymousId: 'sampath', - email: 'sampath@gmail.com', - }, + os: { name: '', 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: 'Send Transactional Email', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'c0c5b892-0d54-449f-b85f-ebb39ff04e67', originalTimestamp: '2020-01-16T13:23:20.844Z', - properties: { - subject: 'Welcome to My App!', - variation: 'A', - }, + properties: { subject: 'Welcome to My App!', variation: 'A' }, receivedAt: '2020-01-16T18:53:23.804+05:30', request_ip: '[::1]:62312', sentAt: '2020-01-16T13:23:23.782Z', @@ -509,9 +382,7 @@ export const data = [ }, { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -522,9 +393,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: { - jobId: 4, - }, + metadata: { jobId: 4, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -536,28 +405,15 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + 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', - }, + integrations: { All: true }, + traits: { anonymousId: 'sampath', email: 'sampath@gmail.com' }, messageId: 'fca2e71a-5d30-48e1-ba45-761c16e3820f', originalTimestamp: '2020-01-16T13:21:59.076Z', receivedAt: '2020-01-16T18:52:03.871+05:30', @@ -569,9 +425,7 @@ export const data = [ }, { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -582,9 +436,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: { - jobId: 5, - }, + metadata: { jobId: 5, userId: 'u1' }, message: { anonymousId: 'sampath', channel: 'web', @@ -596,35 +448,19 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, - traits: { - anonymousId: 'sampath', - email: 'sampath@gmail.com', - }, + os: { name: '', 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: 'Send Transactional Email', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'c0c5b892-0d54-449f-b85f-ebb39ff04e67', originalTimestamp: '2020-01-16T13:23:20.844Z', - properties: { - subject: 'Welcome to My App!', - variation: 'A', - }, + properties: { subject: 'Welcome to My App!', variation: 'A' }, receivedAt: '2020-01-16T18:53:23.804+05:30', request_ip: '[::1]:62312', sentAt: '2020-01-16T13:23:23.782Z', @@ -649,18 +485,12 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://heapanalytics.com/api/add_user_properties', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - }, + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, params: {}, body: { JSON: { identity: 'sampath', - properties: { - anonymousId: 'sampath', - email: 'sampath@gmail.com', - }, + properties: { anonymousId: 'sampath', email: 'sampath@gmail.com' }, app_id: '', }, XML: {}, @@ -670,17 +500,11 @@ export const data = [ files: {}, userId: 'sampath', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -698,19 +522,13 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://heapanalytics.com/api/track', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - }, + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, params: {}, body: { JSON: { identity: 'sampath', event: 'Send Transactional Email', - properties: { - subject: 'Welcome to My App!', - variation: 'A', - }, + properties: { subject: 'Welcome to My App!', variation: 'A' }, app_id: '', timestamp: '2020-01-16T18:53:20.866+05:30', }, @@ -721,17 +539,11 @@ export const data = [ files: {}, userId: 'sampath', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -745,9 +557,7 @@ export const data = [ }, { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -758,11 +568,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: [ - { - jobId: 4, - }, - ], + metadata: [{ jobId: 4, userId: 'u1' }], batched: false, statusCode: 400, error: 'invalid message type for heap', @@ -777,9 +583,7 @@ export const data = [ }, { destination: { - Config: { - appId: '', - }, + Config: { appId: '' }, DestinationDefinition: { DisplayName: 'Heap.io', ID: '1WTbl0l5GjOQKOvfmcGwk0T49kV', @@ -790,11 +594,7 @@ export const data = [ Name: 'heap test', Transformations: [], }, - metadata: [ - { - jobId: 5, - }, - ], + metadata: [{ jobId: 5, userId: 'u1' }], batched: false, statusCode: 400, error: 'message type page not supported for heap', diff --git a/test/integrations/destinations/hs/network.ts b/test/integrations/destinations/hs/network.ts new file mode 100644 index 0000000000..e29cc27562 --- /dev/null +++ b/test/integrations/destinations/hs/network.ts @@ -0,0 +1,664 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.hubapi.com/properties/v1/contacts/properties?hapikey=dummy-apikey', + method: 'GET', + }, + httpRes: { + status: 200, + data: [ + { name: 'company_size', type: 'string' }, + { name: 'date_of_birth', type: 'string' }, + { name: 'days_to_close', type: 'number' }, + { + name: 'date_submitted', + type: 'date', + }, + { + name: 'days_create', + type: 'date', + }, + { + name: 'days_closed', + type: 'date', + }, + { name: 'degree', type: 'string' }, + { name: 'field_of_study', type: 'string' }, + { name: 'first_conversion_date', type: 'datetime' }, + { name: 'first_conversion_event_name', type: 'string' }, + { name: 'first_deal_created_date', type: 'datetime' }, + { name: 'gender', type: 'string' }, + { name: 'graduation_date', type: 'string' }, + { name: 'hs_additional_emails', type: 'enumeration' }, + { name: 'hs_all_contact_vids', type: 'enumeration' }, + { + name: 'hs_analytics_first_touch_converting_campaign', + type: 'string', + }, + { name: 'hs_analytics_last_touch_converting_campaign', type: 'string' }, + { name: 'hs_avatar_filemanager_key', type: 'string' }, + { name: 'hs_calculated_form_submissions', type: 'enumeration' }, + { name: 'hs_calculated_merged_vids', type: 'enumeration' }, + { name: 'hs_calculated_mobile_number', type: 'string' }, + { name: 'hs_calculated_phone_number', type: 'string' }, + { name: 'hs_calculated_phone_number_area_code', type: 'string' }, + { name: 'hs_calculated_phone_number_country_code', type: 'string' }, + { name: 'hs_calculated_phone_number_region_code', type: 'string' }, + { name: 'hs_content_membership_email_confirmed', type: 'bool' }, + { name: 'hs_content_membership_notes', type: 'string' }, + { name: 'hs_content_membership_registered_at', type: 'datetime' }, + { + name: 'hs_content_membership_registration_domain_sent_to', + type: 'string', + }, + { + name: 'hs_content_membership_registration_email_sent_at', + type: 'datetime', + }, + { name: 'hs_content_membership_status', type: 'enumeration' }, + { name: 'hs_conversations_visitor_email', type: 'string' }, + { name: 'hs_created_by_conversations', type: 'bool' }, + { name: 'hs_created_by_user_id', type: 'string' }, + { name: 'hs_createdate', type: 'datetime' }, + { name: 'hs_document_last_revisited', type: 'datetime' }, + { name: 'hs_email_domain', type: 'string' }, + { name: 'hs_email_quarantined', type: 'bool' }, + { name: 'hs_email_quarantined_reason', type: 'enumeration' }, + { name: 'hs_email_recipient_fatigue_recovery_time', type: 'datetime' }, + { name: 'hs_email_sends_since_last_engagement', type: 'number' }, + { name: 'hs_emailconfirmationstatus', type: 'enumeration' }, + { name: 'hs_facebook_ad_clicked', type: 'bool' }, + { name: 'hs_feedback_last_nps_follow_up', type: 'string' }, + { name: 'hs_feedback_last_nps_rating', type: 'enumeration' }, + { name: 'hs_feedback_last_survey_date', type: 'datetime' }, + { name: 'hs_feedback_show_nps_web_survey', type: 'bool' }, + { name: 'hs_google_click_id', type: 'string' }, + { name: 'hs_ip_timezone', type: 'string' }, + { name: 'hs_is_contact', type: 'bool' }, + { name: 'hs_last_sales_activity_date', type: 'datetime' }, + { name: 'hs_lastmodifieddate', type: 'datetime' }, + { name: 'hs_lead_status', type: 'enumeration' }, + { name: 'hs_legal_basis', type: 'enumeration' }, + { name: 'hs_merged_object_ids', type: 'enumeration' }, + { name: 'hs_object_id', type: 'number' }, + { name: 'hs_predictivecontactscore_v2', type: 'number' }, + { name: 'hs_predictivescoringtier', type: 'enumeration' }, + { name: 'hs_sales_email_last_clicked', type: 'datetime' }, + { name: 'hs_sales_email_last_opened', type: 'datetime' }, + { + name: 'hs_searchable_calculated_international_mobile_number', + type: 'phone_number', + }, + { + name: 'hs_searchable_calculated_international_phone_number', + type: 'phone_number', + }, + { + name: 'hs_searchable_calculated_mobile_number', + type: 'phone_number', + }, + { name: 'hs_searchable_calculated_phone_number', type: 'phone_number' }, + { name: 'hs_sequences_is_enrolled', type: 'bool' }, + { name: 'hs_updated_by_user_id', type: 'string' }, + { name: 'hubspot_owner_assigneddate', type: 'datetime' }, + { name: 'ip_city', type: 'string' }, + { name: 'ip_country', type: 'string' }, + { name: 'ip_country_code', type: 'string' }, + { name: 'ip_latlon', type: 'string' }, + { name: 'ip_state', type: 'string' }, + { name: 'ip_state_code', type: 'string' }, + { name: 'ip_zipcode', type: 'string' }, + { name: 'job_function', type: 'string' }, + { name: 'lastmodifieddate', type: 'datetime' }, + { name: 'marital_status', type: 'string' }, + { name: 'military_status', type: 'string' }, + { name: 'num_associated_deals', type: 'number' }, + { name: 'num_conversion_events', type: 'number' }, + { name: 'num_unique_conversion_events', type: 'number' }, + { name: 'recent_conversion_date', type: 'datetime' }, + { name: 'recent_conversion_event_name', type: 'string' }, + { name: 'recent_deal_amount', type: 'number' }, + { name: 'recent_deal_close_date', type: 'datetime' }, + { name: 'relationship_status', type: 'string' }, + { name: 'school', type: 'string' }, + { name: 'seniority', type: 'string' }, + { name: 'start_date', type: 'string' }, + { name: 'test_date', type: 'date' }, + { name: 'test_key', type: 'string' }, + { name: 'test_prop', type: 'string' }, + { name: 'test_property', type: 'string' }, + { name: 'total_revenue', type: 'number' }, + { name: 'work_email', type: 'string' }, + { name: 'firstname', type: 'string' }, + { name: 'hs_analytics_first_url', type: 'string' }, + { name: 'hs_email_delivered', type: 'number' }, + { name: 'hs_email_optout_7283808', type: 'enumeration' }, + { name: 'twitterhandle', type: 'string' }, + { name: 'currentlyinworkflow', type: 'enumeration' }, + { name: 'hs_analytics_last_url', type: 'string' }, + { name: 'hs_email_open', type: 'number' }, + { name: 'fax', type: 'string' }, + { name: 'hs_analytics_first_timestamp', type: 'datetime' }, + { name: 'hs_email_last_email_name', type: 'string' }, + { name: 'hs_email_last_send_date', type: 'datetime' }, + { name: 'address', type: 'string' }, + { name: 'engagements_last_meeting_booked', type: 'datetime' }, + { name: 'engagements_last_meeting_booked_campaign', type: 'string' }, + { name: 'engagements_last_meeting_booked_medium', type: 'string' }, + { name: 'engagements_last_meeting_booked_source', type: 'string' }, + { name: 'hs_analytics_first_visit_timestamp', type: 'datetime' }, + { name: 'hs_email_last_open_date', type: 'datetime' }, + { name: 'hs_sales_email_last_replied', type: 'datetime' }, + { name: 'hubspot_owner_id', type: 'enumeration' }, + { name: 'notes_last_contacted', type: 'datetime' }, + { name: 'notes_last_updated', type: 'datetime' }, + { name: 'notes_next_activity_date', type: 'datetime' }, + { name: 'num_contacted_notes', type: 'number' }, + { name: 'num_notes', type: 'number' }, + { name: 'surveymonkeyeventlastupdated', type: 'number' }, + { name: 'webinareventlastupdated', type: 'number' }, + { name: 'city', type: 'string' }, + { name: 'hs_analytics_last_timestamp', type: 'datetime' }, + { name: 'hs_email_last_click_date', type: 'datetime' }, + { name: 'hubspot_team_id', type: 'enumeration' }, + { name: 'hs_all_owner_ids', type: 'enumeration' }, + { name: 'hs_analytics_last_visit_timestamp', type: 'datetime' }, + { name: 'hs_email_first_send_date', type: 'datetime' }, + { name: 'state', type: 'string' }, + { name: 'hs_all_team_ids', type: 'enumeration' }, + { name: 'hs_analytics_source', type: 'enumeration' }, + { name: 'hs_email_first_open_date', type: 'datetime' }, + { name: 'zip', type: 'string' }, + { name: 'country', type: 'string' }, + { name: 'hs_all_accessible_team_ids', type: 'enumeration' }, + { name: 'hs_analytics_source_data_1', type: 'string' }, + { name: 'hs_email_first_click_date', type: 'datetime' }, + { name: 'hs_analytics_source_data_2', type: 'string' }, + { name: 'hs_email_is_ineligible', type: 'bool' }, + { name: 'hs_language', type: 'enumeration' }, + { name: 'hs_analytics_first_referrer', type: 'string' }, + { name: 'jobtitle', type: 'string' }, + { name: 'hs_analytics_last_referrer', type: 'string' }, + { name: 'message', type: 'string' }, + { name: 'closedate', type: 'datetime' }, + { name: 'hs_analytics_average_page_views', type: 'number' }, + { name: 'hs_analytics_revenue', type: 'number' }, + { name: 'hs_lifecyclestage_lead_date', type: 'datetime' }, + { + name: 'hs_lifecyclestage_marketingqualifiedlead_date', + type: 'datetime', + }, + { name: 'hs_lifecyclestage_opportunity_date', type: 'datetime' }, + { name: 'lifecyclestage', type: 'enumeration' }, + { name: 'hs_lifecyclestage_salesqualifiedlead_date', type: 'datetime' }, + { name: 'createdate', type: 'datetime' }, + { name: 'hs_lifecyclestage_evangelist_date', type: 'datetime' }, + { name: 'hs_lifecyclestage_customer_date', type: 'datetime' }, + { name: 'hubspotscore', type: 'number' }, + { name: 'company', type: 'string' }, + { name: 'hs_lifecyclestage_subscriber_date', type: 'datetime' }, + { name: 'hs_lifecyclestage_other_date', type: 'datetime' }, + { name: 'website', type: 'string' }, + { name: 'numemployees', type: 'enumeration' }, + { name: 'annualrevenue', type: 'string' }, + { name: 'industry', type: 'string' }, + { name: 'associatedcompanyid', type: 'number' }, + { name: 'associatedcompanylastupdated', type: 'number' }, + { name: 'hs_predictivecontactscorebucket', type: 'enumeration' }, + { name: 'hs_predictivecontactscore', type: 'number' }, + ], + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/properties/v1/contacts/properties', + method: 'GET', + }, + httpRes: { + status: 200, + data: [ + { name: 'company_size', type: 'string' }, + { name: 'date_of_birth', type: 'string' }, + { name: 'days_to_close', type: 'number' }, + { + name: 'date_submitted', + type: 'date', + }, + { + name: 'date_created', + type: 'date', + }, + { + name: 'date_closed', + type: 'date', + }, + { name: 'degree', type: 'string' }, + { name: 'field_of_study', type: 'string' }, + { name: 'first_conversion_date', type: 'datetime' }, + { name: 'first_conversion_event_name', type: 'string' }, + { name: 'first_deal_created_date', type: 'datetime' }, + { name: 'gender', type: 'string' }, + { name: 'graduation_date', type: 'string' }, + { name: 'hs_additional_emails', type: 'enumeration' }, + { name: 'hs_all_contact_vids', type: 'enumeration' }, + { + name: 'hs_analytics_first_touch_converting_campaign', + type: 'string', + }, + { name: 'hs_analytics_last_touch_converting_campaign', type: 'string' }, + { name: 'hs_avatar_filemanager_key', type: 'string' }, + { name: 'hs_calculated_form_submissions', type: 'enumeration' }, + { name: 'hs_calculated_merged_vids', type: 'enumeration' }, + { name: 'hs_calculated_mobile_number', type: 'string' }, + { name: 'hs_calculated_phone_number', type: 'string' }, + { name: 'hs_calculated_phone_number_area_code', type: 'string' }, + { name: 'hs_calculated_phone_number_country_code', type: 'string' }, + { name: 'hs_calculated_phone_number_region_code', type: 'string' }, + { name: 'hs_content_membership_email_confirmed', type: 'bool' }, + { name: 'hs_content_membership_notes', type: 'string' }, + { name: 'hs_content_membership_registered_at', type: 'datetime' }, + { + name: 'hs_content_membership_registration_domain_sent_to', + type: 'string', + }, + { + name: 'hs_content_membership_registration_email_sent_at', + type: 'datetime', + }, + { name: 'hs_content_membership_status', type: 'enumeration' }, + { name: 'hs_conversations_visitor_email', type: 'string' }, + { name: 'hs_created_by_conversations', type: 'bool' }, + { name: 'hs_created_by_user_id', type: 'string' }, + { name: 'hs_createdate', type: 'datetime' }, + { name: 'hs_document_last_revisited', type: 'datetime' }, + { name: 'hs_email_domain', type: 'string' }, + { name: 'hs_email_quarantined', type: 'bool' }, + { name: 'hs_email_quarantined_reason', type: 'enumeration' }, + { name: 'hs_email_recipient_fatigue_recovery_time', type: 'datetime' }, + { name: 'hs_email_sends_since_last_engagement', type: 'number' }, + { name: 'hs_emailconfirmationstatus', type: 'enumeration' }, + { name: 'hs_facebook_ad_clicked', type: 'bool' }, + { name: 'hs_feedback_last_nps_follow_up', type: 'string' }, + { name: 'hs_feedback_last_nps_rating', type: 'enumeration' }, + { name: 'hs_feedback_last_survey_date', type: 'datetime' }, + { name: 'hs_feedback_show_nps_web_survey', type: 'bool' }, + { name: 'hs_google_click_id', type: 'string' }, + { name: 'hs_ip_timezone', type: 'string' }, + { name: 'hs_is_contact', type: 'bool' }, + { name: 'hs_last_sales_activity_date', type: 'datetime' }, + { name: 'hs_lastmodifieddate', type: 'datetime' }, + { name: 'hs_lead_status', type: 'enumeration' }, + { name: 'hs_legal_basis', type: 'enumeration' }, + { name: 'hs_merged_object_ids', type: 'enumeration' }, + { name: 'hs_object_id', type: 'number' }, + { name: 'hs_predictivecontactscore_v2', type: 'number' }, + { name: 'hs_predictivescoringtier', type: 'enumeration' }, + { name: 'hs_sales_email_last_clicked', type: 'datetime' }, + { name: 'hs_sales_email_last_opened', type: 'datetime' }, + { + name: 'hs_searchable_calculated_international_mobile_number', + type: 'phone_number', + }, + { + name: 'hs_searchable_calculated_international_phone_number', + type: 'phone_number', + }, + { + name: 'hs_searchable_calculated_mobile_number', + type: 'phone_number', + }, + { name: 'hs_searchable_calculated_phone_number', type: 'phone_number' }, + { name: 'hs_sequences_is_enrolled', type: 'bool' }, + { name: 'hs_updated_by_user_id', type: 'string' }, + { name: 'hubspot_owner_assigneddate', type: 'datetime' }, + { name: 'ip_city', type: 'string' }, + { name: 'ip_country', type: 'string' }, + { name: 'ip_country_code', type: 'string' }, + { name: 'ip_latlon', type: 'string' }, + { name: 'ip_state', type: 'string' }, + { name: 'ip_state_code', type: 'string' }, + { name: 'ip_zipcode', type: 'string' }, + { name: 'job_function', type: 'string' }, + { name: 'lastmodifieddate', type: 'datetime' }, + { name: 'marital_status', type: 'string' }, + { name: 'military_status', type: 'string' }, + { name: 'num_associated_deals', type: 'number' }, + { name: 'num_conversion_events', type: 'number' }, + { name: 'num_unique_conversion_events', type: 'number' }, + { name: 'recent_conversion_date', type: 'datetime' }, + { name: 'recent_conversion_event_name', type: 'string' }, + { name: 'recent_deal_amount', type: 'number' }, + { name: 'recent_deal_close_date', type: 'datetime' }, + { name: 'relationship_status', type: 'string' }, + { name: 'school', type: 'string' }, + { name: 'seniority', type: 'string' }, + { name: 'start_date', type: 'string' }, + { name: 'test_date', type: 'date' }, + { name: 'test_key', type: 'string' }, + { name: 'test_prop', type: 'string' }, + { name: 'test_property', type: 'string' }, + { name: 'total_revenue', type: 'number' }, + { name: 'work_email', type: 'string' }, + { name: 'firstname', type: 'string' }, + { name: 'hs_analytics_first_url', type: 'string' }, + { name: 'hs_email_delivered', type: 'number' }, + { name: 'hs_email_optout_7283808', type: 'enumeration' }, + { name: 'twitterhandle', type: 'string' }, + { name: 'currentlyinworkflow', type: 'enumeration' }, + { name: 'hs_analytics_last_url', type: 'string' }, + { name: 'hs_email_open', type: 'number' }, + { name: 'fax', type: 'string' }, + { name: 'hs_analytics_first_timestamp', type: 'datetime' }, + { name: 'hs_email_last_email_name', type: 'string' }, + { name: 'hs_email_last_send_date', type: 'datetime' }, + { name: 'address', type: 'string' }, + { name: 'engagements_last_meeting_booked', type: 'datetime' }, + { name: 'engagements_last_meeting_booked_campaign', type: 'string' }, + { name: 'engagements_last_meeting_booked_medium', type: 'string' }, + { name: 'engagements_last_meeting_booked_source', type: 'string' }, + { name: 'hs_analytics_first_visit_timestamp', type: 'datetime' }, + { name: 'hs_email_last_open_date', type: 'datetime' }, + { name: 'hs_sales_email_last_replied', type: 'datetime' }, + { name: 'hubspot_owner_id', type: 'enumeration' }, + { name: 'notes_last_contacted', type: 'datetime' }, + { name: 'notes_last_updated', type: 'datetime' }, + { name: 'notes_next_activity_date', type: 'datetime' }, + { name: 'num_contacted_notes', type: 'number' }, + { name: 'num_notes', type: 'number' }, + { name: 'surveymonkeyeventlastupdated', type: 'number' }, + { name: 'webinareventlastupdated', type: 'number' }, + { name: 'city', type: 'string' }, + { name: 'hs_analytics_last_timestamp', type: 'datetime' }, + { name: 'hs_email_last_click_date', type: 'datetime' }, + { name: 'hubspot_team_id', type: 'enumeration' }, + { name: 'hs_all_owner_ids', type: 'enumeration' }, + { name: 'hs_analytics_last_visit_timestamp', type: 'datetime' }, + { name: 'hs_email_first_send_date', type: 'datetime' }, + { name: 'state', type: 'string' }, + { name: 'hs_all_team_ids', type: 'enumeration' }, + { name: 'hs_analytics_source', type: 'enumeration' }, + { name: 'hs_email_first_open_date', type: 'datetime' }, + { name: 'zip', type: 'string' }, + { name: 'country', type: 'string' }, + { name: 'hs_all_accessible_team_ids', type: 'enumeration' }, + { name: 'hs_analytics_source_data_1', type: 'string' }, + { name: 'hs_email_first_click_date', type: 'datetime' }, + { name: 'hs_analytics_source_data_2', type: 'string' }, + { name: 'hs_email_is_ineligible', type: 'bool' }, + { name: 'hs_language', type: 'enumeration' }, + { name: 'hs_analytics_first_referrer', type: 'string' }, + { name: 'jobtitle', type: 'string' }, + { name: 'hs_analytics_last_referrer', type: 'string' }, + { name: 'message', type: 'string' }, + { name: 'closedate', type: 'datetime' }, + { name: 'hs_analytics_average_page_views', type: 'number' }, + { name: 'hs_analytics_revenue', type: 'number' }, + { name: 'hs_lifecyclestage_lead_date', type: 'datetime' }, + { + name: 'hs_lifecyclestage_marketingqualifiedlead_date', + type: 'datetime', + }, + { name: 'hs_lifecyclestage_opportunity_date', type: 'datetime' }, + { name: 'lifecyclestage', type: 'enumeration' }, + { name: 'hs_lifecyclestage_salesqualifiedlead_date', type: 'datetime' }, + { name: 'createdate', type: 'datetime' }, + { name: 'hs_lifecyclestage_evangelist_date', type: 'datetime' }, + { name: 'hs_lifecyclestage_customer_date', type: 'datetime' }, + { name: 'hubspotscore', type: 'number' }, + { name: 'company', type: 'string' }, + { name: 'hs_lifecyclestage_subscriber_date', type: 'datetime' }, + { name: 'hs_lifecyclestage_other_date', type: 'datetime' }, + { name: 'website', type: 'string' }, + { name: 'numemployees', type: 'enumeration' }, + { name: 'annualrevenue', type: 'string' }, + { name: 'industry', type: 'string' }, + { name: 'associatedcompanyid', type: 'number' }, + { name: 'associatedcompanylastupdated', type: 'number' }, + { name: 'hs_predictivecontactscorebucket', type: 'enumeration' }, + { name: 'hs_predictivecontactscore', type: 'number' }, + ], + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/contacts/search', + method: 'POST', + headers: { + Authorization: 'Bearer dummy-access-token', + }, + }, + httpRes: { + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/contacts/search', + method: 'POST', + headers: { + Authorization: 'Bearer dummy-access-tokensuccess', + }, + }, + httpRes: { + data: { + total: 1, + results: [ + { + id: '103604', + properties: { + createdate: '2022-07-15T15:25:08.975Z', + email: 'testhubspot@email.com', + hs_object_id: '103604', + lastmodifieddate: '2022-07-15T15:26:49.590Z', + }, + createdAt: '2022-07-15T15:25:08.975Z', + updatedAt: '2022-07-15T15:26:49.590Z', + archived: false, + }, + ], + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/contacts/search', + method: 'POST', + headers: { + Authorization: 'Bearer dummy-access-tokenmultiple', + }, + }, + httpRes: { + data: { + total: 2, + results: [ + { + id: '103604', + properties: { + createdate: '2022-07-15T15:25:08.975Z', + email: 'testhubspot@email.com', + hs_object_id: '103604', + lastmodifieddate: '2022-07-15T15:26:49.590Z', + }, + createdAt: '2022-07-15T15:25:08.975Z', + updatedAt: '2022-07-15T15:26:49.590Z', + archived: false, + }, + { + id: '103604', + properties: { + createdate: '2022-07-15T15:25:08.975Z', + email: 'testhubspot@email.com', + hs_object_id: '103604', + lastmodifieddate: '2022-07-15T15:26:49.590Z', + }, + createdAt: '2022-07-15T15:25:08.975Z', + updatedAt: '2022-07-15T15:26:49.590Z', + archived: false, + }, + ], + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/lead/search', + method: 'POST', + }, + httpRes: { + status: 200, + data: { + total: 1, + results: [ + { + id: '103605', + properties: { + createdate: '2022-08-15T15:25:08.975Z', + email: 'testhubspot2@email.com', + hs_object_id: '103605', + lastmodifieddate: '2022-08-15T15:26:49.590Z', + }, + createdAt: '2022-08-15T15:25:08.975Z', + updatedAt: '2022-08-15T15:26:49.590Z', + archived: false, + }, + ], + }, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/lead/search?hapikey=dummy-apikey', + method: 'POST', + }, + httpRes: { + data: { + total: 1, + results: [ + { + id: '103605', + properties: { + createdate: '2022-08-15T15:25:08.975Z', + email: 'testhubspot2@email.com', + hs_object_id: '103605', + lastmodifieddate: '2022-08-15T15:26:49.590Z', + }, + createdAt: '2022-08-15T15:25:08.975Z', + updatedAt: '2022-08-15T15:26:49.590Z', + archived: false, + }, + ], + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/lead/search?hapikey=rate-limit-id', + method: 'POST', + }, + httpRes: { + data: { + status: 'error', + message: 'Request Rate Limit reached', + correlationId: '4d39ff11-e121-4514-bcd8-132a9dd1ff50', + category: 'RATE-LIMIT_REACHED', + links: { + 'api key': 'https://app.hubspot.com/l/api-key/', + }, + }, + status: 429, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=dummy-apikey', + method: 'POST', + }, + httpRes: { + data: { + total: 1, + results: [ + { + id: '103604', + properties: { + createdate: '2022-07-15T15:25:08.975Z', + email: 'testhubspot@email.com', + hs_object_id: '103604', + lastmodifieddate: '2022-07-15T15:26:49.590Z', + }, + createdAt: '2022-07-15T15:25:08.975Z', + updatedAt: '2022-07-15T15:26:49.590Z', + archived: false, + }, + ], + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=dummy-apikeysuccess', + method: 'POST', + }, + httpRes: { + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/properties/v1/contacts/properties?hapikey=dummy-apikeysuccess', + method: 'GET', + }, + httpRes: { + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/properties/v1/contacts/properties?hapikey=rate-limit-id', + method: 'GET', + }, + httpRes: { + data: { + status: 'error', + message: 'Request Rate Limit reached', + correlationId: '4d39ff11-e121-4514-bcd8-132a9dd1ff50', + category: 'RATE-LIMIT_REACHED', + links: { + 'api key': 'https://app.hubspot.com/l/api-key/', + }, + }, + status: 429, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/properties/v1/contacts/properties?hapikey=invalid-api-key', + method: 'GET', + }, + httpRes: { + data: { + status: 'error', + message: + 'The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/', + correlationId: '4d39ff11-e121-4514-bcd8-132a9dd1ff50', + category: 'INVALID_AUTHENTICATION', + links: { + 'api key': 'https://app.hubspot.com/l/api-key/', + }, + }, + status: 401, + }, + }, + { + httpReq: { + url: 'https://api.hubapi.com/crm/v3/objects/association/search', + method: 'POST', + }, + httpRes: { + status: 200, + }, + }, +]; diff --git a/test/integrations/destinations/hs/processor/data.ts b/test/integrations/destinations/hs/processor/data.ts new file mode 100644 index 0000000000..5eaa109dc4 --- /dev/null +++ b/test/integrations/destinations/hs/processor/data.ts @@ -0,0 +1,5272 @@ +export const data = [ + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com', + headers: { + 'Content-Type': 'application/json', + }, + params: { + hapikey: 'dummy-apikey', + }, + body: { + JSON: { + properties: [ + { + property: 'email', + value: 'testhubspot2@email.com', + }, + { + property: 'firstname', + value: 'Test Hubspot', + }, + ], + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'page', + messageId: 'e8585d9a-7137-4223-b295-68ab1b17dad7', + originalTimestamp: '2019-10-15T09:35:31.289Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Message type page is not supported', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS', + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + body: { + JSON: {}, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + 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', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com', + headers: { + 'Content-Type': 'application/json', + }, + params: { + hapikey: 'dummy-apikey', + }, + body: { + JSON: { + properties: [ + { + property: 'email', + value: 'testhubspot2@email.com', + }, + { + property: 'firstname', + value: 'Test Hubspot', + }, + ], + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: { + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Identify without email is not supported.', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS', + properties: { + revenue: 4.99, + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS', + _m: 4.99, + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + body: { + JSON: {}, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS', + properties: { + value: 4.99, + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS', + _m: 4.99, + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + body: { + JSON: {}, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + apiKey: 'invalid-api-key', + hubID: 'dummy-hubId', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 2, + }, + error: + '{"message":"Failed to get hubspot properties: {\\"status\\":\\"error\\",\\"message\\":\\"The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/\\",\\"correlationId\\":\\"4d39ff11-e121-4514-bcd8-132a9dd1ff50\\",\\"category\\":\\"INVALID_AUTHENTICATION\\",\\"links\\":{\\"api key\\":\\"https://app.hubspot.com/l/api-key/\\"}}","destinationResponse":{"response":{"status":"error","message":"The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/","correlationId":"4d39ff11-e121-4514-bcd8-132a9dd1ff50","category":"INVALID_AUTHENTICATION","links":{"api key":"https://app.hubspot.com/l/api-key/"}},"status":401}}', + statTags: { + destType: 'HS', + errorCategory: 'network', + errorType: 'aborted', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 401, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + apiKey: 'rate-limit-id', + hubID: 'dummy-hubId', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 2, + }, + error: + '{"message":"Failed to get hubspot properties: {\\"status\\":\\"error\\",\\"message\\":\\"Request Rate Limit reached\\",\\"correlationId\\":\\"4d39ff11-e121-4514-bcd8-132a9dd1ff50\\",\\"category\\":\\"RATE-LIMIT_REACHED\\",\\"links\\":{\\"api key\\":\\"https://app.hubspot.com/l/api-key/\\"}}","destinationResponse":{"response":{"status":"error","message":"Request Rate Limit reached","correlationId":"4d39ff11-e121-4514-bcd8-132a9dd1ff50","category":"RATE-LIMIT_REACHED","links":{"api key":"https://app.hubspot.com/l/api-key/"}},"status":429}}', + statTags: { + destType: 'HS', + errorCategory: 'network', + errorType: 'throttled', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 429, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS', + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + body: { + JSON: {}, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (legacyApiKey): trigger update all objects endpoint for rETL source', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (legacyApiKey): trigger update all objects endpoint for rETL source', + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'email', + id: 'testhubspot2@email.com', + type: 'HS-lead', + }, + ], + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + traits: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'PATCH', + endpoint: 'https://api.hubapi.com/crm/v3/objects/lead/103605', + source: 'rETL', + operation: 'updateObject', + headers: { + 'Content-Type': 'application/json', + }, + params: { + hapikey: 'dummy-apikey', + }, + body: { + JSON: { + properties: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + email: 'testhubspot2@email.com', + }, + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (legacyApiKey): trigger create custom objects endpoint', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (legacyApiKey): trigger create custom objects endpoint', + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'email', + id: 'testhubspot@email.com', + type: 'HS-lead', + }, + ], + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + traits: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/lead', + source: 'rETL', + operation: 'createObject', + headers: { + 'Content-Type': 'application/json', + }, + params: { + hapikey: 'dummy-apikey', + }, + body: { + JSON: { + properties: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + email: 'testhubspot@email.com', + }, + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (newApiKey): trigger create all objects endpoint for rETL source', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (newApiKey): trigger create all objects endpoint for rETL source', + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'email', + id: 'testhubspot@email.com', + type: 'HS-lead', + }, + ], + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + traits: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + userId: '', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/lead', + source: 'rETL', + operation: 'createObject', + headers: { + Authorization: 'Bearer dummy-access-token', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + properties: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + email: 'testhubspot@email.com', + }, + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (newApiKey): trigger update all objects endpoint for rETL source', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (newApiKey): trigger update all objects endpoint for rETL source', + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'email', + id: 'testhubspot2@email.com', + type: 'HS-lead', + }, + ], + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + traits: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'PATCH', + endpoint: 'https://api.hubapi.com/crm/v3/objects/lead/103605', + source: 'rETL', + operation: 'updateObject', + headers: { + Authorization: 'Bearer dummy-access-token', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + properties: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + email: 'testhubspot2@email.com', + }, + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + 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', + }, + traits: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS', + sentAt: '2019-10-14T11:15:53.296Z', + properties: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS', + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + body: { + JSON: {}, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: '[HS] (legacyApi): use (API Key) - check external id i.e hubspotId', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'hubspotId', + id: '6556', + }, + ], + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS 2', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS 2', + id: '6556', + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 16', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: '[HS] (legacyApi): use (API Key) - check HS common config mappings', + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'hubspotId', + id: '6556', + }, + ], + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS 2', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + address: { + street: '24. park', + }, + company: { + name: 'RudderStack', + }, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS 2', + id: '6556', + address: '24. park', + company: 'RudderStack', + }, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 17', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: '[HS] (legacyApi): use (newPrivateAppApi) for contact endpoint', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + accessToken: 'dummy-access-token', + apiVersion: 'legacyApi', + lookupField: '', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + properties: [ + { + property: 'email', + value: 'testhubspot2@email.com', + }, + { + property: 'firstname', + value: 'Test Hubspot', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 18', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: + '[HS] (newApi): get contact from hs with email (lookupField) exactly matching with one contact', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'testhubspot@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + lookupField: 'email', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-tokensuccess', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/contacts/103604', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-tokensuccess', + }, + params: {}, + operation: 'updateContacts', + body: { + JSON: { + properties: { + email: 'testhubspot@email.com', + firstname: 'Test Hubspot', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 19', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: + '[HS] (newApi): get contact from hs with email (lookupField) having no contacts', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'noname@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + lookupField: 'email', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'email', + hubspotEvents: [], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + operation: 'createContacts', + body: { + JSON: { + properties: { + email: 'noname@email.com', + firstname: 'Test Hubspot', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 20', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: + '[HS] (newApi): get contact from hs with firstname (lookupField) having more than one result', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'nonamess@email.com', + firstname: 'Jhon', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-tokenmultiple', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'firstname', + hubspotEvents: [], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Unable to get single Hubspot contact. More than one contacts found. Retry with unique lookupPropertyName and lookupValue', + statTags: { + destType: 'HS', + errorCategory: 'network', + errorType: 'aborted', + feature: 'processor', + implementation: 'native', + meta: 'instrumentation', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 21', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: '[HS] (newApi): Track - validate properties of custom behavioral events', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'Purchase', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + Revenue: 100, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '1', + apiKey: '1', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + messageType: 'track', + endpoint: 'https://api.hubapi.com/events/v3/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + email: 'testhubspot2@email.com', + occurredAt: '2019-10-15T09:35:31.291Z', + eventName: 'pe22315509_rs_hub_test', + properties: { + value: 100, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 22', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: + '[HS] (legacyApi): (legacyApiKey) Identify - testing legacy api with new destination config', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + accessToken: '', + apiVersion: 'legacyApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + whitelistedEvents: [ + { + eventName: '', + }, + ], + blacklistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com', + headers: { + 'Content-Type': 'application/json', + }, + params: { + hapikey: 'dummy-apikey', + }, + body: { + JSON: { + properties: [ + { + property: 'email', + value: 'testhubspot2@email.com', + }, + { + property: 'firstname', + value: 'Test Hubspot', + }, + ], + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 23', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: + '[HS] (legacyApi): (legacyApiKey) Track - testing legacy api with new destination config', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + accessToken: '', + apiVersion: 'legacyApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + whitelistedEvents: [ + { + eventName: '', + }, + ], + blacklistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS', + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + body: { + JSON: {}, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: + '[HS] (New API v3) - (newPrivateAppApi) check for email in traits which is the deafult lookup field', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (New API v3) - (newPrivateAppApi) check for email in traits which is the deafult lookup field', + message: { + type: 'identify', + traits: {}, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + mappedToDestination: false, + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Identify:: email i.e a default lookup field for contact lookup not found in traits', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: + '[HS] (New API v3) - (newPrivateAppApi) email is present in traits as a default lookup field', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (New API v3) - (newPrivateAppApi) email is present in traits as a default lookup field', + message: { + type: 'identify', + traits: { + email: 'noname@email.com', + }, + context: { + mappedToDestination: false, + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + properties: { + email: 'noname@email.com', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + operation: 'createContacts', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (newPrivateAppApi) - rETL source - minimum config check', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (New API v3) - (newPrivateAppApi) - rETL source - minimum config check', + message: { + type: 'identify', + traits: {}, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + mappedToDestination: 'true', + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + properties: { + email: 'osvaldocostaferreira98@gmail.com', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + source: 'rETL', + operation: 'createObject', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: + '[HS] (New API v3) - (newPrivateAppApi) rETL - object type is not provided i.e externalId is empty', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (New API v3) - (newPrivateAppApi) rETL - object type is not provided i.e externalId is empty', + message: { + type: 'identify', + traits: {}, + context: { + mappedToDestination: 'true', + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'rETL - external Id not found.', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (newPrivateAppApi) sample track call for property check', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (New API v3) - (newPrivateAppApi) sample track call for property check', + message: { + type: 'track', + traits: {}, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + }, + event: 'Purchase', + properties: { + Revenue: 'name1', + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/events/v3/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + email: 'osvaldocostaferreira98@gmail.com', + eventName: 'pe22315509_rs_hub_test', + properties: { + value: 'name1', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + messageType: 'track', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (newPrivateAppApi) - check for accesstoken existence', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (New API v3) - (newPrivateAppApi) - check for accesstoken existence', + message: { + type: 'identify', + traits: { + lookupField: 'firstname', + firstname: 'Test', + }, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + }, + event: 'Purchase', + properties: { + revenue: 'name1', + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: '', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Access Token not found. Aborting', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (legacyApiKey) - check for hubId existence', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (New API v3) - (legacyApiKey) - check for hubId existence', + message: { + type: 'identify', + traits: { + lookupField: 'firstname', + firstname: 'Test', + }, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + }, + event: 'Purchase', + properties: { + revenue: 'name1', + }, + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + hubID: '', + apiKey: '', + accessToken: '', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Hub ID not found. Aborting', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (legacyApiKey) - check basic track call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (New API v3) - (legacyApiKey) - check basic track call', + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'Purchase', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + address: { + city: 'kolkata', + country: 'India', + }, + objectId: '5005', + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + accessToken: '', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/events/v3/send?hapikey=dummy-apikey', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + occurredAt: '2019-10-15T09:35:31.291Z', + objectId: '5005', + eventName: 'pe22315509_rs_hub_test', + properties: { + hs_city: 'kolkata', + hs_country: 'India', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + messageType: 'track', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: + '[HS] (New API v3) - (legacyApiKey) - either of email, utk or objectId must be present', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (New API v3) - (legacyApiKey) - either of email, utk or objectId must be present', + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'Purchase', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + address: { + city: 'kolkata', + country: 'India', + }, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + accessToken: '', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Either of email, utk or objectId is required for custom behavioral events', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 33', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + description: '[HS] (newApi): check for legacyApiKey', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'noname@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikeysuccess', + apiVersion: 'newApi', + lookupField: 'email', + hubspotEvents: [], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/contacts', + headers: { + 'Content-Type': 'application/json', + }, + params: { + hapikey: 'dummy-apikeysuccess', + }, + operation: 'createContacts', + body: { + JSON: { + properties: { + email: 'noname@email.com', + firstname: 'Test Hubspot', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (newPrivateAppApi) message type not present', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (New API v3) - (newPrivateAppApi) message type not present', + message: { + traits: {}, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + }, + event: 'Purchase', + properties: { + revenue: 'name1', + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Message type is not present. Aborting message.', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (legacyApiKey) - check for api key existence', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (New API v3) - (legacyApiKey) - check for api key existence', + message: { + type: 'identify', + traits: { + lookupField: 'firstname', + firstname: 'Test', + }, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + }, + event: 'Purchase', + properties: { + revenue: 'name1', + }, + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + hubID: 'dummy-hubId', + apiKey: '', + accessToken: '', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'API Key not found. Aborting', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (newPrivateAppApi) Identify: traits is not supplied', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (New API v3) - (newPrivateAppApi) Identify: traits is not supplied', + message: { + type: 'identify', + context: { + mappedToDestination: false, + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Identify - Invalid traits value for lookup field', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (legacyApiKey) - event not found', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (New API v3) - (legacyApiKey) - event not found', + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'Temp Event', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + address: { + city: 'kolkata', + country: 'India', + }, + objectId: '5005', + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + accessToken: '', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: "Event name 'temp event' mappings are not configured in the destination", + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: '[HS] (New API v3) - (legacyApiKey) - event name is required', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: '[HS] (New API v3) - (legacyApiKey) - event name is required', + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + address: { + city: 'kolkata', + country: 'India', + }, + objectId: '5005', + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + authorizationType: 'legacyApiKey', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + accessToken: '', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'event name is required for track call', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: + '[HS] (Legacy API v1) - (newPrivateAppApi) rETL - object type is not provided i.e externalId is empty', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (Legacy API v1) - (newPrivateAppApi) rETL - object type is not provided i.e externalId is empty', + message: { + type: 'identify', + traits: {}, + context: { + mappedToDestination: 'true', + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'legacyApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pe22315509_rs_hub_test', + eventProperties: [ + { + from: 'Revenue', + to: 'value', + }, + { + from: 'Price', + to: 'cost', + }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pe22315509_rs_hub_chair', + eventProperties: [ + { + from: 'firstName', + to: 'first_name', + }, + { + from: 'lastName', + to: 'last_name', + }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'rETL - external Id not found.', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + description: + '[HS] (Legacy API v1) - (newPrivateAppApi) - sample track call for legacy api with newPrivateAppApi', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (Legacy API v1) - (newPrivateAppApi) - sample track call for legacy api with newPrivateAppApi', + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + apiVersion: 'legacyApi', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'GET', + messageType: 'track', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS', + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + }, + body: { + JSON: {}, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: 'Test 41', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'email', + id: 'testhubspot2@email.com', + type: 'HS-lead', + }, + ], + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + }, + type: 'identify', + traits: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + apiKey: 'rate-limit-id', + hubID: 'dummy-hubId', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + '{"message":"rETL - Error during searching object record. Request Rate Limit reached","destinationResponse":{"response":{"status":"error","message":"Request Rate Limit reached","correlationId":"4d39ff11-e121-4514-bcd8-132a9dd1ff50","category":"RATE-LIMIT_REACHED","links":{"api key":"https://app.hubspot.com/l/api-key/"}},"status":429}}', + metadata: { + jobId: 2, + }, + statTags: { + destType: 'HS', + errorCategory: 'network', + errorType: 'throttled', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 429, + }, + ], + }, + }, + }, + { + name: 'hs', + 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_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + days_to_close: '29 days to close', + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2023-04-11T09:35:31.288Z', + anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090', + userId: 'user@1', + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Property days_to_close data type string is not matching with Hubspot property data type number', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'hs', + 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: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'identify', + messageId: 'e8585d9a-7137-4223-b295-68ab1b17dad7', + originalTimestamp: '2019-10-15T09:35:31.289Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: {}, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + properties: [ + { + property: 'email', + value: 'testhubspot2@email.com', + }, + { + property: 'firstname', + value: 'Test Hubspot', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: + 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com', + files: {}, + headers: { + 'Content-Type': 'application/json', + }, + method: 'POST', + params: { + hapikey: 'dummy-apikey', + }, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + 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', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'identify', + messageId: 'e8585d9a-7137-4223-b295-68ab1b17dad7', + originalTimestamp: '2019-10-15T09:35:31.289Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + properties: [ + { + property: 'email', + value: 'testhubspot2@email.com', + }, + { + property: 'firstname', + value: 'Test Hubspot', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: + 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com', + files: {}, + headers: { + 'Content-Type': 'application/json', + }, + method: 'POST', + params: { + hapikey: 'dummy-apikey', + }, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + 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', + }, + traits: { + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'identify', + messageId: 'e8585d9a-7137-4223-b295-68ab1b17dad7', + originalTimestamp: '2019-10-15T09:35:31.289Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: '', + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + apiKey: 'dummy-apikey', + hubID: 'dummy-hubId', + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + properties: [ + { + property: 'email', + value: 'testhubspot2@email.com', + }, + { + property: 'firstname', + value: 'Test Hubspot', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: + 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com', + files: {}, + headers: { + 'Content-Type': 'application/json', + }, + method: 'POST', + params: { + hapikey: 'dummy-apikey', + }, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'hs', + description: + '[HS] (New API v3) - (newPrivateAppApi) sample track call when hubspotEvents is undefined', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: + '[HS] (New API v3) - (newPrivateAppApi) sample track call when hubspotEvents is undefined', + message: { + type: 'track', + traits: {}, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + }, + event: 'Purchase', + properties: { + Revenue: 'name1', + }, + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + hubID: '', + apiKey: '', + accessToken: 'dummy-access-token', + apiVersion: 'newApi', + lookupField: 'lookupField', + eventFilteringOption: 'disable', + blacklistedEvents: [ + { + eventName: '', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event and property mappings are required for track call', + statTags: { + destType: 'HS', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/hs/router/data.ts b/test/integrations/destinations/hs/router/data.ts new file mode 100644 index 0000000000..3a30232f9f --- /dev/null +++ b/test/integrations/destinations/hs/router/data.ts @@ -0,0 +1,1691 @@ +export const data = [ + { + name: 'hs', + description: 'router associated retl test', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + ID: '123', + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'pat-123', + apiVersion: 'newApi', + }, + }, + message: { + type: 'identify', + sentAt: '2022-08-23T05:59:38.214Z', + traits: { to: { id: 1 }, from: { id: 9405415215 } }, + userId: '1', + channel: 'sources', + context: { + sources: { + job_id: '2DkDam0hJ8CXZA43zksWMdPAPRe/Syncher', + task_id: 'HUBSPOT_ASSOC_COMPANY_CONTACT', + version: 'v1.8.15', + batch_id: '8d566f29-5f9b-4fa7-ad0c-d8087ca52d6a', + job_run_id: 'cc26p35qhlpr6fd4jrmg', + task_run_id: 'cc26p35qhlpr6fd4jrn0', + }, + externalId: [ + { + id: 1, + type: 'HS-association', + toObjectType: 'contacts', + fromObjectType: 'companies', + identifierType: 'id', + associationTypeId: 'engineer', + }, + ], + mappedToDestination: 'true', + }, + recordId: '1', + rudderId: '3afcdbfe-b6ec-4bdd-8ba6-28696e3cc163', + messageId: 'e0c554aa-0a9a-4e24-9a9a-c951a71a0875', + timestamp: '2022-08-23T05:59:33.758Z', + receivedAt: '2022-08-23T05:59:33.759Z', + request_ip: '10.1.90.32', + originalTimestamp: '2022-08-23T05:59:38.214Z', + }, + metadata: { jobId: 2, userId: 'u1' }, + }, + ], + destType: 'hs', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://api.hubapi.com/crm/v3/associations/companies/contacts/batch/create', + headers: { 'Content-Type': 'application/json', Authorization: 'Bearer pat-123' }, + params: {}, + body: { + JSON: { inputs: [{ to: { id: 1 }, from: { id: 9405415215 }, type: 'engineer' }] }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + ID: '123', + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'pat-123', + apiVersion: 'newApi', + }, + }, + }, + ], + }, + }, + }, + }, + { + name: 'hs', + description: 'legacy router tests', + 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: { + email: 'testhubspot1@email.com', + firstname: 'Test Hubspot1', + anonymousId: '1111', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { name: '', version: '' }, + screen: { density: 2 }, + page: { path: '', referrer: '', search: '', title: '', url: '' }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + 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: 'testhubspot2@email.com', firstname: 'Test Hubspot2' }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { name: '', version: '' }, + screen: { density: 2 }, + }, + type: 'track', + messageId: '08829772-d991-427c-b976-b4c4f4430b4e', + originalTimestamp: '2019-10-15T09:35:31.291Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'test track event HS', + properties: { + user_actual_role: 'system_admin, system_user', + user_actual_id: 12345, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + message: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testhubspot2@email.com', + headers: { 'Content-Type': 'application/json' }, + userId: '00000000000000000000000000', + params: { hapikey: 'dummy-apikey' }, + body: { + JSON: { + properties: [ + { property: 'email', value: 'testhubspot3@email.com' }, + { property: 'firstname', value: 'Test Hubspot3' }, + ], + }, + XML: {}, + FORM: {}, + }, + files: {}, + statusCode: 200, + }, + metadata: { jobId: 3, userId: 'u1' }, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + 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: 'testhubspot4@email.com', + firstname: 'Test Hubspot4', + anonymousId: '4444', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { name: '', version: '' }, + screen: { density: 2 }, + page: { path: '', referrer: '', search: '', title: '', url: '' }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 4, userId: 'u1' }, + destination: { + Config: { apiKey: 'rate-limit-id', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + destType: 'hs', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/contacts/v1/contact/batch/', + headers: { 'Content-Type': 'application/json' }, + params: { hapikey: 'dummy-apikey' }, + body: { + JSON: {}, + JSON_ARRAY: { + batch: + '[{"email":"testhubspot3@email.com","properties":[{"property":"firstname","value":"Test Hubspot3"}]},{"email":"testhubspot1@email.com","properties":[{"property":"firstname","value":"Test Hubspot1"}]},{"email":"testhubspot4@email.com","properties":[{"property":"firstname","value":"Test Hubspot4"}]}]', + }, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { jobId: 3, userId: 'u1' }, + { jobId: 1, userId: 'u1' }, + { jobId: 4, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'GET', + endpoint: 'https://track.hubspot.com/v1/event', + headers: { 'Content-Type': 'application/json' }, + params: { + _a: 'dummy-hubId', + _n: 'test track event HS', + email: 'testhubspot2@email.com', + firstname: 'Test Hubspot2', + }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, + { + name: 'hs', + description: 'legacy router retl tests', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { identifierType: 'email', id: 'testhubspot2@email.com', type: 'HS-lead' }, + ], + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + }, + type: 'identify', + traits: { firstname: 'Test Hubspot', anonymousId: '12345', country: 'India' }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: { jobId: 2, userId: 'u1' }, + }, + { + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { identifierType: 'email', id: 'testhubspot@email.com', type: 'HS-lead' }, + ], + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + }, + type: 'identify', + traits: { firstname: 'Test Hubspot 1', anonymousId: '123451', country: 'India 1' }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: { jobId: 3, userId: 'u1' }, + }, + ], + destType: 'hs', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/lead/batch/create', + headers: { 'Content-Type': 'application/json' }, + params: { hapikey: 'dummy-apikey' }, + body: { + JSON: { + inputs: [ + { + properties: { + firstname: 'Test Hubspot 1', + anonymousId: '123451', + country: 'India 1', + email: 'testhubspot@email.com', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 3, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/lead/batch/update', + headers: { 'Content-Type': 'application/json' }, + params: { hapikey: 'dummy-apikey' }, + body: { + JSON: { + inputs: [ + { + properties: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + email: 'testhubspot2@email.com', + }, + id: '103605', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { apiKey: 'dummy-apikey', hubID: 'dummy-hubId' }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, + { + name: 'hs', + description: 'router retl tests', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { identifierType: 'email', id: 'testhubspot2@email.com', type: 'HS-lead' }, + ], + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + }, + type: 'identify', + traits: { firstname: 'Test Hubspot', anonymousId: '12345', country: 'India' }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: { jobId: 2, userId: 'u1' }, + }, + { + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { identifierType: 'email', id: 'testhubspot@email.com', type: 'HS-lead' }, + ], + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + }, + type: 'identify', + traits: { firstname: 'Test Hubspot 1', anonymousId: '123451', country: 'India 1' }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: { jobId: 3, userId: 'u1' }, + }, + { + message: { + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'email', + id: 'testhubspotdatetime@email.com', + type: 'HS-lead', + }, + ], + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + }, + type: 'identify', + traits: { + firstname: 'Test Hubspot', + anonymousId: '123451', + country: 'India', + date_submitted: '2023-09-25T17:31:04.128251Z', + date_created: '2023-03-30T01:02:03.05Z', + date_closed: '2023-10-18T04:38:59.229347Z', + }, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: { jobId: 4, userId: 'u1' }, + }, + ], + destType: 'hs', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/lead/batch/create', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + inputs: [ + { + properties: { + firstname: 'Test Hubspot 1', + anonymousId: '123451', + country: 'India 1', + email: 'testhubspot@email.com', + }, + }, + { + properties: { + firstname: 'Test Hubspot', + anonymousId: '123451', + country: 'India', + email: 'testhubspotdatetime@email.com', + date_closed: 1697587200000, + date_created: 1680134400000, + date_submitted: 1695600000000, + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { jobId: 3, userId: 'u1' }, + { jobId: 4, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/lead/batch/update', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + inputs: [ + { + properties: { + firstname: 'Test Hubspot', + anonymousId: '12345', + country: 'India', + email: 'testhubspot2@email.com', + }, + id: '103605', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, + { + name: 'hs', + description: 'router tests', + 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: { + email: 'noname@email.com', + firstname: 'Test Hubspot22', + anonymousId: '4444', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { name: '', version: '' }, + screen: { density: 2 }, + page: { path: '', referrer: '', search: '', title: '', url: '' }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'email', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + 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: 'noname@email.com', + firstname: 'Test Hubspot44', + anonymousId: '4444', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { name: '', version: '' }, + screen: { density: 2 }, + page: { path: '', referrer: '', search: '', title: '', url: '' }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'email', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + message: { + type: 'track', + traits: {}, + context: { + externalId: [ + { + id: 'osvaldocostaferreira98@gmail.com', + type: 'HS-contacts', + identifierType: 'email', + }, + ], + }, + event: 'Purchase', + properties: { Revenue: 'name1' }, + }, + metadata: { jobId: 3, userId: 'u1' }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'lookupField', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + 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: 'testhubspot@email.com', + firstname: 'Test Hubspot22', + anonymousId: '4444', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { name: '', version: '' }, + screen: { density: 2 }, + page: { path: '', referrer: '', search: '', title: '', url: '' }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 4, userId: 'u1' }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'email', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + 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: 'testhubspot@email.com', + firstname: 'Test Hubspot44', + anonymousId: '4444', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + os: { name: '', version: '' }, + screen: { density: 2 }, + page: { path: '', referrer: '', search: '', title: '', url: '' }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { jobId: 5, userId: 'u1' }, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'email', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + destType: 'hs', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/crm/v3/objects/contacts/batch/create', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + inputs: [ + { properties: { email: 'noname@email.com', firstname: 'Test Hubspot44' } }, + { + properties: { email: 'testhubspot@email.com', firstname: 'Test Hubspot44' }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, + { jobId: 4, userId: 'u1' }, + { jobId: 5, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'email', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.hubapi.com/events/v3/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummy-access-token', + }, + params: {}, + body: { + JSON: { + email: 'osvaldocostaferreira98@gmail.com', + eventName: 'pedummy-hubId_rs_hub_test', + properties: { value: 'name1' }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 3, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + authorizationType: 'newPrivateAppApi', + accessToken: 'dummy-access-token', + hubID: 'dummy-hubId', + apiKey: 'dummy-apikey', + apiVersion: 'newApi', + lookupField: 'email', + hubspotEvents: [ + { + rsEventName: 'Purchase', + hubspotEventName: 'pedummy-hubId_rs_hub_test', + eventProperties: [ + { from: 'Revenue', to: 'value' }, + { from: 'Price', to: 'cost' }, + ], + }, + { + rsEventName: 'Order Complete', + hubspotEventName: 'pedummy-hubId_rs_hub_chair', + eventProperties: [ + { from: 'firstName', to: 'first_name' }, + { from: 'lastName', to: 'last_name' }, + ], + }, + ], + eventFilteringOption: 'disable', + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Hubspot', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'HS', + displayName: 'Hubspot', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/impact/router/data.ts b/test/integrations/destinations/impact/router/data.ts index 1e9cd9cc6e..e9120ae03d 100644 --- a/test/integrations/destinations/impact/router/data.ts +++ b/test/integrations/destinations/impact/router/data.ts @@ -18,18 +18,8 @@ export const data = [ impactAppId: '2323', eventTypeId: '56446', enableEmailHashing: true, - rudderToImpactProperty: [ - { - from: 'profit', - to: 'Money1', - }, - ], - productsMapping: [ - { - from: 'sku', - to: 'ItemSku', - }, - ], + rudderToImpactProperty: [{ from: 'profit', to: 'Money1' }], + productsMapping: [{ from: 'sku', to: 'ItemSku' }], enableIdentifyEvents: true, enablePageEvents: false, enableScreenEvents: false, @@ -37,40 +27,24 @@ export const data = [ installEventNames: [{ eventName: 'App Installed' }], }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { type: 'identify', sentAt: '2021-01-03T17:02:53.195Z', userId: 'user123', channel: 'web', context: { - os: { - name: 'android', - version: '1.12.3', - }, + os: { name: 'android', version: '1.12.3' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', version: '1.1.11', namespace: 'com.rudderlabs.javascript', }, - traits: { - email: 'user123@email.com', - phone: '+917836362334', - userId: 'user123', - }, + traits: { email: 'user123@email.com', phone: '+917836362334', userId: 'user123' }, locale: 'en-US', - device: { - token: 'token', - id: 'id', - type: 'ios', - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.11', - }, + device: { token: 'token', id: 'id', type: 'ios' }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.11' }, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0', }, @@ -103,10 +77,7 @@ export const data = [ ], }, context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -114,13 +85,8 @@ export const data = [ namespace: 'com.rudderlabs.javascript', }, locale: 'en-US', - screen: { - density: 2, - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.11', - }, + 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', @@ -130,9 +96,7 @@ export const data = [ anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', originalTimestamp: 'NOW', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { accountSID: 'dfsgertrtff3erfc34rfwf', @@ -141,18 +105,8 @@ export const data = [ impactAppId: '2323', eventTypeId: '56446', enableEmailHashing: true, - rudderToImpactProperty: [ - { - from: 'properties.profit', - to: 'Money1', - }, - ], - productsMapping: [ - { - from: 'variant', - to: 'ItemCategory', - }, - ], + rudderToImpactProperty: [{ from: 'properties.profit', to: 'Money1' }], + productsMapping: [{ from: 'variant', to: 'ItemCategory' }], enableIdentifyEvents: false, enablePageEvents: false, enableScreenEvents: false, @@ -208,11 +162,7 @@ export const data = [ version: '1', endpoint: 'https://trkapi.impact.com/PageLoad', }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -223,18 +173,8 @@ export const data = [ impactAppId: '2323', eventTypeId: '56446', enableEmailHashing: true, - rudderToImpactProperty: [ - { - from: 'profit', - to: 'Money1', - }, - ], - productsMapping: [ - { - from: 'sku', - to: 'ItemSku', - }, - ], + rudderToImpactProperty: [{ from: 'profit', to: 'Money1' }], + productsMapping: [{ from: 'sku', to: 'ItemSku' }], enableIdentifyEvents: true, enablePageEvents: false, enableScreenEvents: false, @@ -287,11 +227,7 @@ export const data = [ endpoint: 'https://api.impact.com/Advertisers/dfsgertrtff3erfc34rfwf/Conversions', }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -302,18 +238,8 @@ export const data = [ impactAppId: '2323', eventTypeId: '56446', enableEmailHashing: true, - rudderToImpactProperty: [ - { - from: 'properties.profit', - to: 'Money1', - }, - ], - productsMapping: [ - { - from: 'variant', - to: 'ItemCategory', - }, - ], + rudderToImpactProperty: [{ from: 'properties.profit', to: 'Money1' }], + productsMapping: [{ from: 'variant', to: 'ItemCategory' }], enableIdentifyEvents: false, enablePageEvents: false, enableScreenEvents: false, diff --git a/test/integrations/destinations/indicative/router/data.ts b/test/integrations/destinations/indicative/router/data.ts index 037d5d5c3d..88e0665e62 100644 --- a/test/integrations/destinations/indicative/router/data.ts +++ b/test/integrations/destinations/indicative/router/data.ts @@ -10,14 +10,8 @@ export const data = [ body: { input: [ { - destination: { - Config: { - apiKey: 'abcde', - }, - }, - metadata: { - jobId: 2, - }, + destination: { Config: { apiKey: 'abcde' } }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { @@ -27,25 +21,15 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { - AM: true, - }, + integrations: { AM: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -90,14 +74,8 @@ export const data = [ }, }, { - destination: { - Config: { - apiKey: 'abcde', - }, - }, - metadata: { - jobId: 2, - }, + destination: { Config: { apiKey: 'abcde' } }, + metadata: { jobId: 3, userId: 'u1' }, message: { channel: 'web', context: { @@ -107,21 +85,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - 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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -140,9 +110,7 @@ export const data = [ street: '', }, }, - integrations: { - All: true, - }, + integrations: { All: true }, sentAt: '2019-10-14T09:03:22.563Z', }, }, @@ -220,18 +188,10 @@ export const data = [ userId: 'test_user_id', }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, - destination: { - Config: { - apiKey: 'abcde', - }, - }, + destination: { Config: { apiKey: 'abcde' } }, }, { batchedRequest: [ @@ -280,11 +240,7 @@ export const data = [ }, params: {}, body: { - JSON: { - previousId: 'anon_id', - newId: '123456', - apiKey: 'abcde', - }, + JSON: { previousId: 'anon_id', newId: '123456', apiKey: 'abcde' }, XML: {}, JSON_ARRAY: {}, FORM: {}, @@ -293,18 +249,10 @@ export const data = [ userId: '123456', }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, - destination: { - Config: { - apiKey: 'abcde', - }, - }, + destination: { Config: { apiKey: 'abcde' } }, }, ], }, diff --git a/test/integrations/destinations/intercom/dataDelivery/data.ts b/test/integrations/destinations/intercom/dataDelivery/data.ts index 23bcdc6af2..6b0077ae0f 100644 --- a/test/integrations/destinations/intercom/dataDelivery/data.ts +++ b/test/integrations/destinations/intercom/dataDelivery/data.ts @@ -87,4 +87,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/intercom/processor/data.ts b/test/integrations/destinations/intercom/processor/data.ts new file mode 100644 index 0000000000..14d1884ba2 --- /dev/null +++ b/test/integrations/destinations/intercom/processor/data.ts @@ -0,0 +1,2311 @@ +export const data = [ + { + name: 'intercom', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + userId: 'test_user_id_1', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + address: { + city: 'Kolkata', + state: 'West Bengal', + }, + originalArray: [ + { + nested_field: 'nested value', + tags: ['tag_1', 'tag_2', 'tag_3'], + }, + { + nested_field: 'nested value', + tags: ['tag_1'], + }, + { + nested_field: 'nested value', + }, + ], + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + user_id: 'test_user_id_1', + email: 'test_1@test.com', + phone: '9876543210', + name: 'Test Name', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + 'address.city': 'Kolkata', + 'address.state': 'West Bengal', + 'originalArray[0].nested_field': 'nested value', + 'originalArray[0].tags[0]': 'tag_1', + 'originalArray[0].tags[1]': 'tag_2', + 'originalArray[0].tags[2]': 'tag_3', + 'originalArray[1].nested_field': 'nested value', + 'originalArray[1].tags[0]': 'tag_1', + 'originalArray[2].nested_field': 'nested value', + }, + update_last_request_at: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + phone: '9876543210', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + update_last_request_at: true, + name: 'Test Name', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + phone: '9876543210', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + update_last_request_at: true, + name: 'Name', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + firstName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + phone: '9876543210', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + update_last_request_at: true, + name: 'Name', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 4: ERROR - Either of `email` or `userId` is required for Identify call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + firstName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Either of `email` or `userId` is required for Identify call', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'INTERCOM', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + company: { + name: 'Test Comp', + id: 'company_id', + industry: 'test industry', + key1: 'value1', + key2: { + a: 'a', + }, + key3: [1, 2, 3], + }, + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + phone: '9876543210', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + update_last_request_at: true, + name: 'Name', + companies: [ + { + company_id: 'company_id', + custom_attributes: { + key1: 'value1', + key2: '{"a":"a"}', + key3: '[1,2,3]', + }, + name: 'Test Comp', + industry: 'test industry', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + company: { + name: 'Test Comp', + industry: 'test industry', + key1: 'value1', + key2: null, + key3: ['value1', 'value2'], + key4: { + foo: 'bar', + }, + }, + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + updateLastRequestAt: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + phone: '9876543210', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + update_last_request_at: false, + name: 'Name', + companies: [ + { + company_id: 'c0277b5c814453e5135f515f943d085a', + custom_attributes: { + key1: 'value1', + key3: '["value1","value2"]', + key4: '{"foo":"bar"}', + }, + name: 'Test Comp', + industry: 'test industry', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + company: { + industry: 'test industry', + key1: 'value1', + key2: null, + }, + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + phone: '9876543210', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + update_last_request_at: true, + name: 'Name', + companies: [], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + userId: 'test_user_id_1', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + properties: { + property1: 1, + property2: 'test', + property3: true, + property4: '2020-10-05T09:09:03.731Z', + property5: { + property1: 1, + property2: 'test', + property3: { + subProp1: { + a: 'a', + b: 'b', + }, + subProp2: ['a', 'b'], + }, + }, + properties6: null, + revenue: { + amount: 1232, + currency: 'inr', + test: 123, + }, + price: { + amount: 3000, + currency: 'USD', + }, + article: { + url: 'https://example.org/ab1de.html', + value: 'the dude abides', + }, + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'track', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + user_id: 'test_user_id_1', + email: 'test_1@test.com', + event_name: 'Test Event 2', + created: 1601493061, + metadata: { + revenue: { + amount: 1232, + currency: 'inr', + test: 123, + }, + price: { + amount: 3000, + currency: 'USD', + }, + article: { + url: 'https://example.org/ab1de.html', + value: 'the dude abides', + }, + property1: 1, + property2: 'test', + property3: true, + property4: '2020-10-05T09:09:03.731Z', + 'property5.property1': 1, + 'property5.property2': 'test', + 'property5.property3.subProp1.a': 'a', + 'property5.property3.subProp1.b': 'b', + 'property5.property3.subProp2[0]': 'a', + 'property5.property3.subProp2[1]': 'b', + properties6: null, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'track', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + event_name: 'Test Event 2', + created: 1601493061, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 10: ERROR - Either of `email` or `userId` is required for Track call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'track', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Either of `email` or `userId` is required for Track call', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'INTERCOM', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + externalId: [ + { + identifierType: 'email', + id: 'test@gmail.com', + }, + ], + mappedToDestination: true, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + phone: '9876543210', + key1: 'value1', + email: 'test@gmail.com', + update_last_request_at: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + sendAnonymousId: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + phone: '9876543210', + name: 'Test Name', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + user_id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + update_last_request_at: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 13: ERROR - Either of `email` or `userId` is required for Identify call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + sendAnonymousId: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Either of `email` or `userId` is required for Identify call', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'INTERCOM', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 14', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + groupId: 'test_company_id_wdasda', + traits: { + employees: 450, + plan: 'basic', + userId: 'sdfrsdfsdfsf', + email: 'test@test.com', + name: 'rudderUpdate', + size: '50', + industry: 'IT', + monthlySpend: '2131231', + remoteCreatedAt: '1683017572', + key1: 'val1', + }, + anonymousId: 'sdfrsdfsdfsf', + integrations: { + All: true, + }, + type: 'group', + userId: 'sdfrsdfsdfsf', + }, + destination: { + Config: { + apiKey: 'abcd=', + appId: 'asdasdasd', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/companies', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer abcd=', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + company_id: 'test_company_id_wdasda', + name: 'rudderUpdate', + plan: 'basic', + size: 50, + industry: 'IT', + monthly_spend: 2131231, + remote_created_at: 1683017572, + custom_attributes: { + employees: 450, + email: 'test@test.com', + key1: 'val1', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sdfrsdfsdfsf', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer abcd=', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + user_id: 'sdfrsdfsdfsf', + companies: [ + { + company_id: 'test_company_id_wdasda', + name: 'rudderUpdate', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sdfrsdfsdfsf', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + groupId: 'test_company_id', + traits: { + plan: 'basic', + name: 'rudderUpdate', + size: 50, + industry: 'IT', + monthlySpend: '2131231', + email: 'comanyemail@abc.com', + }, + anonymousId: '12312312', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { + name: 'test-ios-library', + version: '1.0.7', + }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { + name: 'iOS', + version: '14.0', + }, + screen: { + density: 2, + height: 320, + width: 568, + }, + timezone: 'Asia/Kolkata', + userAgent: 'unknown', + }, + integrations: { + All: true, + }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + type: 'group', + }, + destination: { + Config: { + apiKey: 'abcd=', + appId: 'asdasdasd', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/companies', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer abcd=', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + company_id: 'test_company_id', + name: 'rudderUpdate', + plan: 'basic', + size: 50, + industry: 'IT', + monthly_spend: 2131231, + custom_attributes: { + email: 'comanyemail@abc.com', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '12312312', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 16', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + groupId: 'test_company_id_wdasda', + context: { + traits: { + email: 'testUser@test.com', + }, + }, + traits: { + employees: 450, + plan: 'basic', + email: 'test@test.com', + name: 'rudderUpdate', + size: '50', + industry: 'IT', + website: 'url', + monthlySpend: '2131231', + remoteCreatedAt: '1683017572', + key1: 'val1', + }, + anonymousId: 'sdfrsdfsdfsf', + integrations: { + All: true, + }, + type: 'group', + userId: 'sdfrsdfsdfsf', + }, + destination: { + Config: { + apiKey: 'abcd=', + appId: 'asdasdasd', + collectContext: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/companies', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer abcd=', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + company_id: 'test_company_id_wdasda', + name: 'rudderUpdate', + plan: 'basic', + size: 50, + website: 'url', + industry: 'IT', + monthly_spend: 2131231, + remote_created_at: 1683017572, + custom_attributes: { + employees: 450, + email: 'test@test.com', + key1: 'val1', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sdfrsdfsdfsf', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer abcd=', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + user_id: 'sdfrsdfsdfsf', + email: 'testUser@test.com', + companies: [ + { + company_id: 'test_company_id_wdasda', + name: 'rudderUpdate', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sdfrsdfsdfsf', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 17', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + groupId: 'test_company_id_wdasda', + context: { + traits: { + email: 'testUser@test.com', + }, + }, + traits: { + employees: 450, + plan: 'basic', + email: 'test@test.com', + name: 'rudderUpdate', + size: '50', + industry: 'IT', + website: 'url', + monthlySpend: '2131231', + remoteCreatedAt: '1683017572', + key1: 'val1', + key2: { + a: 'a', + b: 'b', + }, + key3: [1, 2, 3], + key4: null, + }, + anonymousId: 'anonId', + integrations: { + All: true, + }, + type: 'group', + }, + destination: { + Config: { + apiKey: 'abcd=', + appId: 'asdasdasd', + collectContext: false, + sendAnonymousId: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/companies', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer abcd=', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + company_id: 'test_company_id_wdasda', + name: 'rudderUpdate', + plan: 'basic', + size: 50, + website: 'url', + industry: 'IT', + monthly_spend: 2131231, + remote_created_at: 1683017572, + custom_attributes: { + employees: 450, + email: 'test@test.com', + key1: 'val1', + 'key2.a': 'a', + 'key2.b': 'b', + 'key3[0]': 1, + 'key3[1]': 2, + 'key3[2]': 3, + key4: null, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anonId', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer abcd=', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + user_id: 'anonId', + email: 'testUser@test.com', + companies: [ + { + company_id: 'test_company_id_wdasda', + name: 'rudderUpdate', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'anonId', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/intercom/router/data.ts b/test/integrations/destinations/intercom/router/data.ts new file mode 100644 index 0000000000..766161bac8 --- /dev/null +++ b/test/integrations/destinations/intercom/router/data.ts @@ -0,0 +1,236 @@ +export const data = [ + { + name: 'intercom', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { name: 'test-ios-library', version: '1.0.7' }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { name: 'iOS', version: '14.0' }, + screen: { density: 2, height: 320, width: 568 }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + name: 'Test Name', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + userId: 'test_user_id_1', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { All: true }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + { + message: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + channel: 'mobile', + context: { + app: { + build: '1.0', + name: 'Test_Example', + namespace: 'com.example.testapp', + version: '1.0', + }, + device: { + id: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + manufacturer: 'Apple', + model: 'iPhone', + name: 'iPod touch (7th generation)', + type: 'iOS', + }, + library: { name: 'test-ios-library', version: '1.0.7' }, + locale: 'en-US', + network: { + bluetooth: false, + carrier: 'unavailable', + cellular: false, + wifi: true, + }, + os: { name: 'iOS', version: '14.0' }, + screen: { density: 2, height: 320, width: 568 }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + firstName: 'Test', + lastName: 'Name', + createdAt: '2020-09-30T19:11:00.337Z', + email: 'test_1@test.com', + phone: '9876543210', + key1: 'value1', + }, + userAgent: 'unknown', + }, + event: 'Test Event 2', + integrations: { All: true }, + messageId: '1601493060-39010c49-e6e4-4626-a75c-0dbf1925c9e8', + originalTimestamp: '2020-09-30T19:11:00.337Z', + receivedAt: '2020-10-01T00:41:11.369+05:30', + request_ip: '2405:201:8005:9856:7911:25e7:5603:5e18', + sentAt: '2020-09-30T19:11:10.382Z', + timestamp: '2020-10-01T00:41:01.324+05:30', + type: 'identify', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + destType: 'intercom', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + phone: '9876543210', + name: 'Test Name', + signed_up_at: 1601493060, + last_seen_user_agent: 'unknown', + update_last_request_at: true, + user_id: 'test_user_id_1', + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.intercom.io/users', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer intercomApiKey', + Accept: 'application/json', + 'Intercom-Version': '1.4', + }, + params: {}, + body: { + JSON: { + email: 'test_1@test.com', + phone: '9876543210', + signed_up_at: 1601493060, + name: 'Test Name', + last_seen_user_agent: 'unknown', + update_last_request_at: true, + custom_attributes: { + anonymousId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + key1: 'value1', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '58b21c2d-f8d5-4410-a2d0-b268a26b7e33', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'intercomApiKey', + appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0', + collectContext: false, + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/iterable/router/data.ts b/test/integrations/destinations/iterable/router/data.ts index 7cd19381d6..09eedc8eb8 100644 --- a/test/integrations/destinations/iterable/router/data.ts +++ b/test/integrations/destinations/iterable/router/data.ts @@ -15,10 +15,7 @@ export const data = [ sentAt: '2022-09-27T11:13:03.777Z', messageId: '9ad41366-8060-4c9f-b181-f6bea67d5469', originalTimestamp: '2022-09-27T11:13:03.777Z', - traits: { - ruchira: 'donaldbaker@ellis.com', - new_field2: 'GB', - }, + traits: { ruchira: 'donaldbaker@ellis.com', new_field2: 'GB' }, channel: 'sources', rudderId: '3d51640c-ab09-42c1-b7b2-db6ab433b35e', context: { @@ -32,11 +29,7 @@ export const data = [ }, mappedToDestination: 'true', externalId: [ - { - id: 'Tiffany', - type: 'ITERABLE-test-ruchira', - identifierType: 'itemId', - }, + { id: 'Tiffany', type: 'ITERABLE-test-ruchira', identifierType: 'itemId' }, ], }, timestamp: '2022-09-27T11:12:59.079Z', @@ -45,14 +38,9 @@ export const data = [ recordId: '10', request_ip: '10.1.86.248', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { - Config: { - apiKey: '583af2f8-15ba-49c0-8511-76383e7de07e', - hubID: '22066036', - }, + Config: { apiKey: '583af2f8-15ba-49c0-8511-76383e7de07e', hubID: '22066036' }, Enabled: true, }, }, @@ -62,10 +50,7 @@ export const data = [ sentAt: '2022-09-27T11:13:03.777Z', messageId: '9ad41366-8060-4c9f-b181-f6bea67d5469', originalTimestamp: '2022-09-27T11:13:03.777Z', - traits: { - ruchira: 'abc@ellis.com', - new_field2: 'GB1', - }, + traits: { ruchira: 'abc@ellis.com', new_field2: 'GB1' }, channel: 'sources', rudderId: '3d51640c-ab09-42c1-b7b2-db6ab433b35e', context: { @@ -79,11 +64,7 @@ export const data = [ }, mappedToDestination: 'true', externalId: [ - { - id: 'ABC', - type: 'ITERABLE-test-ruchira', - identifierType: 'itemId', - }, + { id: 'ABC', type: 'ITERABLE-test-ruchira', identifierType: 'itemId' }, ], }, timestamp: '2022-09-27T11:12:59.079Z', @@ -92,14 +73,9 @@ export const data = [ recordId: '10', request_ip: '10.1.86.248', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { - Config: { - apiKey: '583af2f8-15ba-49c0-8511-76383e7de07e', - hubID: '22066036', - }, + Config: { apiKey: '583af2f8-15ba-49c0-8511-76383e7de07e', hubID: '22066036' }, Enabled: true, }, }, @@ -127,14 +103,8 @@ export const data = [ body: { JSON: { documents: { - Tiffany: { - ruchira: 'donaldbaker@ellis.com', - new_field2: 'GB', - }, - ABC: { - ruchira: 'abc@ellis.com', - new_field2: 'GB1', - }, + Tiffany: { ruchira: 'donaldbaker@ellis.com', new_field2: 'GB' }, + ABC: { ruchira: 'abc@ellis.com', new_field2: 'GB1' }, }, replaceUploadedFieldsOnly: true, }, @@ -145,20 +115,13 @@ export const data = [ files: {}, }, metadata: [ - { - jobId: 2, - }, - { - jobId: 2, - }, + { jobId: 2, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, ], batched: true, statusCode: 200, destination: { - Config: { - apiKey: '583af2f8-15ba-49c0-8511-76383e7de07e', - hubID: '22066036', - }, + Config: { apiKey: '583af2f8-15ba-49c0-8511-76383e7de07e', hubID: '22066036' }, Enabled: true, }, }, @@ -182,15 +145,8 @@ export const data = [ type: 'track', event: 'Email Opened', sentAt: '2020-08-28T16:26:16.473Z', - context: { - library: { - name: 'analytics-node', - version: '0.0.3', - }, - }, - _metadata: { - nodeVersion: '10.22.0', - }, + context: { library: { name: 'analytics-node', version: '0.0.3' } }, + _metadata: { nodeVersion: '10.22.0' }, messageId: 'node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453', properties: { @@ -201,9 +157,7 @@ export const data = [ anonymousId: 'abcdeeeeeeeexxxx102', originalTimestamp: '2020-08-28T16:26:06.468Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { apiKey: '62d12498c37c4fd8a1a546c2d35c2f60', @@ -233,22 +187,15 @@ export const data = [ email: 'manashi@website.com', country: 'India', }, - library: { - name: 'analytics-node', - version: '0.0.3', - }, - }, - _metadata: { - nodeVersion: '10.22.0', + library: { name: 'analytics-node', version: '0.0.3' }, }, + _metadata: { nodeVersion: '10.22.0' }, messageId: 'node-cc3ef811f686139ee527b806ee0129ef-163a3a88-266f-447e-8cce-34a8f42f8dcd', anonymousId: 'abcdeeeeeeeexxxx102', originalTimestamp: '2020-08-28T16:26:06.462Z', }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { Config: { apiKey: '62d12498c37c4fd8a1a546c2d35c2f60', @@ -270,24 +217,14 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - traits: { - email: 'sayan@gmail.com', - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + traits: { email: 'sayan@gmail.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: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, type: 'page', messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', @@ -302,15 +239,11 @@ export const data = [ url: '', category: 'test-category', }, - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, - metadata: { - jobId: 4, - }, + metadata: { jobId: 4, userId: 'u1' }, destination: { Config: { apiKey: '12345', @@ -342,9 +275,7 @@ export const data = [ task_run_id: 'c5tar6cqgmgmcjvupdi0', version: 'release.v1.6.8', }, - device: { - token: 54321, - }, + device: { token: 54321 }, }, messageId: '2f052f7c-f694-4849-a7ed-a432f7ffa0a4', originalTimestamp: '2021-10-28T14:03:50.503Z', @@ -365,9 +296,7 @@ export const data = [ type: 'identify', userId: 'lynnanderson@smith.net', }, - metadata: { - jobId: 5, - }, + metadata: { jobId: 5, userId: 'u1' }, destination: { ID: '1zia9wKshXt80YksLmUdJnr7IHI', Name: 'test_iterable', @@ -420,9 +349,7 @@ export const data = [ IsProcessorEnabled: true, }, libraries: [], - request: { - query: {}, - }, + request: { query: {} }, }, { message: { @@ -434,24 +361,14 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - traits: { - email: 'sayan@gmail.com', - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + traits: { email: 'sayan@gmail.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: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, event: 'product added', type: 'track', @@ -489,15 +406,11 @@ export const data = [ }, ], }, - integrations: { - All: true, - }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, - metadata: { - jobId: 6, - }, + metadata: { jobId: 6, userId: 'u1' }, destination: { Config: { apiKey: '62d12498c37c4fd8a1a546c2d35c2f60', @@ -513,15 +426,8 @@ export const data = [ message: { type: 'page', sentAt: '2020-08-28T16:26:16.473Z', - context: { - library: { - name: 'analytics-node', - version: '0.0.3', - }, - }, - _metadata: { - nodeVersion: '10.22.0', - }, + context: { library: { name: 'analytics-node', version: '0.0.3' } }, + _metadata: { nodeVersion: '10.22.0' }, messageId: 'node-6f62b91e789a636929ca38aed01c5f6e-103c720d-81bd-4742-98d6-d45a65aed23e', properties: { @@ -532,9 +438,7 @@ export const data = [ anonymousId: 'abcdeeeeeeeexxxx102', originalTimestamp: '2020-08-28T16:26:06.468Z', }, - metadata: { - jobId: 7, - }, + metadata: { jobId: 7, userId: 'u1' }, destination: { Config: { apiKey: '62d12498c37c4fd8a1a546c2d35c2f60', @@ -550,15 +454,8 @@ export const data = [ message: { type: 'alias', sentAt: '2020-08-28T16:26:16.473Z', - context: { - library: { - name: 'analytics-node', - version: '0.0.3', - }, - }, - _metadata: { - nodeVersion: '10.22.0', - }, + context: { library: { name: 'analytics-node', version: '0.0.3' } }, + _metadata: { nodeVersion: '10.22.0' }, messageId: 'node-6f62b91e789a636929ca38aed01c5f6e-103c720d-81bd-4742-98d6-d45a65aed23e', properties: { @@ -571,9 +468,7 @@ export const data = [ anonymousId: 'abcdeeeeeeeexxxx102', originalTimestamp: '2020-08-28T16:26:06.468Z', }, - metadata: { - jobId: 8, - }, + metadata: { jobId: 8, userId: 'u1' }, destination: { Config: { apiKey: '62d12498c37c4fd8a1a546c2d35c2f60', @@ -627,11 +522,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -679,11 +570,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -703,10 +590,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.iterable.com/api/events/trackBulk', - headers: { - 'Content-Type': 'application/json', - api_key: '12345', - }, + headers: { 'Content-Type': 'application/json', api_key: '12345' }, params: {}, body: { JSON: { @@ -733,11 +617,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 4, - }, - ], + metadata: [{ jobId: 4, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -766,9 +646,7 @@ export const data = [ JSON: { user: { email: 'sayan@gmail.com', - dataFields: { - email: 'sayan@gmail.com', - }, + dataFields: { email: 'sayan@gmail.com' }, userId: '12345', preferUserId: true, mergeNestedObjects: true, @@ -802,11 +680,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 6, - }, - ], + metadata: [{ jobId: 6, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -852,11 +726,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 7, - }, - ], + metadata: [{ jobId: 7, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -882,21 +752,14 @@ export const data = [ }, params: {}, body: { - JSON: { - currentEmail: 'old@email.com', - newEmail: 'new@email.com', - }, + JSON: { currentEmail: 'old@email.com', newEmail: 'new@email.com' }, JSON_ARRAY: {}, XML: {}, FORM: {}, }, files: {}, }, - metadata: [ - { - jobId: 8, - }, - ], + metadata: [{ jobId: 8, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -916,10 +779,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.iterable.com/api/users/bulkUpdate', - headers: { - 'Content-Type': 'application/json', - api_key: '12345', - }, + headers: { 'Content-Type': 'application/json', api_key: '12345' }, params: {}, body: { JSON: { @@ -947,11 +807,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 5, - }, - ], + metadata: [{ jobId: 5, userId: 'u1' }], batched: true, statusCode: 200, destination: { diff --git a/test/integrations/destinations/june/router/data.ts b/test/integrations/destinations/june/router/data.ts index cf8c4f0011..81e5c6eb5a 100644 --- a/test/integrations/destinations/june/router/data.ts +++ b/test/integrations/destinations/june/router/data.ts @@ -10,49 +10,29 @@ export const data = [ body: { input: [ { - destination: { - Config: { - apiKey: '93EMyDLvfpbRxxYn', - }, - ID: 'june123', - }, - metadata: { - jobId: 1, - }, + destination: { Config: { apiKey: '93EMyDLvfpbRxxYn' }, ID: 'june123' }, + metadata: { jobId: 1, userId: 'u1' }, message: { type: 'identify', sentAt: '2022-01-20T13:39:21.033Z', channel: 'web', userId: '5136633649', - context: { - traits: { - name: 'John Doe', - email: 'johndoe@gmail.com', - age: 25, - }, - }, + context: { traits: { name: 'John Doe', email: 'johndoe@gmail.com', age: 25 } }, rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', anonymousId: 'bf412108-0357-4330-b119-7305e767823c', originalTimestamp: '2022-01-20T13:39:21.032Z', }, }, { - destination: { - Config: { - apiKey: '93EMyDLvfpbRxxYn', - }, - ID: 'june123', - }, - metadata: { - jobId: 2, - }, + destination: { Config: { apiKey: '93EMyDLvfpbRxxYn' }, ID: 'june123' }, + metadata: { jobId: 2, userId: 'u1' }, message: { type: 'track', event: 'Product Reviewed', properties: { review_id: '12345', product_id: '123', - rating: 3.0, + rating: 3, review_body: 'Average product, expected much more.', groupId: '91Yb32830', }, @@ -80,11 +60,7 @@ export const data = [ JSON: { anonymousId: 'bf412108-0357-4330-b119-7305e767823c', timestamp: '2022-01-20T13:39:21.032Z', - traits: { - age: 25, - email: 'johndoe@gmail.com', - name: 'John Doe', - }, + traits: { age: 25, email: 'johndoe@gmail.com', name: 'John Doe' }, userId: '5136633649', }, JSON_ARRAY: {}, @@ -101,33 +77,15 @@ export const data = [ type: 'REST', version: '1', }, - destination: { - Config: { - apiKey: '93EMyDLvfpbRxxYn', - }, - ID: 'june123', - }, - metadata: [ - { - jobId: 1, - }, - ], + destination: { Config: { apiKey: '93EMyDLvfpbRxxYn' }, ID: 'june123' }, + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, { - destination: { - Config: { - apiKey: '93EMyDLvfpbRxxYn', - }, - ID: 'june123', - }, + destination: { Config: { apiKey: '93EMyDLvfpbRxxYn' }, ID: 'june123' }, batched: false, error: 'Missing required value from "userIdOnly"', - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statTags: { destType: 'JUNE', errorCategory: 'dataValidation', diff --git a/test/integrations/destinations/kafka/batch/data.ts b/test/integrations/destinations/kafka/batch/data.ts index 0cc1d75c24..131833b23c 100644 --- a/test/integrations/destinations/kafka/batch/data.ts +++ b/test/integrations/destinations/kafka/batch/data.ts @@ -19,12 +19,8 @@ export const data = [ userId: 'user1', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, messageId: '6f27a4da-cefb-4800-acf1-f467e8aab91c', timestamp: '2020-02-02T00:23:09.544Z', @@ -35,10 +31,7 @@ export const data = [ }, topic: 'new-topic', }, - metadata: { - rudderId: 'user1<<>>new-topic', - jobId: 1, - }, + metadata: { rudderId: 'user1<<>>new-topic', jobId: 1, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -105,12 +98,8 @@ export const data = [ userId: 'user2', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, messageId: 'fe182d9e-e86e-4db5-ae12-f4b399555fcc', timestamp: '2020-02-02T00:23:09.544Z', @@ -121,10 +110,7 @@ export const data = [ }, topic: 'new-topic', }, - metadata: { - rudderId: 'user2<<>>new-topic', - jobId: 2, - }, + metadata: { rudderId: 'user2<<>>new-topic', jobId: 2, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -191,12 +177,8 @@ export const data = [ userId: 'user3', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, messageId: '2803e656-77ff-47ca-9606-90663f9aed38', timestamp: '2020-02-02T00:23:09.544Z', @@ -207,10 +189,7 @@ export const data = [ }, topic: 'new-topic', }, - metadata: { - rudderId: 'user3<<>>new-topic', - jobId: 3, - }, + metadata: { rudderId: 'user3<<>>new-topic', jobId: 3, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -277,12 +256,8 @@ export const data = [ userId: 'user4', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', @@ -293,10 +268,7 @@ export const data = [ }, topic: 'new-topic', }, - metadata: { - rudderId: 'user4<<>>new-topic', - jobId: 4, - }, + metadata: { rudderId: 'user4<<>>new-topic', jobId: 4, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -363,19 +335,10 @@ export const data = [ userId: 'user5', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - schemaId: 'schema001', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { schemaId: 'schema001' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -386,10 +349,7 @@ export const data = [ schemaId: 'schema001', topic: 'new-topic', }, - metadata: { - rudderId: 'user5<<>>new-topic', - jobId: 5, - }, + metadata: { rudderId: 'user5<<>>new-topic', jobId: 5, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -456,19 +416,10 @@ export const data = [ userId: 'user6', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-1', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-1' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -478,10 +429,7 @@ export const data = [ }, topic: 'topic-1', }, - metadata: { - rudderId: 'user6<<>>topic-1', - jobId: 6, - }, + metadata: { rudderId: 'user6<<>>topic-1', jobId: 6, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -548,19 +496,10 @@ export const data = [ userId: 'user7', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-1', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-1' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -570,10 +509,7 @@ export const data = [ }, topic: 'topic-1', }, - metadata: { - rudderId: 'user7<<>>topic-1', - jobId: 7, - }, + metadata: { rudderId: 'user7<<>>topic-1', jobId: 7, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -640,19 +576,10 @@ export const data = [ userId: 'user8', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-2', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-2' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -662,10 +589,7 @@ export const data = [ }, topic: 'topic-2', }, - metadata: { - rudderId: 'user8<<>>topic-2', - jobId: 8, - }, + metadata: { rudderId: 'user8<<>>topic-2', jobId: 8, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -732,19 +656,10 @@ export const data = [ userId: 'user8', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-2', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-2' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -754,10 +669,7 @@ export const data = [ }, topic: 'topic-2', }, - metadata: { - rudderId: 'user8<<>>topic-2', - jobId: 9, - }, + metadata: { rudderId: 'user8<<>>topic-2', jobId: 9, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -824,19 +736,10 @@ export const data = [ userId: 'user8', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-3', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-3' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -846,10 +749,7 @@ export const data = [ }, topic: 'topic-3', }, - metadata: { - rudderId: 'user8<<>>topic-3', - jobId: 10, - }, + metadata: { rudderId: 'user8<<>>topic-3', jobId: 10, userId: 'u1' }, destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', @@ -927,12 +827,8 @@ export const data = [ userId: 'user1', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, messageId: '6f27a4da-cefb-4800-acf1-f467e8aab91c', timestamp: '2020-02-02T00:23:09.544Z', @@ -951,12 +847,8 @@ export const data = [ userId: 'user2', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, messageId: 'fe182d9e-e86e-4db5-ae12-f4b399555fcc', timestamp: '2020-02-02T00:23:09.544Z', @@ -975,12 +867,8 @@ export const data = [ userId: 'user3', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, messageId: '2803e656-77ff-47ca-9606-90663f9aed38', timestamp: '2020-02-02T00:23:09.544Z', @@ -999,12 +887,8 @@ export const data = [ userId: 'user4', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', @@ -1023,19 +907,10 @@ export const data = [ userId: 'user5', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - schemaId: 'schema001', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { schemaId: 'schema001' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -1048,23 +923,11 @@ export const data = [ }, ], metadata: [ - { rudderId: 'user1<<>>new-topic', jobId: 1 }, - { - rudderId: 'user2<<>>new-topic', - jobId: 2, - }, - { - rudderId: 'user3<<>>new-topic', - jobId: 3, - }, - { - rudderId: 'user4<<>>new-topic', - jobId: 4, - }, - { - rudderId: 'user5<<>>new-topic', - jobId: 5, - }, + { rudderId: 'user1<<>>new-topic', jobId: 1, userId: 'u1' }, + { rudderId: 'user2<<>>new-topic', jobId: 2, userId: 'u1' }, + { rudderId: 'user3<<>>new-topic', jobId: 3, userId: 'u1' }, + { rudderId: 'user4<<>>new-topic', jobId: 4, userId: 'u1' }, + { rudderId: 'user5<<>>new-topic', jobId: 5, userId: 'u1' }, ], destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', @@ -1135,19 +998,10 @@ export const data = [ userId: 'user6', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-1', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-1' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -1165,19 +1019,10 @@ export const data = [ userId: 'user7', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-1', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-1' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -1189,14 +1034,8 @@ export const data = [ }, ], metadata: [ - { - rudderId: 'user6<<>>topic-1', - jobId: 6, - }, - { - rudderId: 'user7<<>>topic-1', - jobId: 7, - }, + { rudderId: 'user6<<>>topic-1', jobId: 6, userId: 'u1' }, + { rudderId: 'user7<<>>topic-1', jobId: 7, userId: 'u1' }, ], destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', @@ -1267,19 +1106,10 @@ export const data = [ userId: 'user8', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-2', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-2' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -1297,19 +1127,10 @@ export const data = [ userId: 'user8', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-2', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-2' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -1321,14 +1142,8 @@ export const data = [ }, ], metadata: [ - { - rudderId: 'user8<<>>topic-2', - jobId: 8, - }, - { - rudderId: 'user8<<>>topic-2', - jobId: 9, - }, + { rudderId: 'user8<<>>topic-2', jobId: 8, userId: 'u1' }, + { rudderId: 'user8<<>>topic-2', jobId: 9, userId: 'u1' }, ], destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', @@ -1399,19 +1214,10 @@ export const data = [ userId: 'user8', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, - }, - integrations: { - All: true, - KAFKA: { - topic: 'topic-3', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, + integrations: { All: true, KAFKA: { topic: 'topic-3' } }, messageId: '87c98fc2-561b-4631-8cd6-1d02cdd1429f', timestamp: '2020-02-02T00:23:09.544Z', receivedAt: '2021-07-08T02:45:06.851+05:30', @@ -1422,12 +1228,7 @@ export const data = [ topic: 'topic-3', }, ], - metadata: [ - { - rudderId: 'user8<<>>topic-3', - jobId: 10, - }, - ], + metadata: [{ rudderId: 'user8<<>>topic-3', jobId: 10, userId: 'u1' }], destination: { ID: '1uzGR4rn915R6Xts9KRfWAzmgGL', Name: 'local-kafka-test', diff --git a/test/integrations/destinations/keen/router/data.ts b/test/integrations/destinations/keen/router/data.ts index d46d2363e2..a88fc5dcce 100644 --- a/test/integrations/destinations/keen/router/data.ts +++ b/test/integrations/destinations/keen/router/data.ts @@ -19,24 +19,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - traits: { - email: 'sayan@gmail.com', - anonymousId: '12345', - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + traits: { email: 'sayan@gmail.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', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, type: 'track', messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', @@ -51,18 +40,11 @@ export const data = [ user_actual_id: 12345, user_time_spent: 50000, }, - integrations: { - All: true, - }, - traits: { - email: 'test@gmail.com', - anonymousId: 'anon-id', - }, + integrations: { All: true }, + traits: { email: 'test@gmail.com', anonymousId: 'anon-id' }, sentAt: '2019-10-14T11:15:53.296Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { projectID: 'abcde', @@ -84,25 +66,14 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - traits: { - email: 'sayan@gmail.com', - anonymousId: '12345', - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + traits: { email: 'sayan@gmail.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, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, }, type: 'page', messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', @@ -117,19 +88,12 @@ export const data = [ title: 'Test Page', url: 'www.rudderlabs.com', }, - traits: { - email: 'test@gmail.com', - anonymousId: 'anon-id', - }, - integrations: { - All: true, - }, + traits: { email: 'test@gmail.com', anonymousId: 'anon-id' }, + integrations: { All: true }, name: 'ApplicationLoaded', sentAt: '2019-10-14T11:15:53.296Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { Config: { projectID: 'abcde', @@ -165,16 +129,12 @@ export const data = [ keen: { addons: [ { - input: { - ip: 'request_ip', - }, + input: { ip: 'request_ip' }, name: 'keen:ip_to_geo', output: 'ip_geo_info', }, { - input: { - ua_string: 'user_agent', - }, + input: { ua_string: 'user_agent' }, name: 'keen:ua_parser', output: 'parsed_user_agent', }, @@ -182,10 +142,7 @@ export const data = [ }, anonymousId: '00000000000000000000000000', user: { - traits: { - anonymousId: 'anon-id', - email: 'test@gmail.com', - }, + traits: { anonymousId: 'anon-id', email: 'test@gmail.com' }, userId: '12345', }, user_agent: @@ -196,21 +153,14 @@ export const data = [ files: {}, endpoint: 'https://api.keen.io/3.0/projects/abcde/events/test track event', userId: '12345', - headers: { - 'Content-Type': 'application/json', - Authorization: 'xyz', - }, + headers: { 'Content-Type': 'application/json', Authorization: 'xyz' }, version: '1', params: {}, type: 'REST', method: 'POST', statusCode: 200, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -239,16 +189,12 @@ export const data = [ keen: { addons: [ { - input: { - ip: 'request_ip', - }, + input: { ip: 'request_ip' }, name: 'keen:ip_to_geo', output: 'ip_geo_info', }, { - input: { - ua_string: 'user_agent', - }, + input: { ua_string: 'user_agent' }, name: 'keen:ua_parser', output: 'parsed_user_agent', }, @@ -256,10 +202,7 @@ export const data = [ }, anonymousId: '00000000000000000000000000', user: { - traits: { - anonymousId: 'anon-id', - email: 'test@gmail.com', - }, + traits: { anonymousId: 'anon-id', email: 'test@gmail.com' }, userId: '12345', }, path: '/test', @@ -272,21 +215,14 @@ export const data = [ endpoint: 'https://api.keen.io/3.0/projects/abcde/events/Viewed ApplicationLoaded page', userId: '12345', - headers: { - 'Content-Type': 'application/json', - Authorization: 'xyz', - }, + headers: { 'Content-Type': 'application/json', Authorization: 'xyz' }, version: '1', params: {}, type: 'REST', method: 'POST', statusCode: 200, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/kissmetrics/router/data.ts b/test/integrations/destinations/kissmetrics/router/data.ts index bba00edf96..827a493ae5 100644 --- a/test/integrations/destinations/kissmetrics/router/data.ts +++ b/test/integrations/destinations/kissmetrics/router/data.ts @@ -37,25 +37,15 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: {}, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'dd266c67-9199-4a52-ba32-f46ddde67312', originalTimestamp: '2020-01-24T06:29:02.358Z', properties: { @@ -79,6 +69,7 @@ export const data = [ jobId: 1, messageId: 'dd266c67-9199-4a52-ba32-f46ddde67312', sourceId: '1WjrlZIy1d41MCceOrFbDVPnOPY', + userId: 'u1', }, }, { @@ -109,18 +100,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: { city: 'Disney', country: 'USA', @@ -130,9 +113,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, traits: { city: 'Disney-1', country: 'India', @@ -155,6 +136,7 @@ export const data = [ jobId: 2, messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', sourceId: '1WjrlZIy1d41MCceOrFbDVPnOPY', + userId: 'u1', }, }, ], @@ -187,12 +169,7 @@ export const data = [ _t: '1579847342', _d: 1, }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, files: {}, userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', statusCode: 200, @@ -206,6 +183,7 @@ export const data = [ jobId: 1, messageId: 'dd266c67-9199-4a52-ba32-f46ddde67312', sourceId: '1WjrlZIy1d41MCceOrFbDVPnOPY', + userId: 'u1', }, ], batched: false, @@ -245,12 +223,7 @@ export const data = [ _t: '1579847342', _d: 1, }, - body: { - JSON: {}, - XML: {}, - JSON_ARRAY: {}, - FORM: {}, - }, + body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, files: {}, userId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', statusCode: 200, @@ -264,6 +237,7 @@ export const data = [ jobId: 2, messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', sourceId: '1WjrlZIy1d41MCceOrFbDVPnOPY', + userId: 'u1', }, ], batched: false, diff --git a/test/integrations/destinations/klaviyo/network.ts b/test/integrations/destinations/klaviyo/network.ts new file mode 100644 index 0000000000..aa788a60da --- /dev/null +++ b/test/integrations/destinations/klaviyo/network.ts @@ -0,0 +1,75 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://a.klaviyo.com/api/v2/list/XUepkK/subscribe', + method: 'GET', + }, + httpRes: { + status: 200 + }, + }, + { + httpReq: { + url: 'https://a.klaviyo.com/api/v2/list/XUepkK/members', + method: 'GET', + }, + httpRes: { + status: 200 + }, + }, + { + httpReq: { + url: 'https://a.klaviyo.com/api/profiles', + method: 'GET', + data: { + attributes: { + email: "test3@rudderstack.com" + } + } + }, + httpRes: { + status: 409, + data: { + } + }, + }, + { + httpReq: { + url: 'https://a.klaviyo.com/api/profiles', + method: 'GET', + }, + httpRes: { + status: 201, + data: { + data: { + id: '01GW3PHVY0MTCDGS0A1612HARX', + attributes: {} + }, + } + }, + }, + { + httpReq: { + url: 'https://a.klaviyo.com/api/profiles', + method: 'POST', + headers: { Authorization: 'Klaviyo-API-Key dummyPrivateApiKeyforfailure' } + }, + httpRes: { + }, + }, + { + httpReq: { + url: 'https://a.klaviyo.com/api/profiles', + method: 'POST', + }, + httpRes: { + status: 201, + data: { + data: { + id: '01GW3PHVY0MTCDGS0A1612HARX', + attributes: {} + }, + } + }, + } +]; diff --git a/test/integrations/destinations/klaviyo/processor/data.ts b/test/integrations/destinations/klaviyo/processor/data.ts new file mode 100644 index 0000000000..06c4a3e530 --- /dev/null +++ b/test/integrations/destinations/klaviyo/processor/data.ts @@ -0,0 +1,15 @@ +import { ecomTestData } from './ecomTestData'; +import { groupTestData } from './groupTestData'; +import { identifyData } from './identifyTestData'; +import { screenTestData } from './screenTestData'; +import { trackTestData } from './trackTestData'; +import { validationTestData } from './validationTestData'; + +export const data = [ + ...identifyData, + ...trackTestData, + ...screenTestData, + ...groupTestData, + ...ecomTestData, + ...validationTestData, +]; diff --git a/test/integrations/destinations/klaviyo/processor/ecomTestData.ts b/test/integrations/destinations/klaviyo/processor/ecomTestData.ts new file mode 100644 index 0000000000..fab4cf85ce --- /dev/null +++ b/test/integrations/destinations/klaviyo/processor/ecomTestData.ts @@ -0,0 +1,344 @@ +import { overrideDestination, transformResultBuilder } from '../../../testUtils'; + +const destination = { + Config: { + publicApiKey: 'dummyPublicApiKey', + privateApiKey: 'dummyPrivateApiKey', + }, +}; + +const commonTraits = { + id: 'user@1', + age: '22', + name: 'Test', + email: 'test@rudderstack.com', + phone: '9112340375', + anonymousId: '9c6bd77ea9da3e68', + description: 'Sample description', +}; + +const eventsEndpoint = 'https://a.klaviyo.com/api/events'; + +const commonOutputHeaders = { + Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json', + revision: '2023-02-22', +}; + +export const ecomTestData = [ + { + id: 'klaviyo-ecom-test-1', + name: 'klaviyo', + description: 'Track call with Ecom events (Viewed Product)', + scenario: 'Business', + successCriteria: + 'Response should contain only event payload and status code should be 200, for the event payload should contain contextual traits and properties in the payload the event name should be Viewed Product and the properties should be mapped to the Klaviyo event properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination, + message: { + type: 'track', + event: 'product viewed', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'sajal12', + channel: 'mobile', + context: { + traits: commonTraits, + }, + properties: { + name: 'test product', + product_id: '1114', + sku: 'WINNIePuh12', + image_url: 'http://www.example.com/path/to/product/image.png', + url: 'http://www.example.com/path/to/product', + brand: 'Not for Kids', + price: 9.9, + categories: ['Fiction', 'Children'], + }, + anonymousId: '9c6bd77ea9da3e68', + originalTimestamp: '2021-01-25T15:32:56.409Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + method: 'POST', + endpoint: eventsEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'event', + attributes: { + metric: { + name: 'Viewed Product', + }, + profile: { + $email: 'test@rudderstack.com', + $phone_number: '9112340375', + $id: 'sajal12', + age: '22', + name: 'Test', + description: 'Sample description', + }, + properties: { + ProductName: 'test product', + ProductID: '1114', + SKU: 'WINNIePuh12', + ImageURL: 'http://www.example.com/path/to/product/image.png', + URL: 'http://www.example.com/path/to/product', + Brand: 'Not for Kids', + Price: 9.9, + Categories: ['Fiction', 'Children'], + }, + }, + }, + }, + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-ecom-test-2', + name: 'klaviyo', + description: 'Track call with Ecom events (Checkout Started) with enabled flattenProperties', + scenario: 'Business', + successCriteria: + 'Response should contain only event payload and status code should be 200, for the event payload should contain contextual traits and properties in the payload the event name should be Started Checkout and the properties should be mapped to the Klaviyo event properties with flattened properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: overrideDestination(destination, { flattenProperties: true }), + message: { + type: 'track', + event: 'checkout started', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'sajal12', + channel: 'mobile', + context: { + traits: commonTraits, + }, + properties: { + order_id: '1234', + affiliation: 'Apple Store', + value: 20, + revenue: 15, + shipping: 4, + tax: 1, + discount: 1.5, + coupon: 'ImagePro', + currency: 'USD', + products: [ + { + product_id: '123', + sku: 'G-32', + name: 'Monopoly', + price: 14, + quantity: 1, + category: 'Games', + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.jpg', + }, + { + product_id: '345', + sku: 'F-32', + name: 'UNO', + price: 3.45, + quantity: 2, + category: 'Games', + }, + ], + }, + anonymousId: '9c6bd77ea9da3e68', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + method: 'POST', + endpoint: eventsEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'event', + attributes: { + metric: { + name: 'Started Checkout', + }, + properties: { + $event_id: '1234', + $value: 20, + 'items[0].ProductID': '123', + 'items[0].SKU': 'G-32', + 'items[0].ProductName': 'Monopoly', + 'items[0].Quantity': 1, + 'items[0].ItemPrice': 14, + 'items[0].ProductURL': 'https://www.website.com/product/path', + 'items[0].ImageURL': 'https://www.website.com/product/path.jpg', + 'items[1].ProductID': '345', + 'items[1].SKU': 'F-32', + 'items[1].ProductName': 'UNO', + 'items[1].Quantity': 2, + 'items[1].ItemPrice': 3.45, + }, + profile: { + $email: 'test@rudderstack.com', + $phone_number: '9112340375', + $id: 'sajal12', + age: '22', + name: 'Test', + description: 'Sample description', + }, + }, + }, + }, + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-ecom-test-3', + name: 'klaviyo', + description: 'Track call with Ecom events (Added to Cart) with properties.products', + scenario: 'Business', + successCriteria: + 'Response should contain only event payload and status code should be 200, for the event payload should contain contextual traits and properties in the payload the event name should be Added to Cart and the properties should be mapped to the Klaviyo event properties with flattened properties and products array should be mapped to items array in the payload', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination, + message: { + type: 'track', + event: 'product added', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'sajal12', + channel: 'mobile', + context: { + traits: commonTraits, + }, + rudderId: 'b7b24f86-f7bf-46d8-b2b4-ccafc080239c', + messageId: '1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce', + properties: { + order_id: '1234', + value: 12.12, + categories: ['Fiction3', 'Children3'], + checkout_url: 'http://www.heythere.com', + item_names: ['book1', 'book2'], + products: [ + { + product_id: 'b1pid', + sku: '123x', + name: 'book1', + url: 'heyther.com', + price: 12, + }, + { + product_id: 'b2pid', + sku: '123x', + name: 'book2', + url: 'heyther2.com', + price: 14, + }, + ], + }, + anonymousId: '9c6bd77ea9da3e68', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-25T15:32:56.409Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + method: 'POST', + endpoint: 'https://a.klaviyo.com/api/events', + headers: commonOutputHeaders, + JSON: { + data: { + type: 'event', + attributes: { + metric: { + name: 'Added to Cart', + }, + profile: { + $email: 'test@rudderstack.com', + $phone_number: '9112340375', + $id: 'sajal12', + age: '22', + name: 'Test', + description: 'Sample description', + }, + properties: { + $value: 12.12, + AddedItemCategories: ['Fiction3', 'Children3'], + ItemNames: ['book1', 'book2'], + CheckoutURL: 'http://www.heythere.com', + items: [ + { + ProductID: 'b1pid', + SKU: '123x', + ProductName: 'book1', + ItemPrice: 12, + ProductURL: 'heyther.com', + }, + { + ProductID: 'b2pid', + SKU: '123x', + ProductName: 'book2', + ItemPrice: 14, + ProductURL: 'heyther2.com', + }, + ], + }, + }, + }, + }, + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/klaviyo/processor/groupTestData.ts b/test/integrations/destinations/klaviyo/processor/groupTestData.ts new file mode 100644 index 0000000000..031c949c4b --- /dev/null +++ b/test/integrations/destinations/klaviyo/processor/groupTestData.ts @@ -0,0 +1,136 @@ +import { generateSimplifiedGroupPayload, transformResultBuilder } from '../../../testUtils'; + +const destination = { + Config: { + publicApiKey: 'dummyPublicApiKey', + privateApiKey: 'dummyPrivateApiKey', + }, +}; + +const headers = { + Accept: 'application/json', + Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', + 'Content-Type': 'application/json', + revision: '2023-02-22', +}; + +const commonEndpoint = 'https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs'; + +export const groupTestData = [ + { + id: 'klaviyo-group-test-1', + name: 'klaviyo', + description: 'Simple group call', + scenario: 'Business', + successCriteria: + 'Response should contain only group payload and status code should be 200, for the group payload a subscription payload should be present in the final payload with email and phone', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination, + message: generateSimplifiedGroupPayload({ + userId: 'user123', + groupId: 'XUepkK', + traits: { + subscribe: true, + }, + context: { + traits: { + email: 'test@rudderstack.com', + phone: '+12 345 678 900', + consent: ['email'], + }, + }, + timestamp: '2020-01-21T00:21:34.208Z', + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + JSON: { + data: { + attributes: { + list_id: 'XUepkK', + subscriptions: [ + { email: 'test@rudderstack.com', phone_number: '+12 345 678 900' }, + ], + }, + type: 'profile-subscription-bulk-create-job', + }, + }, + endpoint: commonEndpoint, + headers: headers, + method: 'POST', + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-group-test-2', + name: 'klaviyo', + description: 'Simple group call without groupId', + scenario: 'Business', + successCriteria: + 'Response should contain error message and status code should be 400, as we are not sending groupId in the payload and groupId is a required field for group events', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination, + message: generateSimplifiedGroupPayload({ + userId: 'user123', + groupId: '', + traits: { + subscribe: true, + }, + context: { + traits: { + email: 'test@rudderstack.com', + phone: '+12 345 678 900', + consent: 'email', + }, + }, + timestamp: '2020-01-21T00:21:34.208Z', + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'groupId is a required field for group events', + statTags: { + destType: 'KLAVIYO', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/klaviyo/processor/identifyTestData.ts b/test/integrations/destinations/klaviyo/processor/identifyTestData.ts new file mode 100644 index 0000000000..8b5503fad9 --- /dev/null +++ b/test/integrations/destinations/klaviyo/processor/identifyTestData.ts @@ -0,0 +1,551 @@ +import { removeUndefinedAndNullValues } from '@rudderstack/integrations-lib'; +import { + overrideDestination, + transformResultBuilder, + generateSimplifiedIdentifyPayload, +} from '../../../testUtils'; + +const destination = { + Config: { + publicApiKey: 'dummyPublicApiKey', + privateApiKey: 'dummyPrivateApiKey', + }, +}; + +const commonTraits = { + firstName: 'Test', + lastName: 'Rudderlabs', + email: 'test@rudderstack.com', + phone: '+12 345 578 900', + userId: 'user@1', + title: 'Developer', + organization: 'Rudder', + city: 'Tokyo', + region: 'Kanto', + country: 'JP', + zip: '100-0001', + Flagged: false, + Residence: 'Shibuya', + properties: { + listId: 'XUepkK', + subscribe: true, + consent: ['email', 'sms'], + }, +}; + +const commonOutputUserProps = { + external_id: 'user@1', + email: 'test@rudderstack.com', + first_name: 'Test', + last_name: 'Rudderlabs', + phone_number: '+12 345 578 900', + title: 'Developer', + organization: 'Rudder', + location: { + city: 'Tokyo', + region: 'Kanto', + country: 'JP', + zip: '100-0001', + }, + properties: { + Flagged: false, + Residence: 'Shibuya', + }, +}; + +const commonOutputSubscriptionProps = { + list_id: 'XUepkK', + subscriptions: [ + { + email: 'test@rudderstack.com', + phone_number: '+12 345 578 900', + channels: { + email: ['MARKETING'], + sms: ['MARKETING'], + }, + }, + ], +}; + +const commonOutputHeaders = { + Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json', + revision: '2023-02-22', +}; + +const anonymousId = '97c46c81-3140-456d-b2a9-690d70aaca35'; +const userId = 'user@1'; +const sentAt = '2021-01-03T17:02:53.195Z'; +const originalTimestamp = '2021-01-03T17:02:53.193Z'; +const commonUserUpdateEndpoint = 'https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX'; +const subscribeEndpoint = 'https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs'; + +export const identifyData = [ + { + id: 'klaviyo-identify-test-1', + name: 'klaviyo', + description: + 'Identify and Subscribe user where the user doesnot exists[mock] (without suppression status code feature from server)', + scenario: 'Business + Framework', + successCriteria: + 'Response should containt two payloads one for profile updation and other for subscription, response status code should be 200', + comment: + 'Reasoning: As suppression status code feature is not enabled from server, so we would expect 2 responses from transformer one for profile updation (deafult behaviour) and other for subscription', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination, + message: generateSimplifiedIdentifyPayload({ + context: { + traits: commonTraits, + }, + anonymousId, + userId, + sentAt, + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + userId: '', + method: 'PATCH', + endpoint: commonUserUpdateEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile', + attributes: commonOutputUserProps, + id: '01GW3PHVY0MTCDGS0A1612HARX', + }, + }, + }), + statusCode: 200, + }, + { + output: transformResultBuilder({ + method: 'POST', + userId: '', + endpoint: subscribeEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile-subscription-bulk-create-job', + attributes: commonOutputSubscriptionProps, + }, + }, + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-identify-test-2', + name: 'klaviyo', + description: 'Identify call for with flattenProperties enabled in destination config', + scenario: 'Business', + successCriteria: + 'The profile updation response should contain the flattened properties of the friend object', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: overrideDestination(destination, { flattenProperties: true }), + message: generateSimplifiedIdentifyPayload({ + sentAt, + userId, + context: { + traits: { + ...commonTraits, + friend: { + names: { + first: 'Alice', + last: 'Smith', + }, + age: 25, + }, + }, + }, + anonymousId, + originalTimestamp, + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + userId: '', + method: 'PATCH', + endpoint: commonUserUpdateEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile', + id: '01GW3PHVY0MTCDGS0A1612HARX', + attributes: { + ...commonOutputUserProps, + properties: { + ...commonOutputUserProps.properties, + 'friend.age': 25, + 'friend.names.first': 'Alice', + 'friend.names.last': 'Smith', + }, + }, + }, + }, + }), + statusCode: 200, + }, + { + output: transformResultBuilder({ + userId: '', + method: 'POST', + endpoint: subscribeEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile-subscription-bulk-create-job', + attributes: commonOutputSubscriptionProps, + }, + }, + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-identify-test-3', + name: 'klaviyo', + description: 'Negative Test Case for Profile updation call and subcribe user', + scenario: 'Business + Framework', + successCriteria: + 'Response should contain error message and status code should be 500, as we are getting a network error from klaviyo', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + publicApiKey: 'dummyPublicApiKey', + privateApiKey: 'dummyPrivateApiKeyforfailure', + }, + }, + message: generateSimplifiedIdentifyPayload({ + sentAt, + userId, + context: { + traits: { + ...commonTraits, + email: 'test3@rudderstack.com', + }, + }, + anonymousId, + originalTimestamp, + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + '{"message":"Failed to create user due to \\"\\"","destinationResponse":"\\"\\""}', + statTags: { + destType: 'KLAVIYO', + errorCategory: 'network', + errorType: 'retryable', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 500, + }, + ], + }, + }, + }, + { + id: 'klaviyo-identify-test-4', + name: 'klaviyo', + description: 'Profile create update without subscribing the user', + scenario: 'Business', + successCriteria: + 'Response should contain only profile update payload and status code should be 200 as subscribe is set to false in the payload', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination, + message: generateSimplifiedIdentifyPayload({ + sentAt, + userId, + context: { + traits: { + ...commonTraits, + properties: { ...commonTraits.properties, subscribe: false }, + }, + }, + anonymousId, + originalTimestamp, + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + method: 'PATCH', + endpoint: commonUserUpdateEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile', + attributes: commonOutputUserProps, + id: '01GW3PHVY0MTCDGS0A1612HARX', + }, + }, + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-identify-test-5', + name: 'klaviyo', + description: 'Identify call with enforceEmailAsPrimary enabled in destination config', + scenario: 'Business', + successCriteria: + 'Response should contain two payloads one for profile updation and other for subscription, response status code should be 200, for the profile updation payload there should be no external_id field in the payload as enforceEmailAsPrimary is set to true in the destination config and the userId should be mapped to _id field in the properties object', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: overrideDestination(destination, { enforceEmailAsPrimary: true }), + message: generateSimplifiedIdentifyPayload({ + sentAt, + userId, + context: { + traits: commonTraits, + }, + anonymousId, + originalTimestamp, + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + userId: '', + method: 'PATCH', + endpoint: commonUserUpdateEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile', + attributes: removeUndefinedAndNullValues({ + ...commonOutputUserProps, + properties: { + ...commonOutputUserProps.properties, + _id: userId, + }, + // remove external_id from the payload + external_id: undefined, + }), + id: '01GW3PHVY0MTCDGS0A1612HARX', + }, + }, + }), + statusCode: 200, + }, + { + output: transformResultBuilder({ + userId: '', + method: 'POST', + endpoint: subscribeEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile-subscription-bulk-create-job', + attributes: commonOutputSubscriptionProps, + }, + }, + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-identify-test-6', + name: 'klaviyo', + description: 'Identify call without user custom Properties', + scenario: 'Business', + successCriteria: + 'Response should contain two payloads one for profile updation and other for subscription, response status code should be 200, for the profile updation payload does not have any custom properties in the payload', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: destination, + message: generateSimplifiedIdentifyPayload({ + sentAt, + userId, + context: { + traits: removeUndefinedAndNullValues({ + ...commonTraits, + Flagged: undefined, + Residence: undefined, + }), + }, + anonymousId, + originalTimestamp, + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + userId: '', + method: 'PATCH', + endpoint: commonUserUpdateEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile', + attributes: removeUndefinedAndNullValues({ + ...commonOutputUserProps, + properties: undefined, + }), + id: '01GW3PHVY0MTCDGS0A1612HARX', + }, + }, + }), + statusCode: 200, + }, + { + output: transformResultBuilder({ + userId: '', + method: 'POST', + endpoint: subscribeEndpoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'profile-subscription-bulk-create-job', + attributes: commonOutputSubscriptionProps, + }, + }, + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-identify-test-7', + name: 'klaviyo', + description: 'Identify call without email and phone & enforceEmailAsPrimary enabled from UI', + scenario: 'Business', + successCriteria: + 'Response should contain error message and status code should be 400, as we are not sending email and phone in the payload and enforceEmailAsPrimary is enabled from UI', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: overrideDestination(destination, { enforceEmailAsPrimary: true }), + message: generateSimplifiedIdentifyPayload({ + sentAt, + userId, + context: { + traits: removeUndefinedAndNullValues({ + ...commonTraits, + email: undefined, + phone: undefined, + }), + }, + anonymousId, + originalTimestamp, + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'None of email and phone are present in the payload', + statTags: { + destType: 'KLAVIYO', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/klaviyo/processor/screenTestData.ts b/test/integrations/destinations/klaviyo/processor/screenTestData.ts new file mode 100644 index 0000000000..3779747a4e --- /dev/null +++ b/test/integrations/destinations/klaviyo/processor/screenTestData.ts @@ -0,0 +1,97 @@ +import { generateSimplifiedPageOrScreenPayload, transformResultBuilder } from '../../../testUtils'; + +const destination = { + Config: { + publicApiKey: 'dummyPublicApiKey', + privateApiKey: 'dummyPrivateApiKey', + }, +}; + +export const screenTestData = [ + { + id: 'klaviyo-screen-test-1', + name: 'klaviyo', + description: 'Screen event call with properties and contextual traits', + scenario: 'Business', + successCriteria: + 'Response should contain only event payload and status code should be 200, for the event payload should contain properties and contextual traits in the payload', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination, + message: generateSimplifiedPageOrScreenPayload( + { + event: 'TestEven001', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'sajal12', + context: { + traits: { + id: 'user@1', + age: '22', + email: 'test@rudderstack.com', + phone: '9112340375', + anonymousId: '9c6bd77ea9da3e68', + }, + }, + properties: { + PreviouslyVicePresident: true, + YearElected: 1801, + VicePresidents: ['Aaron Burr', 'George Clinton'], + }, + anonymousId: '9c6bd77ea9da3e68', + originalTimestamp: '2021-01-25T15:32:56.409Z', + }, + 'screen', + ), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + method: 'POST', + endpoint: 'https://a.klaviyo.com/api/events', + headers: { + Accept: 'application/json', + Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', + 'Content-Type': 'application/json', + revision: '2023-02-22', + }, + JSON: { + data: { + type: 'event', + attributes: { + metric: { + name: 'TestEven001', + }, + properties: { + PreviouslyVicePresident: true, + YearElected: 1801, + VicePresidents: ['Aaron Burr', 'George Clinton'], + }, + profile: { + $email: 'test@rudderstack.com', + $phone_number: '9112340375', + $id: 'sajal12', + age: '22', + }, + }, + }, + }, + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/klaviyo/processor/trackTestData.ts b/test/integrations/destinations/klaviyo/processor/trackTestData.ts new file mode 100644 index 0000000000..f3bbfb96b9 --- /dev/null +++ b/test/integrations/destinations/klaviyo/processor/trackTestData.ts @@ -0,0 +1,316 @@ +import { + generateSimplifiedTrackPayload, + generateTrackPayload, + overrideDestination, + transformResultBuilder, +} from '../../../testUtils'; + +const destination = { + Config: { + publicApiKey: 'dummyPublicApiKey', + privateApiKey: 'dummyPrivateApiKey', + }, +}; + +const commonTraits = { + id: 'user@1', + age: '22', + anonymousId: '9c6bd77ea9da3e68', +}; + +const commonProps = { + PreviouslVicePresident: true, + YearElected: 1801, + VicePresidents: ['AaronBurr', 'GeorgeClinton'], +}; + +const commonOutputHeaders = { + Accept: 'application/json', + Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', + 'Content-Type': 'application/json', + revision: '2023-02-22', +}; + +const eventEndPoint = 'https://a.klaviyo.com/api/events'; + +export const trackTestData = [ + { + id: 'klaviyo-track-test-1', + name: 'klaviyo', + description: 'Track event call with flatten properties enabled in destination config', + scenario: 'Business', + successCriteria: + 'Response should contain only event payload and status code should be 200, for the event payload should contain flattened properties in the payload', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: overrideDestination(destination, { flattenProperties: true }), + message: generateSimplifiedTrackPayload({ + type: 'track', + event: 'TestEven001', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'sajal12', + context: { + traits: { + ...commonTraits, + email: 'test@rudderstack.com', + phone: '9112340375', + plan_details: { + plan_type: 'gold', + duration: '3 months', + }, + }, + }, + properties: { + vicePresdentInfo: commonProps, + }, + anonymousId: '9c6bd77ea9da3e68', + originalTimestamp: '2021-01-25T15:32:56.409Z', + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + method: 'POST', + endpoint: eventEndPoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'event', + attributes: { + metric: { + name: 'TestEven001', + }, + properties: { + 'vicePresdentInfo.PreviouslVicePresident': true, + 'vicePresdentInfo.VicePresidents': ['AaronBurr', 'GeorgeClinton'], + 'vicePresdentInfo.YearElected': 1801, + }, + profile: { + $email: 'test@rudderstack.com', + $phone_number: '9112340375', + $id: 'sajal12', + age: '22', + 'plan_details.plan_type': 'gold', + 'plan_details.duration': '3 months', + }, + }, + }, + }, + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-track-test-2', + name: 'klaviyo', + description: 'Simple track event call', + scenario: 'Business', + successCriteria: + 'Response should contain only event payload and status code should be 200, for the event payload should contain contextual traits and properties in the payload', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination, + message: generateSimplifiedTrackPayload({ + type: 'track', + event: 'TestEven002', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'sajal12', + context: { + traits: { + ...commonTraits, + name: 'Test', + email: 'test@rudderstack.com', + phone: '9112340375', + description: 'Sample description', + }, + }, + properties: { + ...commonProps, + revenue: 3000, + }, + anonymousId: '9c6bd77ea9da3e68', + originalTimestamp: '2021-01-25T15:32:56.409Z', + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + method: 'POST', + endpoint: eventEndPoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'event', + attributes: { + metric: { + name: 'TestEven002', + }, + properties: commonProps, + profile: { + $email: 'test@rudderstack.com', + $phone_number: '9112340375', + $id: 'sajal12', + age: '22', + name: 'Test', + description: 'Sample description', + }, + value: 3000, + }, + }, + }, + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-track-test-3', + name: 'klaviyo', + description: 'Track event call, with make email or phone as primary identifier toggle on', + scenario: 'Business', + successCriteria: + 'Response should contain only event payload and status code should be 200, for the event payload should contain contextual traits and properties in the payload, and email should be mapped to $email and userId should be mapped to _id', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: overrideDestination(destination, { enforceEmailAsPrimary: true }), + message: generateSimplifiedTrackPayload({ + type: 'track', + event: 'TestEven001', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'sajal12', + context: { + traits: { + ...commonTraits, + email: 'test@rudderstack.com', + phone: '9112340375', + }, + }, + properties: commonProps, + anonymousId: '9c6bd77ea9da3e68', + originalTimestamp: '2021-01-25T15:32:56.409Z', + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: transformResultBuilder({ + method: 'POST', + endpoint: eventEndPoint, + headers: commonOutputHeaders, + JSON: { + data: { + type: 'event', + attributes: { + metric: { + name: 'TestEven001', + }, + properties: commonProps, + profile: { + $email: 'test@rudderstack.com', + $phone_number: '9112340375', + age: '22', + _id: 'sajal12', + }, + }, + }, + }, + userId: '', + }), + statusCode: 200, + }, + ], + }, + }, + }, + { + id: 'klaviyo-track-test-4', + name: 'klaviyo', + description: + 'Track event call, without email and phone & with (make email or phone as primary identifier) toggle on', + scenario: 'Business', + successCriteria: + 'Response should contain error message and status code should be 400, as we are not sending email and phone in the payload and enforceEmailAsPrimary is enabled from UI', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: overrideDestination(destination, { enforceEmailAsPrimary: true }), + message: generateSimplifiedTrackPayload({ + type: 'track', + event: 'TestEven001', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'sajal12', + context: { + traits: commonTraits, + }, + properties: commonProps, + anonymousId: '9c6bd77ea9da3e68', + originalTimestamp: '2021-01-25T15:32:56.409Z', + }), + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'None of email and phone are present in the payload', + statTags: { + destType: 'KLAVIYO', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/klaviyo/processor/validationTestData.ts b/test/integrations/destinations/klaviyo/processor/validationTestData.ts new file mode 100644 index 0000000000..59556cfe5f --- /dev/null +++ b/test/integrations/destinations/klaviyo/processor/validationTestData.ts @@ -0,0 +1,62 @@ +export const validationTestData = [ + { + id: 'klaviyo-validation-test-1', + name: 'klaviyo', + description: '[Error]: Check for unsupported message type', + scenario: 'Framework', + successCriteria: + 'Response should contain error message and status code should be 400, as we are sending a message type which is not supported by Klaviyo destination and the error message should be Event type random is not supported', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + publicApiKey: 'dummyPublicApiKey', + privateApiKey: 'dummyPrivateApiKey', + }, + }, + message: { + userId: 'user123', + type: 'random', + groupId: 'XUepkK', + traits: { + subscribe: true, + }, + context: { + traits: { + email: 'test@rudderstack.com', + phone: '+12 345 678 900', + consent: 'email', + }, + }, + timestamp: '2020-01-21T00:21:34.208Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event type random is not supported', + statTags: { + destType: 'KLAVIYO', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/klaviyo/router/data.ts b/test/integrations/destinations/klaviyo/router/data.ts new file mode 100644 index 0000000000..818089a722 --- /dev/null +++ b/test/integrations/destinations/klaviyo/router/data.ts @@ -0,0 +1,364 @@ +export const data = [ + { + id: 'klaviyo-router-test-1', + name: 'klaviyo', + description: 'Basic Router Test to test multiple payloads', + scenario: 'Framework', + successCriteria: 'All the subscription events should be batched', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'test', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: { + firstName: 'Test', + lastName: 'Rudderlabs', + email: 'test@rudderstack.com', + phone: '+12 345 578 900', + userId: 'Testc', + title: 'Developer', + organization: 'Rudder', + city: 'Tokyo', + region: 'Kanto', + country: 'JP', + zip: '100-0001', + Flagged: false, + Residence: 'Shibuya', + properties: { consent: ['email', 'sms'] }, + }, + 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', + integrations: { All: true }, + originalTimestamp: '2021-01-03T17:02:53.193Z', + }, + }, + { + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'test', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: { + firstName: 'Test', + lastName: 'Rudderlabs', + email: 'test@rudderstack.com', + phone: '+12 345 578 900', + userId: 'test', + title: 'Developer', + organization: 'Rudder', + city: 'Tokyo', + region: 'Kanto', + country: 'JP', + zip: '100-0001', + Flagged: false, + Residence: 'Shibuya', + properties: { listId: 'XUepkK', subscribe: true, consent: ['email', 'sms'] }, + }, + 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', + integrations: { All: true }, + originalTimestamp: '2021-01-03T17:02:53.193Z', + }, + }, + { + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + userId: 'user123', + type: 'group', + groupId: 'XUepkK', + traits: { subscribe: true }, + context: { + traits: { + email: 'test@rudderstack.com', + phone: '+12 345 678 900', + consent: ['email'], + }, + ip: '14.5.67.21', + library: { name: 'http' }, + }, + timestamp: '2020-01-21T00:21:34.208Z', + }, + }, + { + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + metadata: { jobId: 4, userId: 'u1' }, + message: { + userId: 'user123', + type: 'random', + groupId: 'XUepkK', + traits: { subscribe: true }, + context: { + traits: { + email: 'test@rudderstack.com', + phone: '+12 345 678 900', + consent: 'email', + }, + ip: '14.5.67.21', + library: { name: 'http' }, + }, + timestamp: '2020-01-21T00:21:34.208Z', + }, + }, + { + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + metadata: { jobId: 5, userId: 'u1' }, + message: { + userId: 'user123', + type: 'group', + groupId: '', + traits: { subscribe: true }, + context: { + traits: { + email: 'test@rudderstack.com', + phone: '+12 345 678 900', + consent: 'email', + }, + ip: '14.5.67.21', + library: { name: 'http' }, + }, + timestamp: '2020-01-21T00:21:34.208Z', + }, + }, + ], + destType: 'klaviyo', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs', + headers: { + Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json', + revision: '2023-02-22', + }, + params: {}, + body: { + JSON: { + data: { + type: 'profile-subscription-bulk-create-job', + attributes: { + list_id: 'XUepkK', + subscriptions: [ + { email: 'test@rudderstack.com', phone_number: '+12 345 678 900' }, + { + email: 'test@rudderstack.com', + phone_number: '+12 345 578 900', + channels: { email: ['MARKETING'], sms: ['MARKETING'] }, + }, + ], + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'PATCH', + endpoint: 'https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX', + headers: { + Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json', + revision: '2023-02-22', + }, + params: {}, + body: { + JSON: { + data: { + type: 'profile', + attributes: { + external_id: 'test', + email: 'test@rudderstack.com', + first_name: 'Test', + last_name: 'Rudderlabs', + phone_number: '+12 345 578 900', + title: 'Developer', + organization: 'Rudder', + location: { + city: 'Tokyo', + region: 'Kanto', + country: 'JP', + zip: '100-0001', + }, + properties: { Flagged: false, Residence: 'Shibuya' }, + }, + id: '01GW3PHVY0MTCDGS0A1612HARX', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { jobId: 3, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PATCH', + endpoint: 'https://a.klaviyo.com/api/profiles/01GW3PHVY0MTCDGS0A1612HARX', + headers: { + Authorization: 'Klaviyo-API-Key dummyPrivateApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json', + revision: '2023-02-22', + }, + params: {}, + body: { + JSON: { + data: { + type: 'profile', + attributes: { + external_id: 'test', + email: 'test@rudderstack.com', + first_name: 'Test', + last_name: 'Rudderlabs', + phone_number: '+12 345 578 900', + title: 'Developer', + organization: 'Rudder', + location: { + city: 'Tokyo', + region: 'Kanto', + country: 'JP', + zip: '100-0001', + }, + properties: { Flagged: false, Residence: 'Shibuya' }, + }, + id: '01GW3PHVY0MTCDGS0A1612HARX', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + }, + { + metadata: [{ jobId: 4, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'Event type random is not supported', + statTags: { + destType: 'KLAVIYO', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + }, + { + metadata: [{ jobId: 5, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'groupId is a required field for group events', + statTags: { + destType: 'KLAVIYO', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + destination: { + Config: { publicApiKey: 'dummyPublicApiKey', privateApiKey: 'dummyPrivateApiKey' }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/kustomer/network.ts b/test/integrations/destinations/kustomer/network.ts new file mode 100644 index 0000000000..527b47ce2f --- /dev/null +++ b/test/integrations/destinations/kustomer/network.ts @@ -0,0 +1,423 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.kustomerapp.com/v1/customers/externalId=annodD', + method: 'GET', + }, + httpRes: { + data: { + data: { + type: 'customer', + id: '58210c3db0f09110006b7953', + attributes: { + name: 'AnnoD', + displayName: 'AnnoD', + displayColor: 'yellow', + displayIcon: 'flower', + externalId: 'annodD', + externalIds: [ + { + externalId: 'annodD', + verified: true, + id: null, + }, + ], + sharedExternalIds: [], + signedUpAt: null, + avatarUrl: null, + username: null, + emails: [ + { + email: 'annod@kustomer.com', + verified: true, + type: 'home', + id: null, + }, + ], + sharedEmails: [ + { + email: 'annod@kustomer.com', + verified: false, + type: 'home', + id: null, + }, + ], + phones: [], + sharedPhones: [], + socials: [], + sharedSocials: [], + urls: [], + locations: [], + activeUsers: [], + watchers: [], + recentLocation: { + updatedAt: '2016-11-07T23:22:01.746Z', + }, + locale: null, + timeZone: null, + birthdayAt: null, + gender: null, + presence: 'offline', + createdAt: '2016-11-07T23:20:29.080Z', + updatedAt: '2016-11-09T04:47:07.036Z', + modifiedAt: '2016-11-09T04:47:07.036Z', + lastSeenAt: '2016-11-07T23:23:51.582Z', + lastActivityAt: '2016-11-09T04:47:07.036Z', + lastCustomerActivityAt: '2016-11-07T23:23:51.582Z', + lastMessageIn: { + sentAt: '2016-11-07T23:22:02.281Z', + sentiment: null, + }, + lastConversation: { + id: '58210c99b0f09110006b7969', + sentiment: { + confidence: 0.649023, + polarity: 1, + }, + tags: [], + }, + conversationCounts: { + all: 3, + snoozed: 0, + open: 2, + done: 1, + }, + preview: { + previewAt: '2016-11-07T23:23:26.039Z', + type: 'message_out', + text: 'dfsd fsdsfdsfdsf', + subject: 'Hi, do you guys have an XXL hoodie', + }, + tags: [], + sentiment: { + polarity: 1, + confidence: 0.649023, + }, + progressiveStatus: 'open', + verified: true, + rev: 37, + }, + relationships: { + org: { + links: { + self: '/v1/orgs/57f29863a1dbf61100e6aa92', + }, + data: { + type: 'org', + id: '57f29863a1dbf61100e6aa92', + }, + }, + messages: { + links: { + self: '/v1/customers/58210c3db0f09110006b7953/messages', + }, + }, + modifiedBy: { + links: { + self: '/v1/users/58190b991f2932100010d683', + }, + data: { + type: 'user', + id: '58190b991f2932100010d683', + }, + }, + }, + links: { + self: '/v1/customers/58210c3db0f09110006b7953', + }, + }, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.kustomerapp.com/v1/customers/externalId=58210c3db0f09110006b7953', + method: 'GET', + }, + httpRes: { + data: { + data: { + type: 'customer', + id: '58210c3db0f09110006b7953', + attributes: { + name: 'AnnoD', + displayName: 'AnnoD', + displayColor: 'yellow', + displayIcon: 'flower', + externalId: 'annodD', + externalIds: [ + { + externalId: 'annodD', + verified: true, + id: null, + }, + ], + sharedExternalIds: [], + signedUpAt: null, + avatarUrl: null, + username: null, + emails: [ + { + email: 'annod@kustomer.com', + verified: true, + type: 'home', + id: null, + }, + ], + sharedEmails: [ + { + email: 'annod@kustomer.com', + verified: false, + type: 'home', + id: null, + }, + ], + phones: [], + sharedPhones: [], + socials: [], + sharedSocials: [], + urls: [], + locations: [], + activeUsers: [], + watchers: [], + recentLocation: { + updatedAt: '2016-11-07T23:22:01.746Z', + }, + locale: null, + timeZone: null, + birthdayAt: null, + gender: null, + presence: 'offline', + createdAt: '2016-11-07T23:20:29.080Z', + updatedAt: '2016-11-09T04:47:07.036Z', + modifiedAt: '2016-11-09T04:47:07.036Z', + lastSeenAt: '2016-11-07T23:23:51.582Z', + lastActivityAt: '2016-11-09T04:47:07.036Z', + lastCustomerActivityAt: '2016-11-07T23:23:51.582Z', + lastMessageIn: { + sentAt: '2016-11-07T23:22:02.281Z', + sentiment: null, + }, + lastConversation: { + id: '58210c99b0f09110006b7969', + sentiment: { + confidence: 0.649023, + polarity: 1, + }, + tags: [], + }, + conversationCounts: { + all: 3, + snoozed: 0, + open: 2, + done: 1, + }, + preview: { + previewAt: '2016-11-07T23:23:26.039Z', + type: 'message_out', + text: 'dfsd fsdsfdsfdsf', + subject: 'Hi, do you guys have an XXL hoodie', + }, + tags: [], + sentiment: { + polarity: 1, + confidence: 0.649023, + }, + progressiveStatus: 'open', + verified: true, + rev: 37, + }, + relationships: { + org: { + links: { + self: '/v1/orgs/57f29863a1dbf61100e6aa92', + }, + data: { + type: 'org', + id: '57f29863a1dbf61100e6aa92', + }, + }, + messages: { + links: { + self: '/v1/customers/58210c3db0f09110006b7953/messages', + }, + }, + modifiedBy: { + links: { + self: '/v1/users/58190b991f2932100010d683', + }, + data: { + type: 'user', + id: '58190b991f2932100010d683', + }, + }, + }, + links: { + self: '/v1/customers/58210c3db0f09110006b7953', + }, + }, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.prod2.kustomerapp.com/v1/customers/externalId=58210c3db0f09110006b7953', + method: 'GET', + }, + httpRes: { + data: { + data: { + type: 'customer', + id: '58210c3db0f09110006b7953', + attributes: { + name: 'AnnoD', + displayName: 'AnnoD', + displayColor: 'yellow', + displayIcon: 'flower', + externalId: 'annodD', + externalIds: [ + { + externalId: 'annodD', + verified: true, + id: null, + }, + ], + sharedExternalIds: [], + signedUpAt: null, + avatarUrl: null, + username: null, + emails: [ + { + email: 'annod@kustomer.com', + verified: true, + type: 'home', + id: null, + }, + ], + sharedEmails: [ + { + email: 'annod@kustomer.com', + verified: false, + type: 'home', + id: null, + }, + ], + phones: [], + sharedPhones: [], + socials: [], + sharedSocials: [], + urls: [], + locations: [], + activeUsers: [], + watchers: [], + recentLocation: { + updatedAt: '2016-11-07T23:22:01.746Z', + }, + locale: null, + timeZone: null, + birthdayAt: null, + gender: null, + presence: 'offline', + createdAt: '2016-11-07T23:20:29.080Z', + updatedAt: '2016-11-09T04:47:07.036Z', + modifiedAt: '2016-11-09T04:47:07.036Z', + lastSeenAt: '2016-11-07T23:23:51.582Z', + lastActivityAt: '2016-11-09T04:47:07.036Z', + lastCustomerActivityAt: '2016-11-07T23:23:51.582Z', + lastMessageIn: { + sentAt: '2016-11-07T23:22:02.281Z', + sentiment: null, + }, + lastConversation: { + id: '58210c99b0f09110006b7969', + sentiment: { + confidence: 0.649023, + polarity: 1, + }, + tags: [], + }, + conversationCounts: { + all: 3, + snoozed: 0, + open: 2, + done: 1, + }, + preview: { + previewAt: '2016-11-07T23:23:26.039Z', + type: 'message_out', + text: 'dfsd fsdsfdsfdsf', + subject: 'Hi, do you guys have an XXL hoodie', + }, + tags: [], + sentiment: { + polarity: 1, + confidence: 0.649023, + }, + progressiveStatus: 'open', + verified: true, + rev: 37, + }, + relationships: { + org: { + links: { + self: '/v1/orgs/57f29863a1dbf61100e6aa92', + }, + data: { + type: 'org', + id: '57f29863a1dbf61100e6aa92', + }, + }, + messages: { + links: { + self: '/v1/customers/58210c3db0f09110006b7953/messages', + }, + }, + modifiedBy: { + links: { + self: '/v1/users/58190b991f2932100010d683', + }, + data: { + type: 'user', + id: '58190b991f2932100010d683', + }, + }, + }, + links: { + self: '/v1/customers/58210c3db0f09110006b7953', + }, + }, + }, + status: 204, + }, + }, + { + httpReq: { + url: 'https://api.kustomerapp.com/v1/customers/externalId=Testc', + method: 'GET', + }, + httpRes: { error: 'Request failed', status: 404 }, + }, + { + httpReq: { + url: 'https://api.kustomerapp.com/v1/customers/email=test@rudderstack.com', + method: 'GET', + }, + httpRes: { error: 'Request failed', status: 404 }, + }, + { + httpReq: { + url: 'https://api.kustomerapp.com/v1/customers/externalId=97c46c81-3140-456d-b2a9-690d70aaca35', + method: 'GET', + }, + httpRes: { error: 'Request failed', status: 404 }, + }, + { + httpReq: { + url: 'https://api.kustomerapp.com/v1/customers/externalId=testc', + method: 'GET', + }, + httpRes: { error: 'Request failed', status: 404 }, + }, +]; diff --git a/test/integrations/destinations/kustomer/processor/data.ts b/test/integrations/destinations/kustomer/processor/data.ts new file mode 100644 index 0000000000..ba8407baaf --- /dev/null +++ b/test/integrations/destinations/kustomer/processor/data.ts @@ -0,0 +1,1901 @@ +export const data = [ + { + name: 'kustomer', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'Testc', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: { + name: 'Test Rudderlabs', + email: 'test@rudderstack.com', + phone: '+12345578900', + birthday: '2005-01-01T23:28:56.782Z', + userId: 'Testc', + address: { + street: '24 Dovers Lane', + city: 'Miami', + state: 'Florida', + postalCode: '1890001', + }, + userName: 'Testc47', + company: 'Rudderstack', + createdAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatar: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + website: 'www.mattertoast873.com', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@Testc', + url: 'http://twitter.com/Testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'Testc', + url: 'http://facebook.com/Testc', + }, + ], + }, + 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', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-03T17:02:53.193Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/customers', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + name: 'Test Rudderlabs', + externalId: 'Testc', + username: 'Testc47', + company: 'Rudderstack', + signedUpAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatarUrl: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + locale: 'en-US', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@Testc', + url: 'http://twitter.com/Testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'Testc', + url: 'http://facebook.com/Testc', + }, + ], + birthdayAt: '2005-01-01T23:28:56.782Z', + emails: [ + { + type: 'home', + email: 'test@rudderstack.com', + }, + ], + phones: [ + { + type: 'home', + phone: '+12345578900', + }, + ], + urls: [ + { + url: 'www.mattertoast873.com', + }, + ], + locations: [ + { + type: 'home', + address: '24 Dovers Lane Miami Florida 1890001', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + userId: '58210c3db0f09110006b7953', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: { + name: 'Ano Domeni', + phone: '+12345578000', + birthday: '2005-01-01T23:28:56.782Z', + }, + 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', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-03T17:02:53.193Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: + 'https://api.kustomerapp.com/v1/customers/58210c3db0f09110006b7953?replace=false', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + name: 'Ano Domeni', + externalId: '58210c3db0f09110006b7953', + locale: 'en-US', + birthdayAt: '2005-01-01T23:28:56.782Z', + phones: [ + { + type: 'home', + phone: '+12345578000', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'screen', + event: 'Test-Event-Screen', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'Testc', + channel: 'mobile', + context: { + os: { + name: 'Android', + version: '10', + }, + app: { + name: 'KlaviyoTest', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '9c6bd77ea9da3e68', + name: 'raphaelin', + type: 'android', + model: 'Redmi K20 Pro', + manufacturer: 'Xiaomi', + }, + locale: 'en-IN', + screen: { + width: 1080, + height: 2210, + density: 440, + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.2', + }, + network: { + wifi: true, + carrier: 'airtel', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)', + }, + rudderId: 'b7b24f86-f7bf-46d8-b2b4-ccafc080239c', + messageId: '1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce', + properties: { + hasAccount: 'true', + YearSelectedNum: 1801, + originalServing: '2021-01-25T15:32:56.409Z', + }, + anonymousId: '9c6bd77ea9da3e68', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-25T15:32:56.409Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { + externalId: 'Testc', + }, + event: { + name: 'Screen-Viewed-Test-Event-Screen', + meta: { + hasAccount: 'true', + YearSelectedNum: 1801, + originalServing: '2021-01-25T15:32:56.409Z', + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + name: 'Cart-Viewed', + type: 'page', + sentAt: '2021-01-03T17:02:53.197Z', + userId: 'user@doe', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + referrer: 'morkey', + }, + locale: 'en-US', + screen: { + density: 2, + }, + traits: { + userId: 'userid', + profession: 'Student', + anonymousId: 'd80b66d5-b33d-412d-866f-r4fft5841af', + }, + 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', + }, + category: 'Cart', + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '15129730-eb00-4db7-8db2-799566ccb2ef', + properties: { + url: 'http://morkey.in', + name: 'Cart Viewed', + path: '/cart', + title: 'miphone', + search: 'MI', + category: 'Cart', + referrer: 'morkey', + domain: 'morkey.com', + }, + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-03T17:02:53.195Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { + externalId: 'user@doe', + }, + event: { + name: 'Web-Page-Viewed-Cart-Viewed', + meta: { + url: 'http://morkey.in', + name: 'Cart Viewed', + path: '/cart', + title: 'miphone', + search: 'MI', + category: 'Cart', + referrer: 'morkey', + domain: 'morkey.com', + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'page', + sentAt: '2021-01-03T17:02:53.197Z', + userId: 'user@doe', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + referrer: 'morkey', + }, + locale: 'en-US', + screen: { + density: 2, + }, + traits: { + userId: 'userid', + profession: 'Student', + anonymousId: 'd80b66d5-b33d-412d-866f-r4fft5841af', + }, + 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', + }, + category: 'Cart', + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '15129730-eb00-4db7-8db2-799566ccb2ef', + properties: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + category: 'Cart', + referrer: 'morkey', + domain: 'morkey.com', + kustomerTrackingId: '829131sjad', + kustomerSessionId: 'hsad522', + }, + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-03T17:02:53.195Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { + externalId: 'user@doe', + }, + event: { + name: 'Web-Page-Viewed', + sessionId: 'hsad522', + trackingId: '829131sjad', + meta: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + category: 'Cart', + referrer: 'morkey', + domain: 'morkey.com', + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'track', + event: 'Tracking-Weekender', + sentAt: '2021-01-03T17:02:53.197Z', + userId: 'user@doe', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + referrer: 'morkey', + }, + 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: '15129730-eb00-4db7-8db2-799566ccb2ef', + properties: { + YearServicedNum: 211, + region: 'strapis', + kustomerTrackingId: 'sahetwiac', + kustomerSessionId: '63nsa22', + }, + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + locale: 'en-US', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-03T17:02:53.195Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { + externalId: 'user@doe', + }, + event: { + name: 'Tracking-Weekender', + sessionId: '63nsa22', + trackingId: 'sahetwiac', + meta: { + YearServicedNum: 211, + region: 'strapis', + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'track', + event: 'Tracking-Weekender2', + sentAt: '2021-01-03T17:02:53.197Z', + userId: 'user@doe', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + referrer: 'morkey', + }, + 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: '15129730-eb00-4db7-8db2-799566ccb2ef', + properties: { + YearServicedNum: 211, + 'reg_8-821x': false, + kustomer_tracking_id: 'sahetwiac', + kustomer_session_id: '63nsa22', + }, + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + locale: 'en-US', + originalTimestamp: '2021-01-03T17:02:53.195Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + FORM: {}, + JSON: { + event: { + meta: { + YearServicedNum: 211, + 'reg_8-821x': false, + }, + name: 'Tracking-Weekender2', + sessionId: '63nsa22', + trackingId: 'sahetwiac', + }, + identity: { + externalId: 'user@doe', + }, + }, + XML: {}, + JSON_ARRAY: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + genericPage: true, + }, + }, + message: { + type: 'page', + name: 'Unfinished page', + sentAt: '2021-01-03T17:02:53.197Z', + userId: 'user@doe', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + referrer: 'morkey', + }, + 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: '15129730-eb00-4db7-8db2-799566ccb2ef', + properties: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + category: 'Cart', + referrer: 'morkey', + domain: 'morkey.com', + }, + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + locale: 'en-US', + originalTimestamp: '2021-01-03T17:02:53.195Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { + externalId: 'user@doe', + }, + event: { + name: 'Web-Page-Viewed', + meta: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + category: 'Cart', + referrer: 'morkey', + domain: 'morkey.com', + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + genericScreen: true, + }, + }, + message: { + type: 'screen', + event: 'Test-Event-Screen', + sentAt: '2021-01-25T16:12:02.048Z', + userId: 'Testc', + channel: 'mobile', + context: { + os: { + name: 'Android', + version: '10', + }, + app: { + name: 'KlaviyoTest', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '9c6bd77ea9da3e68', + name: 'raphaelin', + type: 'android', + model: 'Redmi K20 Pro', + manufacturer: 'Xiaomi', + }, + locale: 'en-IN', + screen: { + width: 1080, + height: 2210, + density: 440, + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.2', + }, + network: { + wifi: true, + carrier: 'airtel', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)', + }, + rudderId: 'b7b24f86-f7bf-46d8-b2b4-ccafc080239c', + messageId: '1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce', + properties: { + hasAccount: 'true', + YearSelectedNum: 1801, + originalServing: '2021-01-25T15:32:56.409Z', + }, + anonymousId: '9c6bd77ea9da3e68', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-25T15:32:56.409Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { + externalId: 'Testc', + }, + event: { + name: 'Screen-Viewed', + meta: { + hasAccount: 'true', + YearSelectedNum: 1801, + originalServing: '2021-01-25T15:32:56.409Z', + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'Testc', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: { + firstName: 'Test', + lastName: 'Rudderlabs', + email: 'test@rudderstack.com', + phone: '+12345578900', + birthday: '2005-01-01T23:28:56.782Z', + userId: 'Testc', + address: { + street: '24 Dovers Lane', + city: 'Miami', + state: 'Florida', + postalCode: '1890001', + }, + userName: 'Testc47', + company: 'Rudderstack', + createdAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatar: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + website: 'www.mattertoast873.com', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@Testc', + url: 'http://twitter.com/Testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'Testc', + url: 'http://facebook.com/Testc', + }, + ], + }, + 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', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-03T17:02:53.193Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/customers', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + name: 'Test Rudderlabs', + externalId: 'Testc', + username: 'Testc47', + company: 'Rudderstack', + signedUpAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatarUrl: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + locale: 'en-US', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@Testc', + url: 'http://twitter.com/Testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'Testc', + url: 'http://facebook.com/Testc', + }, + ], + birthdayAt: '2005-01-01T23:28:56.782Z', + emails: [ + { + type: 'home', + email: 'test@rudderstack.com', + }, + ], + phones: [ + { + type: 'home', + phone: '+12345578900', + }, + ], + urls: [ + { + url: 'www.mattertoast873.com', + }, + ], + locations: [ + { + type: 'home', + address: '24 Dovers Lane Miami Florida 1890001', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'Testc', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: { + firstName: 'Test', + lastName: 'Rudderlabs', + emails: [ + { + type: 'home', + email: 'test@rudderstack.com', + }, + ], + phones: [ + { + type: 'home', + phone: '+12345578900', + }, + ], + birthday: '2005-01-01T23:28:56.782Z', + userId: 'Testc', + address: 'test address string', + userName: 'Testc47', + company: 'Rudderstack', + createdAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatar: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + website: 'www.mattertoast873.com', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@Testc', + url: 'http://twitter.com/Testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'Testc', + url: 'http://facebook.com/Testc', + }, + ], + }, + 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', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-03T17:02:53.193Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/customers', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + name: 'Test Rudderlabs', + externalId: 'Testc', + username: 'Testc47', + company: 'Rudderstack', + signedUpAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatarUrl: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + locale: 'en-US', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@Testc', + url: 'http://twitter.com/Testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'Testc', + url: 'http://facebook.com/Testc', + }, + ], + birthdayAt: '2005-01-01T23:28:56.782Z', + emails: [ + { + type: 'home', + email: 'test@rudderstack.com', + }, + ], + phones: [ + { + type: 'home', + phone: '+12345578900', + }, + ], + urls: [ + { + url: 'www.mattertoast873.com', + }, + ], + locations: [ + { + type: 'home', + address: 'test address string', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'Testc', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: { + firstName: 'Test', + lastName: 'Rudderlabs', + emails: [ + { + type: 'home', + email: 'test@rudderstack.com', + }, + ], + phones: [ + { + type: 'home', + phone: '+12345578900', + }, + ], + birthday: '2005-01-01T23:28:56.782Z', + userId: 'Testc', + address: 'test address string', + userName: 'Testc47', + company: 'Rudderstack', + createdAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatar: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + website: 'www.mattertoast873.com', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@Testc', + url: 'http://twitter.com/Testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'Testc', + url: 'http://facebook.com/Testc', + }, + ], + }, + 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', + externalId: [ + { + type: 'kustomerId', + id: 'abcd1234', + }, + ], + }, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + originalTimestamp: '2021-01-03T17:02:53.193Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.kustomerapp.com/v1/customers/abcd1234?replace=false', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + name: 'Test Rudderlabs', + externalId: 'Testc', + username: 'Testc47', + company: 'Rudderstack', + signedUpAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatarUrl: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + locale: 'en-US', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@Testc', + url: 'http://twitter.com/Testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'Testc', + url: 'http://facebook.com/Testc', + }, + ], + birthdayAt: '2005-01-01T23:28:56.782Z', + emails: [ + { + type: 'home', + email: 'test@rudderstack.com', + }, + ], + phones: [ + { + type: 'home', + phone: '+12345578900', + }, + ], + urls: [ + { + url: 'www.mattertoast873.com', + }, + ], + locations: [ + { + type: 'home', + address: 'test address string', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + genericScreen: true, + }, + }, + message: { + type: 'screen', + event: 'Test-Event-Screen', + userId: 'utsabc', + channel: 'mobile', + context: { + os: { + name: 'Android', + version: '10', + }, + app: { + name: 'KlaviyoTest', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '9c6bd77ea9da3e68', + name: 'raphaelin', + type: 'android', + model: 'Redmi K20 Pro', + manufacturer: 'Xiaomi', + }, + locale: 'en-IN', + screen: { + width: 1080, + height: 2210, + density: 440, + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.2', + }, + network: { + wifi: true, + carrier: 'airtel', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)', + sessionId: 'hsad522', + }, + rudderId: 'b7b24f86-f7bf-46d8-b2b4-ccafc080239c', + messageId: '1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce', + properties: { + hasAccount: 'true', + YearSelectedNum: 1801, + }, + anonymousId: '9c6bd77ea9da3e68', + integrations: { + All: true, + }, + originalTimestamp: '2023-01-10T15:32:56.409Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { + externalId: 'utsabc', + }, + event: { + name: 'Screen-Viewed', + sessionId: 'hsad522', + meta: { + hasAccount: 'true', + YearSelectedNum: 1801, + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'kustomer', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + baseEndpoint: 'https://api.prod2.kustomerapp.com', + genericScreen: true, + }, + }, + message: { + type: 'screen', + event: 'Test-Event-Screen', + userId: 'Testc', + channel: 'mobile', + context: { + os: { + name: 'Android', + version: '10', + }, + app: { + name: 'KlaviyoTest', + build: '1', + version: '1.0', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + }, + device: { + id: '9c6bd77ea9da3e68', + name: 'raphaelin', + type: 'android', + model: 'Redmi K20 Pro', + manufacturer: 'Xiaomi', + }, + locale: 'en-IN', + screen: { + width: 1080, + height: 2210, + density: 440, + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.2', + }, + network: { + wifi: true, + carrier: 'airtel', + cellular: true, + bluetooth: false, + }, + timezone: 'Asia/Kolkata', + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 10; Redmi K20 Pro MIUI/V12.0.4.0.QFKINXM)', + sessionId: 'hsad522', + }, + rudderId: 'b7b24f86-f7bf-46d8-b2b4-ccafc080239c', + messageId: '1611588776408-ee5a3212-fbf9-4cbb-bbad-3ed0f7c6a2ce', + properties: { + hasAccount: 'true', + YearSelectedNum: 1801, + }, + anonymousId: '9c6bd77ea9da3e68', + integrations: { + All: true, + }, + originalTimestamp: '2023-01-10T15:32:56.409Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.prod2.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { + externalId: 'Testc', + }, + event: { + name: 'Screen-Viewed', + sessionId: 'hsad522', + meta: { + hasAccount: 'true', + YearSelectedNum: 1801, + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/kustomer/router/data.ts b/test/integrations/destinations/kustomer/router/data.ts new file mode 100644 index 0000000000..06f6243cf2 --- /dev/null +++ b/test/integrations/destinations/kustomer/router/data.ts @@ -0,0 +1,330 @@ +export const data = [ + { + name: 'kustomer', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'testc', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: { + name: 'test Rudderlabs', + email: 'test@rudderstack.com', + phone: '+12345578900', + birthday: '2005-01-01T23:28:56.782Z', + userId: 'testc', + address: { + street: '24 Dovers Lane', + city: 'Miami', + state: 'Florida', + postalCode: '1890001', + }, + userName: 'testc47', + company: 'Rudderstack', + createdAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatar: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + website: 'www.mattertoast873.com', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@testc', + url: 'http://twitter.com/testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'testc', + url: 'http://facebook.com/testc', + }, + ], + }, + 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', + integrations: { All: true }, + originalTimestamp: '2021-01-03T17:02:53.193Z', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { apiKey: 'dummyApiKey', genericPage: false, genericScreen: false }, + }, + }, + { + message: { + type: 'track', + event: 'Tracking-Weekender', + sentAt: '2021-01-03T17:02:53.197Z', + userId: 'user@doe', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + referrer: 'morkey', + }, + 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: '15129730-eb00-4db7-8db2-799566ccb2ef', + properties: { + YearServicedNum: 211, + region: 'strapis', + kustomerTrackingId: 'sahetwiac', + kustomerSessionId: '63nsa22', + }, + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + locale: 'en-US', + integrations: { All: true }, + originalTimestamp: '2021-01-03T17:02:53.195Z', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { + Config: { apiKey: 'dummyApiKey', genericPage: false, genericScreen: false }, + }, + }, + { + message: { + type: 'track', + event: 'Tracking-Weekender', + sentAt: '2021-01-03T17:02:53.197Z', + userId: 'user@doe', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://morkey.in', + path: '/cart', + title: 'miphone', + search: 'MI', + referrer: 'morkey', + }, + 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: '15129730-eb00-4db7-8db2-799566ccb2ef', + properties: { + YearServicedNum: 211, + region: 'strapis', + kustomerTrackingId: 'sahetwiac', + kustomerSessionId: '63nsa22', + }, + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + locale: 'en-US', + integrations: { All: true }, + originalTimestamp: '2021-01-03T17:02:53.195Z', + }, + metadata: { jobId: 3, userId: 'u1' }, + destination: { + Config: { + baseEndpoint: 'https://api.prod2.kustomerapp.com', + apiKey: 'dummyApiKey', + genericPage: false, + genericScreen: false, + }, + }, + }, + ], + destType: 'kustomer', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/customers', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + name: 'test Rudderlabs', + externalId: 'testc', + username: 'testc47', + company: 'Rudderstack', + signedUpAt: '2015-04-17T12:37:42.146Z', + lastActivityAt: '2016-04-17T12:37:42.146Z', + lastCustomerActivityAt: '2017-04-17T12:37:42.146Z', + lastSeenAt: '2017-04-17T12:37:42.146Z', + avatarUrl: 'https://homepages.cae.wisc.edu/~ece533/images/boat.png', + gender: 'm', + tags: ['happy', 'satisfied'], + locale: 'en-US', + socials: [ + { + verified: true, + userid: '100', + type: 'twitter', + username: '@testc', + url: 'http://twitter.com/testc', + }, + { + verified: false, + userid: '200', + type: 'facebook', + username: 'testc', + url: 'http://facebook.com/testc', + }, + ], + birthdayAt: '2005-01-01T23:28:56.782Z', + emails: [{ type: 'home', email: 'test@rudderstack.com' }], + phones: [{ type: 'home', phone: '+12345578900' }], + urls: [{ url: 'www.mattertoast873.com' }], + locations: [{ type: 'home', address: '24 Dovers Lane Miami Florida 1890001' }], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { apiKey: 'dummyApiKey', genericPage: false, genericScreen: false }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { externalId: 'user@doe' }, + event: { + name: 'Tracking-Weekender', + sessionId: '63nsa22', + trackingId: 'sahetwiac', + meta: { YearServicedNum: 211, region: 'strapis' }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { apiKey: 'dummyApiKey', genericPage: false, genericScreen: false }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.prod2.kustomerapp.com/v1/tracking/identityEvent', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer dummyApiKey', + }, + params: {}, + body: { + JSON: { + identity: { externalId: 'user@doe' }, + event: { + name: 'Tracking-Weekender', + sessionId: '63nsa22', + trackingId: 'sahetwiac', + meta: { YearServicedNum: 211, region: 'strapis' }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 3, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + baseEndpoint: 'https://api.prod2.kustomerapp.com', + apiKey: 'dummyApiKey', + genericPage: false, + genericScreen: false, + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/lambda/router/data.ts b/test/integrations/destinations/lambda/router/data.ts index 37b13e4d2a..cba30e0974 100644 --- a/test/integrations/destinations/lambda/router/data.ts +++ b/test/integrations/destinations/lambda/router/data.ts @@ -8115,9 +8115,7 @@ export const data = [ ], trait1: 'new-val', }, - library: { - name: 'http', - }, + library: { name: 'http' }, }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: 'c864b4cd-8f07-4922-b3d0-82ef04c987d3', @@ -16532,9 +16530,7 @@ export const data = [ ], trait1: 'new-val', }, - library: { - name: 'http', - }, + library: { name: 'http' }, }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: 'c864b4cd-8f07-4922-b3d0-82ef04c987d3', @@ -16655,12 +16651,7 @@ export const data = [ event: 'Product Purchased new', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '9f8fb785-c720-4381-a009-bf22a13f4ced', timestamp: '2020-02-02T00:23:09.544Z', @@ -20622,12 +20613,7 @@ export const data = [ event: 'Product Purchased new', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '9f8fb785-c720-4381-a009-bf22a13f4ced', timestamp: '2020-02-02T00:23:09.544Z', @@ -24863,19 +24849,11 @@ export const data = [ type: 'page', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '5f58d1f7-cbd6-4bff-8571-9933be7210b1', timestamp: '2020-02-02T00:23:09.544Z', - properties: { - path: '/', - title: 'Home', - }, + properties: { path: '/', title: 'Home' }, receivedAt: '2022-08-18T08:43:13.521+05:30', request_ip: '[::1]', anonymousId: 'anon-id-new', @@ -24906,19 +24884,11 @@ export const data = [ type: 'page', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '5f58d1f7-cbd6-4bff-8571-9933be7210b1', timestamp: '2020-02-02T00:23:09.544Z', - properties: { - path: '/', - title: 'Home', - }, + properties: { path: '/', title: 'Home' }, receivedAt: '2022-08-18T08:43:13.521+05:30', request_ip: '[::1]', anonymousId: 'anon-id-new', @@ -25035,18 +25005,11 @@ export const data = [ type: 'screen', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '1b8ee4c3-ffad-4457-b453-31b32da1dfea', timestamp: '2020-02-02T00:23:09.544Z', - properties: { - prop1: '5', - }, + properties: { prop1: '5' }, receivedAt: '2022-08-18T08:43:13.521+05:30', request_ip: '[::1]', anonymousId: 'anon-id-new', @@ -25077,18 +25040,11 @@ export const data = [ type: 'screen', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '1b8ee4c3-ffad-4457-b453-31b32da1dfea', timestamp: '2020-02-02T00:23:09.544Z', - properties: { - prop1: '5', - }, + properties: { prop1: '5' }, receivedAt: '2022-08-18T08:43:13.521+05:30', request_ip: '[::1]', anonymousId: 'anon-id-new', @@ -25203,20 +25159,12 @@ export const data = [ message: { type: 'group', sentAt: '2022-08-18T08:43:15.539+05:30', - traits: { - name: 'Company', - industry: 'Industry', - employees: 123, - }, + traits: { name: 'Company', industry: 'Industry', employees: 123 }, userId: 'user123', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, groupId: 'group1', rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5', @@ -25249,20 +25197,12 @@ export const data = [ EventPayload: { type: 'group', sentAt: '2022-08-18T08:43:15.539+05:30', - traits: { - name: 'Company', - industry: 'Industry', - employees: 123, - }, + traits: { name: 'Company', industry: 'Industry', employees: 123 }, userId: 'user123', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, groupId: 'group1', rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5', @@ -25384,12 +25324,8 @@ export const data = [ userId: 'user123', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5', messageId: '3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d', @@ -25425,12 +25361,8 @@ export const data = [ userId: 'user123', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5', messageId: '3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d', @@ -25560,11 +25492,7 @@ export const data = [ batchedRequest: { payload: '[{"type":"track","event":"Product Purchased new","sentAt":"2022-08-18T08:43:15.539+05:30","userId":"identified user id","context":{"ip":"14.5.67.21","library":{"name":"http"}},"rudderId":"daf823fb-e8d3-413a-8313-d34cd756f968","messageId":"9f8fb785-c720-4381-a009-bf22a13f4ced","timestamp":"2020-02-02T00:23:09.544Z","properties":{"data":[{"id":6104546,"url":"https://api.github.com/repos/mralexgray/-REPONAME","fork":false,"name":"-REPONAME","size":48,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/-REPONAME.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnk2MTA0NTQ2","private":false,"ssh_url":"git@github.com:mralexgray/-REPONAME.git","svn_url":"https://github.com/mralexgray/-REPONAME","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/-REPONAME","keys_url":"https://api.github.com/repos/mralexgray/-REPONAME/keys{/key_id}","language":null,"tags_url":"https://api.github.com/repos/mralexgray/-REPONAME/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/-REPONAME/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/-REPONAME.git","forks_url":"https://api.github.com/repos/mralexgray/-REPONAME/forks","full_name":"mralexgray/-REPONAME","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/-REPONAME/hooks","pulls_url":"https://api.github.com/repos/mralexgray/-REPONAME/pulls{/number}","pushed_at":"2012-10-06T16:37:39Z","teams_url":"https://api.github.com/repos/mralexgray/-REPONAME/teams","trees_url":"https://api.github.com/repos/mralexgray/-REPONAME/git/trees{/sha}","created_at":"2012-10-06T16:37:39Z","events_url":"https://api.github.com/repos/mralexgray/-REPONAME/events","has_issues":true,"issues_url":"https://api.github.com/repos/mralexgray/-REPONAME/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/-REPONAME/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/-REPONAME/merges","mirror_url":null,"updated_at":"2013-01-12T13:39:30Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/-REPONAME/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/-REPONAME/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/-REPONAME/compare/{base}...{head}","description":null,"forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/-REPONAME/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/-REPONAME/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/-REPONAME/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/-REPONAME/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/-REPONAME/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/-REPONAME/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/-REPONAME/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/-REPONAME/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/-REPONAME/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/-REPONAME/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/-REPONAME/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/-REPONAME/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/-REPONAME/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/-REPONAME/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/-REPONAME/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/-REPONAME/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/-REPONAME/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/-REPONAME/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/-REPONAME/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/-REPONAME/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/-REPONAME/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":104510411,"url":"https://api.github.com/repos/mralexgray/...","fork":true,"name":"...","size":113,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/....git","license":{"key":"mit","url":"https://api.github.com/licenses/mit","name":"MIT License","node_id":"MDc6TGljZW5zZTEz","spdx_id":"MIT"},"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ1MTA0MTE=","private":false,"ssh_url":"git@github.com:mralexgray/....git","svn_url":"https://github.com/mralexgray/...","archived":false,"disabled":false,"has_wiki":false,"homepage":"https://driesvints.com/blog/getting-started-with-dotfiles","html_url":"https://github.com/mralexgray/...","keys_url":"https://api.github.com/repos/mralexgray/.../keys{/key_id}","language":"Shell","tags_url":"https://api.github.com/repos/mralexgray/.../tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/.../git/blobs{/sha}","clone_url":"https://github.com/mralexgray/....git","forks_url":"https://api.github.com/repos/mralexgray/.../forks","full_name":"mralexgray/...","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/.../hooks","pulls_url":"https://api.github.com/repos/mralexgray/.../pulls{/number}","pushed_at":"2017-09-15T08:27:32Z","teams_url":"https://api.github.com/repos/mralexgray/.../teams","trees_url":"https://api.github.com/repos/mralexgray/.../git/trees{/sha}","created_at":"2017-09-22T19:19:42Z","events_url":"https://api.github.com/repos/mralexgray/.../events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/.../issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/.../labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/.../merges","mirror_url":null,"updated_at":"2017-09-22T19:20:22Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/.../{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/.../commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/.../compare/{base}...{head}","description":":computer: Public repo for my personal dotfiles.","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/.../branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/.../comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/.../contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/.../git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/.../git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/.../releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/.../statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/.../assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/.../downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/.../languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/.../milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/.../stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/.../deployments","git_commits_url":"https://api.github.com/repos/mralexgray/.../git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/.../subscribers","contributors_url":"https://api.github.com/repos/mralexgray/.../contributors","issue_events_url":"https://api.github.com/repos/mralexgray/.../issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/.../subscription","collaborators_url":"https://api.github.com/repos/mralexgray/.../collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/.../issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/.../notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":58656723,"url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol","fork":true,"name":"2200087-Serial-Protocol","size":41,"forks":1,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/2200087-Serial-Protocol.git","license":{"key":"gpl-2.0","url":"https://api.github.com/licenses/gpl-2.0","name":"GNU General Public License v2.0","node_id":"MDc6TGljZW5zZTg=","spdx_id":"GPL-2.0"},"node_id":"MDEwOlJlcG9zaXRvcnk1ODY1NjcyMw==","private":false,"ssh_url":"git@github.com:mralexgray/2200087-Serial-Protocol.git","svn_url":"https://github.com/mralexgray/2200087-Serial-Protocol","archived":false,"disabled":false,"has_wiki":true,"homepage":"http://daviddworken.com","html_url":"https://github.com/mralexgray/2200087-Serial-Protocol","keys_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/keys{/key_id}","language":"Python","tags_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/2200087-Serial-Protocol.git","forks_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/forks","full_name":"mralexgray/2200087-Serial-Protocol","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/hooks","pulls_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/pulls{/number}","pushed_at":"2016-05-12T16:07:24Z","teams_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/teams","trees_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/trees{/sha}","created_at":"2016-05-12T16:05:28Z","events_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/merges","mirror_url":null,"updated_at":"2016-05-12T16:05:30Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/compare/{base}...{head}","description":"A reverse engineered protocol description and accompanying code for Radioshack\'s 2200087 multimeter","forks_count":1,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/2200087-Serial-Protocol/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":13121042,"url":"https://api.github.com/repos/mralexgray/ace","fork":true,"name":"ace","size":21080,"forks":1,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/ace.git","license":{"key":"other","url":null,"name":"Other","node_id":"MDc6TGljZW5zZTA=","spdx_id":"NOASSERTION"},"node_id":"MDEwOlJlcG9zaXRvcnkxMzEyMTA0Mg==","private":false,"ssh_url":"git@github.com:mralexgray/ace.git","svn_url":"https://github.com/mralexgray/ace","archived":false,"disabled":false,"has_wiki":true,"homepage":"http://ace.c9.io","html_url":"https://github.com/mralexgray/ace","keys_url":"https://api.github.com/repos/mralexgray/ace/keys{/key_id}","language":"JavaScript","tags_url":"https://api.github.com/repos/mralexgray/ace/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/ace/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/ace.git","forks_url":"https://api.github.com/repos/mralexgray/ace/forks","full_name":"mralexgray/ace","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/ace/hooks","pulls_url":"https://api.github.com/repos/mralexgray/ace/pulls{/number}","pushed_at":"2013-10-26T12:34:48Z","teams_url":"https://api.github.com/repos/mralexgray/ace/teams","trees_url":"https://api.github.com/repos/mralexgray/ace/git/trees{/sha}","created_at":"2013-09-26T11:58:10Z","events_url":"https://api.github.com/repos/mralexgray/ace/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/ace/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/ace/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/ace/merges","mirror_url":null,"updated_at":"2013-10-26T12:34:49Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/ace/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/ace/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/ace/compare/{base}...{head}","description":"Ace (Ajax.org Cloud9 Editor)","forks_count":1,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/ace/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/ace/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/ace/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/ace/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/ace/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/ace/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/ace/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/ace/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/ace/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/ace/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/ace/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/ace/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/ace/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/ace/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/ace/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/ace/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/ace/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/ace/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/ace/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/ace/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/ace/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":10791045,"url":"https://api.github.com/repos/mralexgray/ACEView","fork":true,"name":"ACEView","size":1733,"forks":1,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/ACEView.git","license":{"key":"other","url":null,"name":"Other","node_id":"MDc6TGljZW5zZTA=","spdx_id":"NOASSERTION"},"node_id":"MDEwOlJlcG9zaXRvcnkxMDc5MTA0NQ==","private":false,"ssh_url":"git@github.com:mralexgray/ACEView.git","svn_url":"https://github.com/mralexgray/ACEView","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/ACEView","keys_url":"https://api.github.com/repos/mralexgray/ACEView/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/ACEView/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/ACEView/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/ACEView.git","forks_url":"https://api.github.com/repos/mralexgray/ACEView/forks","full_name":"mralexgray/ACEView","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/ACEView/hooks","pulls_url":"https://api.github.com/repos/mralexgray/ACEView/pulls{/number}","pushed_at":"2014-05-09T01:36:23Z","teams_url":"https://api.github.com/repos/mralexgray/ACEView/teams","trees_url":"https://api.github.com/repos/mralexgray/ACEView/git/trees{/sha}","created_at":"2013-06-19T12:15:04Z","events_url":"https://api.github.com/repos/mralexgray/ACEView/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/ACEView/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/ACEView/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/ACEView/merges","mirror_url":null,"updated_at":"2015-11-24T01:14:10Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/ACEView/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/ACEView/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/ACEView/compare/{base}...{head}","description":"Use the wonderful ACE editor in your Cocoa applications","forks_count":1,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/ACEView/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/ACEView/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/ACEView/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/ACEView/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/ACEView/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/ACEView/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/ACEView/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/ACEView/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/ACEView/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/ACEView/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/ACEView/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/ACEView/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/ACEView/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/ACEView/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/ACEView/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/ACEView/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/ACEView/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/ACEView/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/ACEView/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/ACEView/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/ACEView/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":13623648,"url":"https://api.github.com/repos/mralexgray/ActiveLog","fork":true,"name":"ActiveLog","size":60,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/ActiveLog.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyMzY0OA==","private":false,"ssh_url":"git@github.com:mralexgray/ActiveLog.git","svn_url":"https://github.com/mralexgray/ActiveLog","archived":false,"disabled":false,"has_wiki":true,"homepage":"http://deepitpro.com/en/articles/ActiveLog/info/","html_url":"https://github.com/mralexgray/ActiveLog","keys_url":"https://api.github.com/repos/mralexgray/ActiveLog/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/ActiveLog/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/ActiveLog/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/ActiveLog.git","forks_url":"https://api.github.com/repos/mralexgray/ActiveLog/forks","full_name":"mralexgray/ActiveLog","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/ActiveLog/hooks","pulls_url":"https://api.github.com/repos/mralexgray/ActiveLog/pulls{/number}","pushed_at":"2011-07-03T06:28:59Z","teams_url":"https://api.github.com/repos/mralexgray/ActiveLog/teams","trees_url":"https://api.github.com/repos/mralexgray/ActiveLog/git/trees{/sha}","created_at":"2013-10-16T15:52:37Z","events_url":"https://api.github.com/repos/mralexgray/ActiveLog/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/ActiveLog/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/ActiveLog/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/ActiveLog/merges","mirror_url":null,"updated_at":"2013-10-16T15:52:37Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/ActiveLog/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/ActiveLog/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/ActiveLog/compare/{base}...{head}","description":"Shut up all logs with active filter.","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/ActiveLog/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/ActiveLog/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/ActiveLog/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/ActiveLog/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/ActiveLog/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/ActiveLog/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/ActiveLog/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/ActiveLog/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/ActiveLog/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/ActiveLog/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/ActiveLog/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/ActiveLog/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/ActiveLog/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/ActiveLog/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/ActiveLog/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/ActiveLog/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/ActiveLog/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/ActiveLog/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/ActiveLog/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/ActiveLog/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/ActiveLog/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":9716210,"url":"https://api.github.com/repos/mralexgray/adium","fork":false,"name":"adium","size":277719,"forks":37,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/adium.git","license":{"key":"other","url":null,"name":"Other","node_id":"MDc6TGljZW5zZTA=","spdx_id":"NOASSERTION"},"node_id":"MDEwOlJlcG9zaXRvcnk5NzE2MjEw","private":false,"ssh_url":"git@github.com:mralexgray/adium.git","svn_url":"https://github.com/mralexgray/adium","archived":false,"disabled":false,"has_wiki":false,"homepage":null,"html_url":"https://github.com/mralexgray/adium","keys_url":"https://api.github.com/repos/mralexgray/adium/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/adium/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/adium/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/adium.git","forks_url":"https://api.github.com/repos/mralexgray/adium/forks","full_name":"mralexgray/adium","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/adium/hooks","pulls_url":"https://api.github.com/repos/mralexgray/adium/pulls{/number}","pushed_at":"2013-04-26T16:43:53Z","teams_url":"https://api.github.com/repos/mralexgray/adium/teams","trees_url":"https://api.github.com/repos/mralexgray/adium/git/trees{/sha}","created_at":"2013-04-27T14:59:33Z","events_url":"https://api.github.com/repos/mralexgray/adium/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/adium/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/adium/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/adium/merges","mirror_url":null,"updated_at":"2019-12-11T06:51:45Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/adium/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/adium/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/adium/compare/{base}...{head}","description":"Official mirror of hg.adium.im","forks_count":37,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/adium/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/adium/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/adium/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/adium/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/adium/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/adium/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/adium/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/adium/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/adium/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/adium/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/adium/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/adium/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/adium/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/adium/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/adium/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/adium/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/adium/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/adium/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/adium/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/adium/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/adium/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":12752329,"url":"https://api.github.com/repos/mralexgray/ADLivelyTableView","fork":true,"name":"ADLivelyTableView","size":73,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/ADLivelyTableView.git","license":{"key":"other","url":null,"name":"Other","node_id":"MDc6TGljZW5zZTA=","spdx_id":"NOASSERTION"},"node_id":"MDEwOlJlcG9zaXRvcnkxMjc1MjMyOQ==","private":false,"ssh_url":"git@github.com:mralexgray/ADLivelyTableView.git","svn_url":"https://github.com/mralexgray/ADLivelyTableView","archived":false,"disabled":false,"has_wiki":true,"homepage":"http://applidium.com/en/news/lively_uitableview/","html_url":"https://github.com/mralexgray/ADLivelyTableView","keys_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/ADLivelyTableView.git","forks_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/forks","full_name":"mralexgray/ADLivelyTableView","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/hooks","pulls_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/pulls{/number}","pushed_at":"2012-05-10T10:40:15Z","teams_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/teams","trees_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/trees{/sha}","created_at":"2013-09-11T09:18:01Z","events_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/merges","mirror_url":null,"updated_at":"2013-09-11T09:18:03Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/compare/{base}...{head}","description":"Lively UITableView","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/ADLivelyTableView/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":5697379,"url":"https://api.github.com/repos/mralexgray/AFIncrementalStore","fork":true,"name":"AFIncrementalStore","size":139,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AFIncrementalStore.git","license":{"key":"mit","url":"https://api.github.com/licenses/mit","name":"MIT License","node_id":"MDc6TGljZW5zZTEz","spdx_id":"MIT"},"node_id":"MDEwOlJlcG9zaXRvcnk1Njk3Mzc5","private":false,"ssh_url":"git@github.com:mralexgray/AFIncrementalStore.git","svn_url":"https://github.com/mralexgray/AFIncrementalStore","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/AFIncrementalStore","keys_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AFIncrementalStore.git","forks_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/forks","full_name":"mralexgray/AFIncrementalStore","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/pulls{/number}","pushed_at":"2012-09-01T22:46:25Z","teams_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/teams","trees_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/trees{/sha}","created_at":"2012-09-06T04:20:33Z","events_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/merges","mirror_url":null,"updated_at":"2013-01-12T03:15:29Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/compare/{base}...{head}","description":"Core Data Persistence with AFNetworking, Done Right","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AFIncrementalStore/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":6969621,"url":"https://api.github.com/repos/mralexgray/AFNetworking","fork":true,"name":"AFNetworking","size":4341,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AFNetworking.git","license":{"key":"mit","url":"https://api.github.com/licenses/mit","name":"MIT License","node_id":"MDc6TGljZW5zZTEz","spdx_id":"MIT"},"node_id":"MDEwOlJlcG9zaXRvcnk2OTY5NjIx","private":false,"ssh_url":"git@github.com:mralexgray/AFNetworking.git","svn_url":"https://github.com/mralexgray/AFNetworking","archived":false,"disabled":false,"has_wiki":true,"homepage":"http://afnetworking.com","html_url":"https://github.com/mralexgray/AFNetworking","keys_url":"https://api.github.com/repos/mralexgray/AFNetworking/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AFNetworking/tags","watchers":2,"blobs_url":"https://api.github.com/repos/mralexgray/AFNetworking/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AFNetworking.git","forks_url":"https://api.github.com/repos/mralexgray/AFNetworking/forks","full_name":"mralexgray/AFNetworking","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AFNetworking/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AFNetworking/pulls{/number}","pushed_at":"2014-01-24T07:14:32Z","teams_url":"https://api.github.com/repos/mralexgray/AFNetworking/teams","trees_url":"https://api.github.com/repos/mralexgray/AFNetworking/git/trees{/sha}","created_at":"2012-12-02T17:00:04Z","events_url":"https://api.github.com/repos/mralexgray/AFNetworking/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AFNetworking/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AFNetworking/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AFNetworking/merges","mirror_url":null,"updated_at":"2014-01-24T07:14:33Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AFNetworking/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AFNetworking/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AFNetworking/compare/{base}...{head}","description":"A delightful iOS and OS X networking framework","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AFNetworking/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AFNetworking/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AFNetworking/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AFNetworking/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AFNetworking/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AFNetworking/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AFNetworking/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AFNetworking/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AFNetworking/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AFNetworking/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AFNetworking/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AFNetworking/stargazers","watchers_count":2,"deployments_url":"https://api.github.com/repos/mralexgray/AFNetworking/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AFNetworking/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AFNetworking/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AFNetworking/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AFNetworking/issues/events{/number}","stargazers_count":2,"subscription_url":"https://api.github.com/repos/mralexgray/AFNetworking/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AFNetworking/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AFNetworking/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AFNetworking/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":9485541,"url":"https://api.github.com/repos/mralexgray/AGNSSplitView","fork":true,"name":"AGNSSplitView","size":68,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AGNSSplitView.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnk5NDg1NTQx","private":false,"ssh_url":"git@github.com:mralexgray/AGNSSplitView.git","svn_url":"https://github.com/mralexgray/AGNSSplitView","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/AGNSSplitView","keys_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AGNSSplitView.git","forks_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/forks","full_name":"mralexgray/AGNSSplitView","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/pulls{/number}","pushed_at":"2013-02-26T00:32:32Z","teams_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/teams","trees_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/git/trees{/sha}","created_at":"2013-04-17T00:10:13Z","events_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/merges","mirror_url":null,"updated_at":"2013-04-17T00:10:13Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/compare/{base}...{head}","description":"Simple NSSplitView additions.","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AGNSSplitView/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":12767784,"url":"https://api.github.com/repos/mralexgray/AGScopeBar","fork":true,"name":"AGScopeBar","size":64,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AGScopeBar.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc2Nzc4NA==","private":false,"ssh_url":"git@github.com:mralexgray/AGScopeBar.git","svn_url":"https://github.com/mralexgray/AGScopeBar","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/AGScopeBar","keys_url":"https://api.github.com/repos/mralexgray/AGScopeBar/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AGScopeBar/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/AGScopeBar/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AGScopeBar.git","forks_url":"https://api.github.com/repos/mralexgray/AGScopeBar/forks","full_name":"mralexgray/AGScopeBar","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AGScopeBar/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AGScopeBar/pulls{/number}","pushed_at":"2013-05-07T03:35:29Z","teams_url":"https://api.github.com/repos/mralexgray/AGScopeBar/teams","trees_url":"https://api.github.com/repos/mralexgray/AGScopeBar/git/trees{/sha}","created_at":"2013-09-11T21:06:54Z","events_url":"https://api.github.com/repos/mralexgray/AGScopeBar/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AGScopeBar/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AGScopeBar/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AGScopeBar/merges","mirror_url":null,"updated_at":"2013-09-11T21:06:54Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AGScopeBar/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AGScopeBar/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AGScopeBar/compare/{base}...{head}","description":"Custom scope bar implementation for Cocoa","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AGScopeBar/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AGScopeBar/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AGScopeBar/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AGScopeBar/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AGScopeBar/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AGScopeBar/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AGScopeBar/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AGScopeBar/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AGScopeBar/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AGScopeBar/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AGScopeBar/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AGScopeBar/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/AGScopeBar/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AGScopeBar/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AGScopeBar/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AGScopeBar/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AGScopeBar/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/AGScopeBar/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AGScopeBar/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AGScopeBar/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AGScopeBar/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":31829499,"url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin","fork":true,"name":"agvtool-xcode-plugin","size":102,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/agvtool-xcode-plugin.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnkzMTgyOTQ5OQ==","private":false,"ssh_url":"git@github.com:mralexgray/agvtool-xcode-plugin.git","svn_url":"https://github.com/mralexgray/agvtool-xcode-plugin","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/agvtool-xcode-plugin","keys_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/agvtool-xcode-plugin.git","forks_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/forks","full_name":"mralexgray/agvtool-xcode-plugin","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/hooks","pulls_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/pulls{/number}","pushed_at":"2015-03-08T00:04:31Z","teams_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/teams","trees_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/trees{/sha}","created_at":"2015-03-07T22:15:38Z","events_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/merges","mirror_url":null,"updated_at":"2015-03-07T22:15:41Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/compare/{base}...{head}","description":"this is a plugin wrapper for agvtool for xcode.","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/agvtool-xcode-plugin/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":9227846,"url":"https://api.github.com/repos/mralexgray/AHContentBrowser","fork":true,"name":"AHContentBrowser","size":223,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AHContentBrowser.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnk5MjI3ODQ2","private":false,"ssh_url":"git@github.com:mralexgray/AHContentBrowser.git","svn_url":"https://github.com/mralexgray/AHContentBrowser","archived":false,"disabled":false,"has_wiki":true,"homepage":"","html_url":"https://github.com/mralexgray/AHContentBrowser","keys_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AHContentBrowser.git","forks_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/forks","full_name":"mralexgray/AHContentBrowser","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/pulls{/number}","pushed_at":"2013-03-13T17:38:23Z","teams_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/teams","trees_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/git/trees{/sha}","created_at":"2013-04-04T20:56:16Z","events_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/merges","mirror_url":null,"updated_at":"2015-10-22T05:00:24Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/compare/{base}...{head}","description":"A Mac only webview that loads a fast readable version of the website if available.","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AHContentBrowser/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":37430328,"url":"https://api.github.com/repos/mralexgray/AHLaunchCtl","fork":true,"name":"AHLaunchCtl","size":592,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AHLaunchCtl.git","license":{"key":"mit","url":"https://api.github.com/licenses/mit","name":"MIT License","node_id":"MDc6TGljZW5zZTEz","spdx_id":"MIT"},"node_id":"MDEwOlJlcG9zaXRvcnkzNzQzMDMyOA==","private":false,"ssh_url":"git@github.com:mralexgray/AHLaunchCtl.git","svn_url":"https://github.com/mralexgray/AHLaunchCtl","archived":false,"disabled":false,"has_wiki":true,"homepage":"","html_url":"https://github.com/mralexgray/AHLaunchCtl","keys_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AHLaunchCtl.git","forks_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/forks","full_name":"mralexgray/AHLaunchCtl","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/pulls{/number}","pushed_at":"2015-05-26T18:50:48Z","teams_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/teams","trees_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/trees{/sha}","created_at":"2015-06-14T21:31:03Z","events_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/merges","mirror_url":null,"updated_at":"2015-06-14T21:31:04Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/compare/{base}...{head}","description":"LaunchD Framework for Cocoa Apps","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AHLaunchCtl/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":9167473,"url":"https://api.github.com/repos/mralexgray/AHLayout","fork":true,"name":"AHLayout","size":359,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AHLayout.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnk5MTY3NDcz","private":false,"ssh_url":"git@github.com:mralexgray/AHLayout.git","svn_url":"https://github.com/mralexgray/AHLayout","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/AHLayout","keys_url":"https://api.github.com/repos/mralexgray/AHLayout/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AHLayout/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/AHLayout/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AHLayout.git","forks_url":"https://api.github.com/repos/mralexgray/AHLayout/forks","full_name":"mralexgray/AHLayout","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AHLayout/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AHLayout/pulls{/number}","pushed_at":"2013-07-08T02:31:14Z","teams_url":"https://api.github.com/repos/mralexgray/AHLayout/teams","trees_url":"https://api.github.com/repos/mralexgray/AHLayout/git/trees{/sha}","created_at":"2013-04-02T10:10:30Z","events_url":"https://api.github.com/repos/mralexgray/AHLayout/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AHLayout/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AHLayout/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AHLayout/merges","mirror_url":null,"updated_at":"2013-07-08T02:31:17Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AHLayout/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AHLayout/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AHLayout/compare/{base}...{head}","description":"AHLayout","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AHLayout/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AHLayout/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AHLayout/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AHLayout/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AHLayout/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AHLayout/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AHLayout/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AHLayout/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AHLayout/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AHLayout/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AHLayout/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AHLayout/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/AHLayout/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AHLayout/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AHLayout/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AHLayout/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AHLayout/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/AHLayout/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AHLayout/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AHLayout/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AHLayout/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":18450201,"url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework","fork":true,"name":"Airmail-Plug-In-Framework","size":888,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/Airmail-Plug-In-Framework.git","license":{"key":"gpl-2.0","url":"https://api.github.com/licenses/gpl-2.0","name":"GNU General Public License v2.0","node_id":"MDc6TGljZW5zZTg=","spdx_id":"GPL-2.0"},"node_id":"MDEwOlJlcG9zaXRvcnkxODQ1MDIwMQ==","private":false,"ssh_url":"git@github.com:mralexgray/Airmail-Plug-In-Framework.git","svn_url":"https://github.com/mralexgray/Airmail-Plug-In-Framework","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/Airmail-Plug-In-Framework","keys_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/keys{/key_id}","language":null,"tags_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/Airmail-Plug-In-Framework.git","forks_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/forks","full_name":"mralexgray/Airmail-Plug-In-Framework","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/hooks","pulls_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/pulls{/number}","pushed_at":"2014-03-27T15:42:19Z","teams_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/teams","trees_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/trees{/sha}","created_at":"2014-04-04T19:33:54Z","events_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/merges","mirror_url":null,"updated_at":"2014-11-23T19:31:04Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/compare/{base}...{head}","description":null,"forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/Airmail-Plug-In-Framework/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":5203219,"url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API","fork":true,"name":"AJS-iTunes-API","size":103,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AJS-iTunes-API.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnk1MjAzMjE5","private":false,"ssh_url":"git@github.com:mralexgray/AJS-iTunes-API.git","svn_url":"https://github.com/mralexgray/AJS-iTunes-API","archived":false,"disabled":false,"has_wiki":true,"homepage":"","html_url":"https://github.com/mralexgray/AJS-iTunes-API","keys_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/tags","watchers":2,"blobs_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AJS-iTunes-API.git","forks_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/forks","full_name":"mralexgray/AJS-iTunes-API","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/pulls{/number}","pushed_at":"2011-10-30T22:26:48Z","teams_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/teams","trees_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/trees{/sha}","created_at":"2012-07-27T10:20:58Z","events_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/merges","mirror_url":null,"updated_at":"2013-01-11T11:00:05Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/compare/{base}...{head}","description":"Cocoa wrapper for the iTunes search API - for iOS and Mac OSX projects","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/stargazers","watchers_count":2,"deployments_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/events{/number}","stargazers_count":2,"subscription_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AJS-iTunes-API/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":10093801,"url":"https://api.github.com/repos/mralexgray/Alcatraz","fork":true,"name":"Alcatraz","size":3668,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/Alcatraz.git","license":{"key":"mit","url":"https://api.github.com/licenses/mit","name":"MIT License","node_id":"MDc6TGljZW5zZTEz","spdx_id":"MIT"},"node_id":"MDEwOlJlcG9zaXRvcnkxMDA5MzgwMQ==","private":false,"ssh_url":"git@github.com:mralexgray/Alcatraz.git","svn_url":"https://github.com/mralexgray/Alcatraz","archived":false,"disabled":false,"has_wiki":false,"homepage":"mneorr.github.com/Alcatraz","html_url":"https://github.com/mralexgray/Alcatraz","keys_url":"https://api.github.com/repos/mralexgray/Alcatraz/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/Alcatraz/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/Alcatraz/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/Alcatraz.git","forks_url":"https://api.github.com/repos/mralexgray/Alcatraz/forks","full_name":"mralexgray/Alcatraz","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/Alcatraz/hooks","pulls_url":"https://api.github.com/repos/mralexgray/Alcatraz/pulls{/number}","pushed_at":"2014-03-19T12:50:37Z","teams_url":"https://api.github.com/repos/mralexgray/Alcatraz/teams","trees_url":"https://api.github.com/repos/mralexgray/Alcatraz/git/trees{/sha}","created_at":"2013-05-16T04:41:13Z","events_url":"https://api.github.com/repos/mralexgray/Alcatraz/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/Alcatraz/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/Alcatraz/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/Alcatraz/merges","mirror_url":null,"updated_at":"2014-03-19T20:38:35Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/Alcatraz/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/Alcatraz/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/Alcatraz/compare/{base}...{head}","description":"The most awesome (and only) Xcode package manager!","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/Alcatraz/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/Alcatraz/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/Alcatraz/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/Alcatraz/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/Alcatraz/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/Alcatraz/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/Alcatraz/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/Alcatraz/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/Alcatraz/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/Alcatraz/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/Alcatraz/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/Alcatraz/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/Alcatraz/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/Alcatraz/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/Alcatraz/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/Alcatraz/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/Alcatraz/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/Alcatraz/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/Alcatraz/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/Alcatraz/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/Alcatraz/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":12916552,"url":"https://api.github.com/repos/mralexgray/alcatraz-packages","fork":true,"name":"alcatraz-packages","size":826,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/alcatraz-packages.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkxNjU1Mg==","private":false,"ssh_url":"git@github.com:mralexgray/alcatraz-packages.git","svn_url":"https://github.com/mralexgray/alcatraz-packages","archived":false,"disabled":false,"has_wiki":true,"homepage":"mneorr.github.com/Alcatraz","html_url":"https://github.com/mralexgray/alcatraz-packages","keys_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/keys{/key_id}","language":"Ruby","tags_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/alcatraz-packages.git","forks_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/forks","full_name":"mralexgray/alcatraz-packages","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/hooks","pulls_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/pulls{/number}","pushed_at":"2015-12-14T16:21:31Z","teams_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/teams","trees_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/git/trees{/sha}","created_at":"2013-09-18T07:15:24Z","events_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/merges","mirror_url":null,"updated_at":"2015-11-10T20:52:30Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/compare/{base}...{head}","description":"Package list repository for Alcatraz","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/alcatraz-packages/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":44278362,"url":"https://api.github.com/repos/mralexgray/alexicons","fork":true,"name":"alexicons","size":257,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/alexicons.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnk0NDI3ODM2Mg==","private":false,"ssh_url":"git@github.com:mralexgray/alexicons.git","svn_url":"https://github.com/mralexgray/alexicons","archived":false,"disabled":false,"has_wiki":false,"homepage":null,"html_url":"https://github.com/mralexgray/alexicons","keys_url":"https://api.github.com/repos/mralexgray/alexicons/keys{/key_id}","language":"CoffeeScript","tags_url":"https://api.github.com/repos/mralexgray/alexicons/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/alexicons/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/alexicons.git","forks_url":"https://api.github.com/repos/mralexgray/alexicons/forks","full_name":"mralexgray/alexicons","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/alexicons/hooks","pulls_url":"https://api.github.com/repos/mralexgray/alexicons/pulls{/number}","pushed_at":"2015-10-16T03:57:51Z","teams_url":"https://api.github.com/repos/mralexgray/alexicons/teams","trees_url":"https://api.github.com/repos/mralexgray/alexicons/git/trees{/sha}","created_at":"2015-10-14T21:49:39Z","events_url":"https://api.github.com/repos/mralexgray/alexicons/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/alexicons/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/alexicons/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/alexicons/merges","mirror_url":null,"updated_at":"2015-10-15T06:20:08Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/alexicons/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/alexicons/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/alexicons/compare/{base}...{head}","description":"Get popular cat names","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/alexicons/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/alexicons/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/alexicons/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/alexicons/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/alexicons/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/alexicons/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/alexicons/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/alexicons/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/alexicons/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/alexicons/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/alexicons/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/alexicons/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/alexicons/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/alexicons/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/alexicons/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/alexicons/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/alexicons/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/alexicons/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/alexicons/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/alexicons/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/alexicons/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":10476467,"url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate","fork":true,"name":"Alfred-Google-Translate","size":103,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/Alfred-Google-Translate.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ3NjQ2Nw==","private":false,"ssh_url":"git@github.com:mralexgray/Alfred-Google-Translate.git","svn_url":"https://github.com/mralexgray/Alfred-Google-Translate","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/Alfred-Google-Translate","keys_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/keys{/key_id}","language":"Shell","tags_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/Alfred-Google-Translate.git","forks_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/forks","full_name":"mralexgray/Alfred-Google-Translate","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/hooks","pulls_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/pulls{/number}","pushed_at":"2013-01-12T19:39:03Z","teams_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/teams","trees_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/trees{/sha}","created_at":"2013-06-04T10:45:10Z","events_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/merges","mirror_url":null,"updated_at":"2013-06-04T10:45:10Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/compare/{base}...{head}","description":"Extension for Alfred that will do a Google translate for you","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/Alfred-Google-Translate/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":5524019,"url":"https://api.github.com/repos/mralexgray/Amber","fork":false,"name":"Amber","size":48,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/Amber.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnk1NTI0MDE5","private":false,"ssh_url":"git@github.com:mralexgray/Amber.git","svn_url":"https://github.com/mralexgray/Amber","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/Amber","keys_url":"https://api.github.com/repos/mralexgray/Amber/keys{/key_id}","language":null,"tags_url":"https://api.github.com/repos/mralexgray/Amber/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/Amber/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/Amber.git","forks_url":"https://api.github.com/repos/mralexgray/Amber/forks","full_name":"mralexgray/Amber","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/Amber/hooks","pulls_url":"https://api.github.com/repos/mralexgray/Amber/pulls{/number}","pushed_at":"2012-08-23T10:38:25Z","teams_url":"https://api.github.com/repos/mralexgray/Amber/teams","trees_url":"https://api.github.com/repos/mralexgray/Amber/git/trees{/sha}","created_at":"2012-08-23T10:38:24Z","events_url":"https://api.github.com/repos/mralexgray/Amber/events","has_issues":true,"issues_url":"https://api.github.com/repos/mralexgray/Amber/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/Amber/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/Amber/merges","mirror_url":null,"updated_at":"2013-01-11T22:25:35Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/Amber/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/Amber/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/Amber/compare/{base}...{head}","description":"Fork of the difficult-to-deal-with Amber.framework","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/Amber/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/Amber/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/Amber/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/Amber/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/Amber/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/Amber/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/Amber/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/Amber/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/Amber/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/Amber/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/Amber/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/Amber/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/Amber/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/Amber/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/Amber/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/Amber/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/Amber/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/Amber/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/Amber/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/Amber/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/Amber/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":10809060,"url":"https://api.github.com/repos/mralexgray/Amethyst","fork":true,"name":"Amethyst","size":12623,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/Amethyst.git","license":{"key":"mit","url":"https://api.github.com/licenses/mit","name":"MIT License","node_id":"MDc6TGljZW5zZTEz","spdx_id":"MIT"},"node_id":"MDEwOlJlcG9zaXRvcnkxMDgwOTA2MA==","private":false,"ssh_url":"git@github.com:mralexgray/Amethyst.git","svn_url":"https://github.com/mralexgray/Amethyst","archived":false,"disabled":false,"has_wiki":true,"homepage":"http://ianyh.github.io/Amethyst/","html_url":"https://github.com/mralexgray/Amethyst","keys_url":"https://api.github.com/repos/mralexgray/Amethyst/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/Amethyst/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/Amethyst/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/Amethyst.git","forks_url":"https://api.github.com/repos/mralexgray/Amethyst/forks","full_name":"mralexgray/Amethyst","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/Amethyst/hooks","pulls_url":"https://api.github.com/repos/mralexgray/Amethyst/pulls{/number}","pushed_at":"2013-06-18T02:54:11Z","teams_url":"https://api.github.com/repos/mralexgray/Amethyst/teams","trees_url":"https://api.github.com/repos/mralexgray/Amethyst/git/trees{/sha}","created_at":"2013-06-20T00:34:22Z","events_url":"https://api.github.com/repos/mralexgray/Amethyst/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/Amethyst/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/Amethyst/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/Amethyst/merges","mirror_url":null,"updated_at":"2013-06-20T00:34:22Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/Amethyst/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/Amethyst/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/Amethyst/compare/{base}...{head}","description":"Tiling window manager for OS X.","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/Amethyst/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/Amethyst/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/Amethyst/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/Amethyst/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/Amethyst/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/Amethyst/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/Amethyst/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/Amethyst/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/Amethyst/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/Amethyst/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/Amethyst/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/Amethyst/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/Amethyst/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/Amethyst/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/Amethyst/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/Amethyst/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/Amethyst/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/Amethyst/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/Amethyst/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/Amethyst/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/Amethyst/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":3684286,"url":"https://api.github.com/repos/mralexgray/Animated-Paths","fork":true,"name":"Animated-Paths","size":411,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/Animated-Paths.git","license":{"key":"other","url":null,"name":"Other","node_id":"MDc6TGljZW5zZTA=","spdx_id":"NOASSERTION"},"node_id":"MDEwOlJlcG9zaXRvcnkzNjg0Mjg2","private":false,"ssh_url":"git@github.com:mralexgray/Animated-Paths.git","svn_url":"https://github.com/mralexgray/Animated-Paths","archived":false,"disabled":false,"has_wiki":true,"homepage":"http://oleb.net/blog/2010/12/animating-drawing-of-cgpath-with-cashapelayer/","html_url":"https://github.com/mralexgray/Animated-Paths","keys_url":"https://api.github.com/repos/mralexgray/Animated-Paths/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/Animated-Paths/tags","watchers":2,"blobs_url":"https://api.github.com/repos/mralexgray/Animated-Paths/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/Animated-Paths.git","forks_url":"https://api.github.com/repos/mralexgray/Animated-Paths/forks","full_name":"mralexgray/Animated-Paths","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/Animated-Paths/hooks","pulls_url":"https://api.github.com/repos/mralexgray/Animated-Paths/pulls{/number}","pushed_at":"2010-12-30T20:56:51Z","teams_url":"https://api.github.com/repos/mralexgray/Animated-Paths/teams","trees_url":"https://api.github.com/repos/mralexgray/Animated-Paths/git/trees{/sha}","created_at":"2012-03-11T02:56:38Z","events_url":"https://api.github.com/repos/mralexgray/Animated-Paths/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/Animated-Paths/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/Animated-Paths/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/Animated-Paths/merges","mirror_url":null,"updated_at":"2013-01-08T04:12:21Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/Animated-Paths/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/Animated-Paths/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/Animated-Paths/compare/{base}...{head}","description":"Demo project: Animating the drawing of a CGPath with CAShapeLayer.strokeEnd","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/Animated-Paths/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/Animated-Paths/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/Animated-Paths/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/Animated-Paths/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/Animated-Paths/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/Animated-Paths/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/Animated-Paths/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/Animated-Paths/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/Animated-Paths/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/Animated-Paths/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/Animated-Paths/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/Animated-Paths/stargazers","watchers_count":2,"deployments_url":"https://api.github.com/repos/mralexgray/Animated-Paths/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/Animated-Paths/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/Animated-Paths/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/Animated-Paths/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/Animated-Paths/issues/events{/number}","stargazers_count":2,"subscription_url":"https://api.github.com/repos/mralexgray/Animated-Paths/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/Animated-Paths/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/Animated-Paths/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/Animated-Paths/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":16662874,"url":"https://api.github.com/repos/mralexgray/AnsiLove.framework","fork":true,"name":"AnsiLove.framework","size":3780,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AnsiLove.framework.git","license":{"key":"other","url":null,"name":"Other","node_id":"MDc6TGljZW5zZTA=","spdx_id":"NOASSERTION"},"node_id":"MDEwOlJlcG9zaXRvcnkxNjY2Mjg3NA==","private":false,"ssh_url":"git@github.com:mralexgray/AnsiLove.framework.git","svn_url":"https://github.com/mralexgray/AnsiLove.framework","archived":false,"disabled":false,"has_wiki":false,"homepage":"http://byteproject.net","html_url":"https://github.com/mralexgray/AnsiLove.framework","keys_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/keys{/key_id}","language":"M","tags_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AnsiLove.framework.git","forks_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/forks","full_name":"mralexgray/AnsiLove.framework","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/pulls{/number}","pushed_at":"2013-10-04T14:08:38Z","teams_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/teams","trees_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/trees{/sha}","created_at":"2014-02-09T08:30:27Z","events_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/merges","mirror_url":null,"updated_at":"2015-01-13T20:41:46Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/compare/{base}...{head}","description":"Cocoa Framework for rendering ANSi / ASCII art","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AnsiLove.framework/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":5189563,"url":"https://api.github.com/repos/mralexgray/ANTrackBar","fork":true,"name":"ANTrackBar","size":94,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/ANTrackBar.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnk1MTg5NTYz","private":false,"ssh_url":"git@github.com:mralexgray/ANTrackBar.git","svn_url":"https://github.com/mralexgray/ANTrackBar","archived":false,"disabled":false,"has_wiki":true,"homepage":"","html_url":"https://github.com/mralexgray/ANTrackBar","keys_url":"https://api.github.com/repos/mralexgray/ANTrackBar/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/ANTrackBar/tags","watchers":2,"blobs_url":"https://api.github.com/repos/mralexgray/ANTrackBar/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/ANTrackBar.git","forks_url":"https://api.github.com/repos/mralexgray/ANTrackBar/forks","full_name":"mralexgray/ANTrackBar","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/ANTrackBar/hooks","pulls_url":"https://api.github.com/repos/mralexgray/ANTrackBar/pulls{/number}","pushed_at":"2012-03-09T01:40:02Z","teams_url":"https://api.github.com/repos/mralexgray/ANTrackBar/teams","trees_url":"https://api.github.com/repos/mralexgray/ANTrackBar/git/trees{/sha}","created_at":"2012-07-26T08:17:22Z","events_url":"https://api.github.com/repos/mralexgray/ANTrackBar/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/ANTrackBar/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/ANTrackBar/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/ANTrackBar/merges","mirror_url":null,"updated_at":"2013-01-11T10:29:56Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/ANTrackBar/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/ANTrackBar/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/ANTrackBar/compare/{base}...{head}","description":"An easy-to-use Cocoa seek bar with a pleasing appearance","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/ANTrackBar/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/ANTrackBar/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/ANTrackBar/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/ANTrackBar/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/ANTrackBar/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/ANTrackBar/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/ANTrackBar/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/ANTrackBar/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/ANTrackBar/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/ANTrackBar/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/ANTrackBar/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/ANTrackBar/stargazers","watchers_count":2,"deployments_url":"https://api.github.com/repos/mralexgray/ANTrackBar/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/ANTrackBar/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/ANTrackBar/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/ANTrackBar/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/ANTrackBar/issues/events{/number}","stargazers_count":2,"subscription_url":"https://api.github.com/repos/mralexgray/ANTrackBar/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/ANTrackBar/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/ANTrackBar/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/ANTrackBar/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":16240152,"url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C","fork":true,"name":"AOP-in-Objective-C","size":340,"forks":1,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/AOP-in-Objective-C.git","license":null,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI0MDE1Mg==","private":false,"ssh_url":"git@github.com:mralexgray/AOP-in-Objective-C.git","svn_url":"https://github.com/mralexgray/AOP-in-Objective-C","archived":false,"disabled":false,"has_wiki":true,"homepage":"http://innoli.hu/en/opensource/","html_url":"https://github.com/mralexgray/AOP-in-Objective-C","keys_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/keys{/key_id}","language":"Objective-C","tags_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/AOP-in-Objective-C.git","forks_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/forks","full_name":"mralexgray/AOP-in-Objective-C","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/hooks","pulls_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/pulls{/number}","pushed_at":"2014-02-12T16:23:20Z","teams_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/teams","trees_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/trees{/sha}","created_at":"2014-01-25T21:18:04Z","events_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/merges","mirror_url":null,"updated_at":"2014-06-19T19:38:12Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/compare/{base}...{head}","description":"An NSProxy based library for easily enabling AOP like functionality in Objective-C.","forks_count":1,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/languages","default_branch":"travis-coveralls","milestones_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/AOP-in-Objective-C/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":13141936,"url":"https://api.github.com/repos/mralexgray/Apaxy","fork":true,"name":"Apaxy","size":113,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/Apaxy.git","license":{"key":"unlicense","url":"https://api.github.com/licenses/unlicense","name":"The Unlicense","node_id":"MDc6TGljZW5zZTE1","spdx_id":"Unlicense"},"node_id":"MDEwOlJlcG9zaXRvcnkxMzE0MTkzNg==","private":false,"ssh_url":"git@github.com:mralexgray/Apaxy.git","svn_url":"https://github.com/mralexgray/Apaxy","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/Apaxy","keys_url":"https://api.github.com/repos/mralexgray/Apaxy/keys{/key_id}","language":"CSS","tags_url":"https://api.github.com/repos/mralexgray/Apaxy/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/Apaxy/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/Apaxy.git","forks_url":"https://api.github.com/repos/mralexgray/Apaxy/forks","full_name":"mralexgray/Apaxy","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/Apaxy/hooks","pulls_url":"https://api.github.com/repos/mralexgray/Apaxy/pulls{/number}","pushed_at":"2013-08-02T16:01:32Z","teams_url":"https://api.github.com/repos/mralexgray/Apaxy/teams","trees_url":"https://api.github.com/repos/mralexgray/Apaxy/git/trees{/sha}","created_at":"2013-09-27T05:05:35Z","events_url":"https://api.github.com/repos/mralexgray/Apaxy/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/Apaxy/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/Apaxy/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/Apaxy/merges","mirror_url":null,"updated_at":"2018-02-16T21:40:24Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/Apaxy/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/Apaxy/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/Apaxy/compare/{base}...{head}","description":"A simple, customisable theme for your Apache directory listing.","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/Apaxy/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/Apaxy/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/Apaxy/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/Apaxy/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/Apaxy/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/Apaxy/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/Apaxy/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/Apaxy/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/Apaxy/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/Apaxy/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/Apaxy/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/Apaxy/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/Apaxy/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/Apaxy/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/Apaxy/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/Apaxy/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/Apaxy/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/Apaxy/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/Apaxy/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/Apaxy/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/Apaxy/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false},{"id":20027360,"url":"https://api.github.com/repos/mralexgray/app","fork":true,"name":"app","size":1890,"forks":0,"owner":{"id":262517,"url":"https://api.github.com/users/mralexgray","type":"User","login":"mralexgray","node_id":"MDQ6VXNlcjI2MjUxNw==","html_url":"https://github.com/mralexgray","gists_url":"https://api.github.com/users/mralexgray/gists{/gist_id}","repos_url":"https://api.github.com/users/mralexgray/repos","avatar_url":"https://avatars.githubusercontent.com/u/262517?v=4","events_url":"https://api.github.com/users/mralexgray/events{/privacy}","site_admin":false,"gravatar_id":"","starred_url":"https://api.github.com/users/mralexgray/starred{/owner}{/repo}","followers_url":"https://api.github.com/users/mralexgray/followers","following_url":"https://api.github.com/users/mralexgray/following{/other_user}","organizations_url":"https://api.github.com/users/mralexgray/orgs","subscriptions_url":"https://api.github.com/users/mralexgray/subscriptions","received_events_url":"https://api.github.com/users/mralexgray/received_events"},"topics":[],"git_url":"git://github.com/mralexgray/app.git","license":{"key":"other","url":null,"name":"Other","node_id":"MDc6TGljZW5zZTA=","spdx_id":"NOASSERTION"},"node_id":"MDEwOlJlcG9zaXRvcnkyMDAyNzM2MA==","private":false,"ssh_url":"git@github.com:mralexgray/app.git","svn_url":"https://github.com/mralexgray/app","archived":false,"disabled":false,"has_wiki":true,"homepage":null,"html_url":"https://github.com/mralexgray/app","keys_url":"https://api.github.com/repos/mralexgray/app/keys{/key_id}","language":"JavaScript","tags_url":"https://api.github.com/repos/mralexgray/app/tags","watchers":0,"blobs_url":"https://api.github.com/repos/mralexgray/app/git/blobs{/sha}","clone_url":"https://github.com/mralexgray/app.git","forks_url":"https://api.github.com/repos/mralexgray/app/forks","full_name":"mralexgray/app","has_pages":false,"hooks_url":"https://api.github.com/repos/mralexgray/app/hooks","pulls_url":"https://api.github.com/repos/mralexgray/app/pulls{/number}","pushed_at":"2014-05-20T19:51:38Z","teams_url":"https://api.github.com/repos/mralexgray/app/teams","trees_url":"https://api.github.com/repos/mralexgray/app/git/trees{/sha}","created_at":"2014-05-21T15:54:20Z","events_url":"https://api.github.com/repos/mralexgray/app/events","has_issues":false,"issues_url":"https://api.github.com/repos/mralexgray/app/issues{/number}","labels_url":"https://api.github.com/repos/mralexgray/app/labels{/name}","merges_url":"https://api.github.com/repos/mralexgray/app/merges","mirror_url":null,"updated_at":"2014-05-21T15:54:22Z","visibility":"public","archive_url":"https://api.github.com/repos/mralexgray/app/{archive_format}{/ref}","commits_url":"https://api.github.com/repos/mralexgray/app/commits{/sha}","compare_url":"https://api.github.com/repos/mralexgray/app/compare/{base}...{head}","description":"Instant mobile web app creation","forks_count":0,"is_template":false,"open_issues":0,"branches_url":"https://api.github.com/repos/mralexgray/app/branches{/branch}","comments_url":"https://api.github.com/repos/mralexgray/app/comments{/number}","contents_url":"https://api.github.com/repos/mralexgray/app/contents/{+path}","git_refs_url":"https://api.github.com/repos/mralexgray/app/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/mralexgray/app/git/tags{/sha}","has_projects":true,"releases_url":"https://api.github.com/repos/mralexgray/app/releases{/id}","statuses_url":"https://api.github.com/repos/mralexgray/app/statuses/{sha}","allow_forking":true,"assignees_url":"https://api.github.com/repos/mralexgray/app/assignees{/user}","downloads_url":"https://api.github.com/repos/mralexgray/app/downloads","has_downloads":true,"languages_url":"https://api.github.com/repos/mralexgray/app/languages","default_branch":"master","milestones_url":"https://api.github.com/repos/mralexgray/app/milestones{/number}","stargazers_url":"https://api.github.com/repos/mralexgray/app/stargazers","watchers_count":0,"deployments_url":"https://api.github.com/repos/mralexgray/app/deployments","git_commits_url":"https://api.github.com/repos/mralexgray/app/git/commits{/sha}","subscribers_url":"https://api.github.com/repos/mralexgray/app/subscribers","contributors_url":"https://api.github.com/repos/mralexgray/app/contributors","issue_events_url":"https://api.github.com/repos/mralexgray/app/issues/events{/number}","stargazers_count":0,"subscription_url":"https://api.github.com/repos/mralexgray/app/subscription","collaborators_url":"https://api.github.com/repos/mralexgray/app/collaborators{/collaborator}","issue_comment_url":"https://api.github.com/repos/mralexgray/app/issues/comments{/number}","notifications_url":"https://api.github.com/repos/mralexgray/app/notifications{?since,all,participating}","open_issues_count":0,"web_commit_signoff_required":false}],"name":"Shirt","revenue":4.99},"receivedAt":"2022-08-18T08:43:13.521+05:30","request_ip":"[::1]","anonymousId":"anon-id-new","originalTimestamp":"2022-08-18T08:43:15.539+05:30"},{"name":"Page View","type":"page","sentAt":"2022-08-18T08:43:15.539+05:30","userId":"identified user id","context":{"ip":"14.5.67.21","library":{"name":"http"}},"rudderId":"daf823fb-e8d3-413a-8313-d34cd756f968","messageId":"5f58d1f7-cbd6-4bff-8571-9933be7210b1","timestamp":"2020-02-02T00:23:09.544Z","properties":{"path":"/","title":"Home"},"receivedAt":"2022-08-18T08:43:13.521+05:30","request_ip":"[::1]","anonymousId":"anon-id-new","originalTimestamp":"2022-08-18T08:43:15.539+05:30"}]', - destConfig: { - clientContext: '', - lambda: 'testFunction', - invocationType: 'Event', - }, + destConfig: { clientContext: '', lambda: 'testFunction', invocationType: 'Event' }, }, metadata: [ { @@ -25592,12 +25520,7 @@ export const data = [ event: 'Product Purchased new', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '9f8fb785-c720-4381-a009-bf22a13f4ced', timestamp: '2020-02-02T00:23:09.544Z', @@ -29859,19 +29782,11 @@ export const data = [ type: 'page', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '5f58d1f7-cbd6-4bff-8571-9933be7210b1', timestamp: '2020-02-02T00:23:09.544Z', - properties: { - path: '/', - title: 'Home', - }, + properties: { path: '/', title: 'Home' }, receivedAt: '2022-08-18T08:43:13.521+05:30', request_ip: '[::1]', anonymousId: 'anon-id-new', @@ -29921,11 +29836,7 @@ export const data = [ batchedRequest: { payload: '[{"name":"Screen View","type":"screen","sentAt":"2022-08-18T08:43:15.539+05:30","userId":"identified user id","context":{"ip":"14.5.67.21","library":{"name":"http"}},"rudderId":"daf823fb-e8d3-413a-8313-d34cd756f968","messageId":"1b8ee4c3-ffad-4457-b453-31b32da1dfea","timestamp":"2020-02-02T00:23:09.544Z","properties":{"prop1":"5"},"receivedAt":"2022-08-18T08:43:13.521+05:30","request_ip":"[::1]","anonymousId":"anon-id-new","originalTimestamp":"2022-08-18T08:43:15.539+05:30"},{"type":"group","sentAt":"2022-08-18T08:43:15.539+05:30","traits":{"name":"Company","industry":"Industry","employees":123},"userId":"user123","context":{"ip":"14.5.67.21","traits":{"trait1":"new-val"},"library":{"name":"http"}},"groupId":"group1","rudderId":"bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5","messageId":"2c59b527-3235-4fc2-9680-f41ec52ebb51","timestamp":"2020-01-21T00:21:34.208Z","receivedAt":"2022-08-18T08:43:13.521+05:30","request_ip":"[::1]","originalTimestamp":"2022-08-18T08:43:15.539+05:30"}]', - destConfig: { - clientContext: '', - lambda: 'testFunction', - invocationType: 'Event', - }, + destConfig: { clientContext: '', lambda: 'testFunction', invocationType: 'Event' }, }, metadata: [ { @@ -29953,18 +29864,11 @@ export const data = [ type: 'screen', sentAt: '2022-08-18T08:43:15.539+05:30', userId: 'identified user id', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: '1b8ee4c3-ffad-4457-b453-31b32da1dfea', timestamp: '2020-02-02T00:23:09.544Z', - properties: { - prop1: '5', - }, + properties: { prop1: '5' }, receivedAt: '2022-08-18T08:43:13.521+05:30', request_ip: '[::1]', anonymousId: 'anon-id-new', @@ -30029,20 +29933,12 @@ export const data = [ EventPayload: { type: 'group', sentAt: '2022-08-18T08:43:15.539+05:30', - traits: { - name: 'Company', - industry: 'Industry', - employees: 123, - }, + traits: { name: 'Company', industry: 'Industry', employees: 123 }, userId: 'user123', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, groupId: 'group1', rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5', @@ -30096,11 +29992,7 @@ export const data = [ batchedRequest: { payload: '[{"type":"alias","sentAt":"2022-08-18T08:43:15.539+05:30","userId":"user123","context":{"ip":"14.5.67.21","traits":{"trait1":"new-val"},"library":{"name":"http"}},"rudderId":"bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5","messageId":"3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d","timestamp":"2020-01-21T00:21:34.208Z","previousId":"previd1","receivedAt":"2022-08-18T08:43:13.521+05:30","request_ip":"[::1]","originalTimestamp":"2022-08-18T08:43:15.539+05:30"}]', - destConfig: { - clientContext: '', - lambda: 'testFunction', - invocationType: 'Event', - }, + destConfig: { clientContext: '', lambda: 'testFunction', invocationType: 'Event' }, }, metadata: [ { @@ -30129,12 +30021,8 @@ export const data = [ userId: 'user123', context: { ip: '14.5.67.21', - traits: { - trait1: 'new-val', - }, - library: { - name: 'http', - }, + traits: { trait1: 'new-val' }, + library: { name: 'http' }, }, rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5', messageId: '3ff8d400-b6d4-43a4-a0ff-1bc7ae8b5f7d', @@ -38727,9 +38615,7 @@ export const data = [ ], trait1: 'new-val', }, - library: { - name: 'http', - }, + library: { name: 'http' }, }, rudderId: 'daf823fb-e8d3-413a-8313-d34cd756f968', messageId: 'c864b4cd-8f07-4922-b3d0-82ef04c987d3', diff --git a/test/integrations/destinations/launchdarkly_audience/processor/data.ts b/test/integrations/destinations/launchdarkly_audience/processor/data.ts index b26cf60f4c..9f2370af7e 100644 --- a/test/integrations/destinations/launchdarkly_audience/processor/data.ts +++ b/test/integrations/destinations/launchdarkly_audience/processor/data.ts @@ -213,6 +213,74 @@ export const data = [ }, }, }, + { + name: 'launchdarkly_audience', + description: 'List data is empty', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user123', + type: 'audiencelist', + properties: { + listData: {}, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + destination: { + Config: { + audienceId: 'test-audienceId', + audienceName: 'test-audienceName', + accessToken: 'test-accessToken', + clientSideId: 'test-clientSideId', + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + }, + statusCode: 400, + error: + '`listData` is empty. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: `listData` is empty. Aborting message.', + statTags: { + destType: 'LAUNCHDARKLY_AUDIENCE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + destinationId: 'destId', + workspaceId: 'wspId', + }, + }, + ], + }, + }, + }, { name: 'launchdarkly_audience', description: 'Unsupported action type', diff --git a/test/integrations/destinations/leanplum/router/data.ts b/test/integrations/destinations/leanplum/router/data.ts index db75a7fdc4..29282c8b29 100644 --- a/test/integrations/destinations/leanplum/router/data.ts +++ b/test/integrations/destinations/leanplum/router/data.ts @@ -27,49 +27,25 @@ export const data = [ name: 'generic_x86', type: 'android', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.1-beta.1', - }, + 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, - }, + 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', - }, + 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, - }, + integrations: { All: true }, messageId: 'id1', - properties: { - name: 'MainActivity', - automatic: true, - }, + properties: { name: 'MainActivity', automatic: true }, originalTimestamp: '2020-03-12T09:05:03.421Z', type: 'screen', sentAt: '2020-03-12T09:05:13.042Z', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { applicationId: 'leanplum_application_id', @@ -98,12 +74,8 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.leanplum.com/api', - headers: { - 'Content-Type': 'application/json', - }, - params: { - action: 'start', - }, + headers: { 'Content-Type': 'application/json' }, + params: { action: 'start' }, body: { JSON: { appId: 'leanplum_application_id', @@ -116,9 +88,7 @@ export const data = [ systemVersion: '8.1.0', deviceName: 'generic_x86', deviceModel: 'Android SDK built for x86', - userAttributes: { - anonymousId: '5094f5704b9cf2b3', - }, + userAttributes: { anonymousId: '5094f5704b9cf2b3' }, locale: 'en-US', timezone: 'Asia/Kolkata', time: 1584003903, @@ -136,12 +106,8 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.leanplum.com/api', - headers: { - 'Content-Type': 'application/json', - }, - params: { - action: 'advance', - }, + headers: { 'Content-Type': 'application/json' }, + params: { action: 'advance' }, body: { JSON: { appId: 'leanplum_application_id', @@ -161,11 +127,7 @@ export const data = [ userId: '5094f5704b9cf2b3', }, ], - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -211,49 +173,25 @@ export const data = [ name: 'generic_x86', type: 'android', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.1-beta.1', - }, + 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, - }, + 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', - }, + 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, - }, + integrations: { All: true }, messageId: 'id2', - properties: { - name: 'MainActivity', - automatic: true, - }, + properties: { name: 'MainActivity', automatic: true }, originalTimestamp: '2020-03-12T09:05:03.421Z', type: 'screen', sentAt: '2020-03-12T09:05:13.042Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { applicationId: 'leanplum_application_id', @@ -282,12 +220,8 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.leanplum.com/api', - headers: { - 'Content-Type': 'application/json', - }, - params: { - action: 'start', - }, + headers: { 'Content-Type': 'application/json' }, + params: { action: 'start' }, body: { JSON: { appId: 'leanplum_application_id', @@ -300,9 +234,7 @@ export const data = [ systemVersion: '8.1.0', deviceName: 'generic_x86', deviceModel: 'Android SDK built for x86', - userAttributes: { - anonymousId: '5094f5704b9cf2b3', - }, + userAttributes: { anonymousId: '5094f5704b9cf2b3' }, locale: 'en-US', timezone: 'Asia/Kolkata', time: 1584003903, @@ -320,12 +252,8 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.leanplum.com/api', - headers: { - 'Content-Type': 'application/json', - }, - params: { - action: 'advance', - }, + headers: { 'Content-Type': 'application/json' }, + params: { action: 'advance' }, body: { JSON: { appId: 'leanplum_application_id', @@ -345,11 +273,7 @@ export const data = [ userId: '5094f5704b9cf2b3', }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/lemnisk/router/data.ts b/test/integrations/destinations/lemnisk/router/data.ts index 1a1b84f180..2f6364a0b0 100644 --- a/test/integrations/destinations/lemnisk/router/data.ts +++ b/test/integrations/destinations/lemnisk/router/data.ts @@ -12,12 +12,7 @@ export const data = [ { message: { anonymousId: 'anon-id-new', - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, type: 'identify', }, destination: { @@ -87,9 +82,7 @@ export const data = [ rootStore: null, isProcessorEnabled: true, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, { message: { @@ -102,10 +95,7 @@ export const data = [ event: 'Visited Home', messageId: '1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb', originalTimestamp: '2020-09-29T14:50:29.907+05:30', - traits: { - name: 'Home | RudderStack', - url: 'http://www.rudderstack.com', - }, + traits: { name: 'Home | RudderStack', url: 'http://www.rudderstack.com' }, receivedAt: '2020-09-29T14:50:43.005+05:30', sentAt: '2020-09-28T19:53:44.998Z', timestamp: '2020-09-29T14:50:29.907+05:30', @@ -185,6 +175,7 @@ export const data = [ jobId: 123, messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, }, { @@ -192,39 +183,20 @@ export const data = [ anonymousId: 'anon-id-new', channel: 'mobile', context: { - app: { - build: '4', - name: 'RuddCDN', - }, - page: { - referrer: 'google.com', - }, - device: { - id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', - name: 'generic_x86_arm', - }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.6', - }, - os: { - name: 'Android', - version: '9', - }, + app: { build: '4', name: 'RuddCDN' }, + page: { referrer: 'google.com' }, + device: { id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', name: 'generic_x86_arm' }, + library: { name: 'com.rudderstack.android.sdk.core', version: '1.0.6' }, + os: { name: 'Android', version: '9' }, timezone: 'Asia/Kolkata', - traits: { - customProp: 'customValue', - }, + traits: { customProp: 'customValue' }, userAgent: 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', }, event: 'Visited Home', messageId: '1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb', originalTimestamp: '2020-09-28T19:53:31.900Z', - properties: { - title: 'Home | RudderStack', - url: 'http://www.rudderstack.com', - }, + properties: { title: 'Home | RudderStack', url: 'http://www.rudderstack.com' }, receivedAt: '2020-09-29T14:50:43.005+05:30', sentAt: '2020-09-28T19:53:44.998Z', timestamp: '2020-09-29T14:50:29.907+05:30', @@ -304,6 +276,7 @@ export const data = [ jobId: 129, messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, }, ], @@ -385,11 +358,7 @@ export const data = [ rootStore: null, isProcessorEnabled: true, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], statTags: { destType: 'LEMNISK', feature: 'router', @@ -408,9 +377,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'http://10.11.36.17:8080/analyze/analyze.php', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -512,6 +479,7 @@ export const data = [ jobId: 123, messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, ], batched: false, @@ -523,45 +491,27 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'http://10.11.36.17:8080/analyze/analyze.php', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { type: 'track', context: { - app: { - build: '4', - name: 'RuddCDN', - }, - page: { - referrer: 'google.com', - }, + app: { build: '4', name: 'RuddCDN' }, + page: { referrer: 'google.com' }, device: { id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', name: 'generic_x86_arm', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.6', - }, - os: { - name: 'Android', - version: '9', - }, + library: { name: 'com.rudderstack.android.sdk.core', version: '1.0.6' }, + os: { name: 'Android', version: '9' }, timezone: 'Asia/Kolkata', - traits: { - customProp: 'customValue', - }, + traits: { customProp: 'customValue' }, userAgent: { ua: 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', }, }, - properties: { - title: 'Home | RudderStack', - url: 'http://www.rudderstack.com', - }, + properties: { title: 'Home | RudderStack', url: 'http://www.rudderstack.com' }, event: 'Visited Home', id: 'anon-id-new', userId: 'anon-id-new', @@ -651,6 +601,7 @@ export const data = [ jobId: 129, messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, ], batched: false, diff --git a/test/integrations/destinations/lytics/router/data.ts b/test/integrations/destinations/lytics/router/data.ts index 98aded20bf..e5d9adae5c 100644 --- a/test/integrations/destinations/lytics/router/data.ts +++ b/test/integrations/destinations/lytics/router/data.ts @@ -20,15 +20,9 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.6', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.6', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.6' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/testing/script-test.html', referrer: '', @@ -36,13 +30,9 @@ export const data = [ title: '', url: 'http://localhost:3243/testing/script-test.html', }, - screen: { - density: 2, - }, + screen: { density: 2 }, traits: { - company: { - id: 'abc123', - }, + company: { id: 'abc123' }, createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', email: 'rudderTest@gmail.com', name: 'Rudder Test', @@ -52,9 +42,7 @@ export const data = [ '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', }, event: 'Order Completed', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'a0adfab9-baf7-4e09-a2ce-bbe2844c324a', timestamp: '2020-10-16T08:10:12.782Z', properties: { @@ -123,14 +111,9 @@ export const data = [ type: 'track', userId: 'rudder123', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { - Config: { - apiKey: 'dummyApiKey', - stream: 'default', - }, + Config: { apiKey: 'dummyApiKey', stream: 'default' }, Enabled: true, Transformations: [], IsProcessorEnabled: true, @@ -147,15 +130,9 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.6', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.6', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.6' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/testing/script-test.html', referrer: '', @@ -163,13 +140,9 @@ export const data = [ title: '', url: 'http://localhost:3243/testing/script-test.html', }, - screen: { - density: 2, - }, + screen: { density: 2 }, traits: { - company: { - id: 'abc123', - }, + company: { id: 'abc123' }, createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', email: 'rudderTest@gmail.com', name: 'Rudder Test', @@ -178,9 +151,7 @@ export const data = [ 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, - }, + integrations: { All: true }, messageId: 'e108eb05-f6cd-4624-ba8c-568f2e2b3f92', originalTimestamp: '2020-10-16T08:26:14.938Z', receivedAt: '2020-10-16T13:56:14.945+05:30', @@ -190,14 +161,9 @@ export const data = [ type: 'identify', userId: 'rudder123', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { - Config: { - apiKey: 'dummyApiKey', - stream: 'default', - }, + Config: { apiKey: 'dummyApiKey', stream: 'default' }, Enabled: true, Transformations: [], IsProcessorEnabled: true, @@ -220,9 +186,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.lytics.io/collect/json/default?access_token=dummyApiKey', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -284,18 +248,11 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - apiKey: 'dummyApiKey', - stream: 'default', - }, + Config: { apiKey: 'dummyApiKey', stream: 'default' }, Enabled: true, Transformations: [], IsProcessorEnabled: true, @@ -307,9 +264,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.lytics.io/collect/json/default?access_token=dummyApiKey', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -326,18 +281,11 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - apiKey: 'dummyApiKey', - stream: 'default', - }, + Config: { apiKey: 'dummyApiKey', stream: 'default' }, Enabled: true, Transformations: [], IsProcessorEnabled: true, diff --git a/test/integrations/destinations/mailchimp/network.ts b/test/integrations/destinations/mailchimp/network.ts new file mode 100644 index 0000000000..b036bf566c --- /dev/null +++ b/test/integrations/destinations/mailchimp/network.ts @@ -0,0 +1,80 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://usXXX.api.mailchimp.com/3.0/lists/aud111/members/0b63fa319d113aede8b7b409e4fc6437', + method: 'GET', + }, + httpRes: { + data: { + data: { + type: 'https://mailchimp.com/developer/marketing/docs/errors/', + title: 'Forbidden', + status: 403, + detail: "The API key provided is linked to datacenter 'us6'", + instance: 'ff092056-4d86-aa05-bbe9-9e9466108d81', + }, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab', + method: 'GET', + }, + httpRes: { + data: { + contact_id: 821932121, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/b599284b872e06d29bb796a260ae7c1f', + method: 'GET', + }, + httpRes: { + data: { + contact_id: 821932121, + }, + status: 204, + }, + }, + { + httpReq: { + url: 'https://usXX.api.mailchimp.com/3.0/lists/aud000', + method: 'GET', + }, + httpRes: { + data: { + double_optin: false, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://usXX.api.mailchimp.com/3.0/lists/aud112', + method: 'GET', + }, + httpRes: { + data: { + double_optin: false, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://usXX.api.mailchimp.com/3.0/lists/aud002', + method: 'GET', + }, + httpRes: { + data: { + double_optin: false, + }, + status: 200, + }, + }, +]; diff --git a/test/integrations/destinations/mailchimp/processor/data.ts b/test/integrations/destinations/mailchimp/processor/data.ts new file mode 100644 index 0000000000..a0ee5de3d3 --- /dev/null +++ b/test/integrations/destinations/mailchimp/processor/data.ts @@ -0,0 +1,2259 @@ +export const data = [ + { + name: 'mailchimp', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + firstName: 'Bob', + lastName: 'Dole', + zip: '123', + state: 'test', + city: 'test', + addressLine1: 'test', + birthday: '2000-05-06', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + merge_fields: { + ADDRESS: { + addr1: 'test', + city: 'test', + state: 'test', + zip: '123', + }, + FNAME: 'Bob', + LNAME: 'Dole', + ANONYMOUSI: 'userId12345', + BIRTHDAY: '05/06', + }, + email_address: 'bob.dole@initech.com', + status: 'subscribed', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + MailChimp: { + subscriptionStatus: 'subscribed', + }, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + status: 'subscribed', + email_address: 'bob.dole@initech.com', + merge_fields: { + ANONYMOUSI: 'userId12345', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'Titli Test', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apiKey-dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + type: 'identify', + sentAt: '2021-05-18T06:58:57.186Z', + userId: 'test.rudderlabs@yara.com', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.18', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'https://app.rudderstack.com/sources/1qHR2Qzd894ievNGc4aBHmjltLD', + path: '/sources/1qHR2Qzd894ievNGc4aBHmjltLD', + title: 'RudderStack', + search: '', + tab_url: 'https://app.rudderstack.com/sources/1qHR2Qzd894ievNGc4aBHmjltLD', + referrer: '$direct', + initial_referrer: 'https://www.google.com/', + referring_domain: '', + initial_referring_domain: 'www.google.com', + }, + locale: 'en-US', + screen: { + width: 1792, + height: 1120, + density: 2, + }, + traits: { + name: 'test rudderlabs', + email: 'test.rudderlabs@yara.com', + userId: '1sWVaQTxoVwjvShC0295E6OqMaP', + first_login: false, + workspaceId: '1jWrHYPjNGSHbvKwzow0ZFPIQll', + account_type: 'invited', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.18', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36', + }, + rudderId: '6d612dda-9c8c-4062-9d09-af9425b846ce', + messageId: 'c6d49688-89f2-45cf-b061-0ae3c212a4e5', + timestamp: '2021-05-18T06:58:57.811Z', + receivedAt: '2021-05-18T06:58:57.812Z', + request_ip: '122.172.221.51', + anonymousId: '6914679f-fd34-45ef-86e0-4930e6e8b91a', + integrations: { + Salesforce: true, + }, + originalTimestamp: '2021-05-18T06:58:57.185Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'User does not have access to the requested operation', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'network', + errorType: 'aborted', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'Titli Test', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + type: 'page', + sentAt: '2021-05-18T07:02:17.675Z', + userId: '', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.18', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'https://app.rudderstack.com/signup?type=freetrial', + path: '/signup', + title: '', + search: '?type=freetrial', + tab_url: 'https://app.rudderstack.com/signup?type=freetrial', + referrer: + 'https://rudderstack.medium.com/kafka-vs-postgresql-how-we-implemented-our-queueing-system-using-postgresql-ec128650e3e', + initial_referrer: + 'https://rudderstack.medium.com/kafka-vs-postgresql-how-we-implemented-our-queueing-system-using-postgresql-ec128650e3e', + referring_domain: 'rudderstack.medium.com', + initial_referring_domain: 'rudderstack.medium.com', + }, + locale: 'en-GB', + screen: { + density: 2, + }, + traits: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.18', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36', + }, + rudderId: '4dbe224c-6aea-4d89-8da6-09d27c0d2908', + messageId: '72df8cb0-54ab-417c-8e87-e97e9d339feb', + timestamp: '2021-05-18T07:02:18.566Z', + properties: { + url: 'https://app.rudderstack.com/signup?type=freetrial', + path: '/signup', + title: '', + search: '?type=freetrial', + tab_url: 'https://app.rudderstack.com/signup?type=freetrial', + referrer: + 'https://rudderstack.medium.com/kafka-vs-postgresql-how-we-implemented-our-queueing-system-using-postgresql-ec128650e3e', + initial_referrer: + 'https://rudderstack.medium.com/kafka-vs-postgresql-how-we-implemented-our-queueing-system-using-postgresql-ec128650e3e', + referring_domain: 'rudderstack.medium.com', + initial_referring_domain: 'rudderstack.medium.com', + }, + receivedAt: '2021-05-18T07:02:18.566Z', + request_ip: '162.44.150.11', + anonymousId: '58ec7b39-48f1-4d83-9d45-a48c64f96fa0', + integrations: { + All: true, + }, + originalTimestamp: '2021-05-18T07:02:17.675Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'message type page is not supported', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'email_address', + id: 'bob.dole@initech.com', + type: 'audience', + }, + ], + 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_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + traits: { + merge_fields: { + FIRSTNAME: 'Bob', + }, + status: 'subscribed', + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + merge_fields: { + FIRSTNAME: 'Bob', + }, + status: 'subscribed', + email_address: 'bob.dole@initech.com', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + type: 'identify', + traits: { + status: 'subscri', + }, + userId: 'emrichardson820+22822@gmail.com', + channel: 'sources', + context: { + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + externalId: [ + { + id: 'emrichardson820+22822@gmail.com', + type: 'MAILCHIMP-92e1f1ad2c', + identifierType: 'email_address', + }, + ], + mappedToDestination: 'true', + }, + recordId: '1', + rudderId: '4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a', + messageId: 'b3bee036-fc26-4f6d-9867-c17f85708a82', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'The status must be one of [subscribed, unsubscribed, cleaned, pending, transactional]', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Email is required for identify', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud112', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + email: 'jhon@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + status: 'subscribed', + email_address: 'jhon@gmail.com', + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'PUT', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + audienceId: 'aud112', + version: '1', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud112/members/7f3863b197eeff650876bb89eca08e57', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + email: 'bob.dole@initech.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + email_address: 'bob.dole@initech.com', + status: 'subscribed', + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'PUT', + params: {}, + audienceId: 'aud111', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + version: '1', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + MailChimp: { + subscriptionStatus: 'subscribed', + }, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + status: 'subscribed', + email_address: 'bob.dole@initech.com', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: '', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + anonymousId: 'test-rudderlabs', + email: 'test-rudderlabs-test@initech.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'API Key not found. Aborting', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + anonymousId: 'test-rudderlabs', + email: 'test-rudderlabs-test@initech.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Audience Id not found. Aborting', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: '', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + anonymousId: 'test-rudderlabs', + email: 'test-rudderlabs-test@initech.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'DataCenter Id not found. Aborting', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + 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, + }, + traits: { + anonymousId: 'test-rudderlabs', + email: 'test-rudderlabs-test@initech.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'group', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'message type group is not supported', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 14', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + }, + properties: { + brand: 'Aster', + product: 'Garments', + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'local testing', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + name: 'local_testing', + occurred_at: '2019-11-15T10:26:53+00:00', + properties: { + brand: 'Aster', + product: 'Garments', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + }, + properties: { + brand: 'Aster', + product: 'Garments', + isSyncing: false, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'local testing', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + name: 'local_testing', + occurred_at: '2019-11-15T10:26:53+00:00', + is_syncing: false, + properties: { + brand: 'Aster', + product: 'Garments', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 16', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + }, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'local testing', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Email is required for track', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 17', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + }, + properties: { + brand: 'Aster', + product: 'Garments', + isSyncing: false, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Missing required value from "event"', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 18', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'local testing', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + name: 'local_testing', + occurred_at: '2019-11-15T10:26:53+00:00', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 19', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + }, + properties: { + brand: 'Aster', + product: 'Garments', + isSyncing: false, + products: [ + { + product_id: '123', + price: '14', + }, + { + product_id: '123', + price: 14, + }, + ], + purchased: false, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'local testing', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + name: 'local_testing', + occurred_at: '2019-11-15T10:26:53+00:00', + is_syncing: false, + properties: { + brand: 'Aster', + product: 'Garments', + products: '[{"product_id":"123","price":"14"},{"product_id":"123","price":14}]', + purchased: 'false', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 20', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + }, + properties: { + brand: 'Aster', + product: 'Garments', + isSyncing: false, + products: [ + { + product_id: '123', + price: '14', + }, + { + product_id: '123', + price: 14, + }, + ], + purchased: false, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 22, + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmR1bW15QXBpS2V5', + }, + params: {}, + body: { + JSON: { + name: '22', + occurred_at: '2019-11-15T10:26:53+00:00', + is_syncing: false, + properties: { + brand: 'Aster', + product: 'Garments', + products: '[{"product_id":"123","price":"14"},{"product_id":"123","price":14}]', + purchased: 'false', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 21', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + }, + properties: { + brand: 'Aster', + product: 'Garments', + isSyncing: false, + products: [ + { + product_id: '123', + price: '14', + }, + { + product_id: '123', + price: 14, + }, + ], + purchased: false, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'E', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event name should be between 2 and 30 characters', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'mailchimp', + description: 'Test 22', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'dummyApiKey', + audienceId: 'aud111', + datacenterId: 'usXX', + }, + Enabled: true, + Transformations: [], + }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + }, + }, + properties: { + brand: 'Aster', + product: 'Garments', + isSyncing: false, + products: [ + { + product_id: '123', + price: '14', + }, + { + product_id: '123', + price: 14, + }, + ], + purchased: false, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'Event Name more than 30 characters abcdefghijklmno', + userId: 'userId12345', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event name should be between 2 and 30 characters', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/mailchimp/router/data.ts b/test/integrations/destinations/mailchimp/router/data.ts new file mode 100644 index 0000000000..93635e5369 --- /dev/null +++ b/test/integrations/destinations/mailchimp/router/data.ts @@ -0,0 +1,821 @@ +export const data = [ + { + name: 'mailchimp', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + anonymousId: 'userId12345', + 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 }, + traits: { + anonymousId: 'userId12345', + email: 'bob.dole@initech.com', + firstName: 'Bob', + lastName: 'Dole', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { All: true }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + anonymousId: 'userId12345', + 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 }, + traits: { anonymousId: 'userId12345', email: 'bob.dole@initech.com' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { MailChimp: { subscriptionStatus: 'subscribed' } }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 4, userId: 'u1' }, + message: { + anonymousId: 'userId12345', + 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 }, + traits: { anonymousId: 'userId12345', email: 'bob.dole@initech.com' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { MailChimp: { subscriptionStatus: 'subscrib' } }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 5, userId: 'u1' }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { traits: { anonymousId: 'userId12345', email: 'bob.dole@initech.com' } }, + properties: { brand: 'Aster', product: 'Garments' }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'local testing', + userId: 'userId12345', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 6, userId: 'u1' }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { traits: { anonymousId: 'userId12345', email: 'bob.dole@initech.com' } }, + properties: { brand: 'Aster', product: 'Garments', is_syncing: false }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + userId: 'userId12345', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 7, userId: 'u1' }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { traits: { anonymousId: 'userId12345', email: 'bob.dole@initech.com' } }, + properties: { + brand: 'Aster', + product: 'Garments', + isSyncing: false, + products: [ + { product_id: '123', price: '14' }, + { product_id: '123', price: 14 }, + ], + purchased: false, + }, + messageId: '6d1f3ca8-e2d0-4d34-9926-44596171af0c', + originalTimestamp: '2019-11-15T10:26:53Z', + receivedAt: '2019-11-15T15:56:58+05:30', + sentAt: '2019-11-15T10:26:58Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:56:53+05:30', + type: 'track', + event: 'local testing', + userId: 'userId12345', + }, + }, + ], + destType: 'mailchimp', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111?skip_merge_validation=true&skip_duplicate_check=false', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmFwaWtleQ==', + }, + params: {}, + body: { + JSON: { + members: [ + { + email_address: 'bob.dole@initech.com', + merge_fields: { FNAME: 'Bob', LNAME: 'Dole', ANONYMOUSI: 'userId12345' }, + status: 'subscribed', + }, + { + email_address: 'bob.dole@initech.com', + merge_fields: { ANONYMOUSI: 'userId12345' }, + status: 'subscribed', + }, + ], + update_existing: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { jobId: 2, userId: 'u1' }, + { jobId: 3, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmFwaWtleQ==', + }, + params: {}, + body: { + JSON: { + name: 'local_testing', + occurred_at: '2019-11-15T10:26:53+00:00', + properties: { brand: 'Aster', product: 'Garments' }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + }, + metadata: [{ jobId: 5, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://usXX.api.mailchimp.com/3.0/lists/aud111/members/48cd6232dc124497369f59c33d3eb4ab/events', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmFwaWtleQ==', + }, + params: {}, + body: { + JSON: { + name: 'local_testing', + occurred_at: '2019-11-15T10:26:53+00:00', + is_syncing: false, + properties: { + brand: 'Aster', + product: 'Garments', + products: + '[{"product_id":"123","price":"14"},{"product_id":"123","price":14}]', + purchased: 'false', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + audienceId: 'aud111', + }, + metadata: [{ jobId: 7, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + metadata: [{ jobId: 6, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'Missing required value from "event"', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apikey', + audienceId: 'aud111', + datacenterId: 'usXX', + enableMergeFields: true, + }, + Enabled: true, + Transformations: [], + }, + metadata: [{ jobId: 4, userId: 'u1' }], + batched: false, + statusCode: 400, + error: + 'The status must be one of [subscribed, unsubscribed, cleaned, pending, transactional]', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + }, + { + name: 'mailchimp', + description: 'events batching', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apiKey-dummyApiKey', + audienceId: '1232yyqw22', + datacenterId: 'us20', + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + anonymousId: 'userId12345', + channel: 'web', + context: { + mappedToDestination: true, + externalId: [ + { + identifierType: 'email_address', + id: 'bob.dole@initech.com', + type: 'audience', + }, + ], + 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_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36', + }, + integrations: { All: true }, + traits: { merge_fields: { FIRSTNAME: 'Bob' }, status: 'subscribed' }, + messageId: '21e475b2-3694-477b-afb6-5b94a81aac21', + originalTimestamp: '2019-11-15T10:22:32Z', + receivedAt: '2019-11-15T15:52:37+05:30', + request_ip: '[::1]:62921', + sentAt: '2019-11-15T10:22:37Z', + source_id: '1TdhTcwsUVOeEMWyPUpQIgF3pYr', + timestamp: '2019-11-15T15:52:32+05:30', + type: 'identify', + userId: 'userId12345', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apiKey-dummyApiKey', + audienceId: '1232yyqw22', + datacenterId: 'us20', + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + type: 'identify', + traits: { status: 'subscribed' }, + userId: 'emrichardson820+22822@gmail.com', + channel: 'sources', + context: { + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + externalId: [ + { + id: 'emrichardson820+22822@gmail.com', + type: 'MAILCHIMP-92e1f1ad2c', + identifierType: 'email_address', + }, + ], + mappedToDestination: 'true', + }, + recordId: '1', + rudderId: '4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a', + messageId: 'b3bee036-fc26-4f6d-9867-c17f85708a82', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apiKey-dummyApiKey', + audienceId: '1232yyqw22', + datacenterId: 'us20', + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 4, userId: 'u1' }, + message: { + type: 'identify', + traits: { status: 'subscribed' }, + userId: 'emrichardson820+22822@gmail.com', + channel: 'sources', + context: { + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + externalId: [ + { + id: 'emrichardson820+22822@gmail.com', + type: 'MAILCHIMP-92e1f1ad2c', + identifierType: 'email_address', + }, + ], + mappedToDestination: 'true', + }, + recordId: '1', + rudderId: '4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a', + messageId: 'b3bee036-fc26-4f6d-9867-c17f85708a82', + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apiKey-dummyApiKey', + audienceId: '1232yyqw22', + datacenterId: 'us20', + }, + Enabled: true, + Transformations: [], + }, + metadata: { jobId: 5, userId: 'u1' }, + message: { + type: 'identify', + traits: { status: 'subscrib' }, + userId: 'emrichardson820+22822@gmail.com', + channel: 'sources', + context: { + sources: { + job_id: '24c5HJxHomh6YCngEOCgjS5r1KX/Syncher', + task_id: 'vw_rs_mailchimp_mocked_hg_data', + version: 'v1.8.1', + batch_id: 'f252c69d-c40d-450e-bcd2-2cf26cb62762', + job_run_id: 'c8el40l6e87v0c4hkbl0', + task_run_id: 'c8el40l6e87v0c4hkblg', + }, + externalId: [ + { + id: 'emrichardson820+22822@gmail.com', + type: 'MAILCHIMP-92e1f1ad2c', + identifierType: 'email_address', + }, + ], + mappedToDestination: 'true', + }, + recordId: '1', + rudderId: '4d5d0ed0-9db8-41cc-9bb0-a032f6bfa97a', + messageId: 'b3bee036-fc26-4f6d-9867-c17f85708a82', + }, + }, + ], + destType: 'mailchimp', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://us20.api.mailchimp.com/3.0/lists/1232yyqw22?skip_merge_validation=false&skip_duplicate_check=false', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic YXBpS2V5OmFwaUtleS1kdW1teUFwaUtleQ==', + }, + params: {}, + body: { + JSON: { + members: [ + { + merge_fields: { FIRSTNAME: 'Bob' }, + status: 'subscribed', + email_address: 'bob.dole@initech.com', + }, + { status: 'subscribed', email_address: 'emrichardson820+22822@gmail.com' }, + { status: 'subscribed', email_address: 'emrichardson820+22822@gmail.com' }, + ], + update_existing: true, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { jobId: 2, userId: 'u1' }, + { jobId: 3, userId: 'u1' }, + { jobId: 4, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apiKey-dummyApiKey', + audienceId: '1232yyqw22', + datacenterId: 'us20', + }, + Enabled: true, + Transformations: [], + }, + }, + { + destination: { + ID: '1Tdi0lpXwSVwXG1lcdP2pXHKrJ6', + Name: 'test-mc', + DestinationDefinition: { + ID: '1SujZGrVEPqYmpUJcV4vSl9tfxn', + Name: 'MC', + DisplayName: 'MailChimp', + }, + Config: { + apiKey: 'apiKey-dummyApiKey', + audienceId: '1232yyqw22', + datacenterId: 'us20', + }, + Enabled: true, + Transformations: [], + }, + metadata: [{ jobId: 5, userId: 'u1' }], + batched: false, + statusCode: 400, + error: + 'The status must be one of [subscribed, unsubscribed, cleaned, pending, transactional]', + statTags: { + destType: 'MAILCHIMP', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/mailjet/router/data.ts b/test/integrations/destinations/mailjet/router/data.ts index 85c96629ff..689e73ef2a 100644 --- a/test/integrations/destinations/mailjet/router/data.ts +++ b/test/integrations/destinations/mailjet/router/data.ts @@ -5,6 +5,94 @@ export const data = [ feature: 'router', module: 'destination', version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + userId: 'user@45', + type: 'identify', + context: { + traits: { + age: '30', + email: 'test@user.com', + phone: '7267286346802347827', + userId: 'sajal', + city: 'gondal', + userCountry: 'india', + lastName: 'dev', + username: 'Samle_putUserName', + firstName: 'rudderlabs', + }, + }, + }, + }, + ], + destType: 'mailjet', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mailjet.com/v3/REST/contactslist/58578/managemanycontacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=', + }, + params: {}, + body: { + FORM: {}, + JSON: { + Action: 'addnoforce', + Contacts: [{ email: 'test@user.com', properties: { country: 'india' } }], + }, + JSON_ARRAY: {}, + XML: {}, + }, + files: {}, + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + }, + ], + }, + }, + }, + }, + { + name: 'mailjet', + description: 'batching with 1 listId and 1 action', + feature: 'router', + module: 'destination', + version: 'v0', input: { request: { body: { @@ -20,6 +108,7 @@ export const data = [ }, metadata: { jobId: 1, + userId: 'u1', }, message: { userId: 'user@45', @@ -80,6 +169,7 @@ export const data = [ metadata: [ { jobId: 1, + userId: 'u1', }, ], batched: true, @@ -103,4 +193,586 @@ export const data = [ }, }, }, + { + name: 'mailjet', + description: 'batching with multiple listId and multiple action combinations', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + metadata: { + jobId: 1, + userId: 'u1', + }, + message: { + userId: 'user@45', + type: 'identify', + context: { + traits: { + age: '30', + email: 'test@user.com', + phone: '7267286346802347827', + userId: 'sajal', + city: 'gondal', + userCountry: 'india', + lastName: 'dev', + username: 'Samle_putUserName', + firstName: 'rudderlabs', + }, + }, + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + metadata: { + jobId: 2, + userId: 'u1', + }, + message: { + userId: 'user@46', + type: 'identify', + context: { + traits: { + age: '30', + email: 'test2@user.com', + phone: '7267286346802347827', + userId: 'sajal', + city: 'gondal', + userCountry: 'india', + lastName: 'dev', + username: 'Samle_putUserName', + firstName: 'rudderlabs', + }, + externalId: [ + { + type: 'listId', + id: '58570', + }, + ], + }, + integrations: { + All: true, + mailjet: { + Action: 'unsub', + }, + }, + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + metadata: { + jobId: 3, + userId: 'u1', + }, + message: { + userId: 'user@47', + type: 'identify', + context: { + traits: { + age: '30', + email: 'test3@user.com', + phone: '7267286346802347827', + userId: 'sajal', + city: 'gondal', + userCountry: 'india', + lastName: 'dev', + username: 'Samle_putUserName', + firstName: 'rudderlabs', + }, + externalId: [ + { + type: 'listId', + id: '58576', + }, + ], + }, + integrations: { + All: true, + mailjet: { + Action: 'addforce', + }, + }, + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + metadata: { + jobId: 4, + userId: 'u1', + }, + message: { + userId: 'user@48', + type: 'identify', + context: { + traits: { + age: '30', + email: 'test4@user.com', + phone: '7267286346802347827', + userId: 'sajal', + city: 'gondal', + userCountry: 'india', + lastName: 'dev', + username: 'Samle_putUserName', + firstName: 'rudderlabs', + }, + externalId: [ + { + type: 'listId', + id: '58576', + }, + ], + }, + integrations: { + All: true, + mailjet: { + Action: 'unsub', + }, + }, + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + metadata: { + jobId: 5, + userId: 'u1', + }, + message: { + userId: 'user@49', + type: 'identify', + context: { + traits: { + age: '30', + email: 'test5@user.com', + phone: '7267286346802347827', + userId: 'sajal', + city: 'gondal', + userCountry: 'india', + lastName: 'dev', + username: 'Samle_putUserName', + firstName: 'rudderlabs', + }, + externalId: [ + { + type: 'listId', + id: '585896', + }, + ], + }, + integrations: { + All: true, + mailjet: { + Action: 'unsub', + }, + }, + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + metadata: { + jobId: 6, + userId: 'u1', + }, + message: { + userId: 'user@49', + type: 'identify', + context: { + traits: { + age: '30', + email: 'test5@user.com', + phone: '7267286346802347827', + userId: 'sajal', + city: 'gondal', + userCountry: 'india', + lastName: 'dev', + username: 'Samle_putUserName', + firstName: 'rudderlabs', + }, + externalId: [ + { + type: 'listId', + id: '584896', + }, + ], + }, + }, + }, + { + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [{ from: 'userCountry', to: 'country' }], + }, + }, + metadata: { + jobId: 7, + userId: 'u1', + }, + message: { + userId: 'user@50', + type: 'identify', + context: { + traits: { + age: '30', + email: 'test10@user.com', + phone: '7267286346802347827', + userId: 'sajal', + city: 'gondal', + userCountry: 'india', + lastName: 'dev', + username: 'Samle_putUserName', + firstName: 'rudderlabs', + }, + }, + }, + }, + ], + destType: 'mailjet', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mailjet.com/v3/REST/contactslist/58578/managemanycontacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=', + }, + params: {}, + body: { + JSON: { + Action: 'addnoforce', + Contacts: [ + { + email: 'test@user.com', + properties: { + country: 'india', + }, + }, + { + email: 'test10@user.com', + properties: { + country: 'india', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { jobId: 1, userId: 'u1' }, + { jobId: 7, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [ + { + from: 'userCountry', + to: 'country', + }, + ], + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mailjet.com/v3/REST/contactslist/58570/managemanycontacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=', + }, + params: {}, + body: { + JSON: { + Action: 'unsub', + Contacts: [ + { + email: 'test2@user.com', + properties: { + country: 'india', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [ + { + from: 'userCountry', + to: 'country', + }, + ], + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mailjet.com/v3/REST/contactslist/58576/managemanycontacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=', + }, + params: {}, + body: { + JSON: { + Action: 'addforce', + Contacts: [ + { + email: 'test3@user.com', + properties: { + country: 'india', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 3, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [ + { + from: 'userCountry', + to: 'country', + }, + ], + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mailjet.com/v3/REST/contactslist/58576/managemanycontacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=', + }, + params: {}, + body: { + JSON: { + Action: 'unsub', + Contacts: [ + { + email: 'test4@user.com', + properties: { + country: 'india', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 4, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [ + { + from: 'userCountry', + to: 'country', + }, + ], + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mailjet.com/v3/REST/contactslist/585896/managemanycontacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=', + }, + params: {}, + body: { + JSON: { + Action: 'unsub', + Contacts: [ + { + email: 'test5@user.com', + properties: { + country: 'india', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 5, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [ + { + from: 'userCountry', + to: 'country', + }, + ], + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mailjet.com/v3/REST/contactslist/584896/managemanycontacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic ZHVtbXlBcGlLZXk6ZHVtbXlBcGlTZWNyZXQ=', + }, + params: {}, + body: { + JSON: { + Action: 'addnoforce', + Contacts: [ + { + email: 'test5@user.com', + properties: { + country: 'india', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 6, userId: 'u1' }], + batched: true, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + apiSecret: 'dummyApiSecret', + listId: '58578', + contactPropertiesMapping: [ + { + from: 'userCountry', + to: 'country', + }, + ], + }, + }, + }, + ], + }, + }, + }, + }, ]; diff --git a/test/integrations/destinations/mailmodo/router/data.ts b/test/integrations/destinations/mailmodo/router/data.ts index c341259bbe..3b492b0a82 100644 --- a/test/integrations/destinations/mailmodo/router/data.ts +++ b/test/integrations/destinations/mailmodo/router/data.ts @@ -14,15 +14,8 @@ export const data = [ type: 'identify', event: 'Email Opened', sentAt: '2020-08-28T16:26:16.473Z', - context: { - library: { - name: 'analytics-node', - version: '0.0.3', - }, - }, - _metadata: { - nodeVersion: '10.22.0', - }, + context: { library: { name: 'analytics-node', version: '0.0.3' } }, + _metadata: { nodeVersion: '10.22.0' }, messageId: 'node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453', properties: { @@ -34,31 +27,16 @@ export const data = [ anonymousId: 'abcdeeeeeeeexxxx102', originalTimestamp: '2020-08-28T16:26:06.468Z', }, - metadata: { - jobId: 2, - }, - destination: { - Config: { - apiKey: 'dummyApiKey', - listName: 'abc', - }, - Enabled: true, - }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { Config: { apiKey: 'dummyApiKey', listName: 'abc' }, Enabled: true }, }, { message: { type: 'track', event: 'Email Opened', sentAt: '2020-08-28T16:26:16.473Z', - context: { - library: { - name: 'analytics-node', - version: '0.0.3', - }, - }, - _metadata: { - nodeVersion: '10.22.0', - }, + context: { library: { name: 'analytics-node', version: '0.0.3' } }, + _metadata: { nodeVersion: '10.22.0' }, messageId: 'node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453', properties: { @@ -70,16 +48,8 @@ export const data = [ anonymousId: 'abcdeeeeeeeexxxx102', originalTimestamp: '2020-08-28T16:26:06.468Z', }, - metadata: { - jobId: 3, - }, - destination: { - Config: { - apiKey: 'dummyApiKey', - listName: 'abc', - }, - Enabled: true, - }, + metadata: { jobId: 3, userId: 'u1' }, + destination: { Config: { apiKey: 'dummyApiKey', listName: 'abc' }, Enabled: true }, }, { message: { @@ -87,13 +57,9 @@ export const data = [ userId: 'identified user id', anonymousId: 'anon-id-new', context: { - traits: { - trait1: 'new-val', - }, + traits: { trait1: 'new-val' }, ip: '14.5.67.21', - library: { - name: 'http', - }, + library: { name: 'http' }, }, traits: { email: 'test@abc.com', @@ -105,31 +71,16 @@ export const data = [ }, timestamp: '2020-02-02T00:23:09.544Z', }, - metadata: { - jobId: 4, - }, - destination: { - Config: { - apiKey: 'dummyApiKey', - listName: 'abc', - }, - Enabled: true, - }, + metadata: { jobId: 4, userId: 'u1' }, + destination: { Config: { apiKey: 'dummyApiKey', listName: 'abc' }, Enabled: true }, }, { message: { type: 'identify', event: 'Email Opened', sentAt: '2020-08-28T16:26:16.473Z', - context: { - library: { - name: 'analytics-node', - version: '0.0.3', - }, - }, - _metadata: { - nodeVersion: '10.22.0', - }, + context: { library: { name: 'analytics-node', version: '0.0.3' } }, + _metadata: { nodeVersion: '10.22.0' }, messageId: 'node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453', properties: { @@ -140,16 +91,8 @@ export const data = [ anonymousId: 'abcdeeeeeeeexxxx102', originalTimestamp: '2020-08-28T16:26:06.468Z', }, - metadata: { - jobId: 5, - }, - destination: { - Config: { - apiKey: 'dummyApiKey', - listName: '', - }, - Enabled: true, - }, + metadata: { jobId: 5, userId: 'u1' }, + destination: { Config: { apiKey: 'dummyApiKey', listName: '' }, Enabled: true }, }, ], destType: 'mailmodo', @@ -171,9 +114,7 @@ export const data = [ JSON: { listName: 'abc', values: [ - { - email: 'test@abc.com', - }, + { email: 'test@abc.com' }, { email: 'test@abc.com', data: { @@ -192,30 +133,17 @@ export const data = [ files: {}, method: 'POST', params: {}, - headers: { - mmApiKey: 'dummyApiKey', - 'Content-Type': 'application/json', - }, + headers: { mmApiKey: 'dummyApiKey', 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://api.mailmodo.com/api/v1/addToList/batch', }, metadata: [ - { - jobId: 2, - }, - { - jobId: 4, - }, + { jobId: 2, userId: 'u1' }, + { jobId: 4, userId: 'u1' }, ], batched: true, statusCode: 200, - destination: { - Config: { - apiKey: 'dummyApiKey', - listName: 'abc', - }, - Enabled: true, - }, + destination: { Config: { apiKey: 'dummyApiKey', listName: 'abc' }, Enabled: true }, }, { batchedRequest: { @@ -238,37 +166,20 @@ export const data = [ files: {}, method: 'POST', params: {}, - headers: { - mmApiKey: 'dummyApiKey', - 'Content-Type': 'application/json', - }, + headers: { mmApiKey: 'dummyApiKey', 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://api.mailmodo.com/api/v1/addEvent', }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, - destination: { - Config: { - apiKey: 'dummyApiKey', - listName: 'abc', - }, - Enabled: true, - }, + destination: { Config: { apiKey: 'dummyApiKey', listName: 'abc' }, Enabled: true }, }, { batched: false, error: 'Missing required value from ["traits.email","context.traits.email","properties.email"]', - metadata: [ - { - jobId: 5, - }, - ], + metadata: [{ jobId: 5, userId: 'u1' }], statTags: { destType: 'MAILMODO', errorCategory: 'dataValidation', @@ -278,13 +189,7 @@ export const data = [ module: 'destination', }, statusCode: 400, - destination: { - Config: { - apiKey: 'dummyApiKey', - listName: '', - }, - Enabled: true, - }, + destination: { Config: { apiKey: 'dummyApiKey', listName: '' }, Enabled: true }, }, ], }, diff --git a/test/integrations/destinations/marketo/network.ts b/test/integrations/destinations/marketo/network.ts index b0c6174281..9c28a9aef1 100644 --- a/test/integrations/destinations/marketo/network.ts +++ b/test/integrations/destinations/marketo/network.ts @@ -241,4 +241,732 @@ export const networkCallsData = [ statusText: 'OK', }, }, + { + httpReq: { + url: 'https://marketo_acct_id_success.mktorest.com/identity/oauth/token', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'access_token_success', + expires_in: 3599, + scope: 'integrations@rudderstack.com', + token_type: 'bearer', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://marketo_acct_id_token_failure.mktorest.com/identity/oauth/token', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'access_token_expired', + expires_in: 0, + scope: 'integrations@rudderstack.com', + token_type: 'bearer', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://marketo_acct_id_success.mktorest.com/rest/v1/leads.json', + method: 'get', + }, + httpRes: { + data: { + requestId: '7ab2#17672a46a99', + result: [ + { + id: 4, + status: 'created', + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://marketo_acct_id_success.mktorest.com/rest/v1/leads.json?filterType=email&filterValues=arnab.compsc%40gmail.com', + method: 'GET', + }, + httpRes: { + data: { + requestId: '107#17672aeadba', + result: [], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://marketo_acct_id_success.mktorest.com/rest/v1/leads.json?filterType=userId&filterValues=test-user-6j55yr', + method: 'GET', + }, + httpRes: { + data: { + requestId: '12093#17672aeaee6', + result: [ + { + createdAt: '2020-12-17T21:39:07Z', + email: null, + firstName: null, + id: 4, + lastName: null, + updatedAt: '2020-12-17T21:39:07Z', + userId: 'test-user-6j55yr', + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://marketo_acct_id_failed.mktorest.com/identity/oauth/token', + method: 'GET', + }, + httpRes: { + data: { + success: false, + errors: [ + { + code: '601', + message: 'Access Token Expired', + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://munchkinId.mktorest.com/identity/oauth/token?client_id=b&client_secret=clientSecret&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'test_acess', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://munchkinId.mktorest.com/identity/oauth/token?client_id=wrongClientId&client_secret=clientSecret&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'test_access_token', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://munchkinId.mktorest.com/rest/v1/leads/describe2.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '7fa1#17fd1da66fe', + result: [ + { + name: 'API Lead', + searchableFields: [['email']], + fields: [ + { + name: 'email', + displayName: 'Email Address', + dataType: 'email', + length: 255, + updateable: true, + crmManaged: false, + }, + ], + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://munchkinId.mktorest.com/bulk/v1/leads.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '5bdd#17fd1ff88cd', + result: [ + { + batchId: 2977, + importId: '2977', + status: 'Queued', + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://a.mktorest.com/identity/oauth/token?client_id=b&client_secret=c&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'test_access_token', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://a.mktorest.com/identity/oauth/token?client_id=b&client_secret=forThrottle&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'test_access_token', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://a.mktorest.com/rest/v1/leads/describe2.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '7fa1#17fd1da66fe', + result: [ + { + name: 'API Lead', + searchableFields: [['email']], + fields: [ + { + name: 'email', + displayName: 'Email Address', + dataType: 'email', + length: 255, + updateable: true, + crmManaged: false, + }, + ], + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin4.mktorest.com/identity/oauth/token?client_id=b&client_secret=c&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'test_access_token', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin4.mktorest.com/bulk/v1/leads/batch/1234.json', + method: 'GET', + }, + httpRes: { + data: { + errors: [ + { + message: 'Any 400 error', + code: 1000, + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin3.mktorest.com/identity/oauth/token?client_id=b&client_secret=c&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'test_access_token', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin500.mktorest.com/identity/oauth/token?client_id=b&client_secret=c&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'test_access_token', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin500.mktorest.com/bulk/v1/leads/batch/1234.json', + method: 'GET', + }, + httpRes: { + data: { + errors: [ + { + message: 'Any 500 error', + code: 502, + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://a.mktorest.com/bulk/v1/leads/batch/12345/warnings.json', + method: 'GET', + }, + httpRes: { + data: 'data \n data', + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://a.mktorest.com/bulk/v1/leads/batch/12345/failures.json', + method: 'GET', + }, + httpRes: { + data: 'data \n data', + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin1.mktorest.com/identity/oauth/token?client_id=b&client_secret=c&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'access_token_success', + expires_in: 3599, + scope: 'integrations@rudderstack.com', + token_type: 'bearer', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin1.mktorest.com/rest/v1/leads/describe2.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '7fa1#17fd1da66fe', + result: [ + { + name: 'API Lead', + searchableFields: [['email']], + fields: [ + { + name: 'email', + displayName: 'Email Address', + dataType: 'email', + length: 255, + updateable: true, + crmManaged: false, + }, + ], + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin1.mktorest.com/bulk/v1/leads.json', + method: 'GET', + }, + httpRes: { + data: { + success: false, + errors: [ + { + code: 603, + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin2.mktorest.com/identity/oauth/token?client_id=b&client_secret=c&grant_type=client_credentials', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'access_token_success', + expires_in: 3599, + scope: 'integrations@rudderstack.com', + token_type: 'bearer', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin2.mktorest.com/rest/v1/leads/describe2.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '7fa1#17fd1da66fe', + result: [ + { + name: 'API Lead', + searchableFields: [['email']], + fields: [ + { + name: 'Email', + displayName: 'Email Address', + dataType: 'email', + length: 255, + updateable: true, + crmManaged: false, + }, + ], + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin2.mktorest.com/bulk/v1/leads.json', + method: 'GET', + }, + httpRes: { + data: { + success: false, + errors: [ + { + message: 'There are 10 imports currently being processed. Please try again later', + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin3.mktorest.com/rest/v1/leads/describe2.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '7fa1#17fd1da66fe', + result: [ + { + name: 'API Lead', + searchableFields: [['email']], + fields: [ + { + name: 'Email', + displayName: 'Email Address', + dataType: 'email', + length: 255, + updateable: true, + crmManaged: false, + }, + ], + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin3.mktorest.com/bulk/v1/leads.json', + method: 'GET', + }, + httpRes: { + data: { + success: false, + errors: [ + { + message: 'Empty file', + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin4.mktorest.com/rest/v1/leads/describe2.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '7fa1#17fd1da66fe', + result: [ + { + name: 'API Lead', + searchableFields: [['email']], + fields: [ + { + name: 'Email', + displayName: 'Email Address', + dataType: 'email', + length: 255, + updateable: true, + crmManaged: false, + }, + ], + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://testMunchkin4.mktorest.com/bulk/v1/leads.json', + method: 'GET', + }, + httpRes: { + data: { + success: false, + errors: [ + { + message: 'Any other error', + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://valid_account_broken_event.mktorest.com/identity/oauth/token', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'access_token_success', + expires_in: 3599, + scope: 'integrations@rudderstack.com', + token_type: 'bearer', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://valid_account_broken_event.mktorest.com/rest/v1/leads.json?filterType=email&filterValues=0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail', + method: 'GET', + }, + httpRes: { + data: { + requestId: '12093#17672aeaee6', + result: [], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://valid_account_broken_event.mktorest.com/rest/v1/leads.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '142e4#1835b117b76', + success: false, + errors: [ + { + code: '1006', + message: "Lookup field 'userId' not found", + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://unhandled_status_code.mktorest.com/identity/oauth/token', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'access_token_success', + expires_in: 3599, + scope: 'integrations@rudderstack.com', + token_type: 'bearer', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://unhandled_status_code.mktorest.com/rest/v1/leads.json?filterType=email&filterValues=0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail', + method: 'GET', + }, + httpRes: { + data: { + requestId: '12093#17672aeaee6', + result: [], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://unhandled_status_code.mktorest.com/rest/v1/leads.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '142e4#1835b117b76', + success: false, + errors: [ + { + code: 'random_marketo_code', + message: 'some other problem', + }, + ], + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://successful_identify_transformation.mktorest.com/identity/oauth/token', + method: 'GET', + }, + httpRes: { + data: { + access_token: 'access_token_success', + expires_in: 3599, + scope: 'integrations@rudderstack.com', + token_type: 'bearer', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://successful_identify_transformation.mktorest.com/rest/v1/leads.json', + method: 'GET', + }, + httpRes: { + data: { + requestId: '7ab2#17672a46a99', + result: [ + { + id: 4, + status: 'created', + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://successful_identify_transformation.mktorest.com/rest/v1/leads.json?filterType=email&filterValues=0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail', + method: 'GET', + }, + httpRes: { + data: { + requestId: '12093#17672aeaee6', + result: [ + { + createdAt: '2022-09-17T21:39:07Z', + email: '0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail', + firstName: 'random_first', + id: 4, + lastName: 'random_last', + updatedAt: '2022-09-20T21:48:07Z', + userId: 'test-user-957ue', + }, + ], + success: true, + }, + status: 200, + statusText: 'OK', + }, + }, ]; diff --git a/test/integrations/destinations/marketo/processor/data.ts b/test/integrations/destinations/marketo/processor/data.ts new file mode 100644 index 0000000000..38201bd60d --- /dev/null +++ b/test/integrations/destinations/marketo/processor/data.ts @@ -0,0 +1,1745 @@ +export const data = [ + { + name: 'marketo', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'sources', + context: { + externalId: [ + { + id: 'lynnanderson@smith.net', + identifierType: 'email', + type: 'MARKETO-new_user', + }, + ], + mappedToDestination: 'true', + sources: { + batch_id: 'f5f240d0-0acb-46e0-b043-57fb0aabbadd', + job_id: '1zAj94bEy8komdqnYtSoDp0VmGs/Syncher', + job_run_id: 'c5tar6cqgmgmcjvupdhg', + task_id: 'tt_10_rows_check', + task_run_id: 'c5tar6cqgmgmcjvupdi0', + version: 'release.v1.6.8', + }, + }, + messageId: '2f052f7c-f694-4849-a7ed-a432f7ffa0a4', + originalTimestamp: '2021-10-28T14:03:50.503Z', + receivedAt: '2021-10-28T14:03:46.567Z', + recordId: '8', + request_ip: '10.1.94.92', + rudderId: 'c0f6843e-e3d6-4946-9752-fa339fbadef2', + sentAt: '2021-10-28T14:03:50.503Z', + timestamp: '2021-10-28T14:03:46.566Z', + traits: { + marketoGUID: '23', + administrative_unit: 'Minnesota', + am_pm: 'AM', + boolean: true, + firstname: 'Jacqueline', + pPower: 'AM', + userId: 'Jacqueline', + }, + type: 'identify', + userId: 'lynnanderson@smith.net', + }, + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + Config: { + destConfig: { + defaultConfig: [], + }, + excludeKeys: [], + includeKeys: [], + 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: null, + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + rudderEventsMapping: [], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + libraries: [], + request: { + query: {}, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/customobjects/new_user.json', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + action: 'createOrUpdate', + dedupeBy: 'dedupeFields', + input: [ + { + administrative_unit: 'Minnesota', + am_pm: 'AM', + boolean: true, + firstname: 'Jacqueline', + pPower: 'AM', + userId: 'Jacqueline', + email: 'lynnanderson@smith.net', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'track', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + customActivityPrimaryKeyMap: [ + { + from: 'Product Clicked', + to: 'name', + }, + ], + customActivityEventMap: [ + { + from: 'Product Clicked', + to: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer access_token_success', + }, + params: {}, + body: { + JSON: { + input: [ + { + activityDate: '2020-12-17T21:00:59.176Z', + activityTypeId: 100001, + attributes: [], + leadId: 4, + primaryAttributeValue: 'Test Product', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'Test Product', + product_id: 'prod_1', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'track', + sentAt: '2020-12-17T21:00:59.176Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + { + from: 'product_id', + to: 'productId', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer access_token_success', + }, + params: {}, + body: { + JSON: { + input: [ + { + activityDate: '2020-12-17T21:00:59.176Z', + activityTypeId: 100001, + attributes: [ + { + name: 'productId', + value: 'prod_1', + }, + ], + leadId: 4, + primaryAttributeValue: 'Test Product', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + userId: 'user_id_success', + type: 'track', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: false, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer access_token_success', + }, + params: {}, + body: { + JSON: { + input: [ + { + activityDate: '2020-12-17T21:00:59.176Z', + activityTypeId: 100001, + attributes: [], + leadId: 4, + primaryAttributeValue: 'Test Product', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 4: ERROR - Request Failed for marketo, Access Token Expired', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + traits: { + anonymousId: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + userId: 'user_id_success', + type: 'track', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBerte', + Config: { + accountId: 'marketo_acct_id_token_failure', + clientId: 'marketo_acct_id_token_failure', + clientSecret: 'marketo_acct_id_token_failure', + trackAnonymousEvents: false, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 500, + error: + '{"message":"Request Failed for marketo, Access Token Expired (Retryable).During fetching auth token","destinationResponse":{"access_token":"access_token_expired","expires_in":0,"scope":"integrations@rudderstack.com","token_type":"bearer"}}', + statTags: { + errorCategory: 'network', + errorType: 'retryable', + destType: 'MARKETO', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 5: ERROR - Request Failed for marketo, Access Token Expired', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + userId: 'user_id_success', + type: 'track', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBerte', + Config: { + accountId: 'marketo_acct_id_failed', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: false, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 500, + error: + '{"message":"Request Failed for marketo, Access Token Expired (Retryable).During fetching auth token","destinationResponse":{"response":{"success":false,"errors":[{"code":"601","message":"Access Token Expired"}]},"status":200}}', + statTags: { + errorCategory: 'network', + errorType: 'retryable', + destType: 'MARKETO', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 6: ERROR - Invalid traits value for Marketo', + 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: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + { + from: 'product_id', + to: 'productId', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Invalid traits value for Marketo', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'MARKETO', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 7: ERROR - Anonymous event tracking is turned off and invalid userId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'track', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: false, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Anonymous event tracking is turned off and invalid userId', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'MARKETO', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 8: ERROR - Event is not mapped to Custom Activity', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Purchased', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'track', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Event is not mapped to Custom Activity', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'MARKETO', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 9: ERROR - Primary Key value is invalid for the event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + product_name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'track', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Primary Key value is invalid for the event', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'MARKETO', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 10: ERROR - Message Type is not present. Aborting message.', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + product_name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Message Type is not present. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'MARKETO', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 11: ERROR - Message type not supported', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + product_name: 'Test Product', + }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'screen', + sentAt: '2020-03-12T09:05:03.421Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + ], + leadTraitMapping: [ + { + from: 'leadScore', + to: 'customLeadScore', + }, + ], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Message type not supported', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'MARKETO', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'marketo', + 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', + 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: '00000000000000000000000000', + integrations: { + All: true, + }, + traits: { + score: '0.5', + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { + from: 'name', + to: 'productName', + }, + { + from: 'product_id', + to: 'productId', + }, + ], + leadTraitMapping: [ + { + from: 'score', + to: 'customLeadScore', + }, + ], + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://marketo_acct_id_success.mktorest.com/rest/v1/leads.json', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + action: 'createOrUpdate', + input: [ + { + customLeadScore: '0.5', + id: 4, + }, + ], + lookupField: 'id', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'marketo', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'sources', + context: { + externalId: [ + { + id: 'lynnanderson@smith.net', + identifierType: 'email', + type: 'MARKETO-new_user', + }, + ], + traits: { + marketoGUID: '23', + administrative_unit: 'Minnesota', + am_pm: 'AM', + boolean: true, + firstname: 'Jacqueline', + pPower: 'AM', + userId: 'Jacqueline', + }, + sources: { + batch_id: 'f5f240d0-0acb-46e0-b043-57fb0aabbadd', + job_id: '1zAj94bEy8komdqnYtSoDp0VmGs/Syncher', + job_run_id: 'c5tar6cqgmgmcjvupdhg', + task_id: 'tt_10_rows_check', + task_run_id: 'c5tar6cqgmgmcjvupdi0', + version: 'release.v1.6.8', + }, + }, + messageId: '2f052f7c-f694-4849-a7ed-a432f7ffa0a4', + originalTimestamp: '2021-10-28T14:03:50.503Z', + receivedAt: '2021-10-28T14:03:46.567Z', + recordId: '8', + request_ip: '10.1.94.92', + rudderId: 'c0f6843e-e3d6-4946-9752-fa339fbadef2', + sentAt: '2021-10-28T14:03:50.503Z', + timestamp: '2021-10-28T14:03:46.566Z', + type: 'identify', + userId: 'dummyMail@dummyDomain.com', + }, + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + Config: { + destConfig: { + defaultConfig: [], + }, + excludeKeys: [], + includeKeys: [], + 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: null, + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + rudderEventsMapping: [], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + libraries: [], + request: { + query: {}, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://marketo_acct_id_success.mktorest.com/rest/v1/leads.json', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + action: 'createOrUpdate', + input: [{ id: 4, userId: 'dummyMail@dummyDomain.com' }], + lookupField: 'id', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/marketo/router/data.ts b/test/integrations/destinations/marketo/router/data.ts new file mode 100644 index 0000000000..d187792ea8 --- /dev/null +++ b/test/integrations/destinations/marketo/router/data.ts @@ -0,0 +1,1430 @@ +export const data = [ + { + name: 'marketo', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success' }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { All: true }, + messageId: 'id1', + properties: { name: 'Test Product' }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'track', + sentAt: '2020-03-12T09:05:03.421Z', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [{ from: 'name', to: 'productName' }], + leadTraitMapping: [{ from: 'leadScore', to: 'customLeadScore' }], + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success' }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { All: true }, + messageId: 'id1', + properties: { name: 'Test Product', product_id: 'prod_1' }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'track', + sentAt: '2020-12-17T21:00:59.176Z', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [{ from: 'name', to: 'productName' }], + leadTraitMapping: [{ from: 'leadScore', to: 'customLeadScore' }], + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + message: { + type: 'identify', + sentAt: '2022-09-19T10:34:02.002Z', + userId: 'e17c5a5e-5e2f-430b-b497-fe3f1ea3a704', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '2.12.1', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'https://accounts.app.t2.broken.com/home', + path: '/home', + title: 'Home', + search: '', + tab_url: 'https://accounts.app.t2.broken.com/home', + referrer: 'https://ts50-cvii.core.broken.org/', + initial_referrer: 'https://ts50-cvii.core.broken.org/', + referring_domain: 'ts50-cvii.core.broken.org', + initial_referring_domain: 'ts50-cvii.core.broken.org', + }, + locale: 'en-IN', + screen: { + width: 1728, + height: 1117, + density: 2, + innerWidth: 1728, + innerHeight: 969, + }, + traits: { + name: 'AM', + email: '0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail', + lastName: 'M', + firstName: 'A', + accountName: 'MACDEV', + billingName: 'g g', + companyName: 'macDev', + currentTier: 'Webinar Pro 250', + billingCycle: 'Annually', + lastBillingDate: '2022-06-29T09:40:42.000Z', + nextBillingDate: '2023-09-09T04:00:00.000Z', + subscriptionType: 'Webinar Pro 250', + subscriptionStatus: 'ACTIVE', + lastWebinarEventDate: '2022-09-15T20:00:00.000Z', + nextWebinarEventDate: '2022-09-16T06:15:00.000Z', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '2.12.1' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36', + }, + rudderId: '73dc83ef-587f-4077-90f3-c36083e64019', + messageId: '1663583642000200-e3f31c4c-6361-4f99-b643-7755303a6007', + timestamp: '2022-09-19T10:34:02.954Z', + receivedAt: '2022-09-19T10:34:02.956Z', + request_ip: '11.105.44.120', + anonymousId: '0c7b8b80-9c43-4f8e-b2d2-5e2448a25040', + integrations: { All: true }, + originalTimestamp: '2022-09-19T10:34:02.000Z', + }, + destination: { + Config: { + accountId: 'valid_account_broken_event', + clientId: '504300cd-76b2-a7l4-bhle-90a07420nx73', + clientSecret: '3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd', + trackAnonymousEvents: false, + createIfNotExist: true, + rudderEventsMapping: [ + { event: 'acq_signup_completed', marketoActivityId: '100026' }, + { event: 'act_createwebinarform_submit', marketoActivityId: '100025' }, + { event: 'act_presentation_style', marketoActivityId: '100025' }, + { event: 'act_webinar_view', marketoActivityId: '100025' }, + { event: 'act_webinar_join', marketoActivityId: '100025' }, + { event: 'act_presentation_addteammember', marketoActivityId: '100025' }, + { + event: 'act_engagement_discussions_savediscussion', + marketoActivityId: '100025', + }, + { event: 'act_engagement_networking_savetime', marketoActivityId: '100025' }, + ], + }, + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVke', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmMd', + deleted: false, + createdAt: '2022-02-10T08:39:32.005Z', + updatedAt: '2022-09-03T16:22:31.374Z', + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: { jobId: 3, userId: 'u1' }, + }, + { + message: { + type: 'identify', + sentAt: '2022-09-19T10:34:02.002Z', + userId: 'e17c5a5e-5e2f-430b-b497-fe3f1ea3a704', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '2.12.1', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'https://accounts.app.t2.broken.com/home', + path: '/home', + title: 'Home', + search: '', + tab_url: 'https://accounts.app.t2.broken.com/home', + referrer: 'https://ts50-cvii.core.broken.org/', + initial_referrer: 'https://ts50-cvii.core.broken.org/', + referring_domain: 'ts50-cvii.core.broken.org', + initial_referring_domain: 'ts50-cvii.core.broken.org', + }, + locale: 'en-IN', + screen: { + width: 1728, + height: 1117, + density: 2, + innerWidth: 1728, + innerHeight: 969, + }, + traits: { + name: 'AM', + email: '0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail', + lastName: 'M', + firstName: 'A', + accountName: 'MACDEV', + billingName: 'g g', + companyName: 'macDev', + currentTier: 'Webinar Pro 250', + billingCycle: 'Annually', + lastBillingDate: '2022-06-29T09:40:42.000Z', + nextBillingDate: '2023-09-09T04:00:00.000Z', + subscriptionType: 'Webinar Pro 250', + subscriptionStatus: 'ACTIVE', + lastWebinarEventDate: '2022-09-15T20:00:00.000Z', + nextWebinarEventDate: '2022-09-16T06:15:00.000Z', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '2.12.1' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36', + }, + rudderId: '73dc83ef-587f-4077-90f3-c36083e64019', + messageId: '1663583642000200-e3f31c4c-6361-4f99-b643-7755303a6007', + timestamp: '2022-09-19T10:34:02.954Z', + receivedAt: '2022-09-19T10:34:02.956Z', + request_ip: '11.105.44.120', + anonymousId: '0c7b8b80-9c43-4f8e-b2d2-5e2448a25040', + integrations: { All: true }, + originalTimestamp: '2022-09-19T10:34:02.000Z', + }, + destination: { + Config: { + accountId: 'unhandled_status_code', + clientId: '504300cd-76b2-a7l4-bhle-90a07420nx73', + clientSecret: '3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd', + trackAnonymousEvents: false, + createIfNotExist: true, + rudderEventsMapping: [ + { event: 'acq_signup_completed', marketoActivityId: '100026' }, + { event: 'act_createwebinarform_submit', marketoActivityId: '100025' }, + { event: 'act_presentation_style', marketoActivityId: '100025' }, + { event: 'act_webinar_view', marketoActivityId: '100025' }, + { event: 'act_webinar_join', marketoActivityId: '100025' }, + { event: 'act_presentation_addteammember', marketoActivityId: '100025' }, + { + event: 'act_engagement_discussions_savediscussion', + marketoActivityId: '100025', + }, + { event: 'act_engagement_networking_savetime', marketoActivityId: '100025' }, + ], + }, + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVke', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmMd', + deleted: false, + createdAt: '2022-02-10T08:39:32.005Z', + updatedAt: '2022-09-03T16:22:31.374Z', + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: { jobId: 4, userId: 'u1' }, + }, + { + message: { + type: 'identify', + sentAt: '2022-09-19T10:34:02.002Z', + userId: 'e17c5a5e-5e2f-430b-b497-fe3f1ea3a704', + channel: 'web', + context: { + os: { name: '', version: '' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '2.12.1', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'https://accounts.app.t2.broken.com/home', + path: '/home', + title: 'Home', + search: '', + tab_url: 'https://accounts.app.t2.broken.com/home', + referrer: 'https://ts50-cvii.core.broken.org/', + initial_referrer: 'https://ts50-cvii.core.broken.org/', + referring_domain: 'ts50-cvii.core.broken.org', + initial_referring_domain: 'ts50-cvii.core.broken.org', + }, + locale: 'en-IN', + screen: { + width: 1728, + height: 1117, + density: 2, + innerWidth: 1728, + innerHeight: 969, + }, + traits: { + name: 'AM', + email: '0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail', + lastName: 'M', + firstName: 'A', + accountName: 'MACDEV', + billingName: 'g g', + companyName: 'macDev', + currentTier: 'Webinar Pro 250', + billingCycle: 'Annually', + lastBillingDate: '2022-06-29T09:40:42.000Z', + nextBillingDate: '2023-09-09T04:00:00.000Z', + subscriptionType: 'Webinar Pro 250', + subscriptionStatus: 'ACTIVE', + lastWebinarEventDate: '2022-09-15T20:00:00.000Z', + nextWebinarEventDate: '2022-09-16T06:15:00.000Z', + }, + library: { name: 'RudderLabs JavaScript SDK', version: '2.12.1' }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36', + }, + rudderId: '73dc83ef-587f-4077-90f3-c36083e64019', + messageId: '1663583642000200-e3f31c4c-6361-4f99-b643-7755303a6007', + timestamp: '2022-09-19T10:34:02.954Z', + receivedAt: '2022-09-19T10:34:02.956Z', + request_ip: '11.105.44.120', + anonymousId: '0c7b8b80-9c43-4f8e-b2d2-5e2448a25040', + integrations: { All: true }, + originalTimestamp: '2022-09-19T10:34:02.000Z', + }, + destination: { + Config: { + accountId: 'successful_identify_transformation', + clientId: '504300cd-76b2-a7l4-bhle-90a07420nx73', + clientSecret: '3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd', + trackAnonymousEvents: false, + createIfNotExist: true, + rudderEventsMapping: [ + { event: 'acq_signup_completed', marketoActivityId: '100026' }, + { event: 'act_createwebinarform_submit', marketoActivityId: '100025' }, + { event: 'act_presentation_style', marketoActivityId: '100025' }, + { event: 'act_webinar_view', marketoActivityId: '100025' }, + { event: 'act_webinar_join', marketoActivityId: '100025' }, + { event: 'act_presentation_addteammember', marketoActivityId: '100025' }, + { + event: 'act_engagement_discussions_savediscussion', + marketoActivityId: '100025', + }, + { event: 'act_engagement_networking_savetime', marketoActivityId: '100025' }, + ], + }, + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVke', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmMd', + deleted: false, + createdAt: '2022-02-10T08:39:32.005Z', + updatedAt: '2022-09-03T16:22:31.374Z', + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: { jobId: 5, userId: 'u1' }, + }, + ], + destType: 'marketo', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer access_token_success', + }, + params: {}, + body: { + JSON: { + input: [ + { + activityDate: '2020-12-17T21:00:59.176Z', + activityTypeId: 100001, + attributes: [], + leadId: 4, + primaryAttributeValue: 'Test Product', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { destInfo: { authKey: '1mMy5cqbtfuaKZv1IhVQKnBdVwe' }, jobId: 1, userId: 'u1' }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [{ from: 'name', to: 'productName' }], + leadTraitMapping: [{ from: 'leadScore', to: 'customLeadScore' }], + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer access_token_success', + }, + params: {}, + body: { + JSON: { + input: [ + { + activityDate: '2020-12-17T21:00:59.176Z', + activityTypeId: 100001, + attributes: [], + leadId: 4, + primaryAttributeValue: 'Test Product', + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { destInfo: { authKey: '1mMy5cqbtfuaKZv1IhVQKnBdVwe' }, jobId: 2, userId: 'u1' }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [{ from: 'name', to: 'productName' }], + leadTraitMapping: [{ from: 'leadScore', to: 'customLeadScore' }], + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmLd', + deleted: false, + createdAt: '2020-12-30T08:39:32.005Z', + updatedAt: '2021-02-03T16:22:31.374Z', + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + batched: false, + statusCode: 400, + error: + '{"message":"Request Failed for marketo, Lookup field \'userId\' not found (Aborted).[Marketo Transformer]: During lead look up using email","destinationResponse":{"response":{"requestId":"142e4#1835b117b76","success":false,"errors":[{"code":"1006","message":"Lookup field \'userId\' not found"}]},"status":200}}', + statTags: { errorCategory: 'network', errorType: 'aborted' }, + metadata: [ + { destInfo: { authKey: '1mMy5cqbtfuaKZv1IhVQKnBdVke' }, jobId: 3, userId: 'u1' }, + ], + destination: { + Config: { + accountId: 'valid_account_broken_event', + clientId: '504300cd-76b2-a7l4-bhle-90a07420nx73', + clientSecret: '3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd', + trackAnonymousEvents: false, + createIfNotExist: true, + rudderEventsMapping: [ + { event: 'acq_signup_completed', marketoActivityId: '100026' }, + { event: 'act_createwebinarform_submit', marketoActivityId: '100025' }, + { event: 'act_presentation_style', marketoActivityId: '100025' }, + { event: 'act_webinar_view', marketoActivityId: '100025' }, + { event: 'act_webinar_join', marketoActivityId: '100025' }, + { event: 'act_presentation_addteammember', marketoActivityId: '100025' }, + { + event: 'act_engagement_discussions_savediscussion', + marketoActivityId: '100025', + }, + { event: 'act_engagement_networking_savetime', marketoActivityId: '100025' }, + ], + }, + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVke', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmMd', + deleted: false, + createdAt: '2022-02-10T08:39:32.005Z', + updatedAt: '2022-09-03T16:22:31.374Z', + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + { + batched: false, + statusCode: 400, + error: + '{"message":"Error occurred [Marketo Transformer]: During lead look up using email -> some other problem","destinationResponse":{"response":{"requestId":"142e4#1835b117b76","success":false,"errors":[{"code":"random_marketo_code","message":"some other problem"}]},"status":200}}', + statTags: { + errorCategory: 'network', + errorType: 'aborted', + meta: 'unhandledStatusCode', + }, + destination: { + Config: { + accountId: 'unhandled_status_code', + clientId: '504300cd-76b2-a7l4-bhle-90a07420nx73', + clientSecret: '3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd', + trackAnonymousEvents: false, + createIfNotExist: true, + rudderEventsMapping: [ + { event: 'acq_signup_completed', marketoActivityId: '100026' }, + { event: 'act_createwebinarform_submit', marketoActivityId: '100025' }, + { event: 'act_presentation_style', marketoActivityId: '100025' }, + { event: 'act_webinar_view', marketoActivityId: '100025' }, + { event: 'act_webinar_join', marketoActivityId: '100025' }, + { event: 'act_presentation_addteammember', marketoActivityId: '100025' }, + { + event: 'act_engagement_discussions_savediscussion', + marketoActivityId: '100025', + }, + { event: 'act_engagement_networking_savetime', marketoActivityId: '100025' }, + ], + }, + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVke', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmMd', + deleted: false, + createdAt: '2022-02-10T08:39:32.005Z', + updatedAt: '2022-09-03T16:22:31.374Z', + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + metadata: [ + { destInfo: { authKey: '1mMy5cqbtfuaKZv1IhVQKnBdVke' }, jobId: 4, userId: 'u1' }, + ], + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://successful_identify_transformation.mktorest.com/rest/v1/leads.json', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer access_token_success', + }, + params: {}, + body: { + JSON: { + action: 'createOrUpdate', + input: [ + { + Email: '0c7b8b80-9c43-4f8e-b2d2-5e2448a25040@j.mail', + FirstName: 'A', + LastName: 'M', + id: 4, + userId: 'e17c5a5e-5e2f-430b-b497-fe3f1ea3a704', + }, + ], + lookupField: 'id', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { destInfo: { authKey: '1mMy5cqbtfuaKZv1IhVQKnBdVke' }, jobId: 5, userId: 'u1' }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accountId: 'successful_identify_transformation', + clientId: '504300cd-76b2-a7l4-bhle-90a07420nx73', + clientSecret: '3l3gJpzRsZagD6gu7tnTeKXz0bomLGnd', + trackAnonymousEvents: false, + createIfNotExist: true, + rudderEventsMapping: [ + { event: 'acq_signup_completed', marketoActivityId: '100026' }, + { event: 'act_createwebinarform_submit', marketoActivityId: '100025' }, + { event: 'act_presentation_style', marketoActivityId: '100025' }, + { event: 'act_webinar_view', marketoActivityId: '100025' }, + { event: 'act_webinar_join', marketoActivityId: '100025' }, + { event: 'act_presentation_addteammember', marketoActivityId: '100025' }, + { + event: 'act_engagement_discussions_savediscussion', + marketoActivityId: '100025', + }, + { event: 'act_engagement_networking_savetime', marketoActivityId: '100025' }, + ], + }, + destinationDefinition: { + config: { + destConfig: { + defaultConfig: [ + 'accountId', + 'clientId', + 'clientSecret', + 'trackAnonymousEvents', + 'rudderEventsMapping', + 'customActivityPropertyMap', + 'leadTraitMapping', + ], + }, + secretKeys: ['clientSecret'], + excludeKeys: [], + includeKeys: [], + routerTransform: true, + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + responseRules: { + responseType: 'JSON', + rules: { + retryable: [ + { success: 'false', 'errors.0.code': 600 }, + { success: 'false', 'errors.0.code': 601 }, + { success: 'false', 'errors.0.code': 602 }, + { success: 'false', 'errors.0.code': 604 }, + { success: 'false', 'errors.0.code': 606 }, + { success: 'false', 'errors.0.code': 607 }, + { success: 'false', 'errors.0.code': 608 }, + { success: 'false', 'errors.0.code': 611 }, + ], + abortable: [ + { success: 'false', 'errors.0.code': 603 }, + { success: 'false', 'errors.0.code': 605 }, + { success: 'false', 'errors.0.code': 609 }, + { success: 'false', 'errors.0.code': 610 }, + ], + }, + }, + id: '1aIXqM806xAVm92nx07YwKbRrO9', + name: 'MARKETO', + displayName: 'Marketo', + createdAt: '2020-04-09T09:24:31.794Z', + updatedAt: '2021-01-11T11:03:28.103Z', + }, + secretConfig: {}, + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVke', + name: 'Marketo', + enabled: true, + workspaceId: '1TSN08muJTZwH8iCDmnnRt1pmMd', + deleted: false, + createdAt: '2022-02-10T08:39:32.005Z', + updatedAt: '2022-09-03T16:22:31.374Z', + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, + { + name: 'marketo', + description: 'processMetadataForRouter function specific test', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: 'anon_id_success', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'TestAppName', + namespace: 'com.android.sample', + version: '1.0', + }, + device: { + id: 'anon_id_success', + 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: 'anon_id_success' }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'Product Clicked', + integrations: { All: true }, + messageId: 'id1', + properties: { name: 'Test Product', product_id: 'prod_1' }, + originalTimestamp: '2020-12-17T21:00:59.176Z', + type: 'track', + sentAt: '2020-12-17T21:00:59.176Z', + }, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { from: 'name', to: 'productName' }, + { from: 'product_id', to: 'productId' }, + ], + leadTraitMapping: [{ from: 'leadScore', to: 'customLeadScore' }], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + metadata: [{ jobId: 1 }, { jobId: 1 }, { jobId: 1 }], + batched: false, + statusCode: 200, + }, + ], + destType: 'marketo', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/activities/external.json', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + input: [ + { + activityDate: '2020-12-17T21:00:59.176Z', + activityTypeId: 100001, + attributes: [{ name: 'productId', value: 'prod_1' }], + leadId: 4, + primaryAttributeValue: 'Test Product', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [[{ jobId: 1 }, { jobId: 1 }, { jobId: 1 }]], + batched: false, + statusCode: 200, + destination: { + ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe', + Config: { + accountId: 'marketo_acct_id_success', + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + trackAnonymousEvents: true, + customActivityPropertyMap: [ + { from: 'name', to: 'productName' }, + { from: 'product_id', to: 'productId' }, + ], + leadTraitMapping: [{ from: 'leadScore', to: 'customLeadScore' }], + createIfNotExist: true, + rudderEventsMapping: [ + { + event: 'Product Clicked', + marketoPrimarykey: 'name', + marketoActivityId: '100001', + }, + ], + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/marketo_bulk_upload/processor/data.ts b/test/integrations/destinations/marketo_bulk_upload/processor/data.ts new file mode 100644 index 0000000000..5f3f2ccb58 --- /dev/null +++ b/test/integrations/destinations/marketo_bulk_upload/processor/data.ts @@ -0,0 +1,499 @@ +export const data = [ + { + "name": "marketo_bulk_upload", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "type": "identify", + "traits": { + "name": "Carlo Lombard", + "plan": "Quarterly Team+ Plan for Enuffsaid Media", + "email": "carlo@enuffsaid.media" + }, + "userId": 476335, + "context": { + "ip": "14.0.2.238", + "page": { + "url": "enuffsaid.proposify.com", + "path": "/settings", + "method": "POST", + "referrer": "https://enuffsaid.proposify.com/login" + }, + "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": "786dfec9-jfh", + "messageId": "5d9bc6e2-ekjh" + }, + "destination": { + "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", + "Config": { + "munchkinId": "XXXX", + "clientId": "YYYY", + "clientSecret": "ZZZZ", + "columnFieldsMapping": [ + { + "to": "name__c", + "from": "name" + }, + { + "to": "email__c", + "from": "email" + }, + { + "to": "plan__c", + "from": "plan" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "/fileUpload", + "headers": {}, + "params": {}, + "body": { + "JSON": { + "name__c": "Carlo Lombard", + "email__c": "carlo@enuffsaid.media", + "plan__c": "Quarterly Team+ Plan for Enuffsaid Media" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "marketo_bulk_upload", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "traits": { + "name": "Carlo Lombard", + "plan": "Quarterly Team+ Plan for Enuffsaid Media", + "email": "carlo@enuffsaid.media" + }, + "userId": 476335, + "context": { + "ip": "14.0.2.238", + "page": { + "url": "enuffsaid.proposify.com", + "path": "/settings", + "method": "POST", + "referrer": "https://enuffsaid.proposify.com/login" + }, + "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": "786dfec9-jfh", + "messageId": "5d9bc6e2-ekjh" + }, + "destination": { + "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", + "Config": { + "munchkinId": "XXXX", + "clientId": "YYYY", + "clientSecret": "ZZZZ", + "columnFieldsMapping": [ + { + "to": "name__c", + "from": "name" + }, + { + "to": "email__c", + "from": "email" + }, + { + "to": "plan__c", + "from": "plan" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Event type is required", + "statTags": { + "destType": "MARKETO_BULK_UPLOAD", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "marketo_bulk_upload", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "type": "track", + "traits": { + "name": "Carlo Lombard", + "plan": "Quarterly Team+ Plan for Enuffsaid Media", + "email": "carlo@enuffsaid.media" + }, + "userId": 476335, + "context": { + "ip": "14.0.2.238", + "page": { + "url": "enuffsaid.proposify.com", + "path": "/settings", + "method": "POST", + "referrer": "https://enuffsaid.proposify.com/login" + }, + "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": "786dfec9-jfh", + "messageId": "5d9bc6e2-ekjh" + }, + "destination": { + "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", + "Config": { + "munchkinId": "XXXX", + "clientId": "YYYY", + "clientSecret": "ZZZZ", + "columnFieldsMapping": [ + { + "to": "name__c", + "from": "name" + }, + { + "to": "email__c", + "from": "email" + }, + { + "to": "plan__c", + "from": "plan" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Event type track is not supported", + "statTags": { + "destType": "MARKETO_BULK_UPLOAD", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "marketo_bulk_upload", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "type": "identify", + "traits": { + "name": "Carlo Lombard", + "plan": "Quarterly Team+ Plan for Enuffsaid Media", + "email": "carlo@enuffsaid.media" + }, + "userId": 476335, + "context": { + "ip": "14.0.2.238", + "page": { + "url": "enuffsaid.proposify.com", + "path": "/settings", + "method": "POST", + "referrer": "https://enuffsaid.proposify.com/login" + }, + "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": "786dfec9-jfh", + "messageId": "5d9bc6e2-ekjh" + }, + "destination": { + "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", + "Config": { + "munchkinId": "XXXX", + "clientId": "YYYY", + "clientSecret": "ZZZZ", + "columnFieldsMapping": [ + { + "to": "name__c", + "from": "1" + }, + { + "to": "email__c", + "from": "email1" + }, + { + "to": "plan__c", + "from": "plan1" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "/fileUpload", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "marketo_bulk_upload", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "type": "identify", + "traits": { + "name": "Carlo Lombard", + "plan": "Quarterly Team+ Plan for Enuffsaid Media", + "email": "carlo@enuffsaid.media" + }, + "userId": 476335, + "context": { + "ip": "14.0.2.238", + "page": { + "url": "enuffsaid.proposify.com", + "path": "/settings", + "method": "POST", + "referrer": "https://enuffsaid.proposify.com/login" + }, + "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": "786dfec9-jfh", + "messageId": "5d9bc6e2-ekjh" + }, + "destination": { + "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", + "Config": { + "munchkinId": "XXXX", + "clientId": "YYYY", + "clientSecret": "ZZZZ", + "columnFieldsMapping": [ + { + "to": "name__c", + "from": "name" + }, + { + "to": "email__c", + "from": "email1" + }, + { + "to": "plan__c", + "from": "plan1" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "/fileUpload", + "headers": {}, + "params": {}, + "body": { + "JSON": { + "name__c": "Carlo Lombard" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "marketo_bulk_upload", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "type": "identify", + "traits": { + "name": "Carlo Lombard", + "plan": 1 + }, + "userId": 476335, + "context": { + "ip": "14.0.2.238", + "page": { + "url": "enuffsaid.proposify.com", + "path": "/settings", + "method": "POST", + "referrer": "https://enuffsaid.proposify.com/login" + }, + "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": "786dfec9-jfh", + "messageId": "5d9bc6e2-ekjh" + }, + "destination": { + "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe", + "Config": { + "munchkinId": "XXXX", + "clientId": "YYYY", + "clientSecret": "ZZZZ", + "columnFieldsMapping": [ + { + "to": "name__c", + "from": "name" + }, + { + "to": "email__c", + "from": "email" + }, + { + "to": "plan__c", + "from": "plan" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "/fileUpload", + "headers": {}, + "params": {}, + "body": { + "JSON": { + "name__c": "Carlo Lombard", + "plan__c": 1 + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/marketo_static_list/dataDelivery/data.ts b/test/integrations/destinations/marketo_static_list/dataDelivery/data.ts index e3deebca9b..0ac9123592 100644 --- a/test/integrations/destinations/marketo_static_list/dataDelivery/data.ts +++ b/test/integrations/destinations/marketo_static_list/dataDelivery/data.ts @@ -365,4 +365,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/marketo_static_list/processor/data.ts b/test/integrations/destinations/marketo_static_list/processor/data.ts index 51e4e87824..05fba54f6a 100644 --- a/test/integrations/destinations/marketo_static_list/processor/data.ts +++ b/test/integrations/destinations/marketo_static_list/processor/data.ts @@ -62,9 +62,9 @@ export const data = [ output: { version: '1', type: 'REST', - method: 'POST', + method: 'DELETE', endpoint: - 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3', + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=4&id=5&id=6', headers: { Authorization: 'Bearer access_token_success', 'Content-Type': 'application/json', @@ -80,9 +80,9 @@ export const data = [ output: { version: '1', type: 'REST', - method: 'DELETE', + method: 'POST', endpoint: - 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=4&id=5&id=6', + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3', headers: { Authorization: 'Bearer access_token_success', 'Content-Type': 'application/json', diff --git a/test/integrations/destinations/marketo_static_list/router/data.ts b/test/integrations/destinations/marketo_static_list/router/data.ts index 23b2ea8ea3..6525f7419d 100644 --- a/test/integrations/destinations/marketo_static_list/router/data.ts +++ b/test/integrations/destinations/marketo_static_list/router/data.ts @@ -1,7 +1,8 @@ export const data = [ { name: 'marketo_static_list', - description: 'Test 0', + description: + 'Test 0: Test audiencelist event with add and remove: Test eventtype lowercase and uppercase', feature: 'router', module: 'destination', version: 'v0', @@ -37,42 +38,15 @@ export const data = [ type: 'audiencelist', properties: { listData: { - add: [ - { - id: 1, - }, - { - id: 2, - }, - { - id: 3, - }, - ], - remove: [ - { - id: 4, - }, - { - id: 5, - }, - { - id: 6, - }, - ], + add: [{ id: 1 }, { id: 2 }, { id: 3 }], + remove: [{ id: 4 }, { id: 5 }, { id: 6 }], }, enablePartialFailure: true, }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, timestamp: '2020-02-02T00:23:09.544Z', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, { destination: { @@ -99,1122 +73,369 @@ export const data = [ userId: 'user 1', anonymousId: 'anon-id-new', event: 'event1', - type: 'audiencelist', + type: 'audienceList', properties: { listData: { add: [ - { - id: 0, - }, - { - id: 1, - }, - { - id: 2, - }, - { - id: 3, - }, - { - id: 4, - }, - { - id: 5, - }, - { - id: 6, - }, - { - id: 7, - }, - { - id: 8, - }, - { - id: 9, - }, - { - id: 10, - }, - { - id: 11, - }, - { - id: 12, - }, - { - id: 13, - }, - { - id: 14, - }, - { - id: 15, - }, - { - id: 16, - }, - { - id: 17, - }, - { - id: 18, - }, - { - id: 19, - }, - { - id: 20, - }, - { - id: 21, - }, - { - id: 22, - }, - { - id: 23, - }, - { - id: 24, - }, - { - id: 25, - }, - { - id: 26, - }, - { - id: 27, - }, - { - id: 28, - }, - { - id: 29, - }, - { - id: 30, - }, - { - id: 31, - }, - { - id: 32, - }, - { - id: 33, - }, - { - id: 34, - }, - { - id: 35, - }, - { - id: 36, - }, - { - id: 37, - }, - { - id: 38, - }, - { - id: 39, - }, - { - id: 40, - }, - { - id: 41, - }, - { - id: 42, - }, - { - id: 43, - }, - { - id: 44, - }, - { - id: 45, - }, - { - id: 46, - }, - { - id: 47, - }, - { - id: 48, - }, - { - id: 49, - }, - { - id: 50, - }, - { - id: 51, - }, - { - id: 52, - }, - { - id: 53, - }, - { - id: 54, - }, - { - id: 55, - }, - { - id: 56, - }, - { - id: 57, - }, - { - id: 58, - }, - { - id: 59, - }, - { - id: 60, - }, - { - id: 61, - }, - { - id: 62, - }, - { - id: 63, - }, - { - id: 64, - }, - { - id: 65, - }, - { - id: 66, - }, - { - id: 67, - }, - { - id: 68, - }, - { - id: 69, - }, - { - id: 70, - }, - { - id: 71, - }, - { - id: 72, - }, - { - id: 73, - }, - { - id: 74, - }, - { - id: 75, - }, - { - id: 76, - }, - { - id: 77, - }, - { - id: 78, - }, - { - id: 79, - }, - { - id: 80, - }, - { - id: 81, - }, - { - id: 82, - }, - { - id: 83, - }, - { - id: 84, - }, - { - id: 85, - }, - { - id: 86, - }, - { - id: 87, - }, - { - id: 88, - }, - { - id: 89, - }, - { - id: 90, - }, - { - id: 91, - }, - { - id: 92, - }, - { - id: 93, - }, - { - id: 94, - }, - { - id: 95, - }, - { - id: 96, - }, - { - id: 97, - }, - { - id: 98, - }, - { - id: 99, - }, - { - id: 100, - }, - { - id: 101, - }, - { - id: 102, - }, - { - id: 103, - }, - { - id: 104, - }, - { - id: 105, - }, - { - id: 106, - }, - { - id: 107, - }, - { - id: 108, - }, - { - id: 109, - }, - { - id: 110, - }, - { - id: 111, - }, - { - id: 112, - }, - { - id: 113, - }, - { - id: 114, - }, - { - id: 115, - }, - { - id: 116, - }, - { - id: 117, - }, - { - id: 118, - }, - { - id: 119, - }, - { - id: 120, - }, - { - id: 121, - }, - { - id: 122, - }, - { - id: 123, - }, - { - id: 124, - }, - { - id: 125, - }, - { - id: 126, - }, - { - id: 127, - }, - { - id: 128, - }, - { - id: 129, - }, - { - id: 130, - }, - { - id: 131, - }, - { - id: 132, - }, - { - id: 133, - }, - { - id: 134, - }, - { - id: 135, - }, - { - id: 136, - }, - { - id: 137, - }, - { - id: 138, - }, - { - id: 139, - }, - { - id: 140, - }, - { - id: 141, - }, - { - id: 142, - }, - { - id: 143, - }, - { - id: 144, - }, - { - id: 145, - }, - { - id: 146, - }, - { - id: 147, - }, - { - id: 148, - }, - { - id: 149, - }, - { - id: 150, - }, - { - id: 151, - }, - { - id: 152, - }, - { - id: 153, - }, - { - id: 154, - }, - { - id: 155, - }, - { - id: 156, - }, - { - id: 157, - }, - { - id: 158, - }, - { - id: 159, - }, - { - id: 160, - }, - { - id: 161, - }, - { - id: 162, - }, - { - id: 163, - }, - { - id: 164, - }, - { - id: 165, - }, - { - id: 166, - }, - { - id: 167, - }, - { - id: 168, - }, - { - id: 169, - }, - { - id: 170, - }, - { - id: 171, - }, - { - id: 172, - }, - { - id: 173, - }, - { - id: 174, - }, - { - id: 175, - }, - { - id: 176, - }, - { - id: 177, - }, - { - id: 178, - }, - { - id: 179, - }, - { - id: 180, - }, - { - id: 181, - }, - { - id: 182, - }, - { - id: 183, - }, - { - id: 184, - }, - { - id: 185, - }, - { - id: 186, - }, - { - id: 187, - }, - { - id: 188, - }, - { - id: 189, - }, - { - id: 190, - }, - { - id: 191, - }, - { - id: 192, - }, - { - id: 193, - }, - { - id: 194, - }, - { - id: 195, - }, - { - id: 196, - }, - { - id: 197, - }, - { - id: 198, - }, - { - id: 199, - }, - { - id: 200, - }, - { - id: 201, - }, - { - id: 202, - }, - { - id: 203, - }, - { - id: 204, - }, - { - id: 205, - }, - { - id: 206, - }, - { - id: 207, - }, - { - id: 208, - }, - { - id: 209, - }, - { - id: 210, - }, - { - id: 211, - }, - { - id: 212, - }, - { - id: 213, - }, - { - id: 214, - }, - { - id: 215, - }, - { - id: 216, - }, - { - id: 217, - }, - { - id: 218, - }, - { - id: 219, - }, - { - id: 220, - }, - { - id: 221, - }, - { - id: 222, - }, - { - id: 223, - }, - { - id: 224, - }, - { - id: 225, - }, - { - id: 226, - }, - { - id: 227, - }, - { - id: 228, - }, - { - id: 229, - }, - { - id: 230, - }, - { - id: 231, - }, - { - id: 232, - }, - { - id: 233, - }, - { - id: 234, - }, - { - id: 235, - }, - { - id: 236, - }, - { - id: 237, - }, - { - id: 238, - }, - { - id: 239, - }, - { - id: 240, - }, - { - id: 241, - }, - { - id: 242, - }, - { - id: 243, - }, - { - id: 244, - }, - { - id: 245, - }, - { - id: 246, - }, - { - id: 247, - }, - { - id: 248, - }, - { - id: 249, - }, - { - id: 250, - }, - { - id: 251, - }, - { - id: 252, - }, - { - id: 253, - }, - { - id: 254, - }, - { - id: 255, - }, - { - id: 256, - }, - { - id: 257, - }, - { - id: 258, - }, - { - id: 259, - }, - { - id: 260, - }, - { - id: 261, - }, - { - id: 262, - }, - { - id: 263, - }, - { - id: 264, - }, - { - id: 265, - }, - { - id: 266, - }, - { - id: 267, - }, - { - id: 268, - }, - { - id: 269, - }, - { - id: 270, - }, - { - id: 271, - }, - { - id: 272, - }, - { - id: 273, - }, - { - id: 274, - }, - { - id: 275, - }, - { - id: 276, - }, - { - id: 277, - }, - { - id: 278, - }, - { - id: 279, - }, - { - id: 280, - }, - { - id: 281, - }, - { - id: 282, - }, - { - id: 283, - }, - { - id: 284, - }, - { - id: 285, - }, - { - id: 286, - }, - { - id: 287, - }, - { - id: 288, - }, - { - id: 289, - }, - { - id: 290, - }, - { - id: 291, - }, - { - id: 292, - }, - { - id: 293, - }, - { - id: 294, - }, - { - id: 295, - }, - { - id: 296, - }, - { - id: 297, - }, - { - id: 298, - }, - { - id: 299, - }, - { - id: 300, - }, - { - id: 301, - }, - { - id: 302, - }, - { - id: 303, - }, - { - id: 304, - }, - { - id: 305, - }, - { - id: 306, - }, - { - id: 307, - }, - { - id: 308, - }, - { - id: 309, - }, - { - id: 310, - }, - { - id: 311, - }, - { - id: 312, - }, - { - id: 313, - }, - { - id: 314, - }, - { - id: 315, - }, - { - id: 316, - }, - { - id: 317, - }, - { - id: 318, - }, - { - id: 319, - }, - { - id: 320, - }, - { - id: 321, - }, - { - id: 322, - }, - { - id: 323, - }, - { - id: 324, - }, - { - id: 325, - }, - { - id: 326, - }, - { - id: 327, - }, - { - id: 328, - }, - { - id: 329, - }, - { - id: 330, - }, - { - id: 331, - }, - { - id: 332, - }, - { - id: 333, - }, - { - id: 334, - }, - { - id: 335, - }, - { - id: 336, - }, - { - id: 337, - }, - { - id: 338, - }, - { - id: 339, - }, - { - id: 340, - }, - { - id: 341, - }, - { - id: 342, - }, - { - id: 343, - }, - { - id: 344, - }, - { - id: 345, - }, - { - id: 346, - }, - { - id: 347, - }, - { - id: 348, - }, - { - id: 349, - }, - { - id: 350, - }, + { id: 0 }, + { id: 1 }, + { id: 2 }, + { id: 3 }, + { id: 4 }, + { id: 5 }, + { id: 6 }, + { id: 7 }, + { id: 8 }, + { id: 9 }, + { id: 10 }, + { id: 11 }, + { id: 12 }, + { id: 13 }, + { id: 14 }, + { id: 15 }, + { id: 16 }, + { id: 17 }, + { id: 18 }, + { id: 19 }, + { id: 20 }, + { id: 21 }, + { id: 22 }, + { id: 23 }, + { id: 24 }, + { id: 25 }, + { id: 26 }, + { id: 27 }, + { id: 28 }, + { id: 29 }, + { id: 30 }, + { id: 31 }, + { id: 32 }, + { id: 33 }, + { id: 34 }, + { id: 35 }, + { id: 36 }, + { id: 37 }, + { id: 38 }, + { id: 39 }, + { id: 40 }, + { id: 41 }, + { id: 42 }, + { id: 43 }, + { id: 44 }, + { id: 45 }, + { id: 46 }, + { id: 47 }, + { id: 48 }, + { id: 49 }, + { id: 50 }, + { id: 51 }, + { id: 52 }, + { id: 53 }, + { id: 54 }, + { id: 55 }, + { id: 56 }, + { id: 57 }, + { id: 58 }, + { id: 59 }, + { id: 60 }, + { id: 61 }, + { id: 62 }, + { id: 63 }, + { id: 64 }, + { id: 65 }, + { id: 66 }, + { id: 67 }, + { id: 68 }, + { id: 69 }, + { id: 70 }, + { id: 71 }, + { id: 72 }, + { id: 73 }, + { id: 74 }, + { id: 75 }, + { id: 76 }, + { id: 77 }, + { id: 78 }, + { id: 79 }, + { id: 80 }, + { id: 81 }, + { id: 82 }, + { id: 83 }, + { id: 84 }, + { id: 85 }, + { id: 86 }, + { id: 87 }, + { id: 88 }, + { id: 89 }, + { id: 90 }, + { id: 91 }, + { id: 92 }, + { id: 93 }, + { id: 94 }, + { id: 95 }, + { id: 96 }, + { id: 97 }, + { id: 98 }, + { id: 99 }, + { id: 100 }, + { id: 101 }, + { id: 102 }, + { id: 103 }, + { id: 104 }, + { id: 105 }, + { id: 106 }, + { id: 107 }, + { id: 108 }, + { id: 109 }, + { id: 110 }, + { id: 111 }, + { id: 112 }, + { id: 113 }, + { id: 114 }, + { id: 115 }, + { id: 116 }, + { id: 117 }, + { id: 118 }, + { id: 119 }, + { id: 120 }, + { id: 121 }, + { id: 122 }, + { id: 123 }, + { id: 124 }, + { id: 125 }, + { id: 126 }, + { id: 127 }, + { id: 128 }, + { id: 129 }, + { id: 130 }, + { id: 131 }, + { id: 132 }, + { id: 133 }, + { id: 134 }, + { id: 135 }, + { id: 136 }, + { id: 137 }, + { id: 138 }, + { id: 139 }, + { id: 140 }, + { id: 141 }, + { id: 142 }, + { id: 143 }, + { id: 144 }, + { id: 145 }, + { id: 146 }, + { id: 147 }, + { id: 148 }, + { id: 149 }, + { id: 150 }, + { id: 151 }, + { id: 152 }, + { id: 153 }, + { id: 154 }, + { id: 155 }, + { id: 156 }, + { id: 157 }, + { id: 158 }, + { id: 159 }, + { id: 160 }, + { id: 161 }, + { id: 162 }, + { id: 163 }, + { id: 164 }, + { id: 165 }, + { id: 166 }, + { id: 167 }, + { id: 168 }, + { id: 169 }, + { id: 170 }, + { id: 171 }, + { id: 172 }, + { id: 173 }, + { id: 174 }, + { id: 175 }, + { id: 176 }, + { id: 177 }, + { id: 178 }, + { id: 179 }, + { id: 180 }, + { id: 181 }, + { id: 182 }, + { id: 183 }, + { id: 184 }, + { id: 185 }, + { id: 186 }, + { id: 187 }, + { id: 188 }, + { id: 189 }, + { id: 190 }, + { id: 191 }, + { id: 192 }, + { id: 193 }, + { id: 194 }, + { id: 195 }, + { id: 196 }, + { id: 197 }, + { id: 198 }, + { id: 199 }, + { id: 200 }, + { id: 201 }, + { id: 202 }, + { id: 203 }, + { id: 204 }, + { id: 205 }, + { id: 206 }, + { id: 207 }, + { id: 208 }, + { id: 209 }, + { id: 210 }, + { id: 211 }, + { id: 212 }, + { id: 213 }, + { id: 214 }, + { id: 215 }, + { id: 216 }, + { id: 217 }, + { id: 218 }, + { id: 219 }, + { id: 220 }, + { id: 221 }, + { id: 222 }, + { id: 223 }, + { id: 224 }, + { id: 225 }, + { id: 226 }, + { id: 227 }, + { id: 228 }, + { id: 229 }, + { id: 230 }, + { id: 231 }, + { id: 232 }, + { id: 233 }, + { id: 234 }, + { id: 235 }, + { id: 236 }, + { id: 237 }, + { id: 238 }, + { id: 239 }, + { id: 240 }, + { id: 241 }, + { id: 242 }, + { id: 243 }, + { id: 244 }, + { id: 245 }, + { id: 246 }, + { id: 247 }, + { id: 248 }, + { id: 249 }, + { id: 250 }, + { id: 251 }, + { id: 252 }, + { id: 253 }, + { id: 254 }, + { id: 255 }, + { id: 256 }, + { id: 257 }, + { id: 258 }, + { id: 259 }, + { id: 260 }, + { id: 261 }, + { id: 262 }, + { id: 263 }, + { id: 264 }, + { id: 265 }, + { id: 266 }, + { id: 267 }, + { id: 268 }, + { id: 269 }, + { id: 270 }, + { id: 271 }, + { id: 272 }, + { id: 273 }, + { id: 274 }, + { id: 275 }, + { id: 276 }, + { id: 277 }, + { id: 278 }, + { id: 279 }, + { id: 280 }, + { id: 281 }, + { id: 282 }, + { id: 283 }, + { id: 284 }, + { id: 285 }, + { id: 286 }, + { id: 287 }, + { id: 288 }, + { id: 289 }, + { id: 290 }, + { id: 291 }, + { id: 292 }, + { id: 293 }, + { id: 294 }, + { id: 295 }, + { id: 296 }, + { id: 297 }, + { id: 298 }, + { id: 299 }, + { id: 300 }, + { id: 301 }, + { id: 302 }, + { id: 303 }, + { id: 304 }, + { id: 305 }, + { id: 306 }, + { id: 307 }, + { id: 308 }, + { id: 309 }, + { id: 310 }, + { id: 311 }, + { id: 312 }, + { id: 313 }, + { id: 314 }, + { id: 315 }, + { id: 316 }, + { id: 317 }, + { id: 318 }, + { id: 319 }, + { id: 320 }, + { id: 321 }, + { id: 322 }, + { id: 323 }, + { id: 324 }, + { id: 325 }, + { id: 326 }, + { id: 327 }, + { id: 328 }, + { id: 329 }, + { id: 330 }, + { id: 331 }, + { id: 332 }, + { id: 333 }, + { id: 334 }, + { id: 335 }, + { id: 336 }, + { id: 337 }, + { id: 338 }, + { id: 339 }, + { id: 340 }, + { id: 341 }, + { id: 342 }, + { id: 343 }, + { id: 344 }, + { id: 345 }, + { id: 346 }, + { id: 347 }, + { id: 348 }, + { id: 349 }, + { id: 350 }, ], }, enablePartialFailure: true, }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, - timestamp: '2020-02-02T00:23:09.544Z', - }, - metadata: { - jobId: 2, - }, - }, - { - destination: { - ID: '1zia9wKshXt80YksLmUdJnr7IHI', - Name: 'test_marketo', - DestinationDefinition: { - ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', - Name: 'MARKETO', - DisplayName: 'Marketo', - transformAt: 'processor', - transformAtV1: 'processor', - }, - Config: { - clientId: 'marketo_client_id_success', - clientSecret: 'marketo_client_secret_success', - accountId: 'marketo_acct_id_success', - staticListId: 1234, - }, - Enabled: true, - Transformations: [], - IsProcessorEnabled: true, - }, - message: { - userId: 'user 1', - anonymousId: 'anon-id-new', - event: 'event1', - type: 'track', - properties: { - listData: { - remove: [1], - }, - enablePartialFailure: true, - }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, timestamp: '2020-02-02T00:23:09.544Z', }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 2, userId: 'u1' }, }, ], destType: 'marketo_static_list', @@ -1232,49 +453,34 @@ export const data = [ { version: '1', type: 'REST', - method: 'POST', + method: 'DELETE', endpoint: - 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3', + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=4&id=5&id=6', headers: { Authorization: 'Bearer access_token_success', 'Content-Type': 'application/json', }, params: {}, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, { version: '1', type: 'REST', - method: 'DELETE', + method: 'POST', endpoint: - 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=4&id=5&id=6', + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3', headers: { Authorization: 'Bearer access_token_success', 'Content-Type': 'application/json', }, params: {}, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, ], metadata: [ - { - destInfo: { - authKey: '1zia9wKshXt80YksLmUdJnr7IHI', - }, - jobId: 1, - }, + { destInfo: { authKey: '1zia9wKshXt80YksLmUdJnr7IHI' }, jobId: 1, userId: 'u1' }, ], batched: false, statusCode: 200, @@ -1312,12 +518,7 @@ export const data = [ 'Content-Type': 'application/json', }, params: {}, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, { @@ -1331,22 +532,12 @@ export const data = [ 'Content-Type': 'application/json', }, params: {}, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, ], metadata: [ - { - destInfo: { - authKey: '1zia9wKshXt80YksLmUdJnr7IHI', - }, - jobId: 2, - }, + { destInfo: { authKey: '1zia9wKshXt80YksLmUdJnr7IHI' }, jobId: 2, userId: 'u1' }, ], batched: false, statusCode: 200, @@ -1371,18 +562,271 @@ export const data = [ IsProcessorEnabled: true, }, }, + ], + }, + }, + }, + }, + { + name: 'marketo_static_list', + description: 'Test 1: Test record and audiencelist events in a single batch', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ { - metadata: [ - { - destInfo: { - authKey: '1zia9wKshXt80YksLmUdJnr7IHI', + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'record', + action: 'insert', + fields: { id: 1001 }, + channel: 'sources', + context: { + sources: { + job_id: '2VsZs4hyPpq7f1p8igrpmHsibHl', + version: 'feat.mirrorRetlEvent', + job_run_id: 'ck99nbd2kqiljdihhkh0', + task_run_id: 'ck99nbd2kqiljdihhkhg', }, - jobId: 3, + externalId: [{ type: 'marketoStaticListId', identifierType: 'id' }], + destinationFields: 'id', + mappedToDestination: 'true', }, - ], + recordId: '3', + }, + metadata: { jobId: 1, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'record', + action: 'insert', + fields: { id: 1002 }, + channel: 'sources', + context: { + sources: { + job_id: '2VsZs4hyPpq7f1p8igrpmHsibHl', + version: 'feat.mirrorRetlEvent', + job_run_id: 'ck99nbd2kqiljdihhkh0', + task_run_id: 'ck99nbd2kqiljdihhkhg', + }, + externalId: [{ type: 'marketoStaticListId', identifierType: 'id' }], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { jobId: 2, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'record', + action: 'insert', + fields: { id: 1003 }, + channel: 'sources', + context: { + sources: { + job_id: '2VsZs4hyPpq7f1p8igrpmHsibHl', + version: 'feat.mirrorRetlEvent', + job_run_id: 'ck99nbd2kqiljdihhkh0', + task_run_id: 'ck99nbd2kqiljdihhkhg', + }, + externalId: [{ type: 'marketoStaticListId', identifierType: 'id' }], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { jobId: 3, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + action: 'delete', + context: { + destinationFields: 'id', + externalId: [{ identifierType: 'id', type: 'marketoStaticListId' }], + mappedToDestination: 'true', + sources: { + job_id: 'sf', + job_run_id: 'ck985bve58cvnti48120', + task_run_id: 'ck985bve58cvnti4812g', + version: '', + }, + }, + recordId: '2', + rudderId: '2', + fields: { id: '2001' }, + type: 'record', + }, + metadata: { jobId: 4, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + action: 'delete', + context: { + destinationFields: 'id', + externalId: [{ identifierType: 'id', type: 'marketoStaticListId' }], + mappedToDestination: 'true', + sources: { + job_id: 'sf', + job_run_id: 'ck985bve58cvnti48120', + task_run_id: 'ck985bve58cvnti4812g', + version: '', + }, + }, + recordId: '2', + rudderId: '2', + fields: { id: '2002' }, + type: 'record', + }, + metadata: { jobId: 5, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + action: 'delete', + context: { + destinationFields: 'id', + externalId: [{ identifierType: 'id', type: 'marketoStaticListId' }], + mappedToDestination: 'true', + sources: { + job_id: 'sf', + job_run_id: 'ck985bve58cvnti48120', + task_run_id: 'ck985bve58cvnti4812g', + version: '', + }, + }, + recordId: '2', + rudderId: '2', + fields: { id: '2003' }, + type: 'record', + }, + metadata: { jobId: 6, userId: 'u1' }, + }, + { destination: { ID: '1zia9wKshXt80YksLmUdJnr7IHI', - Name: 'test_marketo', + Name: 'test_marketo_al', DestinationDefinition: { ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', Name: 'MARKETO', @@ -1400,12 +844,1071 @@ export const data = [ Transformations: [], IsProcessorEnabled: true, }, - batched: false, - statusCode: 400, - error: 'Event type track is not supported', - statTags: { - errorCategory: 'dataValidation', - errorType: 'instrumentation', + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [{ id: 101 }, { id: 102 }, { id: 103 }], + remove: [{ id: 4 }, { id: 5 }, { id: 6 }], + }, + enablePartialFailure: true, + }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + metadata: { jobId: 7, userId: 'u1' }, + }, + { + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo_al', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1234, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + userId: 'user 1', + anonymousId: 'anon-id-new', + event: 'event1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { id: 0 }, + { id: 1 }, + { id: 2 }, + { id: 3 }, + { id: 4 }, + { id: 5 }, + { id: 6 }, + { id: 7 }, + { id: 8 }, + { id: 9 }, + { id: 10 }, + { id: 11 }, + { id: 12 }, + { id: 13 }, + { id: 14 }, + { id: 15 }, + { id: 16 }, + { id: 17 }, + { id: 18 }, + { id: 19 }, + { id: 20 }, + { id: 21 }, + { id: 22 }, + { id: 23 }, + { id: 24 }, + { id: 25 }, + { id: 26 }, + { id: 27 }, + { id: 28 }, + { id: 29 }, + { id: 30 }, + { id: 31 }, + { id: 32 }, + { id: 33 }, + { id: 34 }, + { id: 35 }, + { id: 36 }, + { id: 37 }, + { id: 38 }, + { id: 39 }, + { id: 40 }, + { id: 41 }, + { id: 42 }, + { id: 43 }, + { id: 44 }, + { id: 45 }, + { id: 46 }, + { id: 47 }, + { id: 48 }, + { id: 49 }, + { id: 50 }, + { id: 51 }, + { id: 52 }, + { id: 53 }, + { id: 54 }, + { id: 55 }, + { id: 56 }, + { id: 57 }, + { id: 58 }, + { id: 59 }, + { id: 60 }, + { id: 61 }, + { id: 62 }, + { id: 63 }, + { id: 64 }, + { id: 65 }, + { id: 66 }, + { id: 67 }, + { id: 68 }, + { id: 69 }, + { id: 70 }, + { id: 71 }, + { id: 72 }, + { id: 73 }, + { id: 74 }, + { id: 75 }, + { id: 76 }, + { id: 77 }, + { id: 78 }, + { id: 79 }, + { id: 80 }, + { id: 81 }, + { id: 82 }, + { id: 83 }, + { id: 84 }, + { id: 85 }, + { id: 86 }, + { id: 87 }, + { id: 88 }, + { id: 89 }, + { id: 90 }, + { id: 91 }, + { id: 92 }, + { id: 93 }, + { id: 94 }, + { id: 95 }, + { id: 96 }, + { id: 97 }, + { id: 98 }, + { id: 99 }, + { id: 100 }, + { id: 101 }, + { id: 102 }, + { id: 103 }, + { id: 104 }, + { id: 105 }, + { id: 106 }, + { id: 107 }, + { id: 108 }, + { id: 109 }, + { id: 110 }, + { id: 111 }, + { id: 112 }, + { id: 113 }, + { id: 114 }, + { id: 115 }, + { id: 116 }, + { id: 117 }, + { id: 118 }, + { id: 119 }, + { id: 120 }, + { id: 121 }, + { id: 122 }, + { id: 123 }, + { id: 124 }, + { id: 125 }, + { id: 126 }, + { id: 127 }, + { id: 128 }, + { id: 129 }, + { id: 130 }, + { id: 131 }, + { id: 132 }, + { id: 133 }, + { id: 134 }, + { id: 135 }, + { id: 136 }, + { id: 137 }, + { id: 138 }, + { id: 139 }, + { id: 140 }, + { id: 141 }, + { id: 142 }, + { id: 143 }, + { id: 144 }, + { id: 145 }, + { id: 146 }, + { id: 147 }, + { id: 148 }, + { id: 149 }, + { id: 150 }, + { id: 151 }, + { id: 152 }, + { id: 153 }, + { id: 154 }, + { id: 155 }, + { id: 156 }, + { id: 157 }, + { id: 158 }, + { id: 159 }, + { id: 160 }, + { id: 161 }, + { id: 162 }, + { id: 163 }, + { id: 164 }, + { id: 165 }, + { id: 166 }, + { id: 167 }, + { id: 168 }, + { id: 169 }, + { id: 170 }, + { id: 171 }, + { id: 172 }, + { id: 173 }, + { id: 174 }, + { id: 175 }, + { id: 176 }, + { id: 177 }, + { id: 178 }, + { id: 179 }, + { id: 180 }, + { id: 181 }, + { id: 182 }, + { id: 183 }, + { id: 184 }, + { id: 185 }, + { id: 186 }, + { id: 187 }, + { id: 188 }, + { id: 189 }, + { id: 190 }, + { id: 191 }, + { id: 192 }, + { id: 193 }, + { id: 194 }, + { id: 195 }, + { id: 196 }, + { id: 197 }, + { id: 198 }, + { id: 199 }, + { id: 200 }, + { id: 201 }, + { id: 202 }, + { id: 203 }, + { id: 204 }, + { id: 205 }, + { id: 206 }, + { id: 207 }, + { id: 208 }, + { id: 209 }, + { id: 210 }, + { id: 211 }, + { id: 212 }, + { id: 213 }, + { id: 214 }, + { id: 215 }, + { id: 216 }, + { id: 217 }, + { id: 218 }, + { id: 219 }, + { id: 220 }, + { id: 221 }, + { id: 222 }, + { id: 223 }, + { id: 224 }, + { id: 225 }, + { id: 226 }, + { id: 227 }, + { id: 228 }, + { id: 229 }, + { id: 230 }, + { id: 231 }, + { id: 232 }, + { id: 233 }, + { id: 234 }, + { id: 235 }, + { id: 236 }, + { id: 237 }, + { id: 238 }, + { id: 239 }, + { id: 240 }, + { id: 241 }, + { id: 242 }, + { id: 243 }, + { id: 244 }, + { id: 245 }, + { id: 246 }, + { id: 247 }, + { id: 248 }, + { id: 249 }, + { id: 250 }, + { id: 251 }, + { id: 252 }, + { id: 253 }, + { id: 254 }, + { id: 255 }, + { id: 256 }, + { id: 257 }, + { id: 258 }, + { id: 259 }, + { id: 260 }, + { id: 261 }, + { id: 262 }, + { id: 263 }, + { id: 264 }, + { id: 265 }, + { id: 266 }, + { id: 267 }, + { id: 268 }, + { id: 269 }, + { id: 270 }, + { id: 271 }, + { id: 272 }, + { id: 273 }, + { id: 274 }, + { id: 275 }, + { id: 276 }, + { id: 277 }, + { id: 278 }, + { id: 279 }, + { id: 280 }, + { id: 281 }, + { id: 282 }, + { id: 283 }, + { id: 284 }, + { id: 285 }, + { id: 286 }, + { id: 287 }, + { id: 288 }, + { id: 289 }, + { id: 290 }, + { id: 291 }, + { id: 292 }, + { id: 293 }, + { id: 294 }, + { id: 295 }, + { id: 296 }, + { id: 297 }, + { id: 298 }, + { id: 299 }, + { id: 300 }, + { id: 301 }, + { id: 302 }, + { id: 303 }, + { id: 304 }, + { id: 305 }, + { id: 306 }, + { id: 307 }, + { id: 308 }, + { id: 309 }, + { id: 310 }, + { id: 311 }, + { id: 312 }, + { id: 313 }, + { id: 314 }, + { id: 315 }, + { id: 316 }, + { id: 317 }, + { id: 318 }, + { id: 319 }, + { id: 320 }, + { id: 321 }, + { id: 322 }, + { id: 323 }, + { id: 324 }, + { id: 325 }, + { id: 326 }, + { id: 327 }, + { id: 328 }, + { id: 329 }, + { id: 330 }, + { id: 331 }, + { id: 332 }, + { id: 333 }, + { id: 334 }, + { id: 335 }, + { id: 336 }, + { id: 337 }, + { id: 338 }, + { id: 339 }, + { id: 340 }, + { id: 341 }, + { id: 342 }, + { id: 343 }, + { id: 344 }, + { id: 345 }, + { id: 346 }, + { id: 347 }, + { id: 348 }, + { id: 349 }, + { id: 350 }, + ], + }, + enablePartialFailure: true, + }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + metadata: { jobId: 8, userId: 'u1' }, + }, + ], + destType: 'marketo_static_list', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=2001&id=2002&id=2003', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + ], + metadata: [ + { jobId: 4, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + { jobId: 5, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + { jobId: 6, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1122/leads.json?id=1001&id=1002&id=1003', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + ], + metadata: [ + { jobId: 1, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + { jobId: 2, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + { jobId: 3, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=4&id=5&id=6', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=101&id=102&id=103', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + ], + metadata: [ + { jobId: 7, destInfo: { authKey: '1zia9wKshXt80YksLmUdJnr7IHI' }, userId: 'u1' }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo_al', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1234, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=0&id=1&id=2&id=3&id=4&id=5&id=6&id=7&id=8&id=9&id=10&id=11&id=12&id=13&id=14&id=15&id=16&id=17&id=18&id=19&id=20&id=21&id=22&id=23&id=24&id=25&id=26&id=27&id=28&id=29&id=30&id=31&id=32&id=33&id=34&id=35&id=36&id=37&id=38&id=39&id=40&id=41&id=42&id=43&id=44&id=45&id=46&id=47&id=48&id=49&id=50&id=51&id=52&id=53&id=54&id=55&id=56&id=57&id=58&id=59&id=60&id=61&id=62&id=63&id=64&id=65&id=66&id=67&id=68&id=69&id=70&id=71&id=72&id=73&id=74&id=75&id=76&id=77&id=78&id=79&id=80&id=81&id=82&id=83&id=84&id=85&id=86&id=87&id=88&id=89&id=90&id=91&id=92&id=93&id=94&id=95&id=96&id=97&id=98&id=99&id=100&id=101&id=102&id=103&id=104&id=105&id=106&id=107&id=108&id=109&id=110&id=111&id=112&id=113&id=114&id=115&id=116&id=117&id=118&id=119&id=120&id=121&id=122&id=123&id=124&id=125&id=126&id=127&id=128&id=129&id=130&id=131&id=132&id=133&id=134&id=135&id=136&id=137&id=138&id=139&id=140&id=141&id=142&id=143&id=144&id=145&id=146&id=147&id=148&id=149&id=150&id=151&id=152&id=153&id=154&id=155&id=156&id=157&id=158&id=159&id=160&id=161&id=162&id=163&id=164&id=165&id=166&id=167&id=168&id=169&id=170&id=171&id=172&id=173&id=174&id=175&id=176&id=177&id=178&id=179&id=180&id=181&id=182&id=183&id=184&id=185&id=186&id=187&id=188&id=189&id=190&id=191&id=192&id=193&id=194&id=195&id=196&id=197&id=198&id=199&id=200&id=201&id=202&id=203&id=204&id=205&id=206&id=207&id=208&id=209&id=210&id=211&id=212&id=213&id=214&id=215&id=216&id=217&id=218&id=219&id=220&id=221&id=222&id=223&id=224&id=225&id=226&id=227&id=228&id=229&id=230&id=231&id=232&id=233&id=234&id=235&id=236&id=237&id=238&id=239&id=240&id=241&id=242&id=243&id=244&id=245&id=246&id=247&id=248&id=249&id=250&id=251&id=252&id=253&id=254&id=255&id=256&id=257&id=258&id=259&id=260&id=261&id=262&id=263&id=264&id=265&id=266&id=267&id=268&id=269&id=270&id=271&id=272&id=273&id=274&id=275&id=276&id=277&id=278&id=279&id=280&id=281&id=282&id=283&id=284&id=285&id=286&id=287&id=288&id=289&id=290&id=291&id=292&id=293&id=294&id=295&id=296&id=297&id=298&id=299', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=300&id=301&id=302&id=303&id=304&id=305&id=306&id=307&id=308&id=309&id=310&id=311&id=312&id=313&id=314&id=315&id=316&id=317&id=318&id=319&id=320&id=321&id=322&id=323&id=324&id=325&id=326&id=327&id=328&id=329&id=330&id=331&id=332&id=333&id=334&id=335&id=336&id=337&id=338&id=339&id=340&id=341&id=342&id=343&id=344&id=345&id=346&id=347&id=348&id=349&id=350', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + ], + metadata: [ + { jobId: 8, destInfo: { authKey: '1zia9wKshXt80YksLmUdJnr7IHI' }, userId: 'u1' }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1zia9wKshXt80YksLmUdJnr7IHI', + Name: 'test_marketo_al', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1234, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, + { + name: 'marketo_static_list', + description: 'Test 2: Test record evemts', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + destType: 'marketo_static_list', + input: [ + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'record', + action: 'insert', + fields: { id: 1001 }, + channel: 'sources', + context: { + sources: { + job_id: '2VsZs4hyPpq7f1p8igrpmHsibHl', + version: 'feat.mirrorRetlEvent', + job_run_id: 'ck99nbd2kqiljdihhkh0', + task_run_id: 'ck99nbd2kqiljdihhkhg', + }, + externalId: [{ type: 'marketoStaticListId', id: 'id001' }], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { jobId: 1, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'record', + action: 'insert', + fields: { id: 1002 }, + channel: 'sources', + context: { + sources: { + job_id: '2VsZs4hyPpq7f1p8igrpmHsibHl', + version: 'feat.mirrorRetlEvent', + job_run_id: 'ck99nbd2kqiljdihhkh0', + task_run_id: 'ck99nbd2kqiljdihhkhg', + }, + externalId: [{ type: 'marketoStaticListId', id: 'id002' }], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { jobId: 2, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'record', + action: 'insert', + fields: { id: 1003 }, + channel: 'sources', + context: { + sources: { + job_id: '2VsZs4hyPpq7f1p8igrpmHsibHl', + version: 'feat.mirrorRetlEvent', + job_run_id: 'ck99nbd2kqiljdihhkh0', + task_run_id: 'ck99nbd2kqiljdihhkhg', + }, + externalId: [{ type: 'marketoStaticListId', id: 'id001' }], + destinationFields: 'id', + mappedToDestination: 'true', + }, + recordId: '3', + }, + metadata: { jobId: 3, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + action: 'delete', + context: { + destinationFields: 'id', + externalId: [{ id: 'id002', type: 'marketoStaticListId' }], + mappedToDestination: 'true', + sources: { + job_id: 'sf', + job_run_id: 'ck985bve58cvnti48120', + task_run_id: 'ck985bve58cvnti4812g', + version: '', + }, + }, + recordId: '2', + rudderId: '2', + fields: { id: '2001' }, + type: 'record', + }, + metadata: { jobId: 4, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + action: 'delete', + context: { + destinationFields: 'id', + externalId: [{ id: 'id001', type: 'marketoStaticListId' }], + mappedToDestination: 'true', + sources: { + job_id: 'sf', + job_run_id: 'ck985bve58cvnti48120', + task_run_id: 'ck985bve58cvnti4812g', + version: '', + }, + }, + recordId: '2', + rudderId: '2', + fields: { id: '2002' }, + type: 'record', + }, + metadata: { jobId: 5, userId: 'u1' }, + }, + { + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + action: 'delete', + context: { + destinationFields: 'id', + externalId: [{ id: 'id002', type: 'marketoStaticListId' }], + mappedToDestination: 'true', + sources: { + job_id: 'sf', + job_run_id: 'ck985bve58cvnti48120', + task_run_id: 'ck985bve58cvnti4812g', + version: '', + }, + }, + recordId: '2', + rudderId: '2', + fields: { id: '2003' }, + type: 'record', + }, + metadata: { jobId: 6, userId: 'u1' }, + }, + ], + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id001/leads.json?id=2002', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + ], + metadata: [ + { jobId: 5, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id001/leads.json?id=1001&id=1003', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + ], + metadata: [ + { jobId: 1, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + { jobId: 3, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'DELETE', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id002/leads.json?id=2001&id=2003', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + ], + metadata: [ + { jobId: 4, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + { jobId: 6, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/id002/leads.json?id=1002', + headers: { + Authorization: 'Bearer access_token_success', + 'Content-Type': 'application/json', + }, + params: {}, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, + files: {}, + }, + ], + metadata: [ + { jobId: 2, destInfo: { authKey: '1zwa1wKshSt81YksKmUdJnr4IOK' }, userId: 'u1' }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1zwa1wKshSt81YksKmUdJnr4IOK', + Name: 'test_marketo_rc', + DestinationDefinition: { + ID: '1iVQvTRMsPPyJzwol0ifH93QTQ6', + Name: 'MARKETO', + DisplayName: 'Marketo', + transformAt: 'processor', + transformAtV1: 'processor', + }, + Config: { + clientId: 'marketo_client_id_success', + clientSecret: 'marketo_client_secret_success', + accountId: 'marketo_acct_id_success', + staticListId: 1122, + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, }, }, ], diff --git a/test/integrations/destinations/mautic/router/data.ts b/test/integrations/destinations/mautic/router/data.ts index 9ac6c8714f..e0924053f8 100644 --- a/test/integrations/destinations/mautic/router/data.ts +++ b/test/integrations/destinations/mautic/router/data.ts @@ -14,9 +14,7 @@ export const data = [ anonymousId: 'anon-id-new', context: { ip: '14.5.67.21', - library: { - name: 'http', - }, + library: { name: 'http' }, traits: { firstName: 'Test', lastName: 'Rudderlabs', @@ -52,9 +50,7 @@ export const data = [ userName: 'TestRudderlabs45823@gmail.com', }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, ], destType: 'mautic', @@ -105,11 +101,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -141,9 +133,7 @@ export const data = [ anonymousId: 'anon-id-new', context: { ip: '14.5.67.21', - library: { - name: 'http', - }, + library: { name: 'http' }, traits: { firstName: 'Test', lastName: 'Rudderlabs', @@ -180,9 +170,7 @@ export const data = [ userName: 'abcdef', }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, }, ], destType: 'mautic', @@ -196,11 +184,7 @@ export const data = [ body: { output: [ { - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statTags: { errorCategory: 'dataValidation', errorType: 'configuration', @@ -241,17 +225,8 @@ export const data = [ message: { userId: 'user123', groupId: '17', - context: { - externalId: [ - { - type: 'mauticContactId', - id: '246', - }, - ], - }, - traits: { - type: 'Segments', - }, + context: { externalId: [{ type: 'mauticContactId', id: '246' }] }, + traits: { type: 'Segments' }, type: 'group', }, destination: { @@ -262,9 +237,7 @@ export const data = [ userName: 'TestRudderlabs45823@gmail.com', }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, }, ], destType: 'mautic', @@ -289,19 +262,10 @@ export const data = [ 'Basic VGVzdFJ1ZGRlcmxhYnM0NTgyM0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', }, params: {}, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/moengage/processor/data.ts b/test/integrations/destinations/moengage/processor/data.ts index 50b0361381..1ce8705f53 100644 --- a/test/integrations/destinations/moengage/processor/data.ts +++ b/test/integrations/destinations/moengage/processor/data.ts @@ -2777,4 +2777,105 @@ export const data = [ }, }, }, + { + name: 'moengage', + description: + 'when identify is sent without context, the event should not throw internal server error', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + event: 'identify', + sentAt: '2023-11-22T03:42:40.346Z', + userId: 'userId16', + channel: 'mobile', + rudderId: 'dummy-rudderId', + timestamp: '2023-11-22T03:42:31.470Z', + receivedAt: '2023-11-22T03:42:43.281Z', + request_ip: '114.122.233.48', + anonymousId: 'anon-dummyId-1', + integrations: { + All: true, + }, + originalTimestamp: '2023-11-22T03:42:28.535Z', + }, + destination: { + ID: '1iuTZs6eEZVMm6GjRBe6bNShaL3', + Name: 'MoEngage Testing', + DestinationDefinition: { + ID: '1iu4802Tx27kNC4KNYYou6D8jzL', + Name: 'MOENGAGE', + DisplayName: 'MoEngage', + Config: { + destConfig: { defaultConfig: ['apiId', 'apiKey', 'region'] }, + excludeKeys: [], + includeKeys: [], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + ], + }, + }, + Config: { + apiId: 'W0ZHNMPI2O4KHJ48ZILZACRA', + apiKey: 'dummyApiKey', + eventDelivery: false, + eventDeliveryTS: 1602757086384, + region: 'US', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + ], + method: 'POST', + }, + pathSuffix: '', + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + attributes: {}, + customer_id: 'userId16', + type: 'customer', + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api-01.moengage.com/v1/customer/W0ZHNMPI2O4KHJ48ZILZACRA', + files: {}, + headers: { + Authorization: 'Basic VzBaSE5NUEkyTzRLSEo0OFpJTFpBQ1JBOmR1bW15QXBpS2V5', + 'Content-Type': 'application/json', + 'MOE-APPKEY': 'W0ZHNMPI2O4KHJ48ZILZACRA', + }, + method: 'POST', + params: {}, + type: 'REST', + userId: 'anon-dummyId-1', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, ]; diff --git a/test/integrations/destinations/moengage/router/data.ts b/test/integrations/destinations/moengage/router/data.ts index a5664906e5..0f8a3de41b 100644 --- a/test/integrations/destinations/moengage/router/data.ts +++ b/test/integrations/destinations/moengage/router/data.ts @@ -21,15 +21,9 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.6', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.6', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.6' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/testing/script-test.html', referrer: '', @@ -37,13 +31,9 @@ export const data = [ title: '', url: 'http://localhost:3243/testing/script-test.html', }, - screen: { - density: 2, - }, + screen: { density: 2 }, traits: { - company: { - id: 'abc123', - }, + company: { id: 'abc123' }, createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', email: 'rudderTest@gmail.com', name: 'Rudder Test', @@ -53,9 +43,7 @@ export const data = [ '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', }, event: 'Order Completed', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'a0adfab9-baf7-4e09-a2ce-bbe2844c324a', originalTimestamp: '2020-10-16T08:10:12.782Z', properties: { @@ -125,9 +113,7 @@ export const data = [ type: 'track', userId: 'rudder123', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { ID: '1iuTZs6eEZVMm6GjRBe6bNShaL3', Name: 'MoEngage Testing', @@ -136,9 +122,7 @@ export const data = [ Name: 'MOENGAGE', DisplayName: 'MoEngage', Config: { - destConfig: { - defaultConfig: ['apiId', 'apiKey', 'region'], - }, + destConfig: { defaultConfig: ['apiId', 'apiKey', 'region'] }, excludeKeys: [], includeKeys: [], supportedSourceTypes: [ @@ -175,15 +159,9 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.6', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.6', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.6' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/testing/script-test.html', referrer: '', @@ -191,13 +169,9 @@ export const data = [ title: '', url: 'http://localhost:3243/testing/script-test.html', }, - screen: { - density: 2, - }, + screen: { density: 2 }, traits: { - company: { - id: 'abc123', - }, + company: { id: 'abc123' }, createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', email: 'rudderTest@gmail.com', name: 'Rudder Test', @@ -206,9 +180,7 @@ export const data = [ 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, - }, + integrations: { All: true }, messageId: 'e108eb05-f6cd-4624-ba8c-568f2e2b3f92', originalTimestamp: '2020-10-16T08:26:14.938Z', receivedAt: '2020-10-16T13:56:14.945+05:30', @@ -218,9 +190,7 @@ export const data = [ type: 'identify', userId: 'rudder123', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { ID: '1iuTZs6eEZVMm6GjRBe6bNShaL3', Name: 'MoEngage Testing', @@ -229,9 +199,7 @@ export const data = [ Name: 'MOENGAGE', DisplayName: 'MoEngage', Config: { - destConfig: { - defaultConfig: ['apiId', 'apiKey', 'region'], - }, + destConfig: { defaultConfig: ['apiId', 'apiKey', 'region'] }, excludeKeys: [], includeKeys: [], supportedSourceTypes: [ @@ -354,11 +322,7 @@ export const data = [ files: {}, userId: '4eb021e9-a2af-4926-ae82-fe996d12f3c5', }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -369,9 +333,7 @@ export const data = [ Name: 'MOENGAGE', DisplayName: 'MoEngage', Config: { - destConfig: { - defaultConfig: ['apiId', 'apiKey', 'region'], - }, + destConfig: { defaultConfig: ['apiId', 'apiKey', 'region'] }, excludeKeys: [], includeKeys: [], supportedSourceTypes: [ @@ -429,11 +391,7 @@ export const data = [ files: {}, userId: '4eb021e9-a2af-4926-ae82-fe996d12f3c5', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -444,9 +402,7 @@ export const data = [ Name: 'MOENGAGE', DisplayName: 'MoEngage', Config: { - destConfig: { - defaultConfig: ['apiId', 'apiKey', 'region'], - }, + destConfig: { defaultConfig: ['apiId', 'apiKey', 'region'] }, excludeKeys: [], includeKeys: [], supportedSourceTypes: [ diff --git a/test/integrations/destinations/monday/network.ts b/test/integrations/destinations/monday/network.ts new file mode 100644 index 0000000000..f23b9061f8 --- /dev/null +++ b/test/integrations/destinations/monday/network.ts @@ -0,0 +1,242 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.monday.com/v2', + method: 'POST', + headers: { + Authorization: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + }, + }, + httpRes: { + data: { + data: { + boards: [ + { + name: 'Planning', + columns: [ + { + id: 'name', + title: 'Name', + type: 'name', + description: null, + settings_str: '{}', + }, + { + id: 'subitems', + title: 'Subitems', + type: 'subtasks', + description: null, + settings_str: + '{"allowMultipleItems":true,"itemTypeName":"column.subtasks.title","displayType":"BOARD_INLINE","boardIds":[3160974974]}', + }, + { + id: 'person', + title: 'Person', + type: 'multiple-person', + description: null, + settings_str: '{}', + }, + { + id: 'status', + title: 'Status', + type: 'color', + description: null, + settings_str: + '{"labels":{"0":"Working on it","1":"Done","2":"Stuck"},"labels_positions_v2":{"0":0,"1":2,"2":1,"5":3},"labels_colors":{"0":{"color":"#fdab3d","border":"#E99729","var_name":"orange"},"1":{"color":"#00c875","border":"#00B461","var_name":"green-shadow"},"2":{"color":"#e2445c","border":"#CE3048","var_name":"red-shadow"}}}', + }, + { + id: 'date4', + title: 'Date', + type: 'date', + description: null, + settings_str: '{}', + }, + { + id: 'checkbox', + title: 'Checkbox', + type: 'boolean', + description: null, + settings_str: '{}', + }, + { + id: 'connect_boards', + title: 'Connect boards', + type: 'board-relation', + description: null, + settings_str: '{"allowCreateReflectionColumn":false}', + }, + { + id: 'status_1', + title: 'Other', + type: 'color', + description: null, + settings_str: + '{"labels":{"0":"Working on it","1":"Done","2":"Stuck"},"labels_colors":{"0":{"color":"#fdab3d","border":"#E99729","var_name":"orange"},"1":{"color":"#00c875","border":"#00B461","var_name":"green-shadow"},"2":{"color":"#e2445c","border":"#CE3048","var_name":"red-shadow"}}}', + }, + { + id: 'date_1', + title: 'Date 1', + type: 'date', + description: null, + settings_str: '{"hide_footer":false}', + }, + { + id: 'status_12', + title: 'new status', + type: 'color', + description: null, + settings_str: + '{"labels":{"0":"Working on it","1":"Done","2":"Stuck"},"labels_colors":{"0":{"color":"#fdab3d","border":"#E99729","var_name":"orange"},"1":{"color":"#00c875","border":"#00B461","var_name":"green-shadow"},"2":{"color":"#e2445c","border":"#CE3048","var_name":"red-shadow"}}}', + }, + { + id: 'numbers', + title: 'Numbers', + type: 'numeric', + description: null, + settings_str: '{}', + }, + { + id: 'text', + title: 'Name', + type: 'text', + description: null, + settings_str: '{}', + }, + { + id: 'country', + title: 'Country', + type: 'country', + description: null, + settings_str: '{}', + }, + { + id: 'dropdown', + title: 'Dropdown', + type: 'dropdown', + description: null, + settings_str: + '{"hide_footer":false,"labels":[{"id":1,"name":"dropdown"},{"id":2,"name":"dropup"}]}', + }, + { + id: 'email', + title: 'Email', + type: 'email', + description: null, + settings_str: '{}', + }, + { + id: 'location', + title: 'Location', + type: 'location', + description: null, + settings_str: '{}', + }, + { + id: 'phone', + title: 'Phone', + type: 'phone', + description: null, + settings_str: '{}', + }, + { + id: 'rating', + title: 'Rating', + type: 'rating', + description: null, + settings_str: '{}', + }, + { + id: 'timeline', + title: 'Timeline', + type: 'timerange', + description: null, + settings_str: '{"hide_footer":false}', + }, + { + id: 'dependent_on', + title: 'Dependent On', + type: 'dependency', + description: + 'Choose the item your task will be dependent on. If the “dependent on” item’s date is changing, the other dates will adjust automatically', + settings_str: + '{"boardIds":[3142482015],"dependencyNewInfra":true,"allowMultipleItems":true}', + }, + { + id: 'long_text', + title: 'Long Text', + type: 'long-text', + description: null, + settings_str: '{}', + }, + { + id: 'link', + title: 'Link', + type: 'link', + description: null, + settings_str: '{}', + }, + { + id: 'tags', + title: 'Tags', + type: 'tag', + description: null, + settings_str: '{"hide_footer":false}', + }, + { + id: 'label', + title: 'Label', + type: 'color', + description: '', + settings_str: + '{"done_colors":[1],"labels":{"3":"Label 2","105":"Label 1","156":"Label 3"},"labels_positions_v2":{"3":1,"5":3,"105":0,"156":2},"labels_colors":{"3":{"color":"#0086c0","border":"#3DB0DF","var_name":"blue-links"},"105":{"color":"#9AADBD","border":"#9AADBD","var_name":"winter"},"156":{"color":"#9D99B9","border":"#9D99B9","var_name":"purple_gray"}}}', + }, + { + id: 'world_clock', + title: 'World Clock', + type: 'timezone', + description: null, + settings_str: '{}', + }, + { + id: 'week', + title: 'Week', + type: 'week', + description: null, + settings_str: '{}', + }, + ], + groups: [ + { + id: 'topics', + title: 'This month', + }, + { + id: 'group_title', + title: 'Next month', + }, + ], + }, + ], + }, + account_id: 13215538, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.monday.com/v2', + method: 'POST', + headers: { + Authorization: 'failedApiToken', + }, + }, + httpRes: { + data: { + boards: [], + }, + status: 200, + }, + }, +]; diff --git a/test/integrations/destinations/monday/processor/data.ts b/test/integrations/destinations/monday/processor/data.ts new file mode 100644 index 0000000000..4e5280efcb --- /dev/null +++ b/test/integrations/destinations/monday/processor/data.ts @@ -0,0 +1,1399 @@ +export const data = [ + { + name: 'monday', + description: 'Track call with empty columnToPropertyMapping', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: '', + columnToPropertyMapping: [], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + }, + 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: [ + { + output: { + body: { + FORM: {}, + JSON: { + query: + 'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.monday.com/v2', + files: {}, + headers: { + Authorization: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + 'Content-Type': 'application/json', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Track call with undefined columnToPropertyMapping', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: '', + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + }, + 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: [ + { + output: { + body: { + FORM: {}, + JSON: { + query: + 'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.monday.com/v2', + files: {}, + headers: { + Authorization: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + 'Content-Type': 'application/json', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Check Unsupported message type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: '', + columnToPropertyMapping: [], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + }, + 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: [ + { + error: 'Event type identify is not supported', + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Check for empty message type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: '', + columnToPropertyMapping: [], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: '', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + }, + 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: [ + { + error: 'Event type is required', + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Check for empty API Token', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: '', + boardId: '339283933', + groupTitle: '', + columnToPropertyMapping: [], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + }, + 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: [ + { + error: 'ApiToken is a required field', + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Check for empty board Id', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '', + groupTitle: '', + columnToPropertyMapping: [], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + }, + 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: [ + { + error: 'boardId is a required field', + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Check for event name', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: '', + columnToPropertyMapping: [], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: '', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + }, + 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: [ + { + error: 'Event is a required field and should be a string', + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Track call with columnToPropertyMapping and with empty groupTitle', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: '', + columnToPropertyMapping: [ + { + from: 'Status', + to: 'status', + }, + { + from: 'Email', + to: 'emailId', + }, + ], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + status: 'Done', + emailId: 'abc@email.com', + emailText: 'emailId', + }, + 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: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.monday.com/v2', + headers: { + 'Content-Type': 'application/json', + Authorization: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + }, + params: {}, + body: { + JSON: { + query: + 'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"abc@email.com\\",\\"text\\":\\"emailId\\"}}") {id}}', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Track call with columnToPropertyMapping and with groupTitle', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: 'Next month', + columnToPropertyMapping: [ + { + from: 'Status', + to: 'status', + }, + { + from: 'Email', + to: 'emailId', + }, + ], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + status: 'Done', + emailId: 'abc@email.com', + emailText: 'emailId', + }, + 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: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.monday.com/v2', + headers: { + 'Content-Type': 'application/json', + Authorization: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + }, + params: {}, + body: { + JSON: { + query: + 'mutation { create_item (board_id: 339283933, group_id: group_title item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"abc@email.com\\",\\"text\\":\\"emailId\\"}}") {id}}', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'Non-existing group title check', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: 'Next year', + columnToPropertyMapping: [ + { + from: 'Status', + to: 'status', + }, + { + from: 'Email', + to: 'emailId', + }, + ], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + status: 'Done', + emailId: 'abc@email.com', + emailText: 'emailId', + }, + 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: [ + { + error: "Group Next year doesn't exist in the board", + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'check for item name', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: 'Next month', + columnToPropertyMapping: [ + { + from: 'Status', + to: 'status', + }, + { + from: 'Email', + to: 'emailId', + }, + ], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: '', + status: 'Done', + emailId: 'abc@email.com', + emailText: 'emailId', + }, + 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: [ + { + error: 'Item name is required to create an item', + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'monday', + description: + 'Track call with columnToPropertyMapping and with groupTitle with all supported columns', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: 'Next month', + columnToPropertyMapping: [ + { + from: 'Status', + to: 'status', + }, + { + from: 'Email', + to: 'emailId', + }, + { + from: 'Checkbox', + to: 'checked', + }, + { + from: 'Numbers', + to: 'number', + }, + { + from: 'Name', + to: 'textKey', + }, + { + from: 'Country', + to: 'countryName', + }, + { + from: 'Location', + to: 'address', + }, + { + from: 'Phone', + to: 'phone', + }, + { + from: 'Rating', + to: 'rating', + }, + { + from: 'Link', + to: 'url', + }, + { + from: 'Long Text', + to: 'description', + }, + { + from: 'World Clock', + to: 'timezone', + }, + ], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + status: 'Done', + emailId: 'abc@email.com', + emailText: 'emailId', + countryCode: 'US', + latitude: '51.23', + longitude: '35.3', + rating: '3', + linkText: 'websiteLink', + checked: 'true', + number: '45', + textKey: 'texting', + countryName: 'Unites States', + countryShortName: 'US', + address: 'New York', + phone: '2626277272', + url: 'demo.com', + description: 'property description', + timezone: 'America/New_York', + }, + 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: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.monday.com/v2', + headers: { + 'Content-Type': 'application/json', + Authorization: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + }, + params: {}, + body: { + JSON: { + query: + 'mutation { create_item (board_id: 339283933, group_id: group_title item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"abc@email.com\\",\\"text\\":\\"emailId\\"},\\"checkbox\\":{\\"checked\\":true},\\"numbers\\":\\"45\\",\\"text\\":\\"texting\\",\\"country\\":{\\"countryName\\":\\"Unites States\\",\\"countryCode\\":\\"US\\"},\\"location\\":{\\"address\\":\\"New York\\",\\"lat\\":\\"51.23\\",\\"lng\\":\\"35.3\\"},\\"phone\\":{\\"phone\\":\\"2626277272\\",\\"countryShortName\\":\\"US\\"},\\"rating\\":3,\\"link\\":{\\"url\\":\\"demo.com\\",\\"text\\":\\"websiteLink\\"},\\"long_text\\":{\\"text\\":\\"property description\\"},\\"world_clock\\":{\\"timezone\\":\\"America/New_York\\"}}") {id}}', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'check for allowed event name from UI', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: 'Next month', + columnToPropertyMapping: [ + { + from: 'Status', + to: 'status', + }, + { + from: 'Email', + to: 'emailId', + }, + ], + whitelistedEvents: [ + { + eventName: '', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: '', + status: 'Done', + emailId: 'abc@email.com', + emailText: 'emailId', + }, + 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: [ + { + error: 'Event Discarded. To allow this event, add this in Allowlist', + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'monday', + description: 'check for deleted boards (configured boards are deleted)', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiToken: 'failedApiToken', + boardId: '339283934', + groupTitle: 'Next year', + columnToPropertyMapping: [ + { + from: 'Status', + to: 'status', + }, + { + from: 'Email', + to: 'emailId', + }, + ], + whitelistedEvents: [ + { + eventName: 'create an item', + }, + ], + }, + }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + status: 'Done', + emailId: 'abc@email.com', + emailText: 'emailId', + }, + 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: [ + { + error: 'The board with boardId 339283934 does not exist', + statTags: { + destType: 'MONDAY', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/monday/router/data.ts b/test/integrations/destinations/monday/router/data.ts new file mode 100644 index 0000000000..3be8b129c5 --- /dev/null +++ b/test/integrations/destinations/monday/router/data.ts @@ -0,0 +1,192 @@ +export const data = [ + { + name: 'monday', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: '', + columnToPropertyMapping: [], + whitelistedEvents: [{ eventName: 'create an item' }], + }, + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { name: 'Task 1' }, + 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', + }, + }, + { + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: 'Next month', + columnToPropertyMapping: [ + { from: 'Status', to: 'status' }, + { from: 'Email', to: 'emailId' }, + ], + whitelistedEvents: [{ eventName: 'create an item' }], + }, + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + event: 'create an item', + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + userId: 'user@27', + channel: 'web', + properties: { + name: 'Task 1', + status: 'Done', + emailId: 'abc@email.com', + emailText: 'emailId', + }, + 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', + }, + }, + ], + destType: 'monday', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + body: { + FORM: {}, + JSON: { + query: + 'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.monday.com/v2', + files: {}, + headers: { + Authorization: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + 'Content-Type': 'application/json', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: '', + columnToPropertyMapping: [], + whitelistedEvents: [{ eventName: 'create an item' }], + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.monday.com/v2', + headers: { + 'Content-Type': 'application/json', + Authorization: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + }, + params: {}, + body: { + JSON: { + query: + 'mutation { create_item (board_id: 339283933, group_id: group_title item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"abc@email.com\\",\\"text\\":\\"emailId\\"}}") {id}}', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiToken: + 'eywwakzdjiksjhriherniSFsjhnskdojsSDFhsdns.sSRSSREWdnfnsjshfjsjskshfiskskdS__Fskilhih', + boardId: '339283933', + groupTitle: 'Next month', + columnToPropertyMapping: [ + { from: 'Status', to: 'status' }, + { from: 'Email', to: 'emailId' }, + ], + whitelistedEvents: [{ eventName: 'create an item' }], + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/monetate/router/data.ts b/test/integrations/destinations/monetate/router/data.ts index 09a7f8073d..eff487bd73 100644 --- a/test/integrations/destinations/monetate/router/data.ts +++ b/test/integrations/destinations/monetate/router/data.ts @@ -13,54 +13,31 @@ export const data = [ message: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { - screen: { - height: 22, - width: 11, - }, + screen: { height: 22, width: 11 }, device: { id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', manufacturer: 'Xiaomi', model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, ip: '0.0.0.0', }, - traits: { - address: { - city: 'Kol', - country: 'Ind', - }, - }, + traits: { address: { city: 'Kol', country: 'Ind' } }, event: 'Product Viewed', - integrations: { - All: true, - }, + integrations: { All: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - monetateId: '1234', - product_id: 'prodId', - }, + properties: { monetateId: '1234', product_id: 'prodId' }, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', userId: 'newUser', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { monetateChannel: 'channel', @@ -73,61 +50,34 @@ export const data = [ message: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { - screen: { - height: 22, - width: 11, - }, + screen: { height: 22, width: 11 }, device: { id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', manufacturer: 'Xiaomi', model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, ip: '0.0.0.0', }, - traits: { - address: { - city: 'Kol', - country: 'Ind', - }, - }, + traits: { address: { city: 'Kol', country: 'Ind' } }, event: 'Product List Viewed', - integrations: { - All: true, - }, + integrations: { All: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { monetateId: '1234', - products: [ - { - product_id: 1, - }, - { - product_id: 2, - }, - ], + products: [{ product_id: 1 }, { product_id: 2 }], }, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', userId: 'newUser', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { monetateChannel: 'channel', @@ -153,31 +103,17 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://engine.monetate.net/api/engine/v1/decide/retailer', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { monetateId: '1234', events: [ - { - eventType: 'monetate:context:IpAddress', - ipAddress: '0.0.0.0', - }, - { - eventType: 'monetate:context:ScreenSize', - height: 22, - width: 11, - }, + { eventType: 'monetate:context:IpAddress', ipAddress: '0.0.0.0' }, + { eventType: 'monetate:context:ScreenSize', height: 22, width: 11 }, { eventType: 'monetate:context:ProductDetailView', - products: [ - { - productId: 'prodId', - sku: '', - }, - ], + products: [{ productId: 'prodId', sku: '' }], }, ], customerId: 'newUser', @@ -189,11 +125,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -210,27 +142,15 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://engine.monetate.net/api/engine/v1/decide/retailer', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { monetateId: '1234', events: [ - { - eventType: 'monetate:context:IpAddress', - ipAddress: '0.0.0.0', - }, - { - eventType: 'monetate:context:ScreenSize', - height: 22, - width: 11, - }, - { - eventType: 'monetate:context:ProductThumbnailView', - products: ['1', '2'], - }, + { eventType: 'monetate:context:IpAddress', ipAddress: '0.0.0.0' }, + { eventType: 'monetate:context:ScreenSize', height: 22, width: 11 }, + { eventType: 'monetate:context:ProductThumbnailView', products: ['1', '2'] }, ], customerId: 'newUser', channel: 'channel', @@ -241,11 +161,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/mp/common.ts b/test/integrations/destinations/mp/common.ts index 1d4bbc0ac7..fbba162b98 100644 --- a/test/integrations/destinations/mp/common.ts +++ b/test/integrations/destinations/mp/common.ts @@ -20,4 +20,42 @@ const sampleDestination = { Transformations: [], }; -export { sampleDestination, defaultMockFns }; +const destinationWithSetOnceProperty = { + Config: { + apiSecret: 'dummySecret', + dataResidency: 'us', + identityMergeApi: 'simplified', + setOnceProperties: [ + { + property: 'nationality', + }, + { + property: 'firstName', + }, + { + property: 'address.city', + }, + ], + superProperties: [ + { + property: 'random', + }, + ], + token: 'dummyToken', + useNativeSDK: false, + useNewMapping: false, + userDeletionApi: 'engage', + whitelistedEvents: [], + }, + DestinationDefinition: { + DisplayName: 'Kiss Metrics', + ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie', + Name: 'MIXPANEL', + }, + Enabled: true, + ID: '1WhcOCGgj9asZu850HvugU2C3Aq', + Name: 'Kiss Metrics', + Transformations: [], +}; + +export { sampleDestination, defaultMockFns, destinationWithSetOnceProperty }; diff --git a/test/integrations/destinations/mp/processor/data.ts b/test/integrations/destinations/mp/processor/data.ts index badd12c245..9d3f4160ac 100644 --- a/test/integrations/destinations/mp/processor/data.ts +++ b/test/integrations/destinations/mp/processor/data.ts @@ -1,5 +1,5 @@ import { overrideDestination } from '../../../testUtils'; -import { sampleDestination, defaultMockFns } from '../common'; +import { sampleDestination, defaultMockFns, destinationWithSetOnceProperty } from '../common'; export const data = [ { @@ -5043,7 +5043,8 @@ export const data = [ status: 200, body: [ { - error: 'Alias call is deprecated in `Simplified ID merge`', + error: + 'The use of the alias call in the context of the `Simplified ID merge` feature is not supported anymore.', statTags: { destType: 'MP', errorCategory: 'dataValidation', @@ -5915,4 +5916,273 @@ export const data = [ }, }, }, + { + name: 'mp', + description: 'Test Set Once Property', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: 'Alias: with property beyond and within exclusion list', + destination: destinationWithSetOnceProperty, + message: { + anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + address: { + city: 'Disney', + }, + country: 'USA', + email: 'TestSanity@disney.com', + firstName: 'Mickey test', + lastName: 'VarChange', + createdAt: '2020-01-23T08:54:02.362Z', + nationality: 'USA', + random: 'superProp', + }, + page: { + path: '/destinations/mixpanel', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/mixpanel', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { + All: true, + }, + page: { + path: '/destinations/mixpanel', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/mixpanel', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + request_ip: '[::1]:53709', + type: 'identify', + userId: 'Santiy', + }, + }, + ], + method: 'POST', + }, + pathSuffix: '', + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mixpanel.com/engage/', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: { + batch: + '[{"$set_once":{"$first_name":"Mickey test","$city":"Disney","nationality":"USA"},"$token":"dummyToken","$distinct_id":"Santiy"}]', + }, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'Santiy', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mixpanel.com/engage/', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: { + batch: + '[{"$set":{"$created":"2020-01-23T08:54:02.362Z","$email":"TestSanity@disney.com","$country_code":"USA","$initial_referrer":"https://docs.rudderstack.com","$initial_referring_domain":"docs.rudderstack.com","random":"superProp","$lastName":"VarChange","$browser":"Chrome","$browser_version":"79.0.3945.117"},"$token":"dummyToken","$distinct_id":"Santiy","$ip":"0.0.0.0","$time":null}]', + }, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'Santiy', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'mp', + description: 'Test Set Once Property with anonymousId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: 'Alias: with property beyond and within exclusion list', + destination: destinationWithSetOnceProperty, + message: { + anonymousId: 'dummyAnnonymousId', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.5', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.5', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + address: { + city: 'Disney', + }, + country: 'USA', + email: 'TestSanity@disney.com', + firstName: 'Mickey test', + lastName: 'VarChange', + createdAt: '2020-01-23T08:54:02.362Z', + nationality: 'USA', + random: 'superProp', + }, + page: { + path: '/destinations/mixpanel', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/mixpanel', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', + }, + integrations: { + All: true, + }, + page: { + path: '/destinations/mixpanel', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/mixpanel', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + request_ip: '[::1]:53709', + type: 'identify', + }, + }, + ], + method: 'POST', + }, + pathSuffix: '', + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mixpanel.com/engage/', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: { + batch: + '[{"$set_once":{"$first_name":"Mickey test","$city":"Disney","nationality":"USA"},"$token":"dummyToken","$distinct_id":"$device:dummyAnnonymousId"}]', + }, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'dummyAnnonymousId', + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.mixpanel.com/engage/', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: { + batch: + '[{"$set":{"$created":"2020-01-23T08:54:02.362Z","$email":"TestSanity@disney.com","$country_code":"USA","$initial_referrer":"https://docs.rudderstack.com","$initial_referring_domain":"docs.rudderstack.com","random":"superProp","$lastName":"VarChange","$browser":"Chrome","$browser_version":"79.0.3945.117"},"$token":"dummyToken","$distinct_id":"$device:dummyAnnonymousId","$ip":"0.0.0.0","$time":null}]', + }, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'dummyAnnonymousId', + }, + statusCode: 200, + }, + ], + }, + }, + }, ]; diff --git a/test/integrations/destinations/mp/router/data.ts b/test/integrations/destinations/mp/router/data.ts index 4e65b4f883..a5757ac137 100644 --- a/test/integrations/destinations/mp/router/data.ts +++ b/test/integrations/destinations/mp/router/data.ts @@ -20,10 +20,7 @@ export const data = [ useOldMapping: true, strictMode: true, }), - metadata: { - jobId: 1, - additionalProp: 1, - }, + metadata: { jobId: 1, additionalProp: 1, userId: 'u1' }, message: { anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', channel: 'web', @@ -36,18 +33,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: {}, page: { path: '/destinations/mixpanel', @@ -62,9 +51,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'dd266c67-9199-4a52-ba32-f46ddde67312', originalTimestamp: '2020-01-24T06:29:02.358Z', page: { @@ -94,10 +81,7 @@ export const data = [ identityMergeApi: 'simplified', strictMode: true, }), - metadata: { - jobId: 2, - additionalProp: 2, - }, + metadata: { jobId: 2, additionalProp: 2, userId: 'u1' }, message: { anonymousId: 'anonId01', channel: 'mobile', @@ -116,40 +100,20 @@ export const data = [ type: 'ios', token: 'test_device_token', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.1-beta.1', - }, + 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: 'iOS', - version: '8.1.0', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, + os: { name: 'iOS', version: '8.1.0' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Kolkata', userAgent: 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', }, event: 'Product Viewed', - integrations: { - All: true, - }, + integrations: { All: true }, userId: 'userId01', messageId: 'id2', - properties: { - name: 'T-Shirt', - revenue: 18.9, - }, + properties: { name: 'T-Shirt', revenue: 18.9 }, type: 'track', originalTimestamp: '2020-01-24T06:29:02.362Z', receivedAt: '2020-01-24T11:59:02.403+05:30', @@ -165,10 +129,7 @@ export const data = [ useOldMapping: true, strictMode: true, }), - metadata: { - jobId: 3, - additionalProp: 3, - }, + metadata: { jobId: 3, additionalProp: 3, userId: 'u1' }, message: { anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', channel: 'web', @@ -180,18 +141,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: { city: 'Disney', country: 'USA', @@ -211,9 +164,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, page: { path: '/destinations/mixpanel', referrer: '', @@ -243,10 +194,7 @@ export const data = [ identityMergeApi: 'simplified', strictMode: true, }), - metadata: { - jobId: 4, - additionalProp: 4, - }, + metadata: { jobId: 4, additionalProp: 4, userId: 'u1' }, message: { anonymousId: 'anonId01', channel: 'web', @@ -258,18 +206,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: { city: 'Disney', country: 'USA', @@ -291,9 +231,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, page: { path: '/destinations/mixpanel', referrer: '', @@ -320,10 +258,7 @@ export const data = [ token: 'test_api_token', strictMode: true, }), - metadata: { - jobId: 5, - additionalProp: 5, - }, + metadata: { jobId: 5, additionalProp: 5, userId: 'u1' }, message: { anonymousId: '5094f5704b9cf2b3', channel: 'mobile', @@ -342,44 +277,21 @@ export const data = [ type: 'ios', token: 'test_device_token', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.1-beta.1', - }, + 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: 'iOS', - version: '8.1.0', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, + os: { name: 'iOS', version: '8.1.0' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Kolkata', - traits: { - anonymousId: '5094f5704b9cf2b3', - userId: 'test_user_id', - }, + traits: { anonymousId: '5094f5704b9cf2b3', userId: 'test_user_id' }, 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, - }, + integrations: { All: true }, userId: 'test_user_id', messageId: 'id2', - properties: { - name: 'MainActivity', - automatic: true, - }, + properties: { name: 'MainActivity', automatic: true }, originalTimestamp: '2020-03-12T09:05:03.421Z', type: 'identify', sentAt: '2020-03-12T09:05:13.042Z', @@ -397,10 +309,7 @@ export const data = [ ], strictMode: true, }), - metadata: { - jobId: 6, - additionalProp: 6, - }, + metadata: { jobId: 6, additionalProp: 6, userId: 'u1' }, message: { anonymousId: 'anonId06', channel: 'web', @@ -412,18 +321,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, page: { path: '/destinations/mixpanel', referrer: '', @@ -437,9 +338,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, page: { path: '/destinations/mixpanel', referrer: '', @@ -450,9 +349,7 @@ export const data = [ initial_referrer: 'https://docs.rudderstack.com', initial_referring_domain: 'docs.rudderstack.com', }, - traits: { - company: 'testComp', - }, + traits: { company: 'testComp' }, messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', originalTimestamp: '2020-01-24T06:29:02.362Z', receivedAt: '2020-01-24T11:59:02.403+05:30', @@ -475,10 +372,7 @@ export const data = [ ], strictMode: true, }), - metadata: { - jobId: 7, - additionalProp: 7, - }, + metadata: { jobId: 7, additionalProp: 7, userId: 'u1' }, message: { anonymousId: 'anonId06', channel: 'web', @@ -490,18 +384,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, page: { path: '/destinations/mixpanel', referrer: '', @@ -515,9 +401,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, page: { path: '/destinations/mixpanel', referrer: '', @@ -542,9 +426,7 @@ export const data = [ destType: 'mp', }, method: 'POST', - headers: { - 'X-Feature-Gzip-Support': '?1', - }, + headers: { 'X-Feature-Gzip-Support': '?1' }, }, }, output: { @@ -562,9 +444,7 @@ export const data = [ 'Content-Type': 'application/json', Authorization: 'Basic dGVzdF9hcGlfdG9rZW46', }, - params: { - strict: 1, - }, + params: { strict: 1 }, body: { JSON: {}, JSON_ARRAY: {}, @@ -577,12 +457,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - additionalProp: 1, - }, - ], + metadata: [{ jobId: 1, additionalProp: 1, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -635,9 +510,7 @@ export const data = [ 'Content-Type': 'application/json', Authorization: 'Basic dGVzdF9hcGlfdG9rZW46', }, - params: { - strict: 1, - }, + params: { strict: 1 }, body: { JSON: {}, JSON_ARRAY: {}, @@ -651,12 +524,7 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 2, - additionalProp: 2, - }, - ], + metadata: [{ jobId: 2, additionalProp: 2, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -709,9 +577,7 @@ export const data = [ 'Content-Type': 'application/json', Authorization: 'Basic dGVzdF9hcGlfdG9rZW46', }, - params: { - strict: 1, - }, + params: { strict: 1 }, body: { JSON: {}, JSON_ARRAY: {}, @@ -726,18 +592,9 @@ export const data = [ }, ], metadata: [ - { - jobId: 3, - additionalProp: 3, - }, - { - jobId: 4, - additionalProp: 4, - }, - { - jobId: 5, - additionalProp: 5, - }, + { jobId: 3, additionalProp: 3, userId: 'u1' }, + { jobId: 4, additionalProp: 4, userId: 'u1' }, + { jobId: 5, additionalProp: 5, userId: 'u1' }, ], batched: true, statusCode: 200, @@ -801,12 +658,7 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 6, - additionalProp: 6, - }, - ], + metadata: [{ jobId: 6, additionalProp: 6, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -815,11 +667,7 @@ export const data = [ apiSecret: 'test_api_secret', token: 'test_api_token', prefixProperties: true, - groupKeySettings: [ - { - groupKey: 'company', - }, - ], + groupKeySettings: [{ groupKey: 'company' }], strictMode: true, useNativeSDK: false, }, @@ -835,12 +683,7 @@ export const data = [ }, }, { - metadata: [ - { - jobId: 7, - additionalProp: 7, - }, - ], + metadata: [{ jobId: 7, additionalProp: 7, userId: 'u1' }], batched: false, statusCode: 400, error: @@ -860,11 +703,7 @@ export const data = [ token: 'test_api_token', prefixProperties: true, useNativeSDK: false, - groupKeySettings: [ - { - groupKey: 'company', - }, - ], + groupKeySettings: [{ groupKey: 'company' }], strictMode: true, }, DestinationDefinition: { @@ -901,10 +740,7 @@ export const data = [ useOldMapping: true, strictMode: true, }), - metadata: { - jobId: 1, - additionalProp: 1, - }, + metadata: { jobId: 1, additionalProp: 1, userId: 'u1' }, message: { anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', channel: 'web', @@ -917,18 +753,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: {}, page: { path: '/destinations/mixpanel', @@ -943,9 +771,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'dd266c67-9199-4a52-ba32-f46ddde67312', originalTimestamp: '2020-01-24T06:29:02.358Z', page: { @@ -975,10 +801,7 @@ export const data = [ identityMergeApi: 'simplified', strictMode: true, }), - metadata: { - jobId: 2, - additionalProp: 2, - }, + metadata: { jobId: 2, additionalProp: 2, userId: 'u1' }, message: { anonymousId: 'anonId01', channel: 'mobile', @@ -997,40 +820,20 @@ export const data = [ type: 'ios', token: 'test_device_token', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.1-beta.1', - }, + 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: 'iOS', - version: '8.1.0', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, + os: { name: 'iOS', version: '8.1.0' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Kolkata', userAgent: 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', }, event: 'Product Viewed', - integrations: { - All: true, - }, + integrations: { All: true }, userId: 'userId01', messageId: 'id2', - properties: { - name: 'T-Shirt', - revenue: 18.9, - }, + properties: { name: 'T-Shirt', revenue: 18.9 }, type: 'track', originalTimestamp: '2020-01-24T06:29:02.362Z', receivedAt: '2020-01-24T11:59:02.403+05:30', @@ -1046,10 +849,7 @@ export const data = [ useOldMapping: true, strictMode: true, }), - metadata: { - jobId: 3, - additionalProp: 3, - }, + metadata: { jobId: 3, additionalProp: 3, userId: 'u1' }, message: { anonymousId: 'e6ab2c5e-2cda-44a9-a962-e2f67df78bca', channel: 'web', @@ -1061,18 +861,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: { city: 'Disney', country: 'USA', @@ -1092,9 +884,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, page: { path: '/destinations/mixpanel', referrer: '', @@ -1124,10 +914,7 @@ export const data = [ identityMergeApi: 'simplified', strictMode: true, }), - metadata: { - jobId: 4, - additionalProp: 4, - }, + metadata: { jobId: 4, additionalProp: 4, userId: 'u1' }, message: { anonymousId: 'anonId01', channel: 'web', @@ -1139,18 +926,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: { city: 'Disney', country: 'USA', @@ -1172,9 +951,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, page: { path: '/destinations/mixpanel', referrer: '', @@ -1201,10 +978,7 @@ export const data = [ token: 'test_api_token', strictMode: true, }), - metadata: { - jobId: 5, - additionalProp: 5, - }, + metadata: { jobId: 5, additionalProp: 5, userId: 'u1' }, message: { anonymousId: '5094f5704b9cf2b3', channel: 'mobile', @@ -1223,44 +997,21 @@ export const data = [ type: 'ios', token: 'test_device_token', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.1-beta.1', - }, + 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: 'iOS', - version: '8.1.0', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, + os: { name: 'iOS', version: '8.1.0' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Kolkata', - traits: { - anonymousId: '5094f5704b9cf2b3', - userId: 'test_user_id', - }, + traits: { anonymousId: '5094f5704b9cf2b3', userId: 'test_user_id' }, 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, - }, + integrations: { All: true }, userId: 'test_user_id', messageId: 'id2', - properties: { - name: 'MainActivity', - automatic: true, - }, + properties: { name: 'MainActivity', automatic: true }, originalTimestamp: '2020-03-12T09:05:03.421Z', type: 'identify', sentAt: '2020-03-12T09:05:13.042Z', @@ -1278,10 +1029,7 @@ export const data = [ ], strictMode: true, }), - metadata: { - jobId: 6, - additionalProp: 6, - }, + metadata: { jobId: 6, additionalProp: 6, userId: 'u1' }, message: { anonymousId: 'anonId06', channel: 'web', @@ -1293,18 +1041,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, page: { path: '/destinations/mixpanel', referrer: '', @@ -1318,9 +1058,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, page: { path: '/destinations/mixpanel', referrer: '', @@ -1331,9 +1069,7 @@ export const data = [ initial_referrer: 'https://docs.rudderstack.com', initial_referring_domain: 'docs.rudderstack.com', }, - traits: { - company: 'testComp', - }, + traits: { company: 'testComp' }, messageId: '2536eda4-d638-4c93-8014-8ffe3f083214', originalTimestamp: '2020-01-24T06:29:02.362Z', receivedAt: '2020-01-24T11:59:02.403+05:30', @@ -1356,10 +1092,7 @@ export const data = [ ], strictMode: true, }), - metadata: { - jobId: 7, - additionalProp: 7, - }, + metadata: { jobId: 7, additionalProp: 7, userId: 'u1' }, message: { anonymousId: 'anonId06', channel: 'web', @@ -1371,18 +1104,10 @@ export const data = [ version: '1.0.5', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.5', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.5' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, page: { path: '/destinations/mixpanel', referrer: '', @@ -1396,9 +1121,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, page: { path: '/destinations/mixpanel', referrer: '', @@ -1440,9 +1163,7 @@ export const data = [ 'Content-Type': 'application/json', Authorization: 'Basic dGVzdF9hcGlfdG9rZW46', }, - params: { - strict: 1, - }, + params: { strict: 1 }, body: { JSON: {}, JSON_ARRAY: { @@ -1454,12 +1175,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - additionalProp: 1, - }, - ], + metadata: [{ jobId: 1, additionalProp: 1, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -1512,9 +1228,7 @@ export const data = [ 'Content-Type': 'application/json', Authorization: 'Basic dGVzdF9hcGlfdG9rZW46', }, - params: { - strict: 1, - }, + params: { strict: 1 }, body: { JSON: {}, JSON_ARRAY: { @@ -1527,12 +1241,7 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 2, - additionalProp: 2, - }, - ], + metadata: [{ jobId: 2, additionalProp: 2, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -1585,9 +1294,7 @@ export const data = [ 'Content-Type': 'application/json', Authorization: 'Basic dGVzdF9hcGlfdG9rZW46', }, - params: { - strict: 1, - }, + params: { strict: 1 }, body: { JSON: {}, JSON_ARRAY: { @@ -1601,18 +1308,9 @@ export const data = [ }, ], metadata: [ - { - jobId: 3, - additionalProp: 3, - }, - { - jobId: 4, - additionalProp: 4, - }, - { - jobId: 5, - additionalProp: 5, - }, + { jobId: 3, additionalProp: 3, userId: 'u1' }, + { jobId: 4, additionalProp: 4, userId: 'u1' }, + { jobId: 5, additionalProp: 5, userId: 'u1' }, ], batched: true, statusCode: 200, @@ -1676,12 +1374,7 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 6, - additionalProp: 6, - }, - ], + metadata: [{ jobId: 6, additionalProp: 6, userId: 'u1' }], batched: true, statusCode: 200, destination: { @@ -1690,11 +1383,7 @@ export const data = [ apiSecret: 'test_api_secret', token: 'test_api_token', prefixProperties: true, - groupKeySettings: [ - { - groupKey: 'company', - }, - ], + groupKeySettings: [{ groupKey: 'company' }], strictMode: true, useNativeSDK: false, }, @@ -1710,12 +1399,7 @@ export const data = [ }, }, { - metadata: [ - { - jobId: 7, - additionalProp: 7, - }, - ], + metadata: [{ jobId: 7, additionalProp: 7, userId: 'u1' }], batched: false, statusCode: 400, error: @@ -1735,11 +1419,7 @@ export const data = [ token: 'test_api_token', prefixProperties: true, useNativeSDK: false, - groupKeySettings: [ - { - groupKey: 'company', - }, - ], + groupKeySettings: [{ groupKey: 'company' }], strictMode: true, }, DestinationDefinition: { diff --git a/test/integrations/destinations/ometria/router/data.ts b/test/integrations/destinations/ometria/router/data.ts index ef15eea586..58f3a91d87 100644 --- a/test/integrations/destinations/ometria/router/data.ts +++ b/test/integrations/destinations/ometria/router/data.ts @@ -16,10 +16,7 @@ export const data = [ userId: 'userId1', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -53,10 +50,7 @@ export const data = [ field1: 'val1', ip: '0.0.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.2.1', - }, + 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', @@ -67,14 +61,10 @@ export const data = [ receivedAt: '2021-10-25T15:10:08.889+05:30', request_ip: '[::1]', anonymousId: '7138f7d9-5dd2-4337-805d-ca17be59dc8e', - integrations: { - Ometria: { - listingId: 'test1', - }, - }, + integrations: { Ometria: { listingId: 'test1' } }, originalTimestamp: '2021-10-25T09:40:08.879Z', }, - metadata: { jobId: 1 }, + metadata: { jobId: 1, userId: 'u1' }, destination: { ID: '1zzHtStW2ZPlullmz6L7DGnmk9V', Name: 'ometria-dev', @@ -131,10 +121,7 @@ export const data = [ userId: 'userId1', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -168,10 +155,7 @@ export const data = [ field1: 'val1', ip: '0.0.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.2.1', - }, + 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', @@ -181,15 +165,10 @@ export const data = [ timestamp: '2021-10-25T15:10:08.888+05:30', receivedAt: '2021-10-25T15:10:08.889+05:30', request_ip: '[::1]', - integrations: { - Ometria: { - listingId: 'updatedId1', - allowMarketing: true, - }, - }, + integrations: { Ometria: { listingId: 'updatedId1', allowMarketing: true } }, originalTimestamp: '2021-10-25T09:40:08.879Z', }, - metadata: { jobId: 2 }, + metadata: { jobId: 2, userId: 'u1' }, destination: { ID: '1zzHtStW2ZPlullmz6L7DGnmk9V', Name: 'ometria-dev', @@ -255,9 +234,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://api.ometria.com/v2/push', - headers: { - 'X-Ometria-Auth': 'dummyApiKey', - }, + headers: { 'X-Ometria-Auth': 'dummyApiKey' }, params: {}, body: { JSON: {}, @@ -271,12 +248,8 @@ export const data = [ files: {}, }, metadata: [ - { - jobId: 1, - }, - { - jobId: 2, - }, + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, ], batched: true, statusCode: 200, diff --git a/test/integrations/destinations/one_signal/router/data.ts b/test/integrations/destinations/one_signal/router/data.ts index 5f45d2e624..fe8460e45d 100644 --- a/test/integrations/destinations/one_signal/router/data.ts +++ b/test/integrations/destinations/one_signal/router/data.ts @@ -19,19 +19,14 @@ export const data = [ allowedProperties: [], }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { type: 'identify', sentAt: '2021-01-03T17:02:53.195Z', userId: 'user@27', channel: 'web', context: { - os: { - name: '', - version: '1.12.3', - }, + os: { name: '', version: '1.12.3' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -46,18 +41,9 @@ export const data = [ 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', - }, + 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', @@ -75,34 +61,19 @@ export const data = [ emailDeviceType: false, smsDeviceType: false, eventAsTags: false, - allowedProperties: [ - { - propertyName: 'brand', - }, - { - propertyName: 'price', - }, - ], + allowedProperties: [{ propertyName: 'brand' }, { propertyName: 'price' }], }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { event: 'add_to_Cart', type: 'track', sentAt: '2021-01-03T17:02:53.195Z', userId: 'user@27', channel: 'web', - properties: { - brand: 'Zara', - price: '12000', - }, + properties: { brand: 'Zara', price: '12000' }, context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -110,13 +81,8 @@ export const data = [ namespace: 'com.rudderlabs.javascript', }, locale: 'en-US', - screen: { - density: 2, - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.11', - }, + 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', @@ -145,10 +111,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://onesignal.com/api/v1/players', - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, + headers: { Accept: 'application/json', 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -180,10 +143,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://onesignal.com/api/v1/players', - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, + headers: { Accept: 'application/json', 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -211,11 +171,7 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -233,32 +189,19 @@ export const data = [ body: { XML: {}, FORM: {}, - JSON: { - tags: { - brand: 'Zara', - price: '12000', - add_to_Cart: true, - }, - }, + JSON: { tags: { brand: 'Zara', price: '12000', add_to_Cart: true } }, JSON_ARRAY: {}, }, type: 'REST', files: {}, method: 'PUT', params: {}, - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, + headers: { Accept: 'application/json', 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://onesignal.com/api/v1/apps/random-818c-4a28-b98e-6cd8a994eb22/users/user@27', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -267,14 +210,7 @@ export const data = [ emailDeviceType: false, smsDeviceType: false, eventAsTags: false, - allowedProperties: [ - { - propertyName: 'brand', - }, - { - propertyName: 'price', - }, - ], + allowedProperties: [{ propertyName: 'brand' }, { propertyName: 'price' }], }, }, }, diff --git a/test/integrations/destinations/optimizely_fullstack/router/data.ts b/test/integrations/destinations/optimizely_fullstack/router/data.ts index 1803881f30..270ac6873e 100644 --- a/test/integrations/destinations/optimizely_fullstack/router/data.ts +++ b/test/integrations/destinations/optimizely_fullstack/router/data.ts @@ -18,11 +18,7 @@ export const data = [ channel: 'web', properties: {}, context: { - traits: { - organization: 'RudderStack', - fullName: 'John Doe', - country: 'US', - }, + traits: { organization: 'RudderStack', fullName: 'John Doe', country: 'US' }, sessionId: 1685626914716, }, rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', @@ -32,17 +28,11 @@ export const data = [ userId: 'userId123', integrations: { All: true, - optimizely_fullstack: { - variationId: 'test_variation_id_1', - }, + optimizely_fullstack: { variationId: 'test_variation_id_1' }, }, }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', accountId: 'test_account_id', @@ -50,20 +40,12 @@ export const data = [ experimentId: 'test_experiment_id', trackKnownUsers: true, attributeMapping: [ - { - from: 'organization', - to: 'company', - }, - { - from: 'fullName', - to: 'name', - }, + { from: 'organization', to: 'company' }, + { from: 'fullName', to: 'name' }, ], }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, }, { message: { @@ -72,34 +54,21 @@ export const data = [ userId: 'userId123', channel: 'web', context: { - traits: { - organization: 'RudderStack', - fullName: 'John Doe', - }, + traits: { organization: 'RudderStack', fullName: 'John Doe' }, sessionId: 1685626914716, }, rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', timestamp: '2023-02-10T12:16:07.251Z', - properties: { - foo: 'bar', - revenue: 123, - quantity: 2, - }, + properties: { foo: 'bar', revenue: 123, quantity: 2 }, anonymousId: '856365b8-da4b-4c13-9098-84df18559446', integrations: { All: true, - optimizely_fullstack: { - variationId: 'test_variation_id_2', - }, + optimizely_fullstack: { variationId: 'test_variation_id_2' }, }, }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', accountId: 'test_account_id', @@ -108,30 +77,16 @@ export const data = [ trackKnownUsers: true, anonymizeIp: true, eventMapping: [ - { - from: 'Product Searched', - to: 'Searched', - }, - { - from: 'product_added', - to: 'Product Added', - }, + { from: 'Product Searched', to: 'Searched' }, + { from: 'product_added', to: 'Product Added' }, ], attributeMapping: [ - { - from: 'organization', - to: 'company', - }, - { - from: 'fullName', - to: 'name', - }, + { from: 'organization', to: 'company' }, + { from: 'fullName', to: 'name' }, ], }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, }, { message: { @@ -139,33 +94,21 @@ export const data = [ userId: 'userId123', channel: 'web', context: { - traits: { - organization: 'RudderStack', - fullName: 'John Doe', - }, + traits: { organization: 'RudderStack', fullName: 'John Doe' }, sessionId: 1685626914716, }, rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', timestamp: '2023-02-10T12:16:07.251Z', - properties: { - foo: 'bar', - category: 'food', - }, + properties: { foo: 'bar', category: 'food' }, anonymousId: '856365b8-da4b-4c13-9098-84df18559446', integrations: { All: true, - optimizely_fullstack: { - variationId: 'test_variation_id_1', - }, + optimizely_fullstack: { variationId: 'test_variation_id_1' }, }, }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', accountId: 'test_account_id', @@ -176,20 +119,12 @@ export const data = [ trackCategorizedPages: true, trackNamedPages: false, pageMapping: [ - { - from: 'meal', - to: 'Viewed Meal Page', - }, - { - from: 'food', - to: 'Product Added', - }, + { from: 'meal', to: 'Viewed Meal Page' }, + { from: 'food', to: 'Product Added' }, ], }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, }, { message: { @@ -201,19 +136,10 @@ export const data = [ rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', - integrations: { - All: true, - optimizely_fullstack: { - variationId: '123', - }, - }, + integrations: { All: true, optimizely_fullstack: { variationId: '123' } }, }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', accountId: 'test_account_id', @@ -223,9 +149,7 @@ export const data = [ trackNamedPages: false, }, }, - metadata: { - jobId: 4, - }, + metadata: { jobId: 4, userId: 'u1' }, }, ], destType: 'optimizely_fullstack', @@ -245,9 +169,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://logx.optimizely.com/v1/events', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -303,11 +225,7 @@ export const data = [ files: {}, }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', accountId: 'test_account_id', @@ -315,22 +233,12 @@ export const data = [ experimentId: 'test_experiment_id', trackKnownUsers: true, attributeMapping: [ - { - from: 'organization', - to: 'company', - }, - { - from: 'fullName', - to: 'name', - }, + { from: 'organization', to: 'company' }, + { from: 'fullName', to: 'name' }, ], }, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, { @@ -340,9 +248,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://logx.optimizely.com/v1/events', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -379,9 +285,7 @@ export const data = [ uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', quantity: 2, revenue: 12300, - tags: { - foo: 'bar', - }, + tags: { foo: 'bar' }, }, ], }, @@ -397,11 +301,7 @@ export const data = [ files: {}, }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', accountId: 'test_account_id', @@ -410,32 +310,16 @@ export const data = [ trackKnownUsers: true, anonymizeIp: true, eventMapping: [ - { - from: 'Product Searched', - to: 'Searched', - }, - { - from: 'product_added', - to: 'Product Added', - }, + { from: 'Product Searched', to: 'Searched' }, + { from: 'product_added', to: 'Product Added' }, ], attributeMapping: [ - { - from: 'organization', - to: 'company', - }, - { - from: 'fullName', - to: 'name', - }, + { from: 'organization', to: 'company' }, + { from: 'fullName', to: 'name' }, ], }, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statusCode: 200, }, { @@ -445,9 +329,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://logx.optimizely.com/v1/events', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -468,10 +350,7 @@ export const data = [ key: 'Product Added', timestamp: 1676031367251, uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', - tags: { - foo: 'bar', - category: 'food', - }, + tags: { foo: 'bar', category: 'food' }, }, ], }, @@ -487,11 +366,7 @@ export const data = [ files: {}, }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', accountId: 'test_account_id', @@ -502,32 +377,18 @@ export const data = [ trackCategorizedPages: true, trackNamedPages: false, pageMapping: [ - { - from: 'meal', - to: 'Viewed Meal Page', - }, - { - from: 'food', - to: 'Product Added', - }, + { from: 'meal', to: 'Viewed Meal Page' }, + { from: 'food', to: 'Product Added' }, ], }, }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], statusCode: 200, }, { batched: false, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { accountId: 'test_account_id', campaignId: 'test_campagin_id', @@ -539,11 +400,7 @@ export const data = [ }, error: "Both 'Track Categorized Pages' and 'Track Named Pages' toggles are disabled in webapp. Please enable at one of them to send page/screen events to Optimizely.", - metadata: [ - { - jobId: 4, - }, - ], + metadata: [{ jobId: 4, userId: 'u1' }], statTags: { destType: 'OPTIMIZELY_FULLSTACK', errorCategory: 'dataValidation', diff --git a/test/integrations/destinations/ortto/processor/data.ts b/test/integrations/destinations/ortto/processor/data.ts index e7c71c7355..715262e447 100644 --- a/test/integrations/destinations/ortto/processor/data.ts +++ b/test/integrations/destinations/ortto/processor/data.ts @@ -1068,6 +1068,220 @@ export const data = [ }, }, }, + { + name: 'ortto', + description: 'Track call for updating activities with no phone provided', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'ORTTO', + Config: { + privateApiKey: 'dummyApiKey', + instanceRegion: 'other', + orttoEventsMapping: [ + { + rsEventName: 'RudderEvent', + orttoEventName: 'Ortto Event', + eventProperties: [ + { + rudderProperty: 'RudderProp', + orttoProperty: 'OrttoProp', + type: 'text', + }, + { + rudderProperty: 'RudderProp', + orttoProperty: 'OrttoProp', + type: 'longText', + }, + ], + }, + ], + orttoPersonAttributes: [ + { + rudderTraits: 'ruddertrait0', + orttoAttribute: 'ortto attirbute0', + type: 'email', + }, + { + rudderTraits: 'ruddertrait1', + orttoAttribute: 'ortto attirbute1', + type: 'email', + }, + ], + }, + Enabled: true, + Transformations: [], + }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 2 }, + message: { + anonymousId: '8d872292709c6fbe', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'AMTestProject', + namespace: 'com.rudderstack.android.rudderstack.sampleAndroidApp', + version: '1.0', + }, + device: { + id: '8d872292709c6fbe', + manufacturer: 'Google', + model: 'AOSPonIAEmulator', + name: 'generic_x86_arm', + type: 'android', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.2', + }, + 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: { + ruddertrait0: 'abc', + ruddertrait1: 'def', + address: { + city: 'Kolkata', + country: 'India', + postalcode: '700096', + state: 'West bengal', + street: 'Park Street', + }, + age: '30', + anonymousId: '8d872292709c6fbe', + birthday: '2020-05-26', + createDate: '18th March 2020', + description: 'Premium User for 3 years', + email: 'identify@test.com', + firstname: 'John', + gdpr: false, + userId: 'sample_user_id', + lastname: 'Sparrow', + name: 'John Sparrow', + id: 'sample_user_id', + username: 'john_sparrow', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', + }, + event: 'RudderEvent', + integrations: { + All: true, + }, + messageId: '1590431830915-73bed370-5889-436d-9a9e-0c0e0c809d06', + properties: { + revenue: '30', + RudderProp: 'USD', + quantity: '5', + test_key_2: { + test_child_key_1: 'test_child_value_1', + }, + price: '58.0', + }, + originalTimestamp: '2020-05-25T18:37:10.917Z', + type: 'track', + userId: 'sample_user_id', + }, + }, + ], + method: 'POST', + }, + pathSuffix: '', + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.ap3api.com/v1/activities/create', + headers: { + 'X-Api-Key': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + activities: [ + { + fields: { + 'str::first': 'John', + 'str::last': 'Sparrow', + 'str::email': 'identify@test.com', + 'geo::city': { + name: 'Kolkata', + }, + 'geo::country': {}, + 'geo::region': {}, + 'dtz::b': { + day: 26, + month: 5, + year: 2020, + }, + 'str::postal': '700096', + 'str::language': 'en-US', + 'str::ei': 'sample_user_id', + 'bol::gdpr': false, + 'bol::p': false, + 'bol::sp': false, + 'str:cm:ortto-attirbute0': 'abc', + 'str:cm:ortto-attirbute1': 'def', + }, + activity_id: 'act:cm:ortto-event', + attributes: { + 'str:cm:orttoprop': 'USD', + 'txt:cm:orttoprop': 'USD', + }, + location: {}, + }, + ], + merge_by: ['str::ei', 'str::email'], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + jobId: 2, + }, + statusCode: 200, + }, + ], + }, + }, + }, { name: 'ortto', description: 'Track call for updating activities', diff --git a/test/integrations/destinations/ortto/router/data.ts b/test/integrations/destinations/ortto/router/data.ts index 58a1dc3a5d..cf5731be80 100644 --- a/test/integrations/destinations/ortto/router/data.ts +++ b/test/integrations/destinations/ortto/router/data.ts @@ -55,7 +55,7 @@ export const data = [ Enabled: true, Transformations: [], }, - metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 1 }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 1, userId: 'u1' }, message: { anonymousId: '8d872292709c6fbe', channel: 'mobile', @@ -176,7 +176,7 @@ export const data = [ Enabled: true, Transformations: [], }, - metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 2 }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 2, userId: 'u1' }, message: { anonymousId: '8d872292709c6fbe', channel: 'mobile', @@ -327,6 +327,7 @@ export const data = [ { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 1, + userId: 'u1', }, ], batched: true, @@ -438,6 +439,7 @@ export const data = [ { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 2, + userId: 'u1', }, ], batched: true, diff --git a/test/integrations/destinations/pagerduty/router/data.ts b/test/integrations/destinations/pagerduty/router/data.ts index 02fd53c629..87761656f9 100644 --- a/test/integrations/destinations/pagerduty/router/data.ts +++ b/test/integrations/destinations/pagerduty/router/data.ts @@ -18,10 +18,7 @@ export const data = [ userId: 'user@45', properties: { source: 'rudder-webapp', - customDetails: { - 'ping time': '1500ms', - 'load avg': 0.75, - }, + customDetails: { 'ping time': '1500ms', 'load avg': 0.75 }, imageURLs: [ { src: 'https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg', @@ -31,9 +28,7 @@ export const data = [ src: 'https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1', alt: 'second image', }, - { - alt: 'third image', - }, + { alt: 'third image' }, ], linkURLs: [ { @@ -44,20 +39,12 @@ export const data = [ href: 'https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack', text: 'Stack Overflow Error', }, - { - text: 'Destructure Error', - }, + { text: 'Destructure Error' }, ], }, - integrations: { - pagerduty: { - type: 'changeEvent', - }, - }, - }, - metadata: { - jobId: 1, + integrations: { pagerduty: { type: 'changeEvent' } }, }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { routingKey: '9552b56325dc490bd0139be85f7b8fac', @@ -80,10 +67,7 @@ export const data = [ source: 'rudder-webapp', group: 'destination', class: 'connection settings', - customDetails: { - 'ping time': '1500ms', - 'load avg': 0.75, - }, + customDetails: { 'ping time': '1500ms', 'load avg': 0.75 }, imageURLs: [ { src: 'https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg', @@ -93,9 +77,7 @@ export const data = [ src: 'https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1', alt: 'second image', }, - { - alt: 'third image', - }, + { alt: 'third image' }, ], linkURLs: [ { @@ -106,15 +88,11 @@ export const data = [ href: 'https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack', text: 'Stack Overflow Error', }, - { - text: 'Destructure Error', - }, + { text: 'Destructure Error' }, ], }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { routingKey: '9552b56325dc490bd0139be85f7b8fac', @@ -138,10 +116,7 @@ export const data = [ source: 'rudder-webapp', group: 'destination', class: 'connection settings', - customDetails: { - 'ping time': '1500ms', - 'load avg': 0.75, - }, + customDetails: { 'ping time': '1500ms', 'load avg': 0.75 }, imageURLs: [ { src: 'https://static.s4be.cochrane.org/app/uploads/2017/04/shutterstock_531145954.jpg', @@ -151,9 +126,7 @@ export const data = [ src: 'https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1', alt: 'second image', }, - { - alt: 'third image', - }, + { alt: 'third image' }, ], linkURLs: [ { @@ -164,15 +137,11 @@ export const data = [ href: 'https://www.techtarget.com/whatis/definition/stack-overflow#:~:text=A%20stack%20overflow%20is%20a,been%20allocated%20to%20that%20stack', text: 'Stack Overflow Error', }, - { - text: 'Destructure Error', - }, + { text: 'Destructure Error' }, ], }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { Config: { routingKey: '9552b56325dc490bd0139be85f7b8fac', @@ -221,10 +190,7 @@ export const data = [ payload: { source: 'rudder-webapp', summary: 'Github CI/CD Triggered', - custom_details: { - 'load avg': 0.75, - 'ping time': '1500ms', - }, + custom_details: { 'load avg': 0.75, 'ping time': '1500ms' }, }, routing_key: '9552b56325dc490bd0139be85f7b8fac', }, @@ -234,9 +200,7 @@ export const data = [ files: {}, method: 'POST', params: {}, - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://events.pagerduty.com/v2/change/enqueue', }, @@ -246,7 +210,7 @@ export const data = [ dedupKeyFieldIdentifier: 'properties.dedupKey', }, }, - metadata: [{ jobId: 1 }], + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, { @@ -266,9 +230,7 @@ export const data = [ files: {}, method: 'POST', params: {}, - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, version: '1', endpoint: 'https://events.pagerduty.com/v2/enqueue', }, @@ -278,13 +240,13 @@ export const data = [ dedupKeyFieldIdentifier: 'properties.dedupKey', }, }, - metadata: [{ jobId: 2 }], + metadata: [{ jobId: 2, userId: 'u1' }], statusCode: 200, }, { batched: false, error: 'Events must be sent within ninety days of their occurrence', - metadata: [{ jobId: 3 }], + metadata: [{ jobId: 3, userId: 'u1' }], statusCode: 400, statTags: { destType: 'PAGERDUTY', diff --git a/test/integrations/destinations/pardot/router/data.ts b/test/integrations/destinations/pardot/router/data.ts index 7c2a2a11e3..0862666bba 100644 --- a/test/integrations/destinations/pardot/router/data.ts +++ b/test/integrations/destinations/pardot/router/data.ts @@ -5,7 +5,7 @@ export const data = [ name: 'pardot', description: 'Test 0', feature: 'router', - module: 'destination', + module: MODULES.DESTINATION, version: 'v0', input: { request: { @@ -25,9 +25,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -58,10 +56,8 @@ export const data = [ }, metadata: { jobId: 1, - secret: { - access_token: 'myToken', - refresh_token: 'myRefreshToken', - }, + secret: { access_token: 'myToken', refresh_token: 'myRefreshToken' }, + userId: 'u1', }, message: { type: 'identify', @@ -70,10 +66,7 @@ export const data = [ userId: 'user12345', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -100,19 +93,11 @@ export const data = [ innerHeight: 776, }, traits: {}, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.18', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, campaign: {}, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', - externalId: [ - { - type: 'pardotId', - id: 123435, - }, - ], + externalId: [{ type: 'pardotId', id: 123435 }], }, rudderId: 'fa2994a5-2a81-45fd-9919-fcf5596ad380', messageId: 'e2d1a383-d9a2-4e03-a9dc-131d153c4d95', @@ -121,9 +106,7 @@ export const data = [ receivedAt: '2021-11-15T14:06:42.497+05:30', request_ip: '[::1]', anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2021-09-08T11:10:45.466Z', traits: { email: 'Roger12@waltair.io', @@ -149,9 +132,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -182,10 +163,8 @@ export const data = [ }, metadata: { jobId: 2, - secret: { - access_token: 'myToken', - refresh_token: 'myRefreshToken', - }, + secret: { access_token: 'myToken', refresh_token: 'myRefreshToken' }, + userId: 'u1', }, message: { type: 'identify', @@ -194,10 +173,7 @@ export const data = [ userId: 'user12345', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -224,10 +200,7 @@ export const data = [ innerHeight: 776, }, traits: {}, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.18', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, campaign: {}, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', @@ -239,9 +212,7 @@ export const data = [ receivedAt: '2021-11-15T14:06:42.497+05:30', request_ip: '[::1]', anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2021-09-08T11:10:45.466Z', traits: { email: 'Roger_12@waltair.io', @@ -267,9 +238,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -300,10 +269,8 @@ export const data = [ }, metadata: { jobId: 3, - secret: { - access_token: 'myToken', - refresh_token: 'myRefreshToken', - }, + secret: { access_token: 'myToken', refresh_token: 'myRefreshToken' }, + userId: 'u1', }, message: { type: 'identify', @@ -312,10 +279,7 @@ export const data = [ userId: 'user12345', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -342,19 +306,11 @@ export const data = [ innerHeight: 776, }, traits: {}, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.18', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, campaign: {}, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', - externalId: [ - { - type: 'crmfid', - id: '00Q6r000002LKhTPVR', - }, - ], + externalId: [{ type: 'crmfid', id: '00Q6r000002LKhTPVR' }], }, rudderId: 'fa2994a5-2a81-45fd-9919-fcf5596ad380', messageId: 'e2d1a383-d9a2-4e03-a9dc-131d153c4d95', @@ -363,9 +319,7 @@ export const data = [ receivedAt: '2021-11-15T14:06:42.497+05:30', request_ip: '[::1]', anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2021-09-08T11:10:45.466Z', traits: { email: 'nick_kyrgios@waltair.io', @@ -391,9 +345,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -424,10 +376,8 @@ export const data = [ }, metadata: { jobId: 4, - secret: { - access_token: 'myExpiredToken', - refresh_token: 'myRefreshToken', - }, + secret: { access_token: 'myExpiredToken', refresh_token: 'myRefreshToken' }, + userId: 'u1', }, message: { type: 'identify', @@ -436,10 +386,7 @@ export const data = [ userId: 'user12345', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -466,10 +413,7 @@ export const data = [ innerHeight: 776, }, traits: {}, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.18', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, campaign: {}, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', @@ -481,9 +425,7 @@ export const data = [ receivedAt: '2021-11-15T14:06:42.497+05:30', request_ip: '[::1]', anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2021-09-08T11:10:45.466Z', traits: { email: 'rolex_waltair@mywebsite.io', @@ -509,9 +451,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -540,10 +480,7 @@ export const data = [ Name: 'test destination', Transformations: [], }, - metadata: { - jobId: 5, - secret: null, - }, + metadata: { jobId: 5, secret: null, userId: 'u1' }, message: { type: 'identify', event: 'navigated user', @@ -551,10 +488,7 @@ export const data = [ userId: 'user12345', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -581,10 +515,7 @@ export const data = [ innerHeight: 776, }, traits: {}, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.18', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.18' }, campaign: {}, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', @@ -596,9 +527,7 @@ export const data = [ receivedAt: '2021-11-15T14:06:42.497+05:30', request_ip: '[::1]', anonymousId: 'd8b2ed61-7fa5-4ef8-bd92-6a506157c0cf', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2021-09-08T11:10:45.466Z', traits: { email: 'rolex_waltair@mywebsite.io', @@ -649,10 +578,8 @@ export const data = [ metadata: [ { jobId: 1, - secret: { - access_token: 'myToken', - refresh_token: 'myRefreshToken', - }, + secret: { access_token: 'myToken', refresh_token: 'myRefreshToken' }, + userId: 'u1', }, ], batched: false, @@ -670,9 +597,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -731,10 +656,8 @@ export const data = [ metadata: [ { jobId: 2, - secret: { - access_token: 'myToken', - refresh_token: 'myRefreshToken', - }, + secret: { access_token: 'myToken', refresh_token: 'myRefreshToken' }, + userId: 'u1', }, ], batched: false, @@ -752,9 +675,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -813,10 +734,8 @@ export const data = [ metadata: [ { jobId: 3, - secret: { - access_token: 'myToken', - refresh_token: 'myRefreshToken', - }, + secret: { access_token: 'myToken', refresh_token: 'myRefreshToken' }, + userId: 'u1', }, ], batched: false, @@ -834,9 +753,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -895,10 +812,8 @@ export const data = [ metadata: [ { jobId: 4, - secret: { - access_token: 'myExpiredToken', - refresh_token: 'myRefreshToken', - }, + secret: { access_token: 'myExpiredToken', refresh_token: 'myRefreshToken' }, + userId: 'u1', }, ], batched: false, @@ -916,9 +831,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -962,9 +875,7 @@ export const data = [ name: 'PARDOT', displayName: 'Pardot', config: { - auth: { - type: 'OAuth', - }, + auth: { type: 'OAuth' }, transformAt: 'router', transformAtV1: 'router', saveDestinationResponse: true, @@ -993,12 +904,7 @@ export const data = [ Name: 'test destination', Transformations: [], }, - metadata: [ - { - jobId: 5, - secret: null, - }, - ], + metadata: [{ jobId: 5, secret: null, userId: 'u1' }], batched: false, statusCode: 500, error: 'OAuth - access token not found', @@ -1046,9 +952,7 @@ export const data = [ }, }, files: {}, - params: { - destination: 'pardot', - }, + params: { destination: 'pardot' }, }, method: 'POST', }, @@ -1062,10 +966,7 @@ export const data = [ status: 200, destinationResponse: { response: { - '@attributes': { - stat: 'ok', - version: 1, - }, + '@attributes': { stat: 'ok', version: 1 }, prospect: { id: 123435, campaign_id: 42213, @@ -1112,11 +1013,7 @@ export const data = [ is_starred: null, created_at: '2022-01-21 18:21:46', updated_at: '2022-01-21 18:48:41', - campaign: { - id: 42113, - name: 'Test', - crm_fid: '7012y000000MNOCLL4', - }, + campaign: { id: 42113, name: 'Test', crm_fid: '7012y000000MNOCLL4' }, assigned_to: { user: { id: 38443703, @@ -1142,26 +1039,10 @@ export const data = [ id: 304, name: 'Default', profile_criteria: [ - { - id: 1500, - name: 'Shipping Volume', - matches: 'Unknown', - }, - { - id: 1502, - name: 'Industry', - matches: 'Unknown', - }, - { - id: 1506, - name: 'Job Title', - matches: 'Unknown', - }, - { - id: 1508, - name: 'Department', - matches: 'Unknown', - }, + { id: 1500, name: 'Shipping Volume', matches: 'Unknown' }, + { id: 1502, name: 'Industry', matches: 'Unknown' }, + { id: 1506, name: 'Job Title', matches: 'Unknown' }, + { id: 1508, name: 'Department', matches: 'Unknown' }, ], }, visitors: null, @@ -1207,9 +1088,7 @@ export const data = [ }, }, files: {}, - params: { - destination: 'pardot', - }, + params: { destination: 'pardot' }, }, method: 'POST', }, @@ -1223,10 +1102,7 @@ export const data = [ status: 201, destinationResponse: { response: { - '@attributes': { - stat: 'ok', - version: 1, - }, + '@attributes': { stat: 'ok', version: 1 }, prospect: { id: 123435, campaign_id: 42213, @@ -1273,11 +1149,7 @@ export const data = [ is_starred: null, created_at: '2022-01-21 18:21:46', updated_at: '2022-01-21 18:48:41', - campaign: { - id: 42113, - name: 'Test', - crm_fid: '7012y000000MNOCLL4', - }, + campaign: { id: 42113, name: 'Test', crm_fid: '7012y000000MNOCLL4' }, assigned_to: { user: { id: 38443703, @@ -1303,26 +1175,10 @@ export const data = [ id: 304, name: 'Default', profile_criteria: [ - { - id: 1500, - name: 'Shipping Volume', - matches: 'Unknown', - }, - { - id: 1502, - name: 'Industry', - matches: 'Unknown', - }, - { - id: 1506, - name: 'Job Title', - matches: 'Unknown', - }, - { - id: 1508, - name: 'Department', - matches: 'Unknown', - }, + { id: 1500, name: 'Shipping Volume', matches: 'Unknown' }, + { id: 1502, name: 'Industry', matches: 'Unknown' }, + { id: 1506, name: 'Job Title', matches: 'Unknown' }, + { id: 1508, name: 'Department', matches: 'Unknown' }, ], }, visitors: null, @@ -1367,9 +1223,7 @@ export const data = [ }, }, files: {}, - params: { - destination: 'pardot', - }, + params: { destination: 'pardot' }, }, method: 'POST', }, @@ -1383,10 +1237,7 @@ export const data = [ status: 200, destinationResponse: { response: { - '@attributes': { - stat: 'ok', - version: 1, - }, + '@attributes': { stat: 'ok', version: 1 }, prospect: { id: 123435, campaign_id: 42213, @@ -1433,11 +1284,7 @@ export const data = [ is_starred: null, created_at: '2022-01-21 18:21:46', updated_at: '2022-01-21 18:48:41', - campaign: { - id: 42113, - name: 'Test', - crm_fid: '7012y000000MNOCLL4', - }, + campaign: { id: 42113, name: 'Test', crm_fid: '7012y000000MNOCLL4' }, assigned_to: { user: { id: 38443703, @@ -1463,26 +1310,10 @@ export const data = [ id: 304, name: 'Default', profile_criteria: [ - { - id: 1500, - name: 'Shipping Volume', - matches: 'Unknown', - }, - { - id: 1502, - name: 'Industry', - matches: 'Unknown', - }, - { - id: 1506, - name: 'Job Title', - matches: 'Unknown', - }, - { - id: 1508, - name: 'Department', - matches: 'Unknown', - }, + { id: 1500, name: 'Shipping Volume', matches: 'Unknown' }, + { id: 1502, name: 'Industry', matches: 'Unknown' }, + { id: 1506, name: 'Job Title', matches: 'Unknown' }, + { id: 1508, name: 'Department', matches: 'Unknown' }, ], }, visitors: null, @@ -1528,9 +1359,7 @@ export const data = [ }, }, files: {}, - params: { - destination: 'pardot', - }, + params: { destination: 'pardot' }, }, method: 'POST', }, @@ -1545,11 +1374,7 @@ export const data = [ status: 500, authErrorCategory: 'REFRESH_TOKEN', destinationResponse: { - '@attributes': { - stat: 'fail', - version: 1, - err_code: 184, - }, + '@attributes': { stat: 'fail', version: 1, err_code: 184 }, err: 'access_token is invalid, unknown, or malformed: Inactive token', }, statTags: { @@ -1558,7 +1383,7 @@ export const data = [ destinationId: 'Non-determininable', workspaceId: 'Non-determininable', errorType: 'retryable', - feature: 'dataDelivery', + feature: FEATURES.DATA_DELIVERY, implementation: 'native', module: 'destination', }, diff --git a/test/integrations/destinations/persistiq/router/data.ts b/test/integrations/destinations/persistiq/router/data.ts index 051a8a4bca..ddb39b9028 100644 --- a/test/integrations/destinations/persistiq/router/data.ts +++ b/test/integrations/destinations/persistiq/router/data.ts @@ -26,33 +26,22 @@ export const data = [ Snippet: 'extra value', extra: 'extraVal', }, - externalId: [ - { - type: 'persistIqLeadId', - id: 'lel1c5u1wuk8', - }, - ], + externalId: [{ type: 'persistIqLeadId', id: 'lel1c5u1wuk8' }], }, traits: { linkedinUrl: 'www.google.com', dup: 'update', status: 'open', - company: { - name: 'abc123', - }, + company: { name: 'abc123' }, }, }, destination: { Config: { apiKey: 'dummyApiKey', - persistIqAttributesMapping: [ - { - from: 'useroccupation', - to: 'occupation', - }, - ], + persistIqAttributesMapping: [{ from: 'useroccupation', to: 'occupation' }], }, }, + metadata: { jobId: 1, userId: 'u1' }, }, ], destType: 'persistiq', @@ -102,7 +91,7 @@ export const data = [ persistIqAttributesMapping: [{ from: 'useroccupation', to: 'occupation' }], }, }, - metadata: [null], + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, ], diff --git a/test/integrations/destinations/pinterest_tag/processor/data.ts b/test/integrations/destinations/pinterest_tag/processor/data.ts index 17ab83b2e9..65b33e7740 100644 --- a/test/integrations/destinations/pinterest_tag/processor/data.ts +++ b/test/integrations/destinations/pinterest_tag/processor/data.ts @@ -3569,4 +3569,129 @@ export const data = [ }, }, }, + { + name: 'pinterest_tag', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + description: 'Any other format of event except string should be aborted', + message: { + type: 'track', + event: [1, 2, 3], + sentAt: '2020-08-14T05:30:30.118Z', + channel: 'web', + context: { + source: 'test', + userAgent: 'chrome', + traits: { + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + email: 'abc@gmail.com', + phone: '+1234589947', + ge: 'male', + db: '19950715', + lastname: 'Rudderlabs', + firstName: 'Test', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, + }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, + }, + messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', + timestamp: '2020-08-14T05:30:30.118Z', + properties: { + tax: 2, + total: 27.5, + coupon: 'hasbros', + revenue: 48, + price: 25, + quantity: 2, + currency: 'USD', + discount: 2.5, + order_id: '50314b8e9bcf000000000000', + requestIP: '123.0.0.0', + optOutType: 'LDP', + products: [ + { + sku: '45790-32', + url: 'https://www.example.com/product/path', + name: 'Monopoly: 3rd Edition', + price: 19, + category: 'Games', + quantity: 1, + image_url: 'https:///www.example.com/product/path.jpg', + product_id: '507f1f77bcf86cd799439011', + }, + { + sku: '46493-32', + name: 'Uno Card Game', + price: 3, + category: 'Games', + quantity: 2, + product_id: '505bd76785ebb509fc183733', + }, + ], + shipping: 3, + subtotal: 22.5, + affiliation: 'Google Store', + checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', + }, + anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', + integrations: { All: true }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'PINTEREST_TAG', + Config: { + sendAsTestEvent: false, + tagId: '123456789', + apiVersion: 'newApi', + adAccountId: 'accountId123', + conversionToken: 'conversionToken123', + appId: '429047995', + enhancedMatch: true, + enableDeduplication: true, + deduplicationKey: 'messageId', + sendingUnHashedData: true, + sendExternalId: true, + customProperties: [{ properties: 'presentclass' }, { properties: 'presentgrade' }], + eventsMapping: [{ from: 'ABC Searched', to: 'WatchVideo' }], + }, + Enabled: true, + Transformations: [], + }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq' }, + }, + ], + method: 'POST', + }, + pathSuffix: '', + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Event is a required field and should be a string: Workflow: procWorkflow, Step: eventNames, ChildStep: undefined, OriginalError: Event is a required field and should be a string', + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq' }, + statTags: { + destType: 'PINTEREST_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, ]; diff --git a/test/integrations/destinations/pinterest_tag/router/data.ts b/test/integrations/destinations/pinterest_tag/router/data.ts index e004be25f0..c02b1781e3 100644 --- a/test/integrations/destinations/pinterest_tag/router/data.ts +++ b/test/integrations/destinations/pinterest_tag/router/data.ts @@ -26,20 +26,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -81,14 +71,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 1, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 1, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -103,30 +88,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -150,20 +119,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -204,14 +163,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 2, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 2, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -226,30 +180,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -273,20 +211,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -308,14 +236,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 3, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 3, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -330,30 +253,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -377,20 +284,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -431,14 +328,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 4, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 4, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -453,30 +345,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -500,20 +376,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -554,14 +420,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 5, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 5, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -576,30 +437,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -623,20 +468,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -677,14 +512,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 6, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 6, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -699,30 +529,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -736,9 +550,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://ct.pinterest.com/events/v3', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -769,14 +581,8 @@ export const data = [ num_items: 3, content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -786,10 +592,7 @@ export const data = [ }, files: {}, }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 7, - }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 7, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -804,30 +607,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -851,9 +638,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://ct.pinterest.com/events/v3', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -889,14 +674,8 @@ export const data = [ opt_out_type: 'LDP', content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -931,14 +710,8 @@ export const data = [ opt_out_type: 'LDP', content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -972,14 +745,8 @@ export const data = [ num_items: 3, content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -1012,12 +779,7 @@ export const data = [ order_id: '50314b8e9bcf000000000000', num_items: 2, content_ids: ['123'], - contents: [ - { - quantity: 2, - item_price: '25', - }, - ], + contents: [{ quantity: 2, item_price: '25' }], }, }, { @@ -1050,14 +812,8 @@ export const data = [ num_items: 3, content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -1091,14 +847,8 @@ export const data = [ num_items: 3, content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -1132,14 +882,8 @@ export const data = [ num_items: 3, content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -1152,30 +896,12 @@ export const data = [ files: {}, }, metadata: [ - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 1, - }, - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 2, - }, - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 3, - }, - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 4, - }, - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 6, - }, - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 7, - }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 1, userId: 'u1' }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 2, userId: 'u1' }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 3, userId: 'u1' }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 4, userId: 'u1' }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 6, userId: 'u1' }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 7, userId: 'u1' }, ], batched: true, statusCode: 200, @@ -1193,30 +919,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -1224,12 +934,7 @@ export const data = [ }, }, { - metadata: [ - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 5, - }, - ], + metadata: [{ destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 5, userId: 'u1' }], statTags: { destType: 'PINTEREST_TAG', feature: 'router', @@ -1255,30 +960,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -1317,20 +1006,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -1372,14 +1051,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 8, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 8, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -1396,30 +1070,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -1443,20 +1101,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -1497,14 +1145,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 9, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 9, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -1521,30 +1164,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -1568,20 +1195,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -1622,14 +1239,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 10, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 10, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -1647,30 +1259,14 @@ export const data = [ enhancedMatch: true, sendAsCustomEvent: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -1732,14 +1328,8 @@ export const data = [ opt_out_type: 'LDP', content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -1773,14 +1363,8 @@ export const data = [ opt_out_type: 'LDP', content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -1813,14 +1397,8 @@ export const data = [ num_items: 3, content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -1853,14 +1431,8 @@ export const data = [ num_items: 3, content_ids: ['507f1f77bcf86cd799439011', '505bd76785ebb509fc183733'], contents: [ - { - quantity: 1, - item_price: '19', - }, - { - quantity: 2, - item_price: '3', - }, + { quantity: 1, item_price: '19' }, + { quantity: 2, item_price: '3' }, ], }, }, @@ -1873,18 +1445,9 @@ export const data = [ files: {}, }, metadata: [ - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 8, - }, - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 9, - }, - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 10, - }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 8, userId: 'u1' }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 9, userId: 'u1' }, + { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 10, userId: 'u1' }, ], batched: true, statusCode: 200, @@ -1904,30 +1467,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'WatchVideo', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'WatchVideo' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -1966,20 +1513,10 @@ export const data = [ db: '19950715', lastname: 'Rudderlabs', firstName: 'Test', - address: { - city: 'Kolkata', - state: 'WB', - zip: '700114', - country: 'IN', - }, - }, - device: { - advertisingId: 'abc123', - }, - library: { - name: 'rudder-sdk-ruby-sync', - version: '1.0.6', + address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, }, + device: { advertisingId: 'abc123' }, + library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, }, messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', timestamp: '2020-08-14T05:30:30.118Z', @@ -2020,14 +1557,9 @@ export const data = [ checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', }, anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', - integrations: { - All: true, - }, - }, - metadata: { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 5, + integrations: { All: true }, }, + metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 5, userId: 'u1' }, destination: { DestinationDefinition: { Config: { cdkV2Enabled: true } }, ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', @@ -2042,30 +1574,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'Watch Video', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'Watch Video' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, @@ -2084,12 +1600,7 @@ export const data = [ body: { output: [ { - metadata: [ - { - destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', - jobId: 5, - }, - ], + metadata: [{ destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', jobId: 5, userId: 'u1' }], batched: false, statusCode: 400, error: 'message type identify is not supported', @@ -2115,30 +1626,14 @@ export const data = [ deduplicationKey: 'messageId', enhancedMatch: true, customProperties: [ - { - properties: 'presentclass', - }, - { - properties: 'presentgrade', - }, + { properties: 'presentclass' }, + { properties: 'presentgrade' }, ], eventsMapping: [ - { - from: 'ABC Searched', - to: 'Watch Video', - }, - { - from: 'ABC Searched', - to: 'Signup', - }, - { - from: 'User Signup', - to: 'Signup', - }, - { - from: 'User Created', - to: 'Signup', - }, + { from: 'ABC Searched', to: 'Watch Video' }, + { from: 'ABC Searched', to: 'Signup' }, + { from: 'User Signup', to: 'Signup' }, + { from: 'User Created', to: 'Signup' }, ], }, Enabled: true, diff --git a/test/integrations/destinations/pipedream/router/data.ts b/test/integrations/destinations/pipedream/router/data.ts index fa71e6a592..3e05ad9551 100644 --- a/test/integrations/destinations/pipedream/router/data.ts +++ b/test/integrations/destinations/pipedream/router/data.ts @@ -19,25 +19,15 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { - All: true, - }, + integrations: { All: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -100,21 +90,13 @@ export const data = [ versionSessionCount: 2, }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { pipedreamUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { - from: '', - to: '', - }, - { - from: 'test2', - to: 'value2', - }, + { from: '', to: '' }, + { from: 'test2', to: 'value2' }, ], }, }, @@ -157,9 +139,7 @@ export const data = [ versionSessionCount: 2, game_name: 'FireEagleSlots', }, - integrations: { - All: true, - }, + integrations: { All: true }, event: 'spin_result', message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', @@ -172,18 +152,10 @@ export const data = [ }, traits: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - }, - os: { - version: '8.1.0', - name: 'android', - }, - network: { - carrier: 'Banglalink', + address: { city: 'Dhaka', country: 'Bangladesh' }, }, + os: { version: '8.1.0', name: 'android' }, + network: { carrier: 'Banglalink' }, }, type: 'track', properties: { @@ -230,34 +202,21 @@ export const data = [ files: {}, endpoint: 'http://6b0e6a60.ngrok.io', userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { - 'content-type': 'application/json', - test2: 'value2', - }, + headers: { 'content-type': 'application/json', test2: 'value2' }, version: '1', params: {}, type: 'REST', method: 'POST', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { Config: { pipedreamUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { - from: '', - to: '', - }, - { - from: 'test2', - to: 'value2', - }, + { from: '', to: '' }, + { from: 'test2', to: 'value2' }, ], }, }, @@ -287,25 +246,15 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { - All: true, - }, + integrations: { All: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -368,14 +317,8 @@ export const data = [ versionSessionCount: 2, }, }, - metadata: { - jobId: 2, - }, - destination: { - Config: { - pipedreamUrl: 'https://6b0e6a60.ngrok.io/n', - }, - }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { Config: { pipedreamUrl: 'https://6b0e6a60.ngrok.io/n' } }, }, ], destType: 'pipedream', @@ -415,9 +358,7 @@ export const data = [ versionSessionCount: 2, game_name: 'FireEagleSlots', }, - integrations: { - All: true, - }, + integrations: { All: true }, event: 'spin_result', message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', @@ -430,18 +371,10 @@ export const data = [ }, traits: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - }, - os: { - version: '8.1.0', - name: 'android', - }, - network: { - carrier: 'Banglalink', + address: { city: 'Dhaka', country: 'Bangladesh' }, }, + os: { version: '8.1.0', name: 'android' }, + network: { carrier: 'Banglalink' }, }, type: 'track', properties: { @@ -488,26 +421,16 @@ export const data = [ files: {}, endpoint: 'https://6b0e6a60.ngrok.io/n', userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { - 'content-type': 'application/json', - }, + headers: { 'content-type': 'application/json' }, version: '1', params: {}, type: 'REST', method: 'POST', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, - destination: { - Config: { - pipedreamUrl: 'https://6b0e6a60.ngrok.io/n', - }, - }, + destination: { Config: { pipedreamUrl: 'https://6b0e6a60.ngrok.io/n' } }, }, ], }, diff --git a/test/integrations/destinations/posthog/router/data.ts b/test/integrations/destinations/posthog/router/data.ts index f69b4bfbdd..dab8ba8b1c 100644 --- a/test/integrations/destinations/posthog/router/data.ts +++ b/test/integrations/destinations/posthog/router/data.ts @@ -16,9 +16,7 @@ export const data = [ yourInstance: 'https://app.posthog.com/', }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { event: 'event-alias', context: { @@ -29,13 +27,8 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, app: { build: '1.0.0', name: 'RudderLabs JavaScript SDK', @@ -43,10 +36,7 @@ export const data = [ version: '1.1.7', }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, @@ -74,18 +64,13 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://app.posthog.com/batch', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { properties: { $set: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, $os: 'android', @@ -117,11 +102,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -148,13 +129,9 @@ export const data = [ input: [ { destination: { - Config: { - teamApiKey: 'K_HlByO3IE73-Tz4ch1LNDs0JGdwbknNGolFc4HdoAE', - }, - }, - metadata: { - jobId: 2, + Config: { teamApiKey: 'K_HlByO3IE73-Tz4ch1LNDs0JGdwbknNGolFc4HdoAE' }, }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', event: 'Product Brought', @@ -166,18 +143,10 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, @@ -241,9 +210,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://app.posthog.com/batch', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -252,10 +219,7 @@ export const data = [ messageId: 'e4408cb8-16dd-41e9-a313-a7a9cdc4bac5', properties: { $set: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, $os: 'android', @@ -316,17 +280,11 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - teamApiKey: 'K_HlByO3IE73-Tz4ch1LNDs0JGdwbknNGolFc4HdoAE', - }, + Config: { teamApiKey: 'K_HlByO3IE73-Tz4ch1LNDs0JGdwbknNGolFc4HdoAE' }, }, }, ], diff --git a/test/integrations/destinations/profitwell/network.ts b/test/integrations/destinations/profitwell/network.ts new file mode 100644 index 0000000000..e4e7247c74 --- /dev/null +++ b/test/integrations/destinations/profitwell/network.ts @@ -0,0 +1,94 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/pwu_Oea7HXV3bnTP/', + method: 'GET', + }, + httpRes: { + data: [ + { + user_id: 'pwu_Oea7HXV3bnTP', + subscription_id: 'pws_FecTCEyo17rV', + user_alias: 'spiderman_1a', + subscription_alias: 'spiderman_sub_1a', + email: 'spiderman@profitwell.com', + plan_id: 'web_plan', + plan_interval: 'month', + plan_currency: 'usd', + status: 'active', + value: 5000, + effective_date: 1514764800, + meta: {}, + }, + ], + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/spiderman_1a/', + method: 'GET', + }, + httpRes: { + data: [ + { + user_id: 'pwu_Oea7HXV3bnTP', + subscription_id: 'pws_FecTCEyo17rV', + user_alias: 'spiderman_1a', + subscription_alias: 'spiderman_sub_1a', + email: 'spiderman@profitwell.com', + plan_id: 'web_plan', + plan_interval: 'month', + plan_currency: 'usd', + status: 'active', + value: 5000, + effective_date: 1514764800, + meta: {}, + }, + ], + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/23453/', + method: 'GET', + }, + httpRes: { + status: 404, + }, + }, + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/sp_245/', + method: 'GET', + }, + httpRes: { + message: 'Request failed with status code 404', + status: 404, + statusText: 'Not Found', + }, + }, + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/1234/', + method: 'GET', + }, + httpRes: { + message: 'Request failed with status code 404', + status: 404, + statusText: 'Not Found', + }, + }, + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/samual/', + method: 'GET', + }, + httpRes: { + message: 'Request failed with status code 404', + status: 404, + statusText: 'Not Found', + }, + }, +]; diff --git a/test/integrations/destinations/profitwell/processor/data.ts b/test/integrations/destinations/profitwell/processor/data.ts new file mode 100644 index 0000000000..58bd2ed35f --- /dev/null +++ b/test/integrations/destinations/profitwell/processor/data.ts @@ -0,0 +1,1241 @@ +export const data = [ + { + name: 'profitwell', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'userId or userAlias is required for identify', + statTags: { + destType: 'PROFITWELL', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + context: { + externalId: [ + { + type: 'profitwellUserId', + id: '23453', + }, + ], + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'No user found for profitwell user_id', + statTags: { + destType: 'PROFITWELL', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.profitwell.com/v2/subscriptions/', + headers: { + 'Content-Type': 'application/json', + Authorization: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + params: {}, + body: { + JSON: { + subscription_alias: 'samual', + email: 'sample@sample.com', + plan_id: '23', + plan_interval: 'month', + plan_currency: 'usd', + status: 'active', + value: '23', + user_alias: 'sp_245', + effective_date: 1630917906, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + status: 'active', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'subscriptionId or subscriptionAlias is required for identify', + statTags: { + destType: 'PROFITWELL', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'profitwellUserId', + id: '1234', + }, + ], + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'No user found for profitwell user_id', + statTags: { + destType: 'PROFITWELL', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'profitwellUserId', + id: 'pwu_Oea7HXV3bnTP', + }, + ], + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.profitwell.com/v2/subscriptions/', + headers: { + 'Content-Type': 'application/json', + Authorization: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + params: {}, + body: { + JSON: { + subscription_alias: 'samual', + email: 'sample@sample.com', + plan_id: '23', + plan_interval: 'month', + plan_currency: 'usd', + status: 'active', + value: '23', + user_id: 'pwu_Oea7HXV3bnTP', + user_alias: 'sp_245', + effective_date: 1630917906, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'profitwellUserId', + id: 'pwu_Oea7HXV3bnTP', + }, + { + type: 'profitwellSubscriptionId', + id: 'pws_FecTCEyo17rV', + }, + ], + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Missing required value from ["traits.effectiveDate","context.traits.effectiveDate"]', + statTags: { + destType: 'PROFITWELL', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'profitwellUserId', + id: 'pwu_Oea7HXV3bnTP', + }, + { + type: 'profitwellSubscriptionId', + id: 'pws_FecTCEyo17rV', + }, + ], + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + effectiveDate: '1609748705', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.profitwell.com/v2/subscriptions/pws_FecTCEyo17rV/', + headers: { + 'Content-Type': 'application/json', + Authorization: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + params: {}, + body: { + JSON: { + plan_id: '23', + plan_interval: 'month', + value: '23', + status: 'active', + effective_date: 1609748705, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'profitwellUserId', + id: 'pwu_Oea7HXV3bnTP', + }, + { + type: 'profitwellSubscriptionId', + id: 'pws_FecTCEyo17rV', + }, + ], + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'monthly', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + effectiveDate: '1609748705', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'invalid format for planInterval. Aborting', + statTags: { + destType: 'PROFITWELL', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'profitwellUserId', + id: 'pwu_Oea7HXV3bnTP', + }, + { + type: 'profitwellSubscriptionId', + id: 'pws_FecTCEyo17rV', + }, + ], + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'activate', + effectiveDate: '1609748705', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.profitwell.com/v2/subscriptions/pws_FecTCEyo17rV/', + headers: { + 'Content-Type': 'application/json', + Authorization: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + params: {}, + body: { + JSON: { + plan_id: '23', + plan_interval: 'month', + value: '23', + effective_date: 1609748705, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: {}, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'profitwellUserId', + id: 'pwu_Oea7HXV3bnTP', + }, + { + type: 'profitwellSubscriptionId', + id: 'pws_FecTCEyo17rV', + }, + ], + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + effectiveDate: '1609748705', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Private API Key not found. Aborting.', + statTags: { + destType: 'PROFITWELL', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'profitwellUserId', + id: 'pwu_Oea7HXV3bnTP', + }, + { + type: 'profitwellSubscriptionId', + id: 'pws_FecTCEyo17', + }, + ], + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + effectiveDate: '1609748705', + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Profitwell subscription_id not found', + statTags: { + destType: 'PROFITWELL', + errorCategory: 'network', + errorType: 'aborted', + feature: 'processor', + implementation: 'native', + meta: 'instrumentation', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'profitwell', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + }, + message: { + channel: 'web', + userId: 'sp_245', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + effectiveDate: 1609748705, + }, + 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', + }, + 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-09-06T14:15:06.798+05:30', + type: 'identify', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.profitwell.com/v2/subscriptions/', + headers: { + 'Content-Type': 'application/json', + Authorization: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + params: {}, + body: { + JSON: { + subscription_alias: 'samual', + email: 'sample@sample.com', + plan_id: '23', + plan_interval: 'month', + plan_currency: 'usd', + status: 'active', + value: '23', + effective_date: 1609748705, + user_alias: 'sp_245', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/profitwell/router/data.ts b/test/integrations/destinations/profitwell/router/data.ts new file mode 100644 index 0000000000..b308155dae --- /dev/null +++ b/test/integrations/destinations/profitwell/router/data.ts @@ -0,0 +1,99 @@ +export const data = [ + { + name: 'profitwell', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { Config: { privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62' } }, + metadata: { jobId: 2, userId: 'u1' }, + 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', + type: 'identify', + userId: 'samual', + traits: { + email: 'sample@sample.com', + planId: '23', + planInterval: 'month', + planCurrency: 'usd', + value: '23', + subscriptionAlias: 'samual', + status: 'active', + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + destType: 'profitwell', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + body: { + XML: {}, + FORM: {}, + JSON: { + subscription_alias: 'samual', + email: 'sample@sample.com', + plan_id: '23', + plan_interval: 'month', + plan_currency: 'usd', + status: 'active', + value: '23', + user_alias: 'samual', + effective_date: 1571043797, + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: '9270161a8e5abaa0e56efddfd9dbcb62', + }, + version: '1', + endpoint: 'https://api.profitwell.com/v2/subscriptions/', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { Config: { privateApiKey: '9270161a8e5abaa0e56efddfd9dbcb62' } }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/reddit/delivery/data.ts b/test/integrations/destinations/reddit/delivery/data.ts new file mode 100644 index 0000000000..66c1e2863f --- /dev/null +++ b/test/integrations/destinations/reddit/delivery/data.ts @@ -0,0 +1,174 @@ +export const data = [ + { + name: 'reddit', + description: 'Test 0', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'Purchase', + }, + user: { + aaid: 'c12d34889302d3c656b5699fa9190b51c50d6f62fce57e13bd56b503d66c487a', + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 3, + products: [ + { + id: '123', + name: 'Monopoly', + category: 'Games', + }, + { + id: '345', + name: 'UNO', + category: 'Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + destResp: { + response: { + message: 'Successfully processed 1 conversion events.', + }, + status: 200, + }, + message: 'Request Processed Successfully', + status: 200, + }, + }, + }, + }, + }, + { + name: 'reddit', + description: 'Test 1', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_gsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'ViewContent', + }, + user: { + aaid: 'c12d34889302d3c656b5699fa9190b51c50d6f62fce57e13bd56b503d66c487a', + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 3, + products: [ + { + id: '123', + name: 'Monopoly', + category: 'Games', + }, + { + id: '345', + name: 'UNO', + category: 'Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 500, + body: { + output: { + authErrorCategory: 'REFRESH_TOKEN', + destinationResponse: { + response: 'Authorization Required', + status: 401, + }, + message: + "Request failed due to Authorization Required 'during reddit response transformation'", + statTags: { + destType: 'REDDIT', + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'retryable', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', + }, + status: 500, + }, + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/reddit/network.ts b/test/integrations/destinations/reddit/network.ts new file mode 100644 index 0000000000..7c436e8fb8 --- /dev/null +++ b/test/integrations/destinations/reddit/network.ts @@ -0,0 +1,100 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + data: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'Purchase', + }, + user: { + aaid: 'c12d34889302d3c656b5699fa9190b51c50d6f62fce57e13bd56b503d66c487a', + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 3, + products: [ + { + id: '123', + name: 'Monopoly', + category: 'Games', + }, + { + id: '345', + name: 'UNO', + category: 'Games', + }, + ], + }, + }, + ], + }, + params: { destination: 'reddit' }, + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + method: 'POST', + }, + httpRes: { + data: { + message: 'Successfully processed 1 conversion events.', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_gsddXXXfsfd', + data: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'ViewContent', + }, + user: { + aaid: 'c12d34889302d3c656b5699fa9190b51c50d6f62fce57e13bd56b503d66c487a', + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 3, + products: [ + { + id: '123', + name: 'Monopoly', + category: 'Games', + }, + { + id: '345', + name: 'UNO', + category: 'Games', + }, + ], + }, + }, + ], + }, + params: { destination: 'reddit' }, + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + method: 'POST', + }, + httpRes: { data: 'Authorization Required', status: 401, statusText: 'Unauthorized' }, + }, +]; diff --git a/test/integrations/destinations/reddit/processor/data.ts b/test/integrations/destinations/reddit/processor/data.ts new file mode 100644 index 0000000000..91da5fbe67 --- /dev/null +++ b/test/integrations/destinations/reddit/processor/data.ts @@ -0,0 +1,1532 @@ +export const data = [ + { + name: 'reddit', + description: 'Track call with order completed event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + device: { + advertisingId: 'asfds7fdsihf734b34j43f', + }, + os: { + name: 'android', + }, + }, + type: 'track', + session_id: '16733896350494', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'Order Completed', + userId: 'testuserId1', + properties: { + checkout_id: '12345', + order_id: '1234', + affiliation: 'Apple Store', + total: 20, + revenue: 15, + shipping: 4, + tax: 1, + discount: 1.5, + coupon: 'ImagePro', + currency: 'USD', + products: [ + { + product_id: '123', + sku: 'G-32', + name: 'Monopoly', + price: 14, + quantity: 1, + category: 'Games', + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.jpg', + }, + { + product_id: '345', + sku: 'F-32', + name: 'UNO', + price: 3.45, + quantity: 2, + category: 'Games', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'Purchase', + }, + user: { + aaid: 'c12d34889302d3c656b5699fa9190b51c50d6f62fce57e13bd56b503d66c487a', + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 3, + products: [ + { + id: '123', + name: 'Monopoly', + category: 'Games', + }, + { + id: '345', + name: 'UNO', + category: 'Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with product list viewed event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'Product List Viewed', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: false, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'ViewContent', + }, + user: { + email: 'testone@gmail.com', + external_id: 'testuserId1', + ip_address: '54.100.200.255', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 0, + products: [ + { + id: '017c6f5d5cf86a4b22432066', + name: 'Just Another Game', + category: 'Games and Entertainment', + }, + { + id: '89ac6f5d5cf86a4b64eac145', + name: 'Wrestling Trump Cards', + category: 'Card Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with product added event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'PRoduct Added ', + userId: 'testuserId1', + properties: { + product_id: '622c6f5d5cf86a4c77358033', + sku: '8472-998-0112', + category: 'Games', + name: 'Cones of Dunshire', + brand: 'Wyatt Games', + variant: 'exapansion pack', + price: 49.99, + quantity: 5, + coupon: 'PREORDER15', + position: 1, + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.webp', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'AddToCart', + }, + user: { + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 5, + products: [ + { + id: '622c6f5d5cf86a4c77358033', + name: 'Cones of Dunshire', + category: 'Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with products searched event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'products searched', + userId: 'testuserId1', + properties: { + product_id: '622c6f5d5cf86a4c77358033', + sku: '8472-998-0112', + category: 'Games', + name: 'Cones of Dunshire', + brand: 'Wyatt Games', + variant: 'exapansion pack', + price: 49.99, + quantity: 5, + coupon: 'PREORDER15', + position: 1, + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.webp', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'Search', + }, + user: { + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 5, + products: [ + { + id: '622c6f5d5cf86a4c77358033', + name: 'Cones of Dunshire', + category: 'Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with products Searched event mapped in UI', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'Products Searched', + userId: 'testuserId1', + properties: { + product_id: '622c6f5d5cf86a4c77358033', + sku: '8472-998-0112', + category: 'Games', + name: 'Cones of Dunshire', + brand: 'Wyatt Games', + variant: 'exapansion pack', + price: 49.99, + quantity: 5, + coupon: 'PREORDER15', + position: 1, + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.webp', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Products Searched', + to: 'ViewContent', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'ViewContent', + }, + user: { + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 5, + products: [ + { + id: '622c6f5d5cf86a4c77358033', + name: 'Cones of Dunshire', + category: 'Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with product added to wishlist event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'product added to wishlist', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + tracking_type: 'AddToWishlist', + }, + user: { + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 0, + products: [ + { + id: '017c6f5d5cf86a4b22432066', + name: 'Just Another Game', + category: 'Games and Entertainment', + }, + { + id: '89ac6f5d5cf86a4b64eac145', + name: 'Wrestling Trump Cards', + category: 'Card Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with non-standard non-mapped event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'Watch Items', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { + custom_event_name: 'Watch Items', + tracking_type: 'Custom', + }, + user: { + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 0, + products: [ + { + id: '017c6f5d5cf86a4b22432066', + name: 'Just Another Game', + category: 'Games and Entertainment', + }, + { + id: '89ac6f5d5cf86a4b64eac145', + name: 'Wrestling Trump Cards', + category: 'Card Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with no accountId in Config', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'Watch Items', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Account is not present. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Account is not present. Aborting message.', + statusCode: 400, + statTags: { + destType: 'REDDIT', + destinationId: 'destId', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + workspaceId: 'wspId', + }, + metadata: { + destinationId: 'destId', + secret: { + accessToken: 'dummyAccessToken', + }, + workspaceId: 'wspId', + }, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with no messageType', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'Watch Items', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'message Type is not present. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: message Type is not present. Aborting message.', + statusCode: 400, + statTags: { + destType: 'REDDIT', + destinationId: 'destId', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + workspaceId: 'wspId', + }, + metadata: { + destinationId: 'destId', + secret: { + accessToken: 'dummyAccessToken', + }, + workspaceId: 'wspId', + }, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with no event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + type: 'track', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Event is not present. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Event is not present. Aborting message.', + statusCode: 400, + statTags: { + destType: 'REDDIT', + destinationId: 'destId', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + workspaceId: 'wspId', + }, + metadata: { + destinationId: 'destId', + secret: { + accessToken: 'dummyAccessToken', + }, + workspaceId: 'wspId', + }, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with no timestamp', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + anonymousId: '123456', + type: 'track', + event: 'Watch Items', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { + accessToken: 'dummyAccessToken', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Timestamp is not present. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Timestamp is not present. Aborting message.', + statusCode: 400, + statTags: { + destType: 'REDDIT', + destinationId: 'destId', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + workspaceId: 'wspId', + }, + metadata: { + destinationId: 'destId', + secret: { + accessToken: 'dummyAccessToken', + }, + workspaceId: 'wspId', + }, + }, + ], + }, + }, + }, + { + name: 'reddit', + description: 'Track call with no accessToken in secret in metadata', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + traits: { + email: 'testone@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + anonymousId: '123456', + type: 'track', + event: 'Watch Items', + userId: 'testuserId1', + originalTimestamp: '2019-10-14T09:03:17.562Z', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { + All: true, + }, + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [ + { + from: 'Order Completed', + to: 'Purchase', + }, + ], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: {}, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Secret or accessToken is not present in the metadata: Workflow: procWorkflow, Step: buildResponseForProcessTransformation, ChildStep: undefined, OriginalError: Secret or accessToken is not present in the metadata', + statusCode: 500, + statTags: { + destType: 'REDDIT', + destinationId: 'destId', + errorCategory: 'platform', + errorType: 'oAuthSecret', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + workspaceId: 'wspId', + }, + metadata: { + destinationId: 'destId', + secret: {}, + workspaceId: 'wspId', + }, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/reddit/router/data.ts b/test/integrations/destinations/reddit/router/data.ts new file mode 100644 index 0000000000..2f96e27ef7 --- /dev/null +++ b/test/integrations/destinations/reddit/router/data.ts @@ -0,0 +1,434 @@ +export const data = [ + { + name: 'reddit', + description: 'Track Events', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + context: { + traits: { email: 'testone@gmail.com' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + session_id: '16733896350494', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'Order Completed', + userId: 'testuserId1', + properties: { + checkout_id: '12345', + order_id: '1234', + affiliation: 'Apple Store', + total: 20, + revenue: 15, + shipping: 4, + tax: 1, + discount: 1.5, + coupon: 'ImagePro', + currency: 'USD', + products: [ + { + product_id: '123', + sku: 'G-32', + name: 'Monopoly', + price: 14, + quantity: 1, + category: 'Games', + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.jpg', + }, + { + product_id: '345', + sku: 'F-32', + name: 'UNO', + price: 3.45, + quantity: 2, + category: 'Games', + }, + ], + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [{ from: 'Order Completed', to: 'Purchase' }], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { accessToken: 'dummyAccessToken' }, + jobId: 1, + userId: 'u1', + }, + }, + { + message: { + context: { + traits: { email: 'testone@gmail.com' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'Product List Viewed', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [{ from: 'Order Completed', to: 'Purchase' }], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { accessToken: 'dummyAccessToken' }, + jobId: 2, + userId: 'u1', + }, + }, + { + message: { + context: { + traits: { email: 'testone@gmail.com' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + type: 'track', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'PRoduct Added ', + userId: 'testuserId1', + properties: { + product_id: '622c6f5d5cf86a4c77358033', + sku: '8472-998-0112', + category: 'Games', + name: 'Cones of Dunshire', + brand: 'Wyatt Games', + variant: 'exapansion pack', + price: 49.99, + quantity: 5, + coupon: 'PREORDER15', + position: 1, + url: 'https://www.website.com/product/path', + image_url: 'https://www.website.com/product/path.webp', + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [{ from: 'Order Completed', to: 'Purchase' }], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { accessToken: 'dummyAccessToken' }, + jobId: 3, + userId: 'u1', + }, + }, + ], + destType: 'reddit', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + body: { + JSON: { + events: [ + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { tracking_type: 'Purchase' }, + user: { + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 3, + products: [ + { id: '123', name: 'Monopoly', category: 'Games' }, + { id: '345', name: 'UNO', category: 'Games' }, + ], + }, + }, + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { tracking_type: 'ViewContent' }, + user: { + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 0, + products: [ + { + id: '017c6f5d5cf86a4b22432066', + name: 'Just Another Game', + category: 'Games and Entertainment', + }, + { + id: '89ac6f5d5cf86a4b64eac145', + name: 'Wrestling Trump Cards', + category: 'Card Games', + }, + ], + }, + }, + { + event_at: '2019-10-14T09:03:17.562Z', + event_type: { tracking_type: 'AddToCart' }, + user: { + email: 'ac144532d9e4efeab19475d9253a879173ea12a3d2238d1cb8a332a7b3a105f2', + external_id: + '7b023241a3132b792a5a33915a5afb3133cbb1e13d72879689bf6504de3b036d', + ip_address: + 'e80bd55a3834b7c2a34ade23c7ecb54d2a49838227080f50716151e765a619db', + 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', + screen_dimensions: {}, + }, + event_metadata: { + item_count: 5, + products: [ + { + id: '622c6f5d5cf86a4c77358033', + name: 'Cones of Dunshire', + category: 'Games', + }, + ], + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://ads-api.reddit.com/api/v2.0/conversions/events/a2_fsddXXXfsfd', + headers: { + Authorization: 'Bearer dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + files: {}, + }, + metadata: [ + { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { accessToken: 'dummyAccessToken' }, + jobId: 1, + userId: 'u1', + }, + { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { accessToken: 'dummyAccessToken' }, + jobId: 2, + userId: 'u1', + }, + { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { accessToken: 'dummyAccessToken' }, + jobId: 3, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + hashData: true, + eventsMapping: [{ from: 'Order Completed', to: 'Purchase' }], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + }, + ], + }, + }, + }, + }, + { + name: 'reddit', + description: 'Track Events with no event name', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + context: { + traits: { email: 'testone@gmail.com' }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + ip: '54.100.200.255', + }, + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + type: 'track', + userId: 'testuserId1', + properties: { + list_id: 'list1', + category: "What's New", + products: [ + { + product_id: '017c6f5d5cf86a4b22432066', + sku: '8732-98', + name: 'Just Another Game', + price: 22, + position: 2, + category: 'Games and Entertainment', + url: 'https://www.myecommercewebsite.com/product', + image_url: 'https://www.myecommercewebsite.com/product/path.jpg', + }, + { + product_id: '89ac6f5d5cf86a4b64eac145', + sku: '1267-01', + name: 'Wrestling Trump Cards', + price: 4, + position: 21, + category: 'Card Games', + }, + ], + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + eventsMapping: [{ from: 'Order Completed', to: 'Purchase' }], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { accessToken: 'dummyAccessToken' }, + jobId: 1, + userId: 'u1', + }, + }, + ], + destType: 'reddit', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + metadata: [ + { + destinationId: 'destId', + workspaceId: 'wspId', + secret: { accessToken: 'dummyAccessToken' }, + jobId: 1, + userId: 'u1', + }, + ], + destination: { + Config: { + accountId: 'a2_fsddXXXfsfd', + eventsMapping: [{ from: 'Order Completed', to: 'Purchase' }], + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + }, + batched: false, + statusCode: 400, + error: 'Event is not present. Aborting message.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'REDDIT', + module: 'destination', + implementation: 'cdkV2', + feature: 'router', + destinationId: 'destId', + workspaceId: 'wspId', + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/refiner/router/data.ts b/test/integrations/destinations/refiner/router/data.ts index bea4d3ddcc..0ff75120d6 100644 --- a/test/integrations/destinations/refiner/router/data.ts +++ b/test/integrations/destinations/refiner/router/data.ts @@ -21,10 +21,7 @@ export const data = [ city: 'Banglore', email: 'test@user.com', phone: '7267286346802347827', - address: { - city: 'ahmedabad', - state: 'india', - }, + address: { city: 'ahmedabad', state: 'india' }, lastName: 'user', username: 'testUser', firstName: 'test', @@ -38,9 +35,7 @@ export const data = [ request_ip: '[::1]', originalTimestamp: '2022-10-11T13:10:54.877+05:30', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { apiKey: 'dummyApiKey', @@ -75,10 +70,7 @@ export const data = [ firstName: 'test', lastName: 'user', phone: '7267286346802347827', - userAddress: { - city: 'ahmedabad', - state: 'india', - }, + userAddress: { city: 'ahmedabad', state: 'india' }, userCountry: 'india', userId: 'user@45', username: 'testUser', @@ -109,7 +101,7 @@ export const data = [ whitelistedEvents: [{ eventName: '' }], }, }, - metadata: [{ jobId: 1 }], + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, ], @@ -161,10 +153,7 @@ export const data = [ firstName: 'test', userCountry: 'india', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.2', - }, + 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', }, @@ -176,30 +165,16 @@ export const data = [ currency: 'IND', order_id: '5241735', products: [ - { - id: 'product-bacon-jam', - category: 'Merch', - brand: '', - }, - { - id: 'product-t-shirt', - category: 'Merch', - brand: 'Levis', - }, - { - id: 'offer-t-shirt', - category: 'Merch', - brand: 'Levis', - }, + { id: 'product-bacon-jam', category: 'Merch', brand: '' }, + { id: 'product-t-shirt', category: 'Merch', brand: 'Levis' }, + { id: 'offer-t-shirt', category: 'Merch', brand: 'Levis' }, ], }, receivedAt: '2022-10-11T13:38:29.178+05:30', request_ip: '[::1]', originalTimestamp: '2022-10-11T13:38:31.827+05:30', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { apiKey: 'dummyApiKey', @@ -227,11 +202,7 @@ export const data = [ batched: false, batchedRequest: { body: { - FORM: { - email: 'test@user.com', - event: 'Product Searched', - id: 'user@45', - }, + FORM: { email: 'test@user.com', event: 'Product Searched', id: 'user@45' }, JSON: {}, JSON_ARRAY: {}, XML: {}, @@ -258,7 +229,7 @@ export const data = [ whitelistedEvents: [{ eventName: '' }], }, }, - metadata: [{ jobId: 2 }], + metadata: [{ jobId: 2, userId: 'u1' }], statusCode: 200, }, ], @@ -280,10 +251,7 @@ export const data = [ message: { type: 'group', sentAt: '2015-02-23T22:28:55.111Z', - traits: { - name: 'rudder ventures', - email: 'business@rudderstack.com', - }, + traits: { name: 'rudder ventures', email: 'business@rudderstack.com' }, userId: 'test@12', channel: 'browser', context: { @@ -297,9 +265,7 @@ export const data = [ integrations: { All: true }, originalTimestamp: '2022-10-11T13:51:00.906+05:30', }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { Config: { accountAttributesMapping: [{ from: 'email', to: 'businessEmail' }], @@ -361,7 +327,7 @@ export const data = [ whitelistedEvents: [{ eventName: '' }], }, }, - metadata: [{ jobId: 3 }], + metadata: [{ jobId: 3, userId: 'u1' }], statusCode: 200, }, ], diff --git a/test/integrations/destinations/revenue_cat/processor/data.ts b/test/integrations/destinations/revenue_cat/processor/data.ts index 45ff5d8499..4ebfe2f8a5 100644 --- a/test/integrations/destinations/revenue_cat/processor/data.ts +++ b/test/integrations/destinations/revenue_cat/processor/data.ts @@ -1076,4 +1076,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/rockerbox/processor/data.ts b/test/integrations/destinations/rockerbox/processor/data.ts index ff8f6d4620..efb74d2e6e 100644 --- a/test/integrations/destinations/rockerbox/processor/data.ts +++ b/test/integrations/destinations/rockerbox/processor/data.ts @@ -746,4 +746,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/rockerbox/router/data.ts b/test/integrations/destinations/rockerbox/router/data.ts index caa8f1ba08..af943d7e6b 100644 --- a/test/integrations/destinations/rockerbox/router/data.ts +++ b/test/integrations/destinations/rockerbox/router/data.ts @@ -14,46 +14,19 @@ export const data = [ Config: { advertiserId: 'test id', eventFilteringOption: 'disable', - whitelistedEvents: [ - { - eventName: '', - }, - ], - blacklistedEvents: [ - { - eventName: '', - }, - ], - eventsMap: [ - { - from: 'Product Added', - to: 'conv.add_to_cart', - }, - ], - useNativeSDK: { - web: false, - }, - clientAuthId: { - web: 'test-client-auth-id', - }, + whitelistedEvents: [{ eventName: '' }], + blacklistedEvents: [{ eventName: '' }], + eventsMap: [{ from: 'Product Added', to: 'conv.add_to_cart' }], + useNativeSDK: { web: false }, + clientAuthId: { web: 'test-client-auth-id' }, oneTrustCookieCategories: { - web: [ - { - oneTrustCookieCategory: 'Marketing Sample', - }, - ], - }, - customDomain: { - web: 'https://cookiedomain.com', - }, - enableCookieSync: { - web: true, + web: [{ oneTrustCookieCategory: 'Marketing Sample' }], }, + customDomain: { web: 'https://cookiedomain.com' }, + enableCookieSync: { web: true }, }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { type: 'track', event: 'Product Added', @@ -61,10 +34,7 @@ export const data = [ userId: 'userSampleX138', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, locale: 'en-IN', traits: { email: 'userSampleX120@gmail.com', @@ -84,9 +54,7 @@ export const data = [ product_name: 'Red T-shirt', }, anonymousId: '5f093403-1457-4a2c-b4e4-c61ec3bacf56', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2022-08-07T20:02:19.347Z', }, writeKey: '2D0yaayoBD7bp8uFomnBONdedcA', @@ -147,7 +115,7 @@ export const data = [ whitelistedEvents: [{ eventName: '' }], }, }, - metadata: [{ jobId: 1 }], + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, ], @@ -170,46 +138,19 @@ export const data = [ Config: { advertiserId: 'test id', eventFilteringOption: 'disable', - whitelistedEvents: [ - { - eventName: '', - }, - ], - blacklistedEvents: [ - { - eventName: '', - }, - ], - eventsMap: [ - { - from: 'Product Viewed', - to: 'conv.add_to_cart', - }, - ], - useNativeSDK: { - web: false, - }, - clientAuthId: { - web: 'test-client-auth-id', - }, + whitelistedEvents: [{ eventName: '' }], + blacklistedEvents: [{ eventName: '' }], + eventsMap: [{ from: 'Product Viewed', to: 'conv.add_to_cart' }], + useNativeSDK: { web: false }, + clientAuthId: { web: 'test-client-auth-id' }, oneTrustCookieCategories: { - web: [ - { - oneTrustCookieCategory: 'Marketing Sample', - }, - ], - }, - customDomain: { - web: 'https://cookiedomain.com', - }, - enableCookieSync: { - web: true, + web: [{ oneTrustCookieCategory: 'Marketing Sample' }], }, + customDomain: { web: 'https://cookiedomain.com' }, + enableCookieSync: { web: true }, }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { type: 'track', event: 'Product Viewed', @@ -217,10 +158,7 @@ export const data = [ userId: 'userSampleX138', channel: 'web', context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, locale: 'en-IN', traits: { email: 'userSampleX120@gmail.com', @@ -240,9 +178,7 @@ export const data = [ product_name: 'Red T-shirt', }, anonymousId: '5f093403-1457-4a2c-b4e4-c61ec3bacf56', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2022-08-07T20:02:19.347Z', }, writeKey: '2D0yaayoBD7bp8uFomnBONdedcA', @@ -303,7 +239,7 @@ export const data = [ whitelistedEvents: [{ eventName: '' }], }, }, - metadata: [{ jobId: 2 }], + metadata: [{ jobId: 2, userId: 'u1' }], statusCode: 200, }, ], diff --git a/test/integrations/destinations/salesforce/dataDelivery/data.ts b/test/integrations/destinations/salesforce/dataDelivery/data.ts index c53ce58f9e..2f1e04815b 100644 --- a/test/integrations/destinations/salesforce/dataDelivery/data.ts +++ b/test/integrations/destinations/salesforce/dataDelivery/data.ts @@ -119,7 +119,6 @@ export const data = [ body: { output: { status: 500, - authErrorCategory: 'REFRESH_TOKEN', message: 'Salesforce Request Failed - due to "INVALID_SESSION_ID", (Retryable) during Salesforce Response Handling', destinationResponse: { diff --git a/test/integrations/destinations/salesforce/router/data.ts b/test/integrations/destinations/salesforce/router/data.ts index 8c36d3a785..4a37f7ed40 100644 --- a/test/integrations/destinations/salesforce/router/data.ts +++ b/test/integrations/destinations/salesforce/router/data.ts @@ -1,10 +1,8 @@ -import { FEATURES } from '../../../../../src/v0/util/tags'; - export const data = [ { name: 'salesforce', description: 'Test 0', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -23,18 +21,10 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: { anonymousId: '1e7673da-9473-49c6-97f7-da848ecafa76', company: 'Initech', @@ -54,9 +44,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'f19c35da-e9de-4c6e-b6e5-9e60cccc12c8', originalTimestamp: '2020-01-27T12:20:55.301Z', receivedAt: '2020-01-27T17:50:58.657+05:30', @@ -66,9 +54,7 @@ export const data = [ type: 'identify', userId: '1e7673da-9473-49c6-97f7-da848ecafa76', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { initialAccessToken: 'dummyInitialAccessToken', @@ -133,12 +119,7 @@ export const data = [ }, ], metadata: [ - { - destInfo: { - authKey: '1WqFFH5esuVPnUgHkvEoYxDcX3y', - }, - jobId: 1, - }, + { destInfo: { authKey: '1WqFFH5esuVPnUgHkvEoYxDcX3y' }, jobId: 1, userId: 'u1' }, ], batched: false, statusCode: 200, @@ -167,7 +148,7 @@ export const data = [ { name: 'salesforce', description: 'Test 1', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -186,18 +167,10 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, traits: { anonymousId: '1e7673da-9473-49c6-97f7-da848ecafa76', company: 'Initech', @@ -217,9 +190,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'f19c35da-e9de-4c6e-b6e5-9e60cccc12c8', originalTimestamp: '2020-01-27T12:20:55.301Z', receivedAt: '2020-01-27T17:50:58.657+05:30', @@ -229,9 +200,7 @@ export const data = [ type: 'identify', userId: '1e7673da-9473-49c6-97f7-da848ecafa76', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { initialAccessToken: 'dummyInitialAccessToken', @@ -297,12 +266,7 @@ export const data = [ }, ], metadata: [ - { - destInfo: { - authKey: '1WqFFH5esuVPnUgHkvEoYxDcX3y', - }, - jobId: 2, - }, + { destInfo: { authKey: '1WqFFH5esuVPnUgHkvEoYxDcX3y' }, jobId: 2, userId: 'u1' }, ], batched: false, statusCode: 200, @@ -331,7 +295,7 @@ export const data = [ { name: 'salesforce', description: 'Test 2', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -350,24 +314,14 @@ export const data = [ version: '1.0.0', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + 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.130 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, traits: { anonymousId: '1e7673da-9473-49c6-97f7-da848ecafa76', company: 'Initech', @@ -393,9 +347,7 @@ export const data = [ type: 'identify', userId: '1e7673da-9473-49c6-97f7-da848ecafa76', }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { Config: { initialAccessToken: 'dummyInitialAccessToken', @@ -460,12 +412,7 @@ export const data = [ }, ], metadata: [ - { - destInfo: { - authKey: '1WqFFH5esuVPnUgHkvEoYxDcX3y', - }, - jobId: 3, - }, + { destInfo: { authKey: '1WqFFH5esuVPnUgHkvEoYxDcX3y' }, jobId: 3, userId: 'u1' }, ], batched: false, statusCode: 200, @@ -494,7 +441,7 @@ export const data = [ { name: 'salesforce', description: 'Test 3', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -535,9 +482,7 @@ export const data = [ files: {}, statusCode: 200, }, - metadata: { - jobId: 4, - }, + metadata: { jobId: 4, userId: 'u1' }, destination: { Config: { initialAccessToken: 'dummyInitialAccessToken', @@ -601,12 +546,7 @@ export const data = [ statusCode: 200, }, metadata: [ - { - destInfo: { - authKey: '1WqFFH5esuVPnUgHkvEoYxDcX3y', - }, - jobId: 4, - }, + { destInfo: { authKey: '1WqFFH5esuVPnUgHkvEoYxDcX3y' }, jobId: 4, userId: 'u1' }, ], batched: false, statusCode: 200, diff --git a/test/integrations/destinations/segment/processor/data.ts b/test/integrations/destinations/segment/processor/data.ts index 0a140e2b99..b2b8c679a5 100644 --- a/test/integrations/destinations/segment/processor/data.ts +++ b/test/integrations/destinations/segment/processor/data.ts @@ -667,4 +667,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/sendgrid/network.ts b/test/integrations/destinations/sendgrid/network.ts index 18a8a8d34d..29cfbf8446 100644 --- a/test/integrations/destinations/sendgrid/network.ts +++ b/test/integrations/destinations/sendgrid/network.ts @@ -106,5 +106,165 @@ const deleteNwData = [ }, }, }, + { + httpReq: { + method: 'get', + url: 'https://api.sendgrid.com/v3/marketing/field_definitions', + headers: { + Authorization: 'Bearer apikey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + custom_fields: [ + { + id: 'w1_T', + name: 'user_name', + field_type: 'Text', + _metadata: { + self: 'https://api.sendgrid.com/v3/marketing/field_definitions/w1_T', + }, + }, + ], + reserved_fields: [ + { + id: '_rf0_T', + name: 'first_name', + field_type: 'Text', + }, + { + id: '_rf1_T', + name: 'last_name', + field_type: 'Text', + }, + { + id: '_rf2_T', + name: 'email', + field_type: 'Text', + }, + { + id: '_rf3_T', + name: 'alternate_emails', + field_type: 'Text', + }, + { + id: '_rf4_T', + name: 'address_line_1', + field_type: 'Text', + }, + { + id: '_rf5_T', + name: 'address_line_2', + field_type: 'Text', + }, + { + id: '_rf6_T', + name: 'city', + field_type: 'Text', + }, + { + id: '_rf7_T', + name: 'state_province_region', + field_type: 'Text', + }, + { + id: '_rf8_T', + name: 'postal_code', + field_type: 'Text', + }, + { + id: '_rf9_T', + name: 'country', + field_type: 'Text', + }, + { + id: '_rf10_T', + name: 'phone_number', + field_type: 'Text', + }, + { + id: '_rf11_T', + name: 'whatsapp', + field_type: 'Text', + }, + { + id: '_rf12_T', + name: 'line', + field_type: 'Text', + }, + { + id: '_rf13_T', + name: 'facebook', + field_type: 'Text', + }, + { + id: '_rf14_T', + name: 'unique_name', + field_type: 'Text', + }, + { + id: '_rf15_T', + name: 'email_domains', + field_type: 'Text', + read_only: true, + }, + { + id: '_rf16_D', + name: 'last_clicked', + field_type: 'Date', + read_only: true, + }, + { + id: '_rf17_D', + name: 'last_opened', + field_type: 'Date', + read_only: true, + }, + { + id: '_rf18_D', + name: 'last_emailed', + field_type: 'Date', + read_only: true, + }, + { + id: '_rf19_T', + name: 'singlesend_id', + field_type: 'Text', + read_only: true, + }, + { + id: '_rf20_T', + name: 'automation_id', + field_type: 'Text', + read_only: true, + }, + { + id: '_rf21_D', + name: 'created_at', + field_type: 'Date', + read_only: true, + }, + { + id: '_rf22_D', + name: 'updated_at', + field_type: 'Date', + read_only: true, + }, + { + id: '_rf23_T', + name: 'contact_id', + field_type: 'Text', + read_only: true, + }, + ], + _metadata: { + self: 'https://api.sendgrid.com/v3/marketing/field_definitions', + }, + }, + }, + }, ]; export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/sendgrid/processor/data.ts b/test/integrations/destinations/sendgrid/processor/data.ts new file mode 100644 index 0000000000..b1550787b5 --- /dev/null +++ b/test/integrations/destinations/sendgrid/processor/data.ts @@ -0,0 +1,1544 @@ +export const data = [ + { + name: 'sendgrid', + description: 'Identify call without an email', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [ + { + event: 'open', + }, + ], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [ + { + groupId: '', + }, + ], + html: '', + listId: 'list111', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + type: 'identify', + userId: 'user@1', + context: { + traits: { + age: '25', + city: 'Surat', + phone: '+91 9876543210', + lastName: 'test', + firstName: 'rudder', + state: 'Gujarat', + }, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Parameter mail is required', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'SENDGRID', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Identify call with list_id configured from web-app', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [ + { + event: 'open', + }, + ], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [ + { + groupId: '', + }, + ], + html: '', + listId: 'list111', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + type: 'identify', + userId: 'user@1', + context: { + traits: { + age: '25', + city: 'Surat', + email: 'test@rudderstack.com', + phone: '+91 9876543210', + lastName: 'test', + firstName: 'rudder', + state: 'Gujarat', + }, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.sendgrid.com/v3/marketing/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + contactDetails: { + email: 'test@rudderstack.com', + phone_number: '+91 9876543210', + first_name: 'rudder', + last_name: 'test', + custom_fields: {}, + }, + contactListIds: 'list111', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Identify call with no list-id given', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [ + { + from: 'name', + to: 'user_name', + }, + ], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [ + { + event: 'open', + }, + ], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [ + { + groupId: '', + }, + ], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + type: 'identify', + userId: 'user@1', + context: { + traits: { + age: '25', + city: 'Surat', + name: 'rudder test', + email: 'test@rudderstack.com', + phone: '+91 9876543210', + lastName: 'test', + firstName: 'rudder', + state: 'Gujarat', + }, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + FORM: {}, + JSON: { + contactDetails: { + email: 'test@rudderstack.com', + last_name: 'test', + first_name: 'rudder', + unique_name: 'rudder test', + phone_number: '+91 9876543210', + custom_fields: { + w1_T: 'rudder test', + }, + }, + contactListIds: '', + }, + JSON_ARRAY: {}, + }, + type: 'REST', + userId: '', + files: {}, + method: 'PUT', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + version: '1', + endpoint: 'https://api.sendgrid.com/v3/marketing/contacts', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Track Call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [ + { + event: 'testing', + }, + { + event: 'clicked', + }, + ], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + text: null, + utmContent: null, + }, + }, + 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', + type: 'track', + event: 'testing', + properties: { + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + { + name: 'hello', + }, + ], + subject: 'hey there', + }, + ], + from: { + email: 'ankit@rudderstack.com', + }, + }, + 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.sendgrid.com/v3/mail/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + from: { + email: 'ankit@rudderstack.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + ], + subject: 'hey there', + }, + ], + content: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + subject: 'A sample subject', + reply_to: { + email: 'ankit@rudderstack.com', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Track Call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [ + { + event: 'testing', + }, + { + event: 'clicked', + }, + ], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + footerText: 'some text', + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + }, + }, + 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', + type: 'track', + event: 'testing', + properties: { + replyTo: { + email: 'testing@gmail.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + { + name: 'hello', + }, + ], + subject: 'hey there', + }, + ], + from: { + email: 'ankit@rudderstack.com', + }, + }, + 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.sendgrid.com/v3/mail/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + from: { + email: 'ankit@rudderstack.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + ], + subject: 'hey there', + }, + ], + reply_to: { + email: 'testing@gmail.com', + }, + content: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + subject: 'A sample subject', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Track Call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [ + { + event: 'testing', + }, + { + event: 'clicked', + }, + ], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + footerText: 'some text', + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + group: '12345', + groupsToDisplay: [ + { + groupId: '12345', + }, + { + groupId: 'abc', + }, + { + groupId: '12346', + }, + ], + }, + }, + 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', + type: 'track', + event: 'testing', + properties: { + replyTo: { + email: 'testing@gmail.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + { + name: 'hello', + }, + ], + subject: 'hey there', + }, + ], + from: { + email: 'ankit@rudderstack.com', + }, + }, + }, + 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.sendgrid.com/v3/mail/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + from: { + email: 'ankit@rudderstack.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + ], + subject: 'hey there', + }, + ], + reply_to: { + email: 'testing@gmail.com', + }, + content: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + subject: 'A sample subject', + asm: { + group_id: 12345, + groups_to_display: [12345, 12346], + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Track call without an event name', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [ + { + event: 'testing', + }, + { + event: 'clicked', + }, + ], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + footerText: 'some text', + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + group: '12345', + groupsToDisplay: [ + { + groupId: '12345', + }, + { + groupId: 'abc', + }, + { + groupId: '12346', + }, + ], + }, + }, + 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', + type: 'track', + event: 'new event', + properties: { + replyTo: { + email: 'testing@gmail.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + { + name: 'hello', + }, + ], + subject: 'hey there', + }, + ], + from: { + email: 'ankit@rudderstack.com', + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Event not configured on dashboard', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'SENDGRID', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Track Call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [ + { + event: 'testing', + }, + { + event: 'clicked', + }, + ], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + footerText: 'some text', + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + group: '12345', + groupsToDisplay: [ + { + groupId: '12345', + }, + { + groupId: 'abc', + }, + { + groupId: '12346', + }, + ], + attachments: [ + { + content: 'YXNkZ2FmZ3FlcmRxZ2Iua2puYWRrbGpuYWtqc2Rmbg==', + filename: 'index.html', + }, + ], + }, + }, + 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', + type: 'track', + event: 'testing', + properties: { + replyTo: { + email: 'testing@gmail.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + { + name: 'hello', + }, + ], + subject: 'hey there', + }, + ], + from: { + email: 'ankit@rudderstack.com', + }, + }, + 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.sendgrid.com/v3/mail/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + from: { + email: 'ankit@rudderstack.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + ], + subject: 'hey there', + }, + ], + reply_to: { + email: 'testing@gmail.com', + }, + attachments: [ + { + content: 'YXNkZ2FmZ3FlcmRxZ2Iua2puYWRrbGpuYWtqc2Rmbg==', + filename: 'index.html', + }, + ], + content: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + subject: 'A sample subject', + asm: { + group_id: 12345, + groups_to_display: [12345, 12346], + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Track Call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [ + { + event: 'testing', + }, + { + event: 'clicked', + }, + ], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + footerText: 'some text', + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + group: '12345', + groupsToDisplay: [ + { + groupId: '12345', + }, + { + groupId: 'abc', + }, + { + groupId: '12346', + }, + ], + attachments: [ + { + content: 'YXNkZ21hcyxkLm1mO29xd2llbGpmbWwuYWRrbXMuLGFtZHM=', + filename: 'index.html', + }, + { + content: 'bGFqa3NtZGZrZ2hxaWVybmtsYSBmZGtvamx3bWVGTC5NQW5kcy5rbmtmYWtkZg==', + }, + ], + }, + }, + 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', + type: 'track', + event: 'testing', + properties: { + replyTo: { + email: 'testing@gmail.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + { + name: 'hello', + }, + ], + subject: 'hey there', + }, + ], + from: { + email: 'ankit@rudderstack.com', + }, + }, + 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.sendgrid.com/v3/mail/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + from: { + email: 'ankit@rudderstack.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + ], + subject: 'hey there', + }, + ], + reply_to: { + email: 'testing@gmail.com', + }, + attachments: [ + { + content: 'YXNkZ21hcyxkLm1mO29xd2llbGpmbWwuYWRrbXMuLGFtZHM=', + filename: 'index.html', + }, + ], + content: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + subject: 'A sample subject', + asm: { + group_id: 12345, + groups_to_display: [12345, 12346], + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Track Call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [ + { + event: 'testing', + }, + { + event: 'clicked', + }, + ], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + footerText: 'some text', + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + group: '12345', + groupsToDisplay: [ + { + groupId: '12345', + }, + { + groupId: 'abc', + }, + { + groupId: '12346', + }, + ], + attachments: [ + { + content: 'YXNkZ21hcyxkLm1mO29xd2llbGpmbWwuYWRrbXMuLGFtZHM=', + filename: 'index.html', + }, + { + content: 'bGFqa3NtZGZrZ2hxaWVybmtsYSBmZGtvamx3bWVGTC5NQW5kcy5rbmtmYWtkZg==', + }, + ], + }, + }, + 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', + type: 'track', + event: 'testing', + properties: { + replyTo: { + email: 'testing@gmail.com', + }, + mailSettings: { + bypassListManagement: true, + footer: true, + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + { + name: 'hello', + }, + ], + subject: 'hey there', + }, + ], + from: { + email: 'ankit@rudderstack.com', + }, + }, + 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.sendgrid.com/v3/mail/send', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + from: { + email: 'ankit@rudderstack.com', + }, + personalizations: [ + { + to: [ + { + email: 'a@g.com', + }, + ], + subject: 'hey there', + }, + ], + reply_to: { + email: 'testing@gmail.com', + }, + attachments: [ + { + content: 'YXNkZ21hcyxkLm1mO29xd2llbGpmbWwuYWRrbXMuLGFtZHM=', + filename: 'index.html', + }, + ], + content: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + subject: 'A sample subject', + asm: { + group_id: 12345, + groups_to_display: [12345, 12346], + }, + mail_settings: { + bypass_list_management: { + enable: true, + }, + footer: { + enable: true, + text: 'some text', + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/sendgrid/router/data.ts b/test/integrations/destinations/sendgrid/router/data.ts new file mode 100644 index 0000000000..e9ef671226 --- /dev/null +++ b/test/integrations/destinations/sendgrid/router/data.ts @@ -0,0 +1,1110 @@ +export const data = [ + { + name: 'sendgrid', + description: 'Router Test Case', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [{ event: 'testing' }, { event: 'clicked' }], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + }, + }, + metadata: { jobId: 2, userId: 'u1' }, + 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', + type: 'track', + event: 'testing', + properties: { + personalizations: [ + { to: [{ email: 'a@g.com' }, { name: 'hello' }], subject: 'hey there' }, + ], + from: { email: 'ankit@rudderstack.com' }, + }, + integrations: { All: true }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + destType: 'sendgrid', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + body: { + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + JSON: { + personalizations: [{ to: [{ email: 'a@g.com' }], subject: 'hey there' }], + from: { email: 'ankit@rudderstack.com' }, + reply_to: { email: 'ankit@rudderstack.com' }, + subject: 'A sample subject', + content: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { Authorization: 'Bearer apikey', 'Content-Type': 'application/json' }, + version: '1', + endpoint: 'https://api.sendgrid.com/v3/mail/send', + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'apikey', + eventNamesSettings: [{ event: 'testing' }, { event: 'clicked' }], + subject: 'A sample subject', + replyToEmail: 'ankit@rudderstack.com', + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + footer: false, + bypassListManagement: false, + sandboxMode: false, + clickTracking: false, + openTracking: false, + ganalytics: false, + subscriptionTracking: false, + clickTrackingEnableText: false, + }, + }, + }, + ], + }, + }, + }, + }, + { + name: 'sendgrid', + description: 'Identify call batching with multiple listIds', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + userId: 'user@3', + type: 'identify', + context: { + traits: { + age: '30', + email: 'user3@rudderlabs.com', + phone: '+91 9876543210', + city: 'Ahmedabad', + state: 'Gujarat', + lastName: 'gupta', + firstName: 'aman', + name: 'aman gupta', + }, + externalId: [ + { + type: 'listIds', + id: ['476b736e-24a4-4089-8392-66a6bf6aa14d'], + }, + ], + }, + }, + metadata: { + jobId: 1, + }, + }, + { + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + userId: 'user@4', + type: 'identify', + context: { + traits: { + email: 'user4@rudderlabs.com', + phone: '+91 9876543210', + userId: 'sajal', + city: 'Bombey', + state: 'Maharastra', + lastName: 'gupta', + username: 'suresh gupta', + firstName: 'suresh', + }, + externalId: [ + { + type: 'listIds', + id: '737ae8d4-25b4-496e-adff-2fded15fd0c6', + }, + ], + }, + }, + metadata: { + jobId: 2, + }, + }, + { + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + userId: 'user@5', + type: 'identify', + context: { + traits: { + email: 'user5@rudderlabs.com', + phone: '+91 9876543210', + city: 'Banglore', + lastName: 'bhatt', + username: 'kiran bhatt', + firstName: 'kiran', + }, + externalId: [ + { + type: 'listIds', + id: [ + '737ae8d4-25b4-496e-adff-2fded15fd0c6', + 'a4ac8a69-d8cb-4cf1-9d85-3d60e4007ab1', + ], + }, + ], + }, + }, + metadata: { + jobId: 3, + }, + }, + { + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + userId: 'user@6', + type: 'identify', + context: { + traits: { + email: 'user6@rudderlabs.com', + phone: '+91 9876543210', + city: 'Los Angeles', + lastName: 'doe', + name: 'john doe', + state: 'California', + firstName: 'john', + }, + externalId: [ + { + type: 'listIds', + id: [ + 'bc9b7ff4-f1d4-4c7c-b9a8-3051107c8d1e', + 'cb7f13a1-b77b-4fb3-8440-56f6524716d3', + ], + }, + ], + }, + }, + metadata: { + jobId: 4, + }, + }, + { + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + userId: 'user@7', + type: 'identify', + context: { + traits: { + email: 'user7@rudderlabs.com', + phone: '+91 9876543210', + city: 'Chicago', + lastName: 'patel', + name: 'reshma patel', + state: 'Illinois', + firstName: 'reshma', + }, + }, + }, + metadata: { + jobId: 5, + }, + }, + { + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + message: { + userId: 'user@8', + type: 'identify', + context: { + traits: { + email: 'user8@rudderlabs.com', + phone: '+91 9876543210', + city: 'Chicago', + lastName: 'patel', + name: 'karishma patel', + state: 'Illinois', + firstName: 'karishma', + }, + externalId: [ + { + type: 'listIds', + id: [ + '737ae8d4-25b4-496e-adff-2fded15fd0c6', + 'a4ac8a69-d8cb-4cf1-9d85-3d60e4007ab1', + 'bc9b7ff4-f1d4-4c7c-b9a8-3051107c8d1e', + 'cb7f13a1-b77b-4fb3-8440-56f6524716d3', + ], + }, + ], + }, + }, + metadata: { + jobId: 6, + }, + }, + ], + destType: 'sendgrid', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.sendgrid.com/v3/marketing/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + list_ids: ['476b736e-24a4-4089-8392-66a6bf6aa14d'], + contacts: [ + { + email: 'user3@rudderlabs.com', + phone_number: '+91 9876543210', + first_name: 'aman', + last_name: 'gupta', + unique_name: 'aman gupta', + custom_fields: { w1_T: 'aman gupta' }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 1 }], + batched: true, + statusCode: 200, + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.sendgrid.com/v3/marketing/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + list_ids: ['737ae8d4-25b4-496e-adff-2fded15fd0c6'], + contacts: [ + { + email: 'user4@rudderlabs.com', + phone_number: '+91 9876543210', + first_name: 'suresh', + last_name: 'gupta', + custom_fields: {}, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 2 }], + batched: true, + statusCode: 200, + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.sendgrid.com/v3/marketing/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + list_ids: [ + '737ae8d4-25b4-496e-adff-2fded15fd0c6', + 'a4ac8a69-d8cb-4cf1-9d85-3d60e4007ab1', + ], + contacts: [ + { + email: 'user5@rudderlabs.com', + phone_number: '+91 9876543210', + first_name: 'kiran', + last_name: 'bhatt', + custom_fields: {}, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 3 }], + batched: true, + statusCode: 200, + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.sendgrid.com/v3/marketing/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + list_ids: [ + 'bc9b7ff4-f1d4-4c7c-b9a8-3051107c8d1e', + 'cb7f13a1-b77b-4fb3-8440-56f6524716d3', + ], + contacts: [ + { + email: 'user6@rudderlabs.com', + phone_number: '+91 9876543210', + first_name: 'john', + last_name: 'doe', + unique_name: 'john doe', + custom_fields: { w1_T: 'john doe' }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 4 }], + batched: true, + statusCode: 200, + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.sendgrid.com/v3/marketing/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + contacts: [ + { + email: 'user7@rudderlabs.com', + phone_number: '+91 9876543210', + first_name: 'reshma', + last_name: 'patel', + unique_name: 'reshma patel', + custom_fields: { w1_T: 'reshma patel' }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 5 }], + batched: true, + statusCode: 200, + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.sendgrid.com/v3/marketing/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer apikey', + }, + params: {}, + body: { + JSON: { + list_ids: [ + '737ae8d4-25b4-496e-adff-2fded15fd0c6', + 'a4ac8a69-d8cb-4cf1-9d85-3d60e4007ab1', + 'bc9b7ff4-f1d4-4c7c-b9a8-3051107c8d1e', + 'cb7f13a1-b77b-4fb3-8440-56f6524716d3', + ], + contacts: [ + { + email: 'user8@rudderlabs.com', + phone_number: '+91 9876543210', + first_name: 'karishma', + last_name: 'patel', + unique_name: 'karishma patel', + custom_fields: { w1_T: 'karishma patel' }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [{ jobId: 6 }], + batched: true, + statusCode: 200, + destination: { + ID: '2HOQOO6wWKaKjeQrEABXgiH6cmU', + Config: { + IPPoolName: '', + apiKey: 'apikey', + attachments: [ + { + content: '', + contentId: '', + disposition: '', + filename: '', + type: '', + }, + ], + clickTracking: true, + clickTrackingEnableText: true, + contents: [ + { + type: 'text/html', + value: + '

Hello from Twilio SendGrid!

Sending with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.

%open-track%

', + }, + ], + customFieldsMapping: [{ from: 'name', to: 'user_name' }], + eventDelivery: false, + eventDeliveryTS: 1668424218224, + eventNamesSettings: [{ event: 'open' }], + footer: false, + fromEmail: 'a@g.com', + fromName: '', + ganalytics: false, + group: '', + groupsToDisplay: [{ groupId: '' }], + html: '', + mailFromTraits: false, + openTracking: false, + openTrackingSubstitutionTag: '', + replyToEmail: '', + replyToName: '', + sandboxMode: false, + subject: 'hello there from webflow', + subscriptionTracking: false, + substitutionTag: '', + templateId: '', + text: '', + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/sendinblue/network.ts b/test/integrations/destinations/sendinblue/network.ts new file mode 100644 index 0000000000..f4f7e84fa7 --- /dev/null +++ b/test/integrations/destinations/sendinblue/network.ts @@ -0,0 +1,92 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.sendinblue.com/v3/contacts/gordon_pittman%40example.com', + method: 'GET', + }, + httpRes: { + data: { + email: 'gordon_pittman@example.com', + id: 42, + emailBlacklisted: false, + smsBlacklisted: false, + createdAt: '2022-12-04T18:22:48.384+05:30', + modifiedAt: '2022-12-18T14:06:20.515+05:30', + attributes: { + LASTNAME: 'Pittman', + FIRSTNAME: 'Gordon', + AGE: 33, + }, + listIds: [5], + statistics: {}, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.sendinblue.com/v3/contacts/42', + method: 'GET', + }, + httpRes: { + data: { + email: 'gordon_pittman@example.com', + id: 42, + emailBlacklisted: false, + smsBlacklisted: false, + createdAt: '2022-12-04T18:22:48.384+05:30', + modifiedAt: '2022-12-18T14:06:20.515+05:30', + attributes: { + LASTNAME: 'Pittman', + FIRSTNAME: 'Gordon', + AGE: 33, + }, + listIds: [5], + statistics: {}, + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.sendinblue.com/v3/contacts/john_doe%40example.com', + method: 'GET', + }, + httpRes: { + status: 404, + }, + }, + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/sp_245/', + method: 'GET', + }, + httpRes: { + message: 'Request failed with status code 404', + status: 404, + statusText: 'Not Found', + }, + }, + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/1234/', + method: 'GET', + }, + httpRes: { + message: 'Request failed with status code 404', + status: 404, + statusText: 'Not Found', + }, + }, + { + httpReq: { + url: 'https://api.profitwell.com/v2/users/samual/', + method: 'GET', + }, + httpRes: { + message: 'Request failed with status code 404', + status: 404, + statusText: 'Not Found', + }, + }, +]; diff --git a/test/integrations/destinations/sendinblue/processor/data.ts b/test/integrations/destinations/sendinblue/processor/data.ts new file mode 100644 index 0000000000..e50bb9c003 --- /dev/null +++ b/test/integrations/destinations/sendinblue/processor/data.ts @@ -0,0 +1,1722 @@ +export const data = [ + { + name: 'sendinblue', + description: 'Page call without email or phone', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + name: 'New Page', + properties: { + url: 'https://www.google.com/', + title: 'Google home', + }, + context: { + traits: {}, + page: { + url: 'http://127.0.0.1:7307/Testing/test/ourSdk.html', + path: '/Testing/test/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/test/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/test/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'At least one of `email` or `phone` is required', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Page call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + name: 'New Page', + properties: { + url: 'https://www.google.com/', + title: 'Google home', + }, + context: { + traits: { + email: 'john_doe@example.com', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/test/ourSdk.html', + path: '/Testing/test/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/test/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/test/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: false, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + email: 'john_doe@example.com', + page: 'https://www.google.com/', + properties: { + ma_path: '/Testing/test/ourSdk.html', + ma_referrer: 'http://127.0.0.1:7307/Testing/test/', + ma_title: 'Google home', + sib_name: 'New Page', + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://in-automate.sendinblue.com/api/v2/trackPage', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'ma-key': 'clientKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track call without email or phone', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'Order Completed', + properties: {}, + context: { + traits: { + first_name: 'John', + lastName: 'Doe', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'At least one of `email` or `phone` is required', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track call without event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + properties: {}, + context: {}, + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event name is required', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track events with sendTraitsInTrack flag set to true', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'Order Completed', + properties: {}, + context: { + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + sendTraitsInTrack: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + email: 'john_doe@example.com', + event: 'Order Completed', + eventdata: {}, + properties: { + FIRSTNAME: 'John', + LASTNAME: 'Doe', + SMS: '+919876543210', + age: 19, + location: 'Mumbai', + role: 'SDE', + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://in-automate.sendinblue.com/api/v2/trackEvent', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'ma-key': 'clientKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track events with contactAttributeMapping provided in webapp', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'Order Completed', + properties: {}, + context: { + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + contactAttributeMapping: [ + { + from: 'location', + to: 'LOCATION', + }, + ], + sendTraitsInTrack: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + email: 'john_doe@example.com', + event: 'Order Completed', + eventdata: {}, + properties: { + FIRSTNAME: 'John', + LASTNAME: 'Doe', + LOCATION: 'Mumbai', + SMS: '+919876543210', + age: 19, + role: 'SDE', + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://in-automate.sendinblue.com/api/v2/trackEvent', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'ma-key': 'clientKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track events with propertiesIdKey provided in integration object', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'Order Completed', + properties: { + orderId: '1341394-3812392190', + products: [ + { + product_id: 1234, + product_name: 'Track Pants', + amount: 1, + price: 220, + }, + { + product_id: 5768, + product_name: 'T-Shirt', + amount: 5, + price: 1058, + }, + ], + }, + context: { + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + }, + integrations: { + All: true, + sendinblue: { + propertiesIdKey: 'orderId', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + contactAttributeMapping: [ + { + from: 'location', + to: 'LOCATION', + }, + ], + sendTraitsInTrack: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + email: 'john_doe@example.com', + event: 'Order Completed', + eventdata: { + data: { + orderId: '1341394-3812392190', + products: [ + { + amount: 1, + price: 220, + product_id: 1234, + product_name: 'Track Pants', + }, + { + amount: 5, + price: 1058, + product_id: 5768, + product_name: 'T-Shirt', + }, + ], + }, + id: '1341394-3812392190', + }, + properties: { + FIRSTNAME: 'John', + LASTNAME: 'Doe', + LOCATION: 'Mumbai', + SMS: '+919876543210', + age: 19, + role: 'SDE', + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://in-automate.sendinblue.com/api/v2/trackEvent', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'ma-key': 'clientKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track events with eventdata.id taken from messageId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'Order Completed', + properties: { + orderId: '1341394-3812392190', + products: [ + { + product_id: 1234, + product_name: 'Track Pants', + amount: 1, + price: 220, + }, + { + product_id: 5768, + product_name: 'T-Shirt', + amount: 5, + price: 1058, + }, + ], + }, + context: { + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + contactAttributeMapping: [ + { + from: 'location', + to: 'LOCATION', + }, + ], + sendTraitsInTrack: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + email: 'john_doe@example.com', + event: 'Order Completed', + eventdata: { + data: { + orderId: '1341394-3812392190', + products: [ + { + amount: 1, + price: 220, + product_id: 1234, + product_name: 'Track Pants', + }, + { + amount: 5, + price: 1058, + product_id: 5768, + product_name: 'T-Shirt', + }, + ], + }, + id: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + }, + properties: { + FIRSTNAME: 'John', + LASTNAME: 'Doe', + LOCATION: 'Mumbai', + SMS: '+919876543210', + age: 19, + role: 'SDE', + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://in-automate.sendinblue.com/api/v2/trackEvent', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'ma-key': 'clientKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track link without email or phone', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'trackLink', + properties: { + link: 'https://www.google.com/gmail/', + emailCount: 19, + }, + context: { + traits: {}, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'At least one of `email` or `phone` is required', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track link without link', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'trackLink', + properties: {}, + context: { + traits: { + phone: '+919507545089', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Missing required value from "properties.link"', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Track link', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'trackLink', + properties: { + link: 'https://www.google.com/gmail/', + emailCount: 19, + }, + context: { + traits: { + phone: '+919507545089', + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + email: '919507545089@mailin-sms.com', + link: 'https://www.google.com/gmail/', + properties: { + emailCount: 19, + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://in-automate.sendinblue.com/api/v2/trackLink', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'ma-key': 'clientKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call with invalid email', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + email: 'abc.com', + }, + context: {}, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'The provided email is invalid', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call with invalid phone number', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + phone: '99999999', + }, + context: {}, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'The provided phone number is invalid', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call to create or update a contact without email or phone', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + context: {}, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'At least one of `email` or `phone` is required', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call to create or update a contact', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + newEmail: 'alex_root@example.com', + role: 'SDE', + }, + context: { + externalId: [ + { + type: 'sendinblueIncludeListIds', + id: [1, 2], + }, + ], + }, + integrations: { + All: true, + sendinblue: { + emailBlacklisted: true, + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + contactAttributeMapping: [ + { + from: 'location', + to: 'LOCATION', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + attributes: { + FIRSTNAME: 'John', + LASTNAME: 'Doe', + LOCATION: 'Mumbai', + SMS: '+919876543210', + EMAIL: 'alex_root@example.com', + age: 19, + role: 'SDE', + }, + email: 'john_doe@example.com', + emailBlacklisted: true, + listIds: [1, 2], + updateEnabled: true, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.sendinblue.com/v3/contacts', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'api-key': 'apiKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call to create DOI contact with templatedId from externalId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + context: { + externalId: [ + { + type: 'sendinblueIncludeListIds', + id: [1, 2], + }, + { + type: 'sendinblueUnlinkListIds', + id: [5], + }, + { + type: 'sendinblueTemplateId', + id: 2, + }, + ], + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: true, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + attributes: { + FIRSTNAME: 'John', + LASTNAME: 'Doe', + SMS: '+919876543210', + age: 19, + location: 'Mumbai', + role: 'SDE', + }, + email: 'john_doe@example.com', + includeListIds: [1, 2], + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + templateId: 3, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.sendinblue.com/v3/contacts/doubleOptinConfirmation', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'api-key': 'apiKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call to create DOI contact without include list Ids', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + context: {}, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: true, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'sendinblueIncludeListIds is required to create a contact using DOI', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call to create DOI contact without template Id', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + context: {}, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: true, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'templateId is required to create a contact using DOI', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call to update a DOI contact without an email or contact ID', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + first_name: 'Gordon', + lastName: 'Pittman', + age: 19, + location: 'Mumbai', + role: 'SDE', + }, + context: {}, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: true, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'At least one of `email` or `contactId` is required to update the contact using DOI', + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: + 'Identify call to update a DOI contact using contactId as an Identifier and without include list Ids', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + age: 36, + location: 'Mumbai', + role: 'SDE 2', + }, + context: { + externalId: [ + { + type: 'sendinblueContactId', + id: 42, + }, + ], + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: true, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + attributes: { + age: 36, + location: 'Mumbai', + role: 'SDE 2', + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.sendinblue.com/v3/contacts/42', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'api-key': 'apiKey123', + }, + method: 'PUT', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: + 'Identify call to update a DOI contact using email as an Identifier and without include list Ids', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + age: 36, + location: 'Mumbai', + role: 'SDE 2', + phone: '+918888888888', + email: 'gordon_pittman@example.com', + newEmail: 'gordon_pittman007@example.com', + }, + context: { + externalId: [ + { + type: 'sendinblueIncludeListIds', + id: [1], + }, + { + type: 'sendinblueUnlinkListIds', + id: [2], + }, + ], + }, + integrations: { + All: true, + sendinblue: { + emailBlacklisted: true, + smsBlacklisted: false, + }, + }, + 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', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: true, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + attributes: { + age: 36, + location: 'Mumbai', + role: 'SDE 2', + SMS: '+918888888888', + EMAIL: 'gordon_pittman007@example.com', + }, + emailBlacklisted: true, + smsBlacklisted: false, + listIds: [1], + unlinkListIds: [2], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.sendinblue.com/v3/contacts/gordon_pittman%40example.com', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'api-key': 'apiKey123', + }, + method: 'PUT', + params: {}, + type: 'REST', + version: '1', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sendinblue', + description: 'Identify call to unlink a contact from given lists', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + email: 'eric_kim@example.com', + }, + context: { + externalId: [ + { + type: 'sendinblueUnlinkListIds', + id: [2, 5], + }, + ], + }, + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + FORM: {}, + JSON: { + emails: ['eric_kim@example.com'], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.sendinblue.com/v3/contacts/lists/2/contacts/remove', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'api-key': 'apiKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + { + output: { + body: { + FORM: {}, + JSON: { + emails: ['eric_kim@example.com'], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.sendinblue.com/v3/contacts/lists/5/contacts/remove', + files: {}, + headers: { + 'Content-Type': 'application/json', + 'api-key': 'apiKey123', + }, + method: 'POST', + params: {}, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/sendinblue/router/data.ts b/test/integrations/destinations/sendinblue/router/data.ts new file mode 100644 index 0000000000..ef96b3f55f --- /dev/null +++ b/test/integrations/destinations/sendinblue/router/data.ts @@ -0,0 +1,320 @@ +export const data = [ + { + name: 'sendinblue', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'track', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + event: 'Order Completed', + properties: { + orderId: '1341394-3812392190', + products: [ + { product_id: 1234, product_name: 'Track Pants', amount: 1, price: 220 }, + { product_id: 5768, product_name: 'T-Shirt', amount: 5, price: 1058 }, + ], + }, + context: { + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + }, + 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', + }, + metadata: { jobId: 1, userId: 'u1' }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + contactAttributeMapping: [{ from: 'location', to: 'LOCATION' }], + sendTraitsInTrack: true, + }, + }, + }, + { + message: { + type: 'page', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + name: 'New Page', + properties: { url: 'https://www.google.com/', title: 'Google home' }, + context: { + traits: { email: 'john_doe@example.com' }, + page: { + url: 'http://127.0.0.1:7307/Testing/test/ourSdk.html', + path: '/Testing/test/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/test/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/test/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + }, + 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', + }, + metadata: { jobId: 2, userId: 'u1' }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: false, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + newEmail: 'alex_root@example.com', + role: 'SDE', + }, + context: { externalId: [{ type: 'sendinblueIncludeListIds', id: [1, 2] }] }, + integrations: { All: true, sendinblue: { emailBlacklisted: true } }, + 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', + }, + metadata: { jobId: 3, userId: 'u1' }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + contactAttributeMapping: [{ from: 'location', to: 'LOCATION' }], + }, + }, + }, + { + message: { + type: 'identify', + sentAt: '2021-01-03T17:02:53.195Z', + channel: 'web', + traits: { + first_name: 'John', + lastName: 'Doe', + age: 19, + email: 'john_doe@example.com', + phone: '+919876543210', + location: 'Mumbai', + role: 'SDE', + }, + context: {}, + 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', + }, + metadata: { jobId: 4, userId: 'u1' }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: true, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + destType: 'sendinblue', + }, + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + batchedRequest: { + body: { + FORM: {}, + JSON: { + email: 'john_doe@example.com', + event: 'Order Completed', + eventdata: { + data: { + orderId: '1341394-3812392190', + products: [ + { amount: 1, price: 220, product_id: 1234, product_name: 'Track Pants' }, + { amount: 5, price: 1058, product_id: 5768, product_name: 'T-Shirt' }, + ], + }, + id: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + }, + properties: { + FIRSTNAME: 'John', + LASTNAME: 'Doe', + LOCATION: 'Mumbai', + SMS: '+919876543210', + age: 19, + role: 'SDE', + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://in-automate.sendinblue.com/api/v2/trackEvent', + files: {}, + headers: { 'Content-Type': 'application/json', 'ma-key': 'clientKey123' }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + contactAttributeMapping: [{ from: 'location', to: 'LOCATION' }], + doi: false, + sendTraitsInTrack: true, + }, + }, + metadata: [{ jobId: 1, userId: 'u1' }], + statusCode: 200, + }, + { + batched: false, + batchedRequest: { + body: { + FORM: {}, + JSON: { + email: 'john_doe@example.com', + page: 'https://www.google.com/', + properties: { + ma_path: '/Testing/test/ourSdk.html', + ma_referrer: 'http://127.0.0.1:7307/Testing/test/', + ma_title: 'Google home', + sib_name: 'New Page', + }, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://in-automate.sendinblue.com/api/v2/trackPage', + files: {}, + headers: { 'Content-Type': 'application/json', 'ma-key': 'clientKey123' }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + doi: false, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + templateId: 3, + }, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + statusCode: 200, + }, + { + batched: false, + batchedRequest: { + body: { + FORM: {}, + JSON: { + attributes: { + EMAIL: 'alex_root@example.com', + FIRSTNAME: 'John', + LASTNAME: 'Doe', + LOCATION: 'Mumbai', + SMS: '+919876543210', + age: 19, + role: 'SDE', + }, + email: 'john_doe@example.com', + emailBlacklisted: true, + listIds: [1, 2], + updateEnabled: true, + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://api.sendinblue.com/v3/contacts', + files: {}, + headers: { 'Content-Type': 'application/json', 'api-key': 'apiKey123' }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + contactAttributeMapping: [{ from: 'location', to: 'LOCATION' }], + doi: false, + }, + }, + metadata: [{ jobId: 3, userId: 'u1' }], + statusCode: 200, + }, + { + batched: false, + error: 'sendinblueIncludeListIds is required to create a contact using DOI', + metadata: [{ jobId: 4, userId: 'u1' }], + statTags: { + destType: 'SENDINBLUE', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + destination: { + Config: { + apiKey: 'apiKey123', + clientKey: 'clientKey123', + templateId: 3, + doi: true, + redirectionUrl: 'https://app.sendinblue.com/marketing-dashboard', + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/serenytics/router/data.ts b/test/integrations/destinations/serenytics/router/data.ts index 2edbe58257..1e0226eab0 100644 --- a/test/integrations/destinations/serenytics/router/data.ts +++ b/test/integrations/destinations/serenytics/router/data.ts @@ -26,24 +26,15 @@ export const data = [ 'https://api.serenytics.com/api/data_source/5dc8508e-0946-47fc-8ed8-f67307c407f1/push/997877c6358621beb1f86dc320ac822b9f069760', }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { event: 'New Alert', type: 'track', sentAt: '2021-01-03T17:02:53.195Z', channel: 'web', - properties: { - message: 'Please check the alert', - brand: 'Zara', - price: '12000', - }, + properties: { message: 'Please check the alert', brand: 'Zara', price: '12000' }, context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -51,13 +42,8 @@ export const data = [ namespace: 'com.rudderlabs.javascript', }, locale: 'en-US', - screen: { - density: 2, - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.11', - }, + 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', @@ -108,11 +94,7 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -178,24 +160,15 @@ export const data = [ ], }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { event: 'Order Completed', type: 'track', sentAt: '2021-01-03T17:02:53.195Z', channel: 'web', - properties: { - message: 'Please check the alert', - brand: 'Zara', - price: '12000', - }, + properties: { message: 'Please check the alert', brand: 'Zara', price: '12000' }, context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -203,13 +176,8 @@ export const data = [ namespace: 'com.rudderlabs.javascript', }, locale: 'en-US', - screen: { - density: 2, - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.11', - }, + 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', @@ -312,11 +280,7 @@ export const data = [ files: {}, }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -396,9 +360,7 @@ export const data = [ ], }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, message: { messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', originalTimestamp: '2022-06-22T10:57:58Z', @@ -419,18 +381,10 @@ export const data = [ type: 'ios', attTrackingStatus: 3, }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, locale: 'en-US', - os: { - name: 'iOS', - version: '14.4.1', - }, - screen: { - density: 2, - }, + os: { name: 'iOS', version: '14.4.1' }, + screen: { density: 2 }, }, traits: { email: 'testuser@google.com', @@ -485,11 +439,7 @@ export const data = [ endpoint: 'https://api.serenytics.com/api/data_source/5dc8508e-0946-47fc-8ed8-f67307c407f1/push/997877c6358621beb1f86dc320ac822b9f069760', }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/sfmc/network.ts b/test/integrations/destinations/sfmc/network.ts new file mode 100644 index 0000000000..7564d8c6d5 --- /dev/null +++ b/test/integrations/destinations/sfmc/network.ts @@ -0,0 +1,14 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://vcn7AQ2W9GGIAZSsN6Mfq.auth.marketingcloudapis.com/v2/token', + method: 'POST', + }, + httpRes: { + status: 200, + data: { + access_token: 'yourAuthToken', + }, + }, + }, +]; diff --git a/test/integrations/destinations/sfmc/processor/data.ts b/test/integrations/destinations/sfmc/processor/data.ts new file mode 100644 index 0000000000..406ed82ace --- /dev/null +++ b/test/integrations/destinations/sfmc/processor/data.ts @@ -0,0 +1,1735 @@ +export const data = [ + { + name: 'sfmc', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + userProperties: { + test_key: 'test value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: true, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Creating or updating contacts is disabled. To enable this feature set "Do Not Create or Update Contacts" to false', + statTags: { + destType: 'SFMC', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + userProperties: { + test_key: 'test value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/contacts/v1/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + params: {}, + body: { + JSON: { + attributeSets: [], + contactKey: '12345', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'PUT', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:f3ffa19b-e0b3-4967-829f-549b781080e6/rows/Contact Key:12345', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + params: {}, + body: { + JSON: { + values: { + 'Contact Key': '12345', + 'App Name': 'RudderLabs JavaScript SDK', + 'App Version': '1.0.0', + 'App Build': '1.0.0', + 'UTM Campaign': 'Demo Campaign', + 'UTM Source': 'facebook', + 'UTM Medium': 'online', + 'UTM Term': 'Demo terms', + 'UTM Content': 'Demo content', + Locale: 'en-GB', + 'User Agent': + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + 'IP Address': '0.0.0.0', + 'Screen Density': 2, + 'Screen Height': 860, + 'Screen Width': 1280, + Email: 'tonmoy@rudderstack.com', + Name: 'Tonmoy Labs', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userProperties: { + test_key: 'test value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Either userId or email is required', + statTags: { + destType: 'SFMC', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + userId: 12345, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userProperties: { + test_key: 'test value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event type is required', + statTags: { + destType: 'SFMC', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'revenue', + userId: 12345, + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userProperties: { + test_key: 'test value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event type revenue is not supported', + statTags: { + destType: 'SFMC', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + device: { + adTrackingEnabled: true, + type: 'iOS', + manufacturer: 'Apple', + model: 'iPhone XR', + name: 'Apple iPhone XR', + }, + network: { + bluetooth: 'off', + wifi: 'connceted', + cellular: 'active', + carrier: 'Verizon', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + userProperties: { + test_key: 'test value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/contacts/v1/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + params: {}, + body: { + JSON: { + attributeSets: [], + contactKey: '12345', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'PUT', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:f3ffa19b-e0b3-4967-829f-549b781080e6/rows/Contact Key:12345', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + params: {}, + body: { + JSON: { + values: { + Name: 'Tonmoy Labs', + Email: 'tonmoy@rudderstack.com', + Locale: 'en-GB', + 'App Name': 'RudderLabs JavaScript SDK', + 'UTM Term': 'Demo terms', + 'App Build': '1.0.0', + 'IP Address': '0.0.0.0', + 'UTM Medium': 'online', + 'UTM Source': 'facebook', + 'User Agent': + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + 'App Version': '1.0.0', + 'Contact Key': '12345', + 'Device Name': 'Apple iPhone XR', + 'Device Type': 'iOS', + 'UTM Content': 'Demo content', + 'Device-model': 'iPhone XR', + 'Screen Width': 1280, + 'UTM Campaign': 'Demo Campaign', + 'Wifi Enabled': 'connceted', + 'Screen Height': 860, + 'Screen Density': 2, + 'Network Carrier': 'Verizon', + 'Cellular Enabled': 'active', + 'Bluetooth Enabled': 'off', + 'Ad Tracking Enabled': true, + 'Device Manufacturer': 'Apple', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + event: 'Event Name', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'track', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + properties: { + Plan: 'plan value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToExternalKey: [ + { + from: 'Event Name', + to: 'C500FD37-155C-49BD-A21B-AFCEF3D1A9CB', + }, + ], + eventToPrimaryKey: [ + { + from: 'userId', + to: 'Contact Key', + }, + ], + eventToUUID: [ + { + event: '', + uuid: false, + }, + ], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:C500FD37-155C-49BD-A21B-AFCEF3D1A9CB/rows/Contact Key:12345', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + params: {}, + body: { + JSON: { + values: { + Plan: 'plan value', + Locale: 'en-GB', + 'App Name': 'RudderLabs JavaScript SDK', + 'UTM Term': 'Demo terms', + 'App Build': '1.0.0', + 'IP Address': '0.0.0.0', + 'UTM Medium': 'online', + 'UTM Source': 'facebook', + 'User Agent': + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + 'App Version': '1.0.0', + 'Contact Key': '12345', + 'UTM Content': 'Demo content', + 'Screen Width': 1280, + 'UTM Campaign': 'Demo Campaign', + 'Screen Height': 860, + 'Screen Density': 2, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + event: 'Event Name', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + device: { + adTrackingEnabled: true, + type: 'iOS', + manufacturer: 'Apple', + model: 'iPhone XR', + name: 'Apple iPhone XR', + }, + network: { + bluetooth: 'off', + wifi: 'connceted', + cellular: 'active', + carrier: 'Verizon', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'track', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + properties: { + Plan: 'plan value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToExternalKey: [ + { + from: 'Event Name', + to: 'C500FD37-155C-49BD-A21B-AFCEF3D1A9CB', + }, + ], + eventToPrimaryKey: [ + { + from: 'userId', + to: 'Contact Key', + }, + ], + eventToUUID: [ + { + event: 'Event Name', + uuid: true, + }, + ], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + values: { + Plan: 'plan value', + Uuid: '50360b9c-ea8d-409c-b672-c9230f91cce5', + Locale: 'en-GB', + 'App Name': 'RudderLabs JavaScript SDK', + 'UTM Term': 'Demo terms', + 'App Build': '1.0.0', + 'IP Address': '0.0.0.0', + 'UTM Medium': 'online', + 'UTM Source': 'facebook', + 'User Agent': + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + 'App Version': '1.0.0', + 'Device Name': 'Apple iPhone XR', + 'Device Type': 'iOS', + 'UTM Content': 'Demo content', + 'Device-model': 'iPhone XR', + 'Screen Width': 1280, + 'UTM Campaign': 'Demo Campaign', + 'Wifi Enabled': 'connceted', + 'Screen Height': 860, + 'Screen Density': 2, + 'Network Carrier': 'Verizon', + 'Cellular Enabled': 'active', + 'Bluetooth Enabled': 'off', + 'Ad Tracking Enabled': true, + 'Device Manufacturer': 'Apple', + }, + }, + }, + type: 'REST', + files: {}, + method: 'PUT', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + version: '1', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:C500FD37-155C-49BD-A21B-AFCEF3D1A9CB/rows/Uuid:50360b9c-ea8d-409c-b672-c9230f91cce5', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + event: 'Purchase Event', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + device: { + adTrackingEnabled: true, + type: 'iOS', + manufacturer: 'Apple', + model: 'iPhone XR', + name: 'Apple iPhone XR', + }, + network: { + bluetooth: 'off', + wifi: 'connceted', + cellular: 'active', + carrier: 'Verizon', + }, + traits: { + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'track', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + properties: { + Plan: 'plan value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToExternalKey: [ + { + from: 'Event Name', + to: 'C500FD37-155C-49BD-A21B-AFCEF3D1A9CB', + }, + ], + eventToPrimaryKey: [ + { + from: 'userId', + to: 'Contact Key', + }, + ], + eventToUUID: [ + { + event: 'Event Name', + uuid: true, + }, + ], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Event not mapped for this track call', + statTags: { + destType: 'SFMC', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + event: 'Event Name', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + device: { + adTrackingEnabled: true, + type: 'iOS', + manufacturer: 'Apple', + model: 'iPhone XR', + name: 'Apple iPhone XR', + }, + network: { + bluetooth: 'off', + wifi: 'connceted', + cellular: 'active', + carrier: 'Verizon', + }, + traits: { + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'track', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + properties: { + Plan: 'plan value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToExternalKey: [ + { + from: 'Event Name', + to: 'C500FD37-155C-49BD-A21B-AFCEF3D1A9CB', + }, + ], + eventToPrimaryKey: [ + { + from: 'userId', + to: 'Contact Key', + }, + ], + eventToUUID: [ + { + event: 'Event Name', + uuid: true, + }, + ], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Either userId or email is required', + statTags: { + destType: 'SFMC', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + event: 'Watch', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'track', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + properties: { + Plan: 'plan value', + 'Price Key': 29.99, + 'Guest Key': '2323-34343-3434', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToExternalKey: [ + { + from: 'Event Name', + to: 'C500FD37-155C-49BD-A21B-AFCEF3D1A9CB', + }, + { + from: 'Watch', + to: 'C500FD37-155C-49BD-A21B-AFCEF3D1A9CB', + }, + ], + eventToPrimaryKey: [ + { + from: 'userId', + to: 'User Key', + }, + { + from: 'watch', + to: 'Guest Key', + }, + ], + eventToUUID: [ + { + event: 'Event Name', + uuid: true, + }, + ], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + values: { + Plan: 'plan value', + Locale: 'en-GB', + 'App Name': 'RudderLabs JavaScript SDK', + 'UTM Term': 'Demo terms', + 'App Build': '1.0.0', + 'Price Key': 29.99, + 'Guest Key': '2323-34343-3434', + 'IP Address': '0.0.0.0', + 'UTM Medium': 'online', + 'UTM Source': 'facebook', + 'User Agent': + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + 'App Version': '1.0.0', + 'UTM Content': 'Demo content', + 'Screen Width': 1280, + 'UTM Campaign': 'Demo Campaign', + 'Screen Height': 860, + 'Screen Density': 2, + }, + }, + }, + type: 'REST', + files: {}, + method: 'PUT', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + version: '1', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:C500FD37-155C-49BD-A21B-AFCEF3D1A9CB/rows/Guest Key:2323-34343-3434', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sfmc', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + event: 'Watch', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'track', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + properties: { + Plan: 'plan value', + 'Price Key': 29.99, + 'Contact Key': 12345, + 'Guest Key': '2323-34343-3434', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToExternalKey: [ + { + from: 'Event Name', + to: 'C500FD37-155C-49BD-A21B-AFCEF3D1A9CB', + }, + { + from: 'Watch', + to: 'C500FD37-155C-49BD-A21B-AFCEF3D1A9CB', + }, + ], + eventToPrimaryKey: [ + { + from: 'userId', + to: 'User Key', + }, + { + from: 'watch', + to: 'Guest Key, Contact Key', + }, + ], + eventToUUID: [ + { + event: 'Event Name', + uuid: true, + }, + ], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + values: { + Plan: 'plan value', + Locale: 'en-GB', + 'App Name': 'RudderLabs JavaScript SDK', + 'UTM Term': 'Demo terms', + 'App Build': '1.0.0', + 'Price Key': 29.99, + 'Contact Key': 12345, + 'Guest Key': '2323-34343-3434', + 'IP Address': '0.0.0.0', + 'UTM Medium': 'online', + 'UTM Source': 'facebook', + 'User Agent': + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + 'App Version': '1.0.0', + 'UTM Content': 'Demo content', + 'Screen Width': 1280, + 'UTM Campaign': 'Demo Campaign', + 'Screen Height': 860, + 'Screen Density': 2, + }, + }, + }, + type: 'REST', + files: {}, + method: 'PUT', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + version: '1', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:C500FD37-155C-49BD-A21B-AFCEF3D1A9CB/rows/Guest Key:2323-34343-3434,Contact Key:12345', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/sfmc/router/data.ts b/test/integrations/destinations/sfmc/router/data.ts new file mode 100644 index 0000000000..7707e709f4 --- /dev/null +++ b/test/integrations/destinations/sfmc/router/data.ts @@ -0,0 +1,338 @@ +export const data = [ + { + name: 'sfmc', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + userProperties: { + test_key: 'test value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + metadata: { + jobId: 1, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: true, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + { + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + campaign: { + name: 'Demo Campaign', + source: 'facebook', + medium: 'online', + term: 'Demo terms', + content: 'Demo content', + }, + traits: { + email: 'tonmoy@rudderstack.com', + name: 'Tonmoy Labs', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-GB', + ip: '0.0.0.0', + screen: { + density: 2, + height: 860, + width: 1280, + }, + }, + type: 'identify', + messageId: '50360b9c-ea8d-409c-b672-c9230f91cce5', + originalTimestamp: '2019-10-15T09:35:31.288Z', + userId: '12345', + userProperties: { + test_key: 'test value', + }, + sentAt: '2019-10-14T09:03:22.563Z', + integrations: { + All: true, + }, + }, + metadata: { + jobId: 2, + }, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + destType: 'sfmc', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + metadata: [ + { + jobId: 1, + }, + ], + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: true, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + batched: false, + statusCode: 400, + error: + 'Creating or updating contacts is disabled. To enable this feature set "Do Not Create or Update Contacts" to false', + statTags: { + destType: 'SFMC', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/contacts/v1/contacts', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + params: {}, + body: { + JSON: { + attributeSets: [], + contactKey: '12345', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: + 'https://vcn7AQ2W9GGIAZSsN6Mfq.rest.marketingcloudapis.com/hub/v1/dataevents/key:f3ffa19b-e0b3-4967-829f-549b781080e6/rows/Contact Key:12345', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer yourAuthToken', + }, + params: {}, + body: { + JSON: { + values: { + 'Contact Key': '12345', + 'App Name': 'RudderLabs JavaScript SDK', + 'App Version': '1.0.0', + 'App Build': '1.0.0', + 'UTM Campaign': 'Demo Campaign', + 'UTM Source': 'facebook', + 'UTM Medium': 'online', + 'UTM Term': 'Demo terms', + 'UTM Content': 'Demo content', + Locale: 'en-GB', + 'User Agent': + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + 'IP Address': '0.0.0.0', + 'Screen Density': 2, + 'Screen Height': 860, + 'Screen Width': 1280, + Email: 'tonmoy@rudderstack.com', + Name: 'Tonmoy Labs', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', + Name: 'SFMC', + DestinationDefinition: { + ID: '1pYpYSeQd8OeN6xPdw6VGDzqUd1', + Name: 'SFMC', + DisplayName: 'Salesforce Marketing Cloud', + Config: { + destConfig: [], + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: false, + supportedSourceTypes: [], + transformAt: 'processor', + }, + ResponseRules: {}, + }, + Config: { + clientId: 'vcn7AQ2W9GGIAZSsN6Mfq', + clientSecret: 'vcn7AQ2W9GGIAZSsN6Mfq', + createOrUpdateContacts: false, + eventDelivery: true, + eventDeliveryTS: 1615371070621, + eventToUUID: [], + externalKey: 'f3ffa19b-e0b3-4967-829f-549b781080e6', + subDomain: 'vcn7AQ2W9GGIAZSsN6Mfq', + }, + Enabled: true, + Transformations: [], + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/signl4/router/data.ts b/test/integrations/destinations/signl4/router/data.ts index 582c02e26d..0fcf55d046 100644 --- a/test/integrations/destinations/signl4/router/data.ts +++ b/test/integrations/destinations/signl4/router/data.ts @@ -27,24 +27,15 @@ export const data = [ eventToTitleMapping: [], }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { event: 'New Alert', type: 'track', sentAt: '2021-01-03T17:02:53.195Z', channel: 'web', - properties: { - message: 'Please check the alert', - brand: 'Zara', - price: '12000', - }, + properties: { message: 'Please check the alert', brand: 'Zara', price: '12000' }, context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -52,13 +43,8 @@ export const data = [ namespace: 'com.rudderlabs.javascript', }, locale: 'en-US', - screen: { - density: 2, - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.11', - }, + 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', @@ -86,9 +72,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://connect.signl4.com/webhook/dummyApiKey', - headers: { - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -108,11 +92,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -163,32 +143,18 @@ export const data = [ s4StatusValue: 'new', s4StatusProperty: '', s4Filter: false, - eventToTitleMapping: [ - { - from: 'New Alert', - to: 'Alert Created', - }, - ], + eventToTitleMapping: [{ from: 'New Alert', to: 'Alert Created' }], }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { event: 'New Alert', type: 'identify', sentAt: '2021-01-03T17:02:53.195Z', channel: 'web', - properties: { - message: 'Please check the alert', - brand: 'Zara', - price: '12000', - }, + properties: { message: 'Please check the alert', brand: 'Zara', price: '12000' }, context: { - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, app: { name: 'RudderLabs JavaScript SDK', build: '1.0.0', @@ -196,13 +162,8 @@ export const data = [ namespace: 'com.rudderlabs.javascript', }, locale: 'en-US', - screen: { - density: 2, - }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.11', - }, + 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', @@ -239,19 +200,10 @@ export const data = [ s4StatusValue: 'new', s4StatusProperty: '', s4Filter: false, - eventToTitleMapping: [ - { - from: 'New Alert', - to: 'Alert Created', - }, - ], + eventToTitleMapping: [{ from: 'New Alert', to: 'Alert Created' }], }, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], statTags: { errorCategory: 'dataValidation', destType: 'SIGNL4', diff --git a/test/integrations/destinations/singular/router/data.ts b/test/integrations/destinations/singular/router/data.ts index d9c9f7a8cb..9074ef2fdc 100644 --- a/test/integrations/destinations/singular/router/data.ts +++ b/test/integrations/destinations/singular/router/data.ts @@ -14,21 +14,13 @@ export const data = [ Config: { apiKey: 'dummyApiKey', sessionEventList: [ - { - sessionEventName: 'mysessionevent', - }, - { - sessionEventName: 'randomuser', - }, - { - sessionEventName: 'titanium', - }, + { sessionEventName: 'mysessionevent' }, + { sessionEventName: 'randomuser' }, + { sessionEventName: 'titanium' }, ], }, }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { type: 'track', event: 'mysessionevent', @@ -52,32 +44,17 @@ export const data = [ adTrackingEnabled: 'true', token: 'testDeviceToken', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '0.1.4', - }, + library: { name: 'com.rudderstack.android.sdk.core', version: '0.1.4' }, locale: 'en-US', - network: { - carrier: 'Android', - bluetooth: false, - cellular: true, - wifi: true, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, campaign: { source: 'google', medium: 'medium', term: 'keyword', content: 'some content', }, - os: { - name: 'Android', - version: '9', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + os: { name: 'Android', version: '9' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Mumbai', userAgent: 'Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)', @@ -93,7 +70,7 @@ export const data = [ receipt_signature: '1234dfghnh', referring_application: '2134dfg', total: 20, - revenue: 15.0, + revenue: 15, shipping: 22, tax: 1, discount: 1.5, @@ -112,13 +89,7 @@ export const data = [ url: 'https://www.website.com/product/path', image_url: 'https://www.website.com/product/path.jpg', }, - { - sku: 'F-32', - name: 'UNO', - price: 3.45, - quantity: 2, - category: 'Games', - }, + { sku: 'F-32', name: 'UNO', price: 3.45, quantity: 2, category: 'Games' }, ], }, timestamp: '2021-09-01T15:46:51.000Z', @@ -171,34 +142,19 @@ export const data = [ c: 'wifi', a: 'dummyApiKey', }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { Config: { apiKey: 'dummyApiKey', sessionEventList: [ - { - sessionEventName: 'mysessionevent', - }, - { - sessionEventName: 'randomuser', - }, - { - sessionEventName: 'titanium', - }, + { sessionEventName: 'mysessionevent' }, + { sessionEventName: 'randomuser' }, + { sessionEventName: 'titanium' }, ], }, }, @@ -223,21 +179,13 @@ export const data = [ Config: { apiKey: 'dummyApiKey', sessionEventList: [ - { - sessionEventName: 'mysessionevent', - }, - { - sessionEventName: 'randomuser', - }, - { - sessionEventName: 'titanium', - }, + { sessionEventName: 'mysessionevent' }, + { sessionEventName: 'randomuser' }, + { sessionEventName: 'titanium' }, ], }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { type: 'track', event: 'mysessionevent', @@ -261,32 +209,17 @@ export const data = [ adTrackingEnabled: 'true', token: 'testDeviceToken', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '0.1.4', - }, + library: { name: 'com.rudderstack.android.sdk.core', version: '0.1.4' }, locale: 'en-US', - network: { - carrier: 'Android', - bluetooth: false, - cellular: true, - wifi: true, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, campaign: { source: 'google', medium: 'medium', term: 'keyword', content: 'some content', }, - os: { - name: 'Android', - version: '9', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + os: { name: 'Android', version: '9' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Mumbai', userAgent: 'Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)', @@ -302,7 +235,7 @@ export const data = [ receipt_signature: '1234dfghnh', referring_application: '2134dfg', total: 20, - revenue: 15.0, + revenue: 15, shipping: 22, tax: 1, discount: 1.5, @@ -321,13 +254,7 @@ export const data = [ url: 'https://www.website.com/product/path', image_url: 'https://www.website.com/product/path.jpg', }, - { - sku: 'F-32', - name: 'UNO', - price: 3.45, - quantity: 2, - category: 'Games', - }, + { sku: 'F-32', name: 'UNO', price: 3.45, quantity: 2, category: 'Games' }, ], }, timestamp: '2021-09-01T15:46:51.000Z', @@ -380,34 +307,19 @@ export const data = [ c: 'wifi', a: 'dummyApiKey', }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { Config: { apiKey: 'dummyApiKey', sessionEventList: [ - { - sessionEventName: 'mysessionevent', - }, - { - sessionEventName: 'randomuser', - }, - { - sessionEventName: 'titanium', - }, + { sessionEventName: 'mysessionevent' }, + { sessionEventName: 'randomuser' }, + { sessionEventName: 'titanium' }, ], }, }, @@ -432,21 +344,13 @@ export const data = [ Config: { apiKey: 'dummyApiKey', sessionEventList: [ - { - sessionEventName: 'mysessionevent', - }, - { - sessionEventName: 'randomuser', - }, - { - sessionEventName: 'titanium', - }, + { sessionEventName: 'mysessionevent' }, + { sessionEventName: 'randomuser' }, + { sessionEventName: 'titanium' }, ], }, }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, message: { type: 'track', event: 'mysessionevent', @@ -470,32 +374,17 @@ export const data = [ adTrackingEnabled: 'true', token: 'testDeviceToken', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '0.1.4', - }, + library: { name: 'com.rudderstack.android.sdk.core', version: '0.1.4' }, locale: 'en-US', - network: { - carrier: 'Android', - bluetooth: false, - cellular: true, - wifi: true, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, campaign: { source: 'google', medium: 'medium', term: 'keyword', content: 'some content', }, - os: { - name: 'Android', - version: '9', - }, - screen: { - density: 420, - height: 1794, - width: 1080, - }, + os: { name: 'Android', version: '9' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Mumbai', userAgent: 'Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)', @@ -511,7 +400,7 @@ export const data = [ receipt_signature: '1234dfghnh', referring_application: '2134dfg', total: 20, - revenue: 15.0, + revenue: 15, shipping: 22, tax: 1, discount: 1.5, @@ -530,13 +419,7 @@ export const data = [ url: 'https://www.website.com/product/path', image_url: 'https://www.website.com/product/path.jpg', }, - { - sku: 'F-32', - name: 'UNO', - price: 3.45, - quantity: 2, - category: 'Games', - }, + { sku: 'F-32', name: 'UNO', price: 3.45, quantity: 2, category: 'Games' }, ], }, timestamp: '2021-09-01T15:46:51.000Z', @@ -589,34 +472,19 @@ export const data = [ c: 'wifi', a: 'dummyApiKey', }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { Config: { apiKey: 'dummyApiKey', sessionEventList: [ - { - sessionEventName: 'mysessionevent', - }, - { - sessionEventName: 'randomuser', - }, - { - sessionEventName: 'titanium', - }, + { sessionEventName: 'mysessionevent' }, + { sessionEventName: 'randomuser' }, + { sessionEventName: 'titanium' }, ], }, }, @@ -644,15 +512,8 @@ export const data = [ userId: '68e214f1-ac84-4241-b27d-78a18f59f21e', channel: 'mobile', context: { - os: { - name: 'iOS', - version: '16.2', - }, - app: { - build: '5013', - version: '0.5.13', - namespace: 'com.yabimoney', - }, + os: { name: 'iOS', version: '16.2' }, + app: { build: '5013', version: '0.5.13', namespace: 'com.yabimoney' }, device: { id: 'cc06ff5e-838b-4e33-9d90-4ab5a6068bec', name: 'iPhone', @@ -664,11 +525,7 @@ export const data = [ attTrackingStatus: 0, }, locale: 'en-AE', - screen: { - width: 844, - height: 390, - density: 3, - }, + screen: { width: 844, height: 390, density: 3 }, traits: { phone: '', userId: '68e214f1-ac84-4241-b27d-78a18f59f21e', @@ -677,15 +534,8 @@ export const data = [ yabi_user_id: 'uCh5IS8p', subscription_type: '', }, - library: { - name: 'rudder-ios-library', - version: '1.8.0', - }, - network: { - wifi: true, - carrier: 'etisalat', - cellular: false, - }, + library: { name: 'rudder-ios-library', version: '1.8.0' }, + network: { wifi: true, carrier: 'etisalat', cellular: false }, timezone: 'Asia/Dubai', sessionId: 1674138119, }, @@ -695,9 +545,7 @@ export const data = [ receivedAt: '2023-01-19T14:25:25.465Z', request_ip: '87.201.98.151', anonymousId: 'cc06ff5e-838b-4e33-9d90-4ab5a6068bec', - integrations: { - All: true, - }, + integrations: { All: true }, originalTimestamp: '2023-01-19T14:25:06.301Z', }, destination: { @@ -705,29 +553,14 @@ export const data = [ Config: { apiKey: 'apiKey', apiSecret: 'dummyApiSecret', - sessionEventList: [ - { - sessionEventName: 'test_event', - }, - ], - blacklistedEvents: [ - { - eventName: '', - }, - ], - whitelistedEvents: [ - { - eventName: '', - }, - ], + sessionEventList: [{ sessionEventName: 'test_event' }], + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], eventFilteringOption: 'whitelistedEvents', eventDelivery: false, eventDeliveryTS: 1663919255086, }, - liveEventsConfig: { - eventDelivery: false, - eventDeliveryTS: 1663919255086, - }, + liveEventsConfig: { eventDelivery: false, eventDeliveryTS: 1663919255086 }, ID: '2EhlBrBduwN2NX4pJ7nrVDHAz6C', workspaceId: '1sUXvPs0hYgjBxSfjG4gqnRFNoP', DestinationDefinition: { @@ -821,6 +654,7 @@ export const data = [ eventType: 'track', sourceDefinitionId: '1TW48i2bIzEl1HPf825cEznfIM8', destinationDefinitionId: '', + userId: 'u1', }, }, ], @@ -856,12 +690,7 @@ export const data = [ a: 'apiKey', e: {}, }, - body: { - JSON: {}, - JSON_ARRAY: {}, - XML: {}, - FORM: {}, - }, + body: { JSON: {}, JSON_ARRAY: {}, XML: {}, FORM: {} }, files: {}, }, metadata: [ @@ -895,6 +724,7 @@ export const data = [ eventType: 'track', sourceDefinitionId: '1TW48i2bIzEl1HPf825cEznfIM8', destinationDefinitionId: '', + userId: 'u1', }, ], batched: false, @@ -904,29 +734,14 @@ export const data = [ Config: { apiKey: 'apiKey', apiSecret: 'dummyApiSecret', - sessionEventList: [ - { - sessionEventName: 'test_event', - }, - ], - blacklistedEvents: [ - { - eventName: '', - }, - ], - whitelistedEvents: [ - { - eventName: '', - }, - ], + sessionEventList: [{ sessionEventName: 'test_event' }], + blacklistedEvents: [{ eventName: '' }], + whitelistedEvents: [{ eventName: '' }], eventFilteringOption: 'whitelistedEvents', eventDelivery: false, eventDeliveryTS: 1663919255086, }, - liveEventsConfig: { - eventDelivery: false, - eventDeliveryTS: 1663919255086, - }, + liveEventsConfig: { eventDelivery: false, eventDeliveryTS: 1663919255086 }, ID: '2EhlBrBduwN2NX4pJ7nrVDHAz6C', workspaceId: '1sUXvPs0hYgjBxSfjG4gqnRFNoP', DestinationDefinition: { diff --git a/test/integrations/destinations/slack/processor/data.ts b/test/integrations/destinations/slack/processor/data.ts index be05a13ab5..7deb555fa9 100644 --- a/test/integrations/destinations/slack/processor/data.ts +++ b/test/integrations/destinations/slack/processor/data.ts @@ -1,1982 +1,2020 @@ export const data = [ - { - "name": "slack", - "description": "Test 0", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/example/test/demo", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "4de817fb-7f8e-4e23-b9be-f6736dbda20f", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "9ecc0183-89ed-48bd-87eb-b2d8e1ca6780", - "originalTimestamp": "2020-03-23T03:46:30.916Z", - "properties": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "receivedAt": "2020-03-23T09:16:31.041+05:30", - "request_ip": "[::1]:52056", - "sentAt": "2020-03-23T03:46:30.916Z", - "timestamp": "2020-03-23T09:16:31.041+05:30", - "type": "identify", - "userId": "12345" - }, - "metadata": { - "anonymousId": "4de817fb-7f8e-4e23-b9be-f6736dbda20f", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 126, - "messageId": "9ecc0183-89ed-48bd-87eb-b2d8e1ca6780", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "headers": { - "Content-Type": "application/x-www-form-urlencoded" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "payload": "{\"text\":\"Identified my-namehiji: hulala \",\"username\":\"RudderStack\",\"icon_url\":\"https://cdn.rudderlabs.com/rudderstack.png\"}" - } - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": { - "anonymousId": "4de817fb-7f8e-4e23-b9be-f6736dbda20f", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 126, - "messageId": "9ecc0183-89ed-48bd-87eb-b2d8e1ca6780", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 1", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/example/test/demo", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ], - "denyListOfEvents": [ - { - "eventName": "black_event" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "4de817fb-7f8e-4e23-b9be-f6736dbda20f", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "9ecc0183-89ed-48bd-87eb-b2d8e1ca6780", - "originalTimestamp": "2020-03-23T03:46:30.916Z", - "properties": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "receivedAt": "2020-03-23T09:16:31.041+05:30", - "request_ip": "[::1]:52056", - "sentAt": "2020-03-23T03:46:30.916Z", - "timestamp": "2020-03-23T09:16:31.041+05:30", - "type": "page", - "userId": "12345" - }, - "metadata": { - "anonymousId": "4de817fb-7f8e-4e23-b9be-f6736dbda20f", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 126, - "messageId": "9ecc0183-89ed-48bd-87eb-b2d8e1ca6780", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "anonymousId": "4de817fb-7f8e-4e23-b9be-f6736dbda20f", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 126, - "messageId": "9ecc0183-89ed-48bd-87eb-b2d8e1ca6780", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 400, - "error": "Event type page is not supported", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "SLACK", - "module": "destination", - "implementation": "native", - "feature": "processor", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL" - } - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 2", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "12345", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "", - "referrer": "", - "search": "", - "title": "", - "url": "" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "traits": { - "country": "USA", - "email": "test@domain.com", - "hiji": "hulala-1", - "name": "my-name-1" - }, - "integrations": { - "All": true - }, - "messageId": "4aaecff2-a513-4bbf-9824-c471f4ac9777", - "originalTimestamp": "2020-03-23T03:41:46.122Z", - "receivedAt": "2020-03-23T09:11:46.244+05:30", - "request_ip": "[::1]:52055", - "sentAt": "2020-03-23T03:41:46.123Z", - "timestamp": "2020-03-23T09:11:46.243+05:30", - "type": "identify", - "userId": "12345" - }, - "metadata": { - "anonymousId": "12345", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 123, - "messageId": "4aaecff2-a513-4bbf-9824-c471f4ac9777", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "headers": { - "Content-Type": "application/x-www-form-urlencoded" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "payload": "{\"text\":\"identified my-name-1 with hiji: hulala-1 \",\"username\":\"RudderStack\",\"icon_url\":\"https://cdn.rudderlabs.com/rudderstack.png\"}" - } - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": { - "anonymousId": "12345", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 123, - "messageId": "4aaecff2-a513-4bbf-9824-c471f4ac9777", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 3", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "incomingWebhooksType": "modern", - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/demo", - "eventName": "is", - "eventRegex": true - }, - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example+1", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}} and traits {{traitsList.hiji}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ], - "denyListOfEvents": [ - { - "eventName": "black_event" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "event": "test_isent1", - "integrations": { - "All": true - }, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "originalTimestamp": "2020-03-23T03:46:30.921Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52057", - "sentAt": "2020-03-23T03:46:30.921Z", - "timestamp": "2020-03-23T09:16:31.064+05:30", - "type": "track", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 128, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.slack.com/services/id1/id2/demo", - "headers": { - "Content-Type": "application/x-www-form-urlencoded" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "payload": "{\"text\":\"my-name performed test_isent1 with test_val1 test_val2 and traits hulala\"}" - } - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 128, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 4", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "incomingWebhooksType": "modern", - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example", - "eventName": "is", - "eventChannel": "example_channel", - "eventRegex": true - }, - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example+1", - "eventName": "is", - "eventChannel": "example_channel", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ], - "denyListOfEvents": [ - { - "eventName": "black_event" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "event": "test_eventing_testis", - "integrations": { - "All": true - }, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "originalTimestamp": "2020-03-23T03:46:30.922Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52054", - "sentAt": "2020-03-23T03:46:30.923Z", - "timestamp": "2020-03-23T09:16:31.063+05:30", - "type": "track", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.slack.com/services/id1/id2/example", - "headers": { - "Content-Type": "application/x-www-form-urlencoded" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "payload": "{\"text\":\"my-name performed test_eventing_testis with test_val1 test_val2\"}" - } - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 5", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "incomingWebhooksType": "modern", - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example", - "eventName": "test_eventing_test", - "eventChannel": "example_channel", - "eventRegex": false - }, - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example+1", - "eventName": "", - "eventChannel": "example_channel", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ], - "denyListOfEvents": [ - { - "eventName": "black_event" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "event": "test_eventing_test", - "integrations": { - "All": true - }, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "originalTimestamp": "2020-03-23T03:46:30.922Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52054", - "sentAt": "2020-03-23T03:46:30.923Z", - "timestamp": "2020-03-23T09:16:31.063+05:30", - "type": "track", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.slack.com/services/id1/id2/example", - "headers": { - "Content-Type": "application/x-www-form-urlencoded" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "payload": "{\"text\":\"my-name did test_eventing_test\"}" - } - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 6", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "incomingWebhooksType": "legacy", - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/demo", - "eventName": "is", - "eventRegex": true - }, - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example+1", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}} and traits {{traitsList.hiji}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ], - "denyListOfEvents": [ - { - "eventName": "black_event" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "event": "test_isent1", - "integrations": { - "All": true - }, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "originalTimestamp": "2020-03-23T03:46:30.921Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52057", - "sentAt": "2020-03-23T03:46:30.921Z", - "timestamp": "2020-03-23T09:16:31.064+05:30", - "type": "track", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 128, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "headers": { - "Content-Type": "application/x-www-form-urlencoded" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "payload": "{\"text\":\"my-name performed test_isent1 with test_val1 test_val2 and traits hulala\",\"username\":\"RudderStack\",\"icon_url\":\"https://cdn.rudderlabs.com/rudderstack.png\"}" - } - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 128, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 7", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "incomingWebhooksType": "legacy", - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example", - "eventName": "is", - "eventRegex": true - }, - { - "eventChannelWebhook": "https://hooks.slack.com/services/id1/id2/example+1", - "eventChannel": "example-of-legacy", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ], - "denyListOfEvents": [ - { - "eventName": "black_event" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "event": "test_eventing_testis", - "integrations": { - "All": true - }, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "originalTimestamp": "2020-03-23T03:46:30.922Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52054", - "sentAt": "2020-03-23T03:46:30.923Z", - "timestamp": "2020-03-23T09:16:31.063+05:30", - "type": "track", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "headers": { - "Content-Type": "application/x-www-form-urlencoded" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "payload": "{\"channel\":\"example-of-legacy\",\"text\":\"my-name performed test_eventing_testis with test_val1 test_val2\",\"username\":\"RudderStack\",\"icon_url\":\"https://cdn.rudderlabs.com/rudderstack.png\"}" - } - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 8", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/example/test/demo", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "event": "test_eventing_testis", - "integrations": { - "All": true - }, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "originalTimestamp": "2020-03-23T03:46:30.922Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52054", - "sentAt": "2020-03-23T03:46:30.923Z", - "timestamp": "2020-03-23T09:16:31.063+05:30", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 400, - "error": "Event type is required", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "SLACK", - "module": "destination", - "implementation": "native", - "feature": "processor", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL" - } - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 9", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/example/test/demo", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "originalTimestamp": "2020-03-23T03:46:30.922Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52054", - "sentAt": "2020-03-23T03:46:30.923Z", - "timestamp": "2020-03-23T09:16:31.063+05:30", - "type": "track", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 400, - "error": "Event name is required", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "SLACK", - "module": "destination", - "implementation": "native", - "feature": "processor", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL" - } - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 10", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/example/test/demo", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties. key1}} {{properties.key2}} and traits {{traitsList.hiji}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "identifyTemplate": "identified {{name}} with {{traits}}", - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.1" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.1" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/script-test.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/script-test.html" - }, - "screen": { - "density": 1.7999999523162842 - }, - "traits": { - "country": "India", - "email": "name@domain.com", - "hiji": "hulala", - "name": "my-name" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "event": "test_isent1", - "integrations": { - "All": true - }, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "originalTimestamp": "2020-03-23T03:46:30.921Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52057", - "sentAt": "2020-03-23T03:46:30.921Z", - "timestamp": "2020-03-23T09:16:31.064+05:30", - "type": "track", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 128, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 128, - "messageId": "78102118-56ac-4c5a-a495-8cd7c8f71cc2", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 400, - "error": "Something is wrong with the event template: '{{name}} performed {{event}} with {{properties. key1}} {{properties.key2}} and traits {{traitsList.hiji}}'", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration", - "destType": "SLACK", - "module": "destination", - "implementation": "native", - "feature": "processor", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL" - } - } - ] - } - } - }, - { - "name": "slack", - "description": "Test 11", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "ID": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "Name": "test-slack", - "DestinationDefinition": { - "ID": "1ZQUiJVMlmF7lfsdfXg7KXQnlLV", - "Name": "SLACK", - "DisplayName": "Slack", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "eventChannelSettings": [ - { - "eventChannelWebhook": "https://hooks.slack.com/services/example/test/demo", - "eventName": "is", - "eventRegex": true - } - ], - "eventTemplateSettings": [ - { - "eventName": "is", - "eventRegex": true, - "eventTemplate": "{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}" - }, - { - "eventName": "", - "eventRegex": false, - "eventTemplate": "" - } - ], - "webhookUrl": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "whitelistedTraitsSettings": [ - { - "trait": "hiji" - }, - { - "trait": "" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "00000000000000000000000000", - "channel": "web", - "context": {}, - "event": "black_event", - "integrations": { - "All": true - }, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "originalTimestamp": "2020-03-23T03:46:30.922Z", - "properties": { - "currency": "USD", - "key1": "test_val1", - "key2": "test_val2", - "revenue": 30, - "user_actual_id": 12345 - }, - "receivedAt": "2020-03-23T09:16:31.064+05:30", - "request_ip": "[::1]:52054", - "sentAt": "2020-03-23T03:46:30.923Z", - "timestamp": "2020-03-23T09:16:31.063+05:30", - "type": "track", - "userId": "12345" - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo", - "headers": { - "Content-Type": "application/x-www-form-urlencoded" - }, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "payload": "{\"text\":\"User 12345 did black_event\",\"username\":\"RudderStack\",\"icon_url\":\"https://cdn.rudderlabs.com/rudderstack.png\"}" - } - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": { - "anonymousId": "00000000000000000000000000", - "destinationId": "1ZQVSU9SXNg6KYgZALaqjAO3PIL", - "destinationType": "SLACK", - "jobId": 129, - "messageId": "8b8d5937-09bc-49dc-a35e-8cd6370575f8", - "sourceId": "1YhwKyDcKstudlGxkeN5p2wgsrp" - }, - "statusCode": 200 - } - ] - } - } - } -] \ No newline at end of file + { + name: 'slack', + description: + 'Test 0-> Identify -> Default template with some whiteListed traits and some of them are with a space in between', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/example/test/demo', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: 'favorite color', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '4de817fb-7f8e-4e23-b9be-f6736dbda20f', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + 'favorite color': 'black', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', + originalTimestamp: '2020-03-23T03:46:30.916Z', + properties: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + receivedAt: '2020-03-23T09:16:31.041+05:30', + request_ip: '[::1]:52056', + sentAt: '2020-03-23T03:46:30.916Z', + timestamp: '2020-03-23T09:16:31.041+05:30', + type: 'identify', + userId: '12345', + }, + metadata: { + anonymousId: '4de817fb-7f8e-4e23-b9be-f6736dbda20f', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 126, + messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + payload: + '{"text":"Identified my-namehiji: hulala favorite color: black ","username":"RudderStack","icon_url":"https://cdn.rudderlabs.com/rudderstack.png"}', + }, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: { + anonymousId: '4de817fb-7f8e-4e23-b9be-f6736dbda20f', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 126, + messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'slack', + description: 'Test 1-> Unsupported event type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/example/test/demo', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + denyListOfEvents: [ + { + eventName: 'black_event', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '4de817fb-7f8e-4e23-b9be-f6736dbda20f', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', + originalTimestamp: '2020-03-23T03:46:30.916Z', + properties: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + receivedAt: '2020-03-23T09:16:31.041+05:30', + request_ip: '[::1]:52056', + sentAt: '2020-03-23T03:46:30.916Z', + timestamp: '2020-03-23T09:16:31.041+05:30', + type: 'page', + userId: '12345', + }, + metadata: { + anonymousId: '4de817fb-7f8e-4e23-b9be-f6736dbda20f', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 126, + messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + anonymousId: '4de817fb-7f8e-4e23-b9be-f6736dbda20f', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 126, + messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 400, + error: 'Event type page is not supported', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'SLACK', + module: 'destination', + implementation: 'native', + feature: 'processor', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + }, + }, + ], + }, + }, + }, + { + name: 'slack', + description: 'Test 2 -> Identify call with custom template', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '12345', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '', + referrer: '', + search: '', + title: '', + url: '', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + traits: { + country: 'USA', + email: 'test@domain.com', + hiji: 'hulala-1', + name: 'my-name-1', + }, + integrations: { + All: true, + }, + messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', + originalTimestamp: '2020-03-23T03:41:46.122Z', + receivedAt: '2020-03-23T09:11:46.244+05:30', + request_ip: '[::1]:52055', + sentAt: '2020-03-23T03:41:46.123Z', + timestamp: '2020-03-23T09:11:46.243+05:30', + type: 'identify', + userId: '12345', + }, + metadata: { + anonymousId: '12345', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 123, + messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + payload: + '{"text":"identified my-name-1 with hiji: hulala-1 ","username":"RudderStack","icon_url":"https://cdn.rudderlabs.com/rudderstack.png"}', + }, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: { + anonymousId: '12345', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 123, + messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'slack', + description: 'Test 3 -> Track with modern webhook and with custom template including a trait', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + incomingWebhooksType: 'modern', + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/demo', + eventName: 'is', + eventRegex: true, + }, + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example+1', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}} and traits {{traitsList.hiji}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + denyListOfEvents: [ + { + eventName: 'black_event', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + event: 'test_isent1', + integrations: { + All: true, + }, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + originalTimestamp: '2020-03-23T03:46:30.921Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52057', + sentAt: '2020-03-23T03:46:30.921Z', + timestamp: '2020-03-23T09:16:31.064+05:30', + type: 'track', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 128, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://hooks.slack.com/services/id1/id2/demo', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + payload: + '{"text":"my-name performed test_isent1 with test_val1 test_val2 and traits hulala"}', + }, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 128, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'slack', + description: + 'Test 4 -> Track call with custom template with no trait and only properties and modern webhook', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + incomingWebhooksType: 'modern', + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example', + eventName: 'is', + eventChannel: 'example_channel', + eventRegex: true, + }, + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example+1', + eventName: 'is', + eventChannel: 'example_channel', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + denyListOfEvents: [ + { + eventName: 'black_event', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + event: 'test_eventing_testis', + integrations: { + All: true, + }, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + originalTimestamp: '2020-03-23T03:46:30.922Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52054', + sentAt: '2020-03-23T03:46:30.923Z', + timestamp: '2020-03-23T09:16:31.063+05:30', + type: 'track', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://hooks.slack.com/services/id1/id2/example', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + payload: + '{"text":"my-name performed test_eventing_testis with test_val1 test_val2"}', + }, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'slack', + description: + 'Test 5 -> Track call with default template and an extra empty event to template mapping containg blank string as event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + incomingWebhooksType: 'modern', + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example', + eventName: 'test_eventing_test', + eventChannel: 'example_channel', + eventRegex: false, + }, + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example+1', + eventName: '', + eventChannel: 'example_channel', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + denyListOfEvents: [ + { + eventName: 'black_event', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + event: 'test_eventing_test', + integrations: { + All: true, + }, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + originalTimestamp: '2020-03-23T03:46:30.922Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52054', + sentAt: '2020-03-23T03:46:30.923Z', + timestamp: '2020-03-23T09:16:31.063+05:30', + type: 'track', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://hooks.slack.com/services/id1/id2/example', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + payload: '{"text":"my-name did test_eventing_test"}', + }, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'slack', + description: + 'Test 6 -> Track call with legacy webhook and custom template with properties and traits', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + incomingWebhooksType: 'legacy', + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/demo', + eventName: 'is', + eventRegex: true, + }, + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example+1', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}} and traits {{traitsList.hiji}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + denyListOfEvents: [ + { + eventName: 'black_event', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + event: 'test_isent1', + integrations: { + All: true, + }, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + originalTimestamp: '2020-03-23T03:46:30.921Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52057', + sentAt: '2020-03-23T03:46:30.921Z', + timestamp: '2020-03-23T09:16:31.064+05:30', + type: 'track', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 128, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + payload: + '{"text":"my-name performed test_isent1 with test_val1 test_val2 and traits hulala","username":"RudderStack","icon_url":"https://cdn.rudderlabs.com/rudderstack.png"}', + }, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 128, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'slack', + description: + 'Test 7 -> Track call with legacy webhook and custom template with properties and custom channel from mapping', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + incomingWebhooksType: 'legacy', + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example', + eventName: 'is', + eventRegex: true, + }, + { + eventChannelWebhook: 'https://hooks.slack.com/services/id1/id2/example+1', + eventChannel: 'example-of-legacy', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + denyListOfEvents: [ + { + eventName: 'black_event', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + event: 'test_eventing_testis', + integrations: { + All: true, + }, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + originalTimestamp: '2020-03-23T03:46:30.922Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52054', + sentAt: '2020-03-23T03:46:30.923Z', + timestamp: '2020-03-23T09:16:31.063+05:30', + type: 'track', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + payload: + '{"channel":"example-of-legacy","text":"my-name performed test_eventing_testis with test_val1 test_val2","username":"RudderStack","icon_url":"https://cdn.rudderlabs.com/rudderstack.png"}', + }, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'slack', + description: 'Test 8 -> No Event Type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/example/test/demo', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + event: 'test_eventing_testis', + integrations: { + All: true, + }, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + originalTimestamp: '2020-03-23T03:46:30.922Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52054', + sentAt: '2020-03-23T03:46:30.923Z', + timestamp: '2020-03-23T09:16:31.063+05:30', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 400, + error: 'Event type is required', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'SLACK', + module: 'destination', + implementation: 'native', + feature: 'processor', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + }, + }, + ], + }, + }, + }, + { + name: 'slack', + description: 'Test 9 -> Track call with no Event name', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/example/test/demo', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + originalTimestamp: '2020-03-23T03:46:30.922Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52054', + sentAt: '2020-03-23T03:46:30.923Z', + timestamp: '2020-03-23T09:16:31.063+05:30', + type: 'track', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 400, + error: 'Event name is required', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'SLACK', + module: 'destination', + implementation: 'native', + feature: 'processor', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + }, + }, + ], + }, + }, + }, + { + name: 'slack', + description: + 'Test 10-> Track call with custom template but template is wrong ( space in `{{properties. key1}}` )', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/example/test/demo', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties. key1}} {{properties.key2}} and traits {{traitsList.hiji}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + identifyTemplate: 'identified {{name}} with {{traits}}', + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.1', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.1', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/script-test.html', + referrer: 'http://localhost:1111/tests/html/', + search: '', + title: '', + url: 'http://localhost:1111/tests/html/script-test.html', + }, + screen: { + density: 1.7999999523162842, + }, + traits: { + country: 'India', + email: 'name@domain.com', + hiji: 'hulala', + name: 'my-name', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + event: 'test_isent1', + integrations: { + All: true, + }, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + originalTimestamp: '2020-03-23T03:46:30.921Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52057', + sentAt: '2020-03-23T03:46:30.921Z', + timestamp: '2020-03-23T09:16:31.064+05:30', + type: 'track', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 128, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 128, + messageId: '78102118-56ac-4c5a-a495-8cd7c8f71cc2', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 400, + error: + "Something is wrong with the event template: '{{name}} performed {{event}} with {{properties. key1}} {{properties.key2}} and traits {{traitsList.hiji}}'", + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'SLACK', + module: 'destination', + implementation: 'native', + feature: 'processor', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + }, + }, + ], + }, + }, + }, + { + name: 'slack', + description: 'Test 11 -> Track call with default template', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + Name: 'test-slack', + DestinationDefinition: { + ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', + Name: 'SLACK', + DisplayName: 'Slack', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + eventChannelSettings: [ + { + eventChannelWebhook: 'https://hooks.slack.com/services/example/test/demo', + eventName: 'is', + eventRegex: true, + }, + ], + eventTemplateSettings: [ + { + eventName: 'is', + eventRegex: true, + eventTemplate: + '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', + }, + { + eventName: '', + eventRegex: false, + eventTemplate: '', + }, + ], + webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + whitelistedTraitsSettings: [ + { + trait: 'hiji', + }, + { + trait: '', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + anonymousId: '00000000000000000000000000', + channel: 'web', + context: {}, + event: 'black_event', + integrations: { + All: true, + }, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + originalTimestamp: '2020-03-23T03:46:30.922Z', + properties: { + currency: 'USD', + key1: 'test_val1', + key2: 'test_val2', + revenue: 30, + user_actual_id: 12345, + }, + receivedAt: '2020-03-23T09:16:31.064+05:30', + request_ip: '[::1]:52054', + sentAt: '2020-03-23T03:46:30.923Z', + timestamp: '2020-03-23T09:16:31.063+05:30', + type: 'track', + userId: '12345', + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + payload: + '{"text":"User 12345 did black_event","username":"RudderStack","icon_url":"https://cdn.rudderlabs.com/rudderstack.png"}', + }, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: { + anonymousId: '00000000000000000000000000', + destinationId: '1ZQVSU9SXNg6KYgZALaqjAO3PIL', + destinationType: 'SLACK', + jobId: 129, + messageId: '8b8d5937-09bc-49dc-a35e-8cd6370575f8', + sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/slack/router/data.ts b/test/integrations/destinations/slack/router/data.ts index 87b1fe3b22..349b1a486f 100644 --- a/test/integrations/destinations/slack/router/data.ts +++ b/test/integrations/destinations/slack/router/data.ts @@ -17,28 +17,13 @@ export const data = [ ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', Name: 'SLACK', DisplayName: 'Slack', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { eventChannelSettings: [ - { - eventChannel: '#slack_integration', - eventName: 'is', - eventRegex: true, - }, - { - eventChannel: '', - eventName: '', - eventRegex: false, - }, - { - eventChannel: '', - eventName: '', - eventRegex: false, - }, + { eventChannel: '#slack_integration', eventName: 'is', eventRegex: true }, + { eventChannel: '', eventName: '', eventRegex: false }, + { eventChannel: '', eventName: '', eventRegex: false }, ], eventTemplateSettings: [ { @@ -47,22 +32,11 @@ export const data = [ eventTemplate: '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', }, - { - eventName: '', - eventRegex: false, - eventTemplate: '', - }, + { eventName: '', eventRegex: false, eventTemplate: '' }, ], identifyTemplate: 'identified {{name}} with {{traits}}', webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', - whitelistedTraitsSettings: [ - { - trait: 'hiji', - }, - { - trait: '', - }, - ], + whitelistedTraitsSettings: [{ trait: 'hiji' }, { trait: '' }], }, Enabled: true, Transformations: [], @@ -78,15 +52,9 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.1-rc.1', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.1-rc.1', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.1-rc.1' }, locale: 'en-US', - os: { - name: '', - version: '', - }, + os: { name: '', version: '' }, page: { path: '/tests/html/script-test.html', referrer: 'http://localhost:1111/tests/html/', @@ -94,9 +62,7 @@ export const data = [ title: '', url: 'http://localhost:1111/tests/html/script-test.html', }, - screen: { - density: 1.7999999523162842, - }, + screen: { density: 1.7999999523162842 }, traits: { country: 'India', email: 'name@domain.com', @@ -106,9 +72,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', originalTimestamp: '2020-03-23T03:46:30.916Z', properties: { @@ -132,6 +96,7 @@ export const data = [ jobId: 126, messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, }, ], @@ -187,6 +152,7 @@ export const data = [ jobId: 126, messageId: '9ecc0183-89ed-48bd-87eb-b2d8e1ca6780', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, ], statTags: { @@ -223,28 +189,13 @@ export const data = [ ID: '1ZQUiJVMlmF7lfsdfXg7KXQnlLV', Name: 'SLACK', DisplayName: 'Slack', - Config: { - excludeKeys: [], - includeKeys: [], - }, + Config: { excludeKeys: [], includeKeys: [] }, }, Config: { eventChannelSettings: [ - { - eventChannel: '#slack_integration', - eventName: 'is', - eventRegex: true, - }, - { - eventChannel: '', - eventName: '', - eventRegex: false, - }, - { - eventChannel: '', - eventName: '', - eventRegex: false, - }, + { eventChannel: '#slack_integration', eventName: 'is', eventRegex: true }, + { eventChannel: '', eventName: '', eventRegex: false }, + { eventChannel: '', eventName: '', eventRegex: false }, ], eventTemplateSettings: [ { @@ -253,22 +204,11 @@ export const data = [ eventTemplate: '{{name}} performed {{event}} with {{properties.key1}} {{properties.key2}}', }, - { - eventName: '', - eventRegex: false, - eventTemplate: '', - }, + { eventName: '', eventRegex: false, eventTemplate: '' }, ], identifyTemplate: 'identified {{name}} with {{traits}}', webhookUrl: 'https://hooks.slack.com/services/THZM86VSS/BV9HZ2UN6/demo', - whitelistedTraitsSettings: [ - { - trait: 'hiji', - }, - { - trait: '', - }, - ], + whitelistedTraitsSettings: [{ trait: 'hiji' }, { trait: '' }], }, Enabled: true, Transformations: [], @@ -284,25 +224,11 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.1.1-rc.1', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.1-rc.1', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.1-rc.1' }, locale: 'en-US', - os: { - name: '', - version: '', - }, - page: { - path: '', - referrer: '', - search: '', - title: '', - url: '', - }, - screen: { - density: 1.7999999523162842, - }, + os: { name: '', version: '' }, + page: { path: '', referrer: '', search: '', title: '', url: '' }, + screen: { density: 1.7999999523162842 }, traits: { country: 'India', email: 'name@domain.com', @@ -318,9 +244,7 @@ export const data = [ hiji: 'hulala-1', name: 'my-name-1', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', originalTimestamp: '2020-03-23T03:41:46.122Z', receivedAt: '2020-03-23T09:11:46.244+05:30', @@ -337,6 +261,7 @@ export const data = [ jobId: 123, messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, }, ], @@ -413,6 +338,7 @@ export const data = [ jobId: 123, messageId: '4aaecff2-a513-4bbf-9824-c471f4ac9777', sourceId: '1YhwKyDcKstudlGxkeN5p2wgsrp', + userId: 'u1', }, ], statusCode: 200, diff --git a/test/integrations/destinations/snapchat_conversion/processor/data.ts b/test/integrations/destinations/snapchat_conversion/processor/data.ts index baa2b2b99e..b0d14208cc 100644 --- a/test/integrations/destinations/snapchat_conversion/processor/data.ts +++ b/test/integrations/destinations/snapchat_conversion/processor/data.ts @@ -4344,7 +4344,7 @@ export const data = [ }, ], 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', + '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', }, type: 'track', event: 'Order Completed', @@ -4362,7 +4362,7 @@ export const data = [ quantity: 3, }, ], - category: 'shoes' + category: 'shoes', }, integrations: { All: true, @@ -4417,16 +4417,16 @@ export const data = [ event_type: 'PURCHASE', item_ids: ['123', '124'], brands: ['brand01', 'brand02'], - item_category: "shoes", + item_category: 'shoes', price: '56', hashed_email: '73062d872926c2a556f17b36f50e328ddf9bff9d403939bd14b6c3b7f5a33fc2', hashed_phone_number: - 'bc77d64d7045fe44795ed926df37231a0cfb6ec6b74588c512790e9f143cc492', + 'bc77d64d7045fe44795ed926df37231a0cfb6ec6b74588c512790e9f143cc492', hashed_mobile_ad_id: - 'f9779d734aaee50f16ee0011260bae7048f1d9a128c62b6a661077875701edd2', + 'f9779d734aaee50f16ee0011260bae7048f1d9a128c62b6a661077875701edd2', hashed_idfv: '54bd0b26a3d39dad90f5149db49b9fd9ba885f8e35d1d94cae69273f5e657b9f', 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', + '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', timestamp: '1650625078', event_conversion_type: 'MOBILE_APP', snap_app_id: 'hfhdhfd', @@ -4498,7 +4498,7 @@ export const data = [ }, ], 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', + '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', }, type: 'track', event: 'Order Completed', @@ -4517,7 +4517,7 @@ export const data = [ }, ], category: 'shoes', - item_category: 'glass' + item_category: 'glass', }, integrations: { All: true, @@ -4572,16 +4572,16 @@ export const data = [ event_type: 'PURCHASE', item_ids: ['123', '124'], brands: ['brand01', 'brand02'], - item_category: "glass", + item_category: 'glass', price: '56', hashed_email: '73062d872926c2a556f17b36f50e328ddf9bff9d403939bd14b6c3b7f5a33fc2', hashed_phone_number: - 'bc77d64d7045fe44795ed926df37231a0cfb6ec6b74588c512790e9f143cc492', + 'bc77d64d7045fe44795ed926df37231a0cfb6ec6b74588c512790e9f143cc492', hashed_mobile_ad_id: - 'f9779d734aaee50f16ee0011260bae7048f1d9a128c62b6a661077875701edd2', + 'f9779d734aaee50f16ee0011260bae7048f1d9a128c62b6a661077875701edd2', hashed_idfv: '54bd0b26a3d39dad90f5149db49b9fd9ba885f8e35d1d94cae69273f5e657b9f', 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', + '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', timestamp: '1650625078', event_conversion_type: 'MOBILE_APP', snap_app_id: 'hfhdhfd', @@ -4599,7 +4599,7 @@ export const data = [ ], }, }, - } + }, ].map((tc) => ({ ...tc, mockFns: (_) => { diff --git a/test/integrations/destinations/snapchat_conversion/router/data.ts b/test/integrations/destinations/snapchat_conversion/router/data.ts index bfa9acd4d2..685ed2e5b4 100644 --- a/test/integrations/destinations/snapchat_conversion/router/data.ts +++ b/test/integrations/destinations/snapchat_conversion/router/data.ts @@ -69,6 +69,7 @@ export const data = [ }, metadata: { jobId: 1, + userId: 'u1', }, destination: { Config: { @@ -135,6 +136,7 @@ export const data = [ }, metadata: { jobId: 2, + userId: 'u1', }, destination: { Config: { @@ -201,6 +203,7 @@ export const data = [ }, metadata: { jobId: 3, + userId: 'u1', }, destination: { Config: { @@ -244,12 +247,15 @@ export const data = [ metadata: [ { jobId: 1, + userId: 'u1', }, { jobId: 2, + userId: 'u1', }, { jobId: 3, + userId: 'u1', }, ], batched: true, @@ -381,6 +387,7 @@ export const data = [ }, metadata: { jobId: 4, + userId: 'u1', }, destination: { Config: { @@ -412,6 +419,7 @@ export const data = [ metadata: [ { jobId: 4, + userId: 'u1', }, ], batched: false, diff --git a/test/integrations/destinations/snapchat_custom_audience/dataDelivery/data.ts b/test/integrations/destinations/snapchat_custom_audience/dataDelivery/data.ts index 2ed5625fe8..1903938660 100644 --- a/test/integrations/destinations/snapchat_custom_audience/dataDelivery/data.ts +++ b/test/integrations/destinations/snapchat_custom_audience/dataDelivery/data.ts @@ -219,4 +219,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/snapchat_custom_audience/processor/data.ts b/test/integrations/destinations/snapchat_custom_audience/processor/data.ts index 9ad6106c7e..a73a959699 100644 --- a/test/integrations/destinations/snapchat_custom_audience/processor/data.ts +++ b/test/integrations/destinations/snapchat_custom_audience/processor/data.ts @@ -1401,4 +1401,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/snapchat_custom_audience/router/data.ts b/test/integrations/destinations/snapchat_custom_audience/router/data.ts index 2807201e73..44fdb4b47b 100644 --- a/test/integrations/destinations/snapchat_custom_audience/router/data.ts +++ b/test/integrations/destinations/snapchat_custom_audience/router/data.ts @@ -1,13 +1,9 @@ -import { FEATURES, MODULES } from '../../../../../src/v0/util/tags'; - -const DEST_TYPE = 'snapchat_custom_audience'; - export const data = [ { - name: DEST_TYPE, + name: 'snapchat_custom_audience', description: 'Test 0', - feature: FEATURES.ROUTER, - module: MODULES.DESTINATION, + feature: 'router', + module: 'destination', version: 'v0', input: { request: { @@ -20,14 +16,9 @@ export const data = [ refresh_token: 'dummyRefreshToken', developer_token: 'dummyDeveloperToken', }, + userId: 'u1', }, - destination: { - Config: { - segmentId: '123', - disableHashing: false, - schema: 'email', - }, - }, + destination: { Config: { segmentId: '123', disableHashing: false, schema: 'email' } }, message: { userId: 'user 1', anonymousId: 'anon-id-new', @@ -48,17 +39,12 @@ export const data = [ }, enablePartialFailure: true, }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, timestamp: '2020-02-02T00:23:09.544Z', }, }, ], - destType: DEST_TYPE, + destType: 'snapchat_custom_audience', }, }, }, @@ -104,17 +90,12 @@ export const data = [ developer_token: 'dummyDeveloperToken', refresh_token: 'dummyRefreshToken', }, + userId: 'u1', }, ], batched: false, statusCode: 200, - destination: { - Config: { - disableHashing: false, - schema: 'email', - segmentId: '123', - }, - }, + destination: { Config: { disableHashing: false, schema: 'email', segmentId: '123' } }, }, ], }, diff --git a/test/integrations/destinations/splitio/processor/data.ts b/test/integrations/destinations/splitio/processor/data.ts index 6f77c6f562..20ffa00fc2 100644 --- a/test/integrations/destinations/splitio/processor/data.ts +++ b/test/integrations/destinations/splitio/processor/data.ts @@ -912,4 +912,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/splitio/router/data.ts b/test/integrations/destinations/splitio/router/data.ts index 1004756812..47f8ad5cff 100644 --- a/test/integrations/destinations/splitio/router/data.ts +++ b/test/integrations/destinations/splitio/router/data.ts @@ -1,10 +1,8 @@ -import { FEATURES } from '../../../../../src/v0/util/tags'; - export const data = [ { name: 'splitio', description: 'Test 0', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -14,7 +12,7 @@ export const data = [ { message: { traits: { - martin: 21.565000000000001, + martin: 21.565, trafficTypeName: 'user', vertical: 'restaurant', eventTypeId: 'page_load end to end', @@ -26,14 +24,8 @@ export const data = [ rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5', context: { ip: '14.5.67.21', - traits: { - abc: 'new-val', - key: 'key_user_0', - value: '0.93', - }, - library: { - name: 'http', - }, + traits: { abc: 'new-val', key: 'key_user_0', value: '0.93' }, + library: { name: 'http' }, }, type: 'group', groupId: 'group1', @@ -42,15 +34,9 @@ export const data = [ receivedAt: '2021-04-19T14:53:18.215+05:30', requestIP: '[::1]', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { - Config: { - apiKey: 'abcde', - environment: 'staging', - trafficType: 'user', - }, + Config: { apiKey: 'abcde', environment: 'staging', trafficType: 'user' }, }, }, ], @@ -70,10 +56,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://events.split.io/api/events', - headers: { - 'Content-Type': 'application/json', - Authorization: 'Bearer abcde', - }, + headers: { 'Content-Type': 'application/json', Authorization: 'Bearer abcde' }, params: {}, body: { JSON: { @@ -82,11 +65,7 @@ export const data = [ timestamp: 1579566094208, environmentName: 'staging', trafficTypeName: 'user', - properties: { - martin: 21.565, - vertical: 'restaurant', - GMV: false, - }, + properties: { martin: 21.565, vertical: 'restaurant', GMV: false }, }, XML: {}, JSON_ARRAY: {}, @@ -94,19 +73,11 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - apiKey: 'abcde', - environment: 'staging', - trafficType: 'user', - }, + Config: { apiKey: 'abcde', environment: 'staging', trafficType: 'user' }, }, }, ], @@ -117,7 +88,7 @@ export const data = [ { name: 'splitio', description: 'Test 1', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -127,7 +98,7 @@ export const data = [ { message: { traits: { - martin: 21.565000000000001, + martin: 21.565, trafficTypeName: 'user', eventTypeId: 'page_load end to end', timestamp: 1513357833000, @@ -137,13 +108,8 @@ export const data = [ rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5', context: { ip: '14.5.67.21', - traits: { - abc: 'new-val', - key: 'key_user_0', - }, - library: { - name: 'http', - }, + traits: { abc: 'new-val', key: 'key_user_0' }, + library: { name: 'http' }, }, type: 'identify', timestamp: '2020-01-21T00:21:34.208Z', @@ -151,15 +117,9 @@ export const data = [ receivedAt: '2021-04-19T14:53:18.215+05:30', requestIP: '[::1]', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { - Config: { - apiKey: 'abcde', - environment: 'staging', - trafficType: 'user', - }, + Config: { apiKey: 'abcde', environment: 'staging', trafficType: 'user' }, }, }, ], @@ -179,10 +139,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://events.split.io/api/events', - headers: { - 'Content-Type': 'application/json', - Authorization: 'Bearer abcde', - }, + headers: { 'Content-Type': 'application/json', Authorization: 'Bearer abcde' }, params: {}, body: { JSON: { @@ -191,9 +148,7 @@ export const data = [ timestamp: 1579566094208, environmentName: 'staging', trafficTypeName: 'user', - properties: { - martin: 21.565, - }, + properties: { martin: 21.565 }, }, XML: {}, JSON_ARRAY: {}, @@ -201,19 +156,11 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - apiKey: 'abcde', - environment: 'staging', - trafficType: 'user', - }, + Config: { apiKey: 'abcde', environment: 'staging', trafficType: 'user' }, }, }, ], diff --git a/test/integrations/destinations/sprig/deleteUsers/data.ts b/test/integrations/destinations/sprig/deleteUsers/data.ts new file mode 100644 index 0000000000..7ab5620e66 --- /dev/null +++ b/test/integrations/destinations/sprig/deleteUsers/data.ts @@ -0,0 +1,217 @@ +export const data = [ + { + name: 'sprig', + description: 'Missing api key', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SPRIG', + userAttributes: [ + { + userId: '1', + }, + { + userId: '2', + }, + ], + config: { + apiKey: undefined, + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'Api Key is required for user deletion', + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Invalid api key', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SPRIG', + userAttributes: [ + { + userId: '1', + }, + { + userId: '2', + }, + ], + config: { + apiKey: 'invalidApiKey', + }, + }, + ], + }, + }, + output: { + response: { + status: 403, + body: [ + { + statusCode: 403, + error: 'User deletion request failed', + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Too many requests', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SPRIG', + userAttributes: [ + { + userId: '1', + }, + { + userId: '2', + }, + { + userId: '3', + }, + { + userId: '4', + }, + { + userId: '5', + }, + { + userId: '6', + }, + { + userId: '7', + }, + { + userId: '8', + }, + { + userId: '9', + }, + { + userId: '10', + }, + ], + config: { + apiKey: 'testApiKey', + }, + }, + ], + }, + }, + output: { + response: { + status: 429, + body: [ + { + statusCode: 429, + error: 'User deletion request failed', + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Given userId is not present for user deletion', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SPRIG', + userAttributes: [ + { + userId: '9', + }, + ], + config: { + apiKey: 'testApiKey', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + , + ], + }, + }, + }, + { + name: 'sprig', + description: 'Successful user deletion', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SPRIG', + userAttributes: [ + { + userId: '1', + }, + { + userId: '2', + }, + { + userId: '3', + }, + ], + config: { + apiKey: 'testApiKey', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/sprig/network.ts b/test/integrations/destinations/sprig/network.ts new file mode 100644 index 0000000000..e5f2ff23b1 --- /dev/null +++ b/test/integrations/destinations/sprig/network.ts @@ -0,0 +1,79 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + url: 'https://api.sprig.com/v2/purge/visitors', + data: { + userIds: ['1', '2'], + }, + headers: { + Accept: 'application/json', + Authorization: 'API-Key invalidApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: 'Forbidden', + status: 403, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://api.sprig.com/v2/purge/visitors', + data: { + userIds: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'], + }, + headers: { + Accept: 'application/json', + Authorization: 'API-Key testApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: 'Your application has made too many requests in too short a time.', + status: 429, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://api.sprig.com/v2/purge/visitors', + data: { + userIds: ['9'], + }, + headers: { + Accept: 'application/json', + Authorization: 'API-Key testApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + error: 'User deletion request failed', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://api.sprig.com/v2/purge/visitors', + data: { + userIds: ['1', '2', '3'], + }, + headers: { + Accept: 'application/json', + Authorization: 'API-Key testApiKey', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + requestId: 'request_1', + }, + status: 200, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/sprig/processor/data.ts b/test/integrations/destinations/sprig/processor/data.ts new file mode 100644 index 0000000000..6b99e5e13b --- /dev/null +++ b/test/integrations/destinations/sprig/processor/data.ts @@ -0,0 +1,504 @@ +export const data = [ + { + name: 'sprig', + description: 'No message type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + context: { + traits: { + email: 'test@gmail.com', + firstName: 'Test', + lastName: 'Ruddelabs', + }, + }, + originalTimestamp: '2023-11-10T14:42:44.724Z', + timestamp: '2023-11-22T10:12:44.75705:30', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + apiKey: 'testApiKey', + }, + }, + metadata: { + jobId: 1, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 1, + }, + statusCode: 400, + error: + 'message Type is not present. Aborting: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: message Type is not present. Aborting', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'SPRIG', + module: 'destination', + implementation: 'cdkV2', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Unsupported message type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + groupId: 'group@1', + channel: 'web', + context: { + traits: { + email: 'test@gmail.com', + firstName: 'Test', + lastName: 'Rudderstack', + }, + }, + traits: {}, + type: 'group', + originalTimestamp: '2023-11-10T14:42:44.724Z', + timestamp: '2023-11-22T10:12:44.75705:30', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + apiKey: 'testApiKey', + }, + }, + metadata: { + jobId: 2, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 2, + }, + statusCode: 400, + error: + 'message type group is not supported: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: message type group is not supported', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'SPRIG', + module: 'destination', + implementation: 'cdkV2', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Missing config', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + userId: 'user@1', + channel: 'web', + context: { + traits: { + email: 'test@gmail.com', + firstName: 'Test', + lastName: 'Rudderstack', + }, + }, + type: 'identify', + originalTimestamp: '2023-11-10T14:42:44.724Z', + timestamp: '2023-11-22T10:12:44.75705:30', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: {}, + }, + metadata: { + jobId: 3, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 3, + }, + statusCode: 400, + error: + 'API Key is not present. Aborting: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: API Key is not present. Aborting', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'SPRIG', + module: 'destination', + implementation: 'cdkV2', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Identify call without userId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + anonymousId: 'anon@1', + context: { + traits: { + email: 'test@gmail.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + }, + type: 'identify', + originalTimestamp: '2023-11-10T14:42:44.724Z', + timestamp: '2023-11-22T10:12:44.75705:30', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + apiKey: 'testApiKey', + }, + }, + metadata: { + jobId: 4, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 4, + }, + statusCode: 400, + error: + 'userId is required: Workflow: procWorkflow, Step: validateIdentifyPayload, ChildStep: undefined, OriginalError: userId is required', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'SPRIG', + module: 'destination', + implementation: 'cdkV2', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Successful identify call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + userId: 'user@1', + context: { + traits: { + email: 'test@gmail.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + }, + type: 'identify', + originalTimestamp: '2023-11-10T14:42:44.724Z', + timestamp: '2023-11-22T10:12:44.75705:30', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + apiKey: 'testApiKey', + }, + }, + metadata: { + jobId: 5, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 5, + }, + output: { + method: 'POST', + endpoint: 'https://api.sprig.com/v2/users', + headers: { + accept: 'application/json', + authorization: 'API-Key testApiKey', + 'content-type': 'application/json', + }, + body: { + JSON: { + attributes: { + email: 'test@gmail.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + emailAddress: 'test@gmail.com', + userId: 'user@1', + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + params: {}, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Track call with empty event name', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + userId: 'user@1', + context: { + traits: { + email: 'test@gmail.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + }, + properties: {}, + type: 'track', + event: '', + originalTimestamp: '2020-11-29T19:11:00.337Z', + timestamp: '2023-11-29T19:11:00.337Z', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + apiKey: 'testApiKey', + }, + }, + metadata: { + jobId: 6, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 6, + }, + statusCode: 400, + error: + 'event name is required: Workflow: procWorkflow, Step: validateTrackPayload, ChildStep: undefined, OriginalError: event name is required', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'SPRIG', + module: 'destination', + implementation: 'cdkV2', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'sprig', + description: 'Successful track call', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + userId: 'user@1', + context: { + traits: { + email: 'test@gmail.com', + firstName: 'Test', + lastName: 'Rudderlabs', + }, + }, + properties: {}, + type: 'track', + event: 'signup', + originalTimestamp: '2020-11-29T19:11:00.337Z', + timestamp: '2023-11-29T19:11:00.337Z', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + apiKey: 'testApiKey', + }, + }, + metadata: { + jobId: 7, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { + jobId: 7, + }, + output: { + method: 'POST', + endpoint: 'https://api.sprig.com/v2/users', + headers: { + accept: 'application/json', + authorization: 'API-Key testApiKey', + 'content-type': 'application/json', + }, + body: { + JSON: { + emailAddress: 'test@gmail.com', + userId: 'user@1', + events: [ + { + event: 'signup', + timestamp: 1701285060337, + }, + ], + }, + XML: {}, + FORM: {}, + JSON_ARRAY: {}, + }, + files: {}, + params: {}, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/stormly/processor/data.ts b/test/integrations/destinations/stormly/processor/data.ts new file mode 100644 index 0000000000..52356ba9e0 --- /dev/null +++ b/test/integrations/destinations/stormly/processor/data.ts @@ -0,0 +1,566 @@ +export const data = [ + { + name: 'stormly', + description: 'Identify call without userId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + ID: 'stormly123', + }, + message: { + type: 'identify', + context: { + traits: { + name: 'John Doe', + email: 'johndoe@gmail.com', + age: 25, + }, + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Missing required value from "userIdOnly"', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'STORMLY', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'stormly', + description: 'Identify call with userId, traits', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + ID: 'stormly123', + }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + channel: 'web', + userId: '5136633649', + context: { + traits: { + name: 'John Doe', + email: 'johndoe@gmail.com', + age: 25, + }, + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rudderstack.t.stormly.com/webhook/rudderstack/identify', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic dummyApiKey', + }, + params: {}, + body: { + JSON: { + userId: '5136633649', + timestamp: '2022-01-20T13:39:21.032Z', + traits: { + name: 'John Doe', + email: 'johndoe@gmail.com', + age: 25, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'stormly', + description: 'Track call without userId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + ID: 'stormly123', + }, + message: { + type: 'track', + event: 'Product Reviewed', + properties: { + review_id: '12345', + product_id: '123', + rating: 3, + review_body: 'Average product, expected much more.', + groupId: '91Yb32830', + }, + context: {}, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Missing required value from "userIdOnly"', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'STORMLY', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'stormly', + description: 'Track call without groupId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + ID: 'stormly123', + }, + message: { + type: 'track', + event: 'Product Reviewed', + userId: '5136633649', + properties: { + review_id: '12345', + product_id: '123', + rating: 3, + review_body: 'Average product, expected much more.', + }, + context: {}, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rudderstack.t.stormly.com/webhook/rudderstack/track', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic dummyApiKey', + }, + params: {}, + body: { + JSON: { + userId: '5136633649', + event: 'Product Reviewed', + properties: { + review_id: '12345', + product_id: '123', + rating: 3, + review_body: 'Average product, expected much more.', + }, + timestamp: '2022-01-20T13:39:21.032Z', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'stormly', + description: 'Track call without properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + ID: 'stormly123', + }, + message: { + type: 'track', + event: 'Product Reviewed', + userId: '5136633649', + context: {}, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rudderstack.t.stormly.com/webhook/rudderstack/track', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic dummyApiKey', + }, + params: {}, + body: { + JSON: { + userId: '5136633649', + event: 'Product Reviewed', + timestamp: '2022-01-20T13:39:21.032Z', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'stormly', + description: 'Track call with userId, groupId and properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + ID: 'stormly123', + }, + message: { + type: 'track', + event: 'Product Reviewed', + userId: '5136633649', + properties: { + review_id: '12345', + product_id: '123', + rating: 3, + review_body: 'Average product, expected much more.', + groupId: '91Yb32830', + }, + context: {}, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rudderstack.t.stormly.com/webhook/rudderstack/track', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic dummyApiKey', + }, + params: {}, + body: { + JSON: { + userId: '5136633649', + event: 'Product Reviewed', + properties: { + review_id: '12345', + product_id: '123', + rating: 3, + review_body: 'Average product, expected much more.', + }, + timestamp: '2022-01-20T13:39:21.032Z', + context: { + groupId: '91Yb32830', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'stormly', + description: 'Track call with userId, groupId (from externalId) and properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + ID: 'stormly123', + }, + message: { + type: 'track', + event: 'Product Reviewed', + userId: '5136633649', + properties: { + review_id: '12345', + product_id: '123', + rating: 3, + review_body: 'Average product, expected much more.', + groupId: 'test-12345', + }, + context: { + externalId: [ + { + type: 'stormlyGroupId', + id: '91Yb32830', + }, + ], + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rudderstack.t.stormly.com/webhook/rudderstack/track', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic dummyApiKey', + }, + params: {}, + body: { + JSON: { + userId: '5136633649', + event: 'Product Reviewed', + properties: { + review_id: '12345', + product_id: '123', + rating: 3, + review_body: 'Average product, expected much more.', + }, + timestamp: '2022-01-20T13:39:21.032Z', + context: { + groupId: '91Yb32830', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'stormly', + description: 'Group call with userId, groupId and traits', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + ID: 'stormly123', + }, + message: { + type: 'group', + userId: '5136633649', + traits: { + name: 'Initech', + employees: 500, + headquarters: 'Redwood City, California, United States', + ceo: 'John Doe', + revenue: 70000000, + currency: 'USD', + groupId: '9230AUbd2138h', + }, + context: {}, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://rudderstack.t.stormly.com/webhook/rudderstack/group', + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic dummyApiKey', + }, + params: {}, + body: { + JSON: { + userId: '5136633649', + groupId: '9230AUbd2138h', + timestamp: '2022-01-20T13:39:21.032Z', + traits: { + name: 'Initech', + employees: 500, + headquarters: 'Redwood City, California, United States', + ceo: 'John Doe', + revenue: 70000000, + currency: 'USD', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/stormly/router/data.ts b/test/integrations/destinations/stormly/router/data.ts new file mode 100644 index 0000000000..1973173795 --- /dev/null +++ b/test/integrations/destinations/stormly/router/data.ts @@ -0,0 +1,101 @@ +export const data = [ + { + name: 'stormly', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { Config: { apiKey: 'dummyApiKey' }, ID: 'stormly123' }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + channel: 'web', + userId: '5136633649', + context: { traits: { name: 'John Doe', email: 'johndoe@gmail.com', age: 25 } }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + { + destination: { Config: { apiKey: 'dummyApiKey' }, ID: 'stormly123' }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + type: 'track', + event: 'Product Reviewed', + properties: { + review_id: '12345', + product_id: '123', + rating: 3, + review_body: 'Average product, expected much more.', + groupId: '91Yb32830', + }, + context: {}, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + destType: 'stormly', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + batchedRequest: { + body: { + FORM: {}, + JSON: { + timestamp: '2022-01-20T13:39:21.032Z', + traits: { age: 25, email: 'johndoe@gmail.com', name: 'John Doe' }, + userId: '5136633649', + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://rudderstack.t.stormly.com/webhook/rudderstack/identify', + files: {}, + headers: { Authorization: 'Basic dummyApiKey', 'Content-Type': 'application/json' }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + destination: { Config: { apiKey: 'dummyApiKey' }, ID: 'stormly123' }, + metadata: [{ jobId: 1, userId: 'u1' }], + statusCode: 200, + }, + { + destination: { Config: { apiKey: 'dummyApiKey' }, ID: 'stormly123' }, + batched: false, + error: 'Missing required value from "userIdOnly"', + metadata: [{ jobId: 2, userId: 'u1' }], + statTags: { + destType: 'STORMLY', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/the_trade_desk/common.ts b/test/integrations/destinations/the_trade_desk/common.ts new file mode 100644 index 0000000000..d792c7faae --- /dev/null +++ b/test/integrations/destinations/the_trade_desk/common.ts @@ -0,0 +1,44 @@ +const destType = 'the_trade_desk'; +const destTypeInUpperCase = 'THE_TRADE_DESK'; +const advertiserId = 'test-advertiser-id'; +const dataProviderId = 'rudderstack'; +const segmentName = 'test-segment'; +const sampleDestination = { + Config: { + advertiserId, + advertiserSecretKey: 'test-advertiser-secret-key', + dataServer: 'apac', + ttlInDays: 30, + audienceId: segmentName, + }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, +}; + +const sampleSource = { + job_id: 'test-job-id', + job_run_id: 'test-job-run-id', + task_run_id: 'test-task-run-id', + version: 'v1.40.4', +}; + +const sampleContext = { + destinationFields: 'daid, uid2', + externalId: [ + { + identifierType: 'tdid', + type: 'THE_TRADE_DESK-test-segment', + }, + ], + mappedToDestination: 'true', + sources: sampleSource, +}; + +export { + destType, + destTypeInUpperCase, + advertiserId, + dataProviderId, + segmentName, + sampleDestination, + sampleContext, +}; diff --git a/test/integrations/destinations/the_trade_desk/delivery/data.ts b/test/integrations/destinations/the_trade_desk/delivery/data.ts new file mode 100644 index 0000000000..320eb6dcfe --- /dev/null +++ b/test/integrations/destinations/the_trade_desk/delivery/data.ts @@ -0,0 +1,248 @@ +import { + destType, + destTypeInUpperCase, + advertiserId, + dataProviderId, + segmentName, + sampleDestination, +} from '../common'; + +beforeAll(() => { + process.env.THE_TRADE_DESK_DATA_PROVIDER_SECRET_KEY = 'mockedDataProviderSecretKey'; +}); + +afterAll(() => { + delete process.env.THE_TRADE_DESK_DATA_PROVIDER_SECRET_KEY; +}); + +export const data = [ + { + name: destType, + description: 'Successful delivery of Add/Remove IDs to/from Trade Desk', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://sin-data.adsrvr.org/data/advertiser', + headers: {}, + params: {}, + destinationConfig: sampleDestination.Config, + body: { + JSON: { + AdvertiserId: advertiserId, + DataProviderId: dataProviderId, + Items: [ + { + DAID: 'test-daid-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + UID2: 'test-uid2-1', + }, + { + DAID: 'test-daid-2', + Data: [ + { + Name: segmentName, + TTLInMinutes: 0, + }, + ], + }, + { + Data: [ + { + Name: segmentName, + TTLInMinutes: 0, + }, + ], + UID2: 'test-uid2-2', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: { + destinationResponse: { + response: {}, + status: 200, + }, + message: 'Request Processed Successfully', + status: 200, + }, + }, + }, + }, + }, + { + name: destType, + description: 'Error response from The Trade Desk due to invalid IDs', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://sin-data.adsrvr.org/data/advertiser', + headers: {}, + params: {}, + destinationConfig: sampleDestination.Config, + body: { + JSON: { + AdvertiserId: advertiserId, + DataProviderId: dataProviderId, + Items: [ + { + DAID: 'test-daid', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + UID2: 'test-invalid-uid2', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 400, + body: { + output: { + destinationResponse: { + response: { + FailedLines: [{ ErrorCode: 'MissingUserId', Message: 'Invalid UID2, item #2' }], + }, + status: 200, + }, + message: + 'Request failed with status: 200 due to {"FailedLines":[{"ErrorCode":"MissingUserId","Message":"Invalid UID2, item #2"}]}', + statTags: { + destType: destTypeInUpperCase, + destinationId: 'Non-determininable', + errorCategory: 'network', + errorType: 'aborted', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', + }, + status: 400, + }, + }, + }, + }, + }, + { + name: destType, + description: + 'Missing advertiser secret key in destination config from proxy request from server', + feature: 'dataDelivery', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://sin-data.adsrvr.org/data/advertiser', + headers: {}, + params: {}, + body: { + JSON: { + AdvertiserId: advertiserId, + DataProviderId: dataProviderId, + Items: [ + { + DAID: 'test-daid-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 400, + body: { + output: { + destinationResponse: '', + message: 'Advertiser secret key is missing in destination config. Aborting', + statTags: { + destType: destTypeInUpperCase, + destinationId: 'Non-determininable', + errorCategory: 'platform', + feature: 'dataDelivery', + implementation: 'native', + module: 'destination', + workspaceId: 'Non-determininable', + }, + status: 400, + }, + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/the_trade_desk/mocks.ts b/test/integrations/destinations/the_trade_desk/mocks.ts new file mode 100644 index 0000000000..ddcbebae88 --- /dev/null +++ b/test/integrations/destinations/the_trade_desk/mocks.ts @@ -0,0 +1,5 @@ +import config from '../../../../src/cdk/v2/destinations/the_trade_desk/config'; + +export const defaultMockFns = () => { + jest.replaceProperty(config, 'MAX_REQUEST_SIZE_IN_BYTES', 250); +}; diff --git a/test/integrations/destinations/the_trade_desk/network.ts b/test/integrations/destinations/the_trade_desk/network.ts new file mode 100644 index 0000000000..ed6bdf4c7d --- /dev/null +++ b/test/integrations/destinations/the_trade_desk/network.ts @@ -0,0 +1,106 @@ +import { destType, advertiserId, dataProviderId, segmentName } from './common'; + +export const networkCallsData = [ + { + httpReq: { + url: 'https://sin-data.adsrvr.org/data/advertiser', + data: { + AdvertiserId: advertiserId, + DataProviderId: dataProviderId, + Items: [ + { + DAID: 'test-daid-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + UID2: 'test-uid2-1', + }, + { + DAID: 'test-daid-2', + Data: [ + { + Name: segmentName, + TTLInMinutes: 0, + }, + ], + }, + { + Data: [ + { + Name: 'test-segment', + TTLInMinutes: 0, + }, + ], + UID2: 'test-uid2-2', + }, + ], + }, + params: { destination: destType }, + headers: { + TtdSignature: '8LqGha6I7e3duvhngEvhXoTden0=', + 'TtdSignature-dp': 'tLpf4t5xebsr9Xcqp9PjhOJX7p0=', + 'Content-Type': 'application/json', + 'User-Agent': 'RudderLabs', + }, + method: 'POST', + }, + httpRes: { + data: {}, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + url: 'https://sin-data.adsrvr.org/data/advertiser', + data: { + AdvertiserId: advertiserId, + DataProviderId: dataProviderId, + Items: [ + { + DAID: 'test-daid', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + UID2: 'test-invalid-uid2', + }, + ], + }, + params: { destination: destType }, + headers: { + TtdSignature: '9EIeoIGkRkV5oJHfGtoq1lwQl+M=', + 'TtdSignature-dp': 'ZpHWNd1uGvQAv/QW685SQT8tl1I=', + 'Content-Type': 'application/json', + 'User-Agent': 'RudderLabs', + }, + method: 'POST', + }, + httpRes: { + data: { FailedLines: [{ ErrorCode: 'MissingUserId', Message: 'Invalid UID2, item #2' }] }, + status: 200, + statusText: 'Ok', + }, + }, +]; diff --git a/test/integrations/destinations/the_trade_desk/router/data.ts b/test/integrations/destinations/the_trade_desk/router/data.ts new file mode 100644 index 0000000000..b02a80f563 --- /dev/null +++ b/test/integrations/destinations/the_trade_desk/router/data.ts @@ -0,0 +1,846 @@ +import { overrideDestination } from '../../../testUtils'; +import { defaultMockFns } from '../mocks'; +import { + destType, + destTypeInUpperCase, + advertiserId, + dataProviderId, + segmentName, + sampleDestination, + sampleContext, +} from '../common'; + +export const data = [ + { + name: destType, + description: 'Add IDs to the segment', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-1', + UID2: 'test-uid2-1', + }, + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: sampleDestination, + metadata: { + jobId: 1, + userId: 'u1', + }, + }, + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-2', + UID2: null, + }, + channel: 'sources', + context: sampleContext, + recordId: '2', + }, + destination: sampleDestination, + metadata: { + jobId: 2, + userId: 'u1', + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://sin-data.adsrvr.org/data/advertiser', + headers: {}, + params: {}, + body: { + JSON: { + DataProviderId: dataProviderId, + AdvertiserId: advertiserId, + Items: [ + { + DAID: 'test-daid-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + UID2: 'test-uid2-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + DAID: 'test-daid-2', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 1, + userId: 'u1', + }, + { + jobId: 2, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: sampleDestination, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, + { + name: destType, + description: + 'Add/Remove IDs to/from the segment and split into multiple requests based on size', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-1', + UID2: 'test-uid2-1', + }, + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: sampleDestination, + metadata: { + jobId: 1, + userId: 'u1', + }, + }, + { + message: { + type: 'record', + action: 'delete', + fields: { + DAID: 'test-daid-2', + UID2: 'test-uid2-2', + }, + channel: 'sources', + context: sampleContext, + recordId: '2', + }, + destination: sampleDestination, + metadata: { + jobId: 2, + userId: 'u1', + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://sin-data.adsrvr.org/data/advertiser', + headers: {}, + params: {}, + body: { + JSON: { + DataProviderId: dataProviderId, + AdvertiserId: advertiserId, + Items: [ + { + DAID: 'test-daid-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + UID2: 'test-uid2-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + DAID: 'test-daid-2', + Data: [ + { + Name: segmentName, + TTLInMinutes: 0, + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://sin-data.adsrvr.org/data/advertiser', + headers: {}, + params: {}, + body: { + JSON: { + DataProviderId: dataProviderId, + AdvertiserId: advertiserId, + Items: [ + { + UID2: 'test-uid2-2', + Data: [ + { + Name: segmentName, + TTLInMinutes: 0, + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 1, + userId: 'u1', + }, + { + jobId: 2, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: sampleDestination, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, + { + name: destType, + description: + 'Missing segment name (audienceId) in the config (segment name will be populated from vdm)', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-1', + UID2: 'test-uid2-1', + }, + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: overrideDestination(sampleDestination, { audienceId: '' }), + metadata: { + jobId: 1, + userId: 'u1', + }, + }, + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-2', + UID2: 'test-uid2-2', + }, + channel: 'sources', + context: sampleContext, + recordId: '2', + }, + destination: overrideDestination(sampleDestination, { audienceId: '' }), + metadata: { + jobId: 2, + userId: 'u1', + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + metadata: [ + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, + ], + statusCode: 400, + error: 'Segment name is not present. Aborting', + statTags: { + destType: destTypeInUpperCase, + implementation: 'cdkV2', + feature: 'router', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'configuration', + }, + }, + ], + }, + }, + }, + }, + { + name: destType, + description: 'Missing advertiser ID in the config', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-1', + UID2: 'test-uid2-1', + }, + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: overrideDestination(sampleDestination, { advertiserId: '' }), + metadata: { + jobId: 1, + userId: 'u1', + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + metadata: [{ jobId: 1, userId: 'u1' }], + statusCode: 400, + error: 'Advertiser ID is not present. Aborting', + statTags: { + destType: destTypeInUpperCase, + implementation: 'cdkV2', + feature: 'router', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'configuration', + }, + }, + ], + }, + }, + }, + }, + { + name: destType, + description: 'Missing advertiser secret key in the config', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-1', + UID2: 'test-uid2-1', + }, + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: overrideDestination(sampleDestination, { advertiserSecretKey: '' }), + metadata: { + jobId: 1, + userId: 'u1', + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + metadata: [{ jobId: 1, userId: 'u1' }], + statusCode: 400, + error: 'Advertiser Secret Key is not present. Aborting', + statTags: { + destType: destTypeInUpperCase, + implementation: 'cdkV2', + feature: 'router', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'configuration', + }, + }, + ], + }, + }, + }, + }, + { + name: destType, + description: 'TTL is out of range', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-1', + UID2: 'test-uid2-1', + }, + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: overrideDestination(sampleDestination, { ttlInDays: 190 }), + metadata: { + jobId: 1, + userId: 'u1', + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + metadata: [{ jobId: 1, userId: 'u1' }], + statusCode: 400, + error: 'TTL is out of range. Allowed values are 0 to 180 days', + statTags: { + destType: destTypeInUpperCase, + implementation: 'cdkV2', + feature: 'router', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'configuration', + }, + }, + ], + }, + }, + }, + }, + { + name: destType, + description: 'Invalid action type', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-1', + UID2: 'test-uid2-1', + }, + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: sampleDestination, + metadata: { + jobId: 1, + }, + }, + { + message: { + type: 'record', + action: 'update', + fields: { + DAID: 'test-daid-2', + UID2: null, + }, + channel: 'sources', + context: sampleContext, + recordId: '2', + }, + destination: sampleDestination, + metadata: { + jobId: 2, + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://sin-data.adsrvr.org/data/advertiser', + headers: {}, + params: {}, + body: { + JSON: { + DataProviderId: dataProviderId, + AdvertiserId: advertiserId, + Items: [ + { + DAID: 'test-daid-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + { + UID2: 'test-uid2-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 1, + }, + ], + batched: true, + statusCode: 200, + destination: sampleDestination, + }, + { + batched: false, + metadata: [{ jobId: 2 }], + statusCode: 400, + error: 'Invalid action type', + statTags: { + destType: destTypeInUpperCase, + implementation: 'cdkV2', + feature: 'router', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + destination: sampleDestination, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, + { + name: destType, + description: 'Empty fields in the message', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + fields: {}, + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: sampleDestination, + metadata: { + jobId: 1, + }, + }, + { + message: { + type: 'record', + action: 'insert', + fields: { + DAID: 'test-daid-1', + }, + channel: 'sources', + context: sampleContext, + recordId: '2', + }, + destination: sampleDestination, + metadata: { + jobId: 2, + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://sin-data.adsrvr.org/data/advertiser', + headers: {}, + params: {}, + body: { + JSON: { + DataProviderId: dataProviderId, + AdvertiserId: advertiserId, + Items: [ + { + DAID: 'test-daid-1', + Data: [ + { + Name: segmentName, + TTLInMinutes: 43200, + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 2, + }, + ], + batched: true, + statusCode: 200, + destination: sampleDestination, + }, + { + batched: false, + metadata: [{ jobId: 1 }], + statusCode: 400, + error: 'Fields cannot be empty', + statTags: { + destType: destTypeInUpperCase, + implementation: 'cdkV2', + feature: 'router', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + destination: sampleDestination, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, + { + name: destType, + description: '`fields` is missing', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'record', + action: 'insert', + channel: 'sources', + context: sampleContext, + recordId: '1', + }, + destination: sampleDestination, + metadata: { + jobId: 1, + }, + }, + ], + destType, + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + metadata: [{ jobId: 1 }], + statusCode: 400, + error: 'Fields cannot be empty', + statTags: { + destType: destTypeInUpperCase, + implementation: 'cdkV2', + feature: 'router', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + destination: sampleDestination, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, +]; diff --git a/test/integrations/destinations/tiktok_ads/mocks.ts b/test/integrations/destinations/tiktok_ads/mocks.ts new file mode 100644 index 0000000000..a5d8fc4a63 --- /dev/null +++ b/test/integrations/destinations/tiktok_ads/mocks.ts @@ -0,0 +1,5 @@ +import config from '../../../../src/v0/destinations/tiktok_ads/config'; + +export const defaultMockFns = () => { + jest.replaceProperty(config, 'maxBatchSizeV2', 3); +}; diff --git a/test/integrations/destinations/tiktok_ads/processor/data.ts b/test/integrations/destinations/tiktok_ads/processor/data.ts index 453a875af2..9d7c3a8d10 100644 --- a/test/integrations/destinations/tiktok_ads/processor/data.ts +++ b/test/integrations/destinations/tiktok_ads/processor/data.ts @@ -89,7 +89,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -114,7 +114,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'CompletePayment', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -256,7 +256,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -281,7 +281,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'InitiateCheckout', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -418,7 +418,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -443,7 +443,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'AddToWishlist', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -581,7 +581,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -697,7 +697,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -722,7 +722,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'AddToWishlist', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -863,7 +863,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -888,7 +888,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'AddToWishlist', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -1028,7 +1028,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: true, }, }, @@ -1053,7 +1053,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'Subscribe', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -1192,7 +1192,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -1217,7 +1217,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'AddPaymentInfo', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -1355,7 +1355,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -1467,7 +1467,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -1580,7 +1580,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -1605,7 +1605,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'AddPaymentInfo', event_id: '1616318632825_357', properties: { @@ -1743,7 +1743,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -1768,7 +1768,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'SubmitForm', event_id: '16163186328257', timestamp: '2020-09-17T19:49:27Z', @@ -1894,7 +1894,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -1919,7 +1919,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'SubmitForm', event_id: '16163186328257', timestamp: '2020-09-17T19:49:27Z', @@ -2040,7 +2040,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -2065,7 +2065,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'Contact', event_id: '16163186328257', timestamp: '2020-09-17T19:49:27Z', @@ -2204,7 +2204,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -2318,7 +2318,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -2343,7 +2343,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'CompletePayment', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -2482,7 +2482,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -2507,7 +2507,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'PlaceAnOrder', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -2650,7 +2650,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: true, }, }, @@ -2675,7 +2675,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'Subscribe', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -2819,7 +2819,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: true, }, }, @@ -2844,7 +2844,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'Subscribe', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -2984,7 +2984,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -3009,7 +3009,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'CompletePayment', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -3148,7 +3148,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, eventsToStandard: [ { @@ -3187,7 +3187,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'download', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -3249,7 +3249,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'search', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -3388,7 +3388,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, eventsToStandard: [ { @@ -3508,7 +3508,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, eventsToStandard: [ { @@ -3543,7 +3543,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'download', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -3681,7 +3681,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: true, eventsToStandard: [ { @@ -3716,7 +3716,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'download', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -3854,7 +3854,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: true, eventsToStandard: [ { @@ -3889,7 +3889,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'download', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -4048,7 +4048,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -4073,7 +4073,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'CompletePayment', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -4219,7 +4219,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -4244,7 +4244,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'CompletePayment', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -4394,7 +4394,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -4419,7 +4419,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'CompletePayment', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -4541,6 +4541,7 @@ export const data = [ category: 'Games', url: 'https://www.website.com/product/path', image_url: 'https://www.website.com/product/path.jpg', + brand: 'brand_name', }, { product_id: '345', @@ -4573,7 +4574,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: '{{PIXEL-CODE}}', hashUserProperties: false, }, }, @@ -4598,7 +4599,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: '{{PIXEL-CODE}}', event: 'CompletePayment', event_id: '1616318632825_357', timestamp: '2020-09-17T19:49:27Z', @@ -4660,4 +4661,2213 @@ export const data = [ }, }, }, + { + name: 'tiktok_ads', + description: 'Test 29 -> custom_event Pass', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + 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 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'custom_event', + properties: { + eventId: '1616318632825_357', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + context: { + ad: { + callback: '123ATXSfe', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone_number: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + sendCustomEvents: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/pixel/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + pixel_code: '{{PIXEL-CODE}}', + event: 'custom_event', + event_id: '1616318632825_357', + timestamp: '2020-09-17T19:49:27Z', + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + context: { + ad: { + callback: 'dummyclickId', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone_number: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + partner_name: 'RudderStack', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 30 -> custom_event Failure case for flag set as false', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + 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 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'custom_event', + properties: { + eventId: '1616318632825_357', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + context: { + ad: { + callback: '123ATXSfe', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone_number: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + sendCustomEvents: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: + 'Event name (custom_event) is not valid, must be mapped to one of standard events', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'TIKTOK_ADS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 31 -> Camel Case Custom Event Pass', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + 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 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'customEvent', + properties: { + eventId: '1616318632825_357', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + context: { + ad: { + callback: '123ATXSfe', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone_number: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + sendCustomEvents: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/pixel/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + pixel_code: '{{PIXEL-CODE}}', + event: 'customEvent', + event_id: '1616318632825_357', + timestamp: '2020-09-17T19:49:27Z', + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + context: { + ad: { + callback: 'dummyclickId', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone_number: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + partner_name: 'RudderStack', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 32 -> V2 -> Camel Case Custom Event Pass', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + traits: { + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'customEvent', + properties: { + eventId: '1616318632825_357', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + url: 'http://demo.mywebsite.com/purchase', + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + version: 'v2', + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + sendCustomEvents: true, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source: 'web', + event_source_id: '{{PIXEL-CODE}}', + partner_name: 'RudderStack', + data: [ + { + event: 'customEvent', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + content_type: 'product', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + }, + user: { + locale: 'en-US', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: + 'Test 33 -> V2 -> Event mapped to one standard event with contents present as it is in properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + traits: { + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'addToCart', + properties: { + eventId: '1616318632825_357', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + version: 'v2', + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + sendCustomEvents: true, + eventsToStandard: [ + { + from: 'addToCart', + to: 'download', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source: 'web', + event_source_id: '{{PIXEL-CODE}}', + partner_name: 'RudderStack', + data: [ + { + event: 'download', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + content_type: 'product', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + locale: 'en-US', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 34 -> V2 -> Event mapped to multiple standard events and no phone', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + traits: { + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'addToCart', + properties: { + eventId: '1616318632825_357', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + version: 'v2', + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + sendCustomEvents: true, + eventsToStandard: [ + { + from: 'addToCart', + to: 'download', + }, + { + from: 'AddToCart', + to: 'AddToWishlist', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source: 'web', + event_source_id: '{{PIXEL-CODE}}', + partner_name: 'RudderStack', + data: [ + { + event: 'download', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + content_type: 'product', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + }, + user: { + locale: 'en-US', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + { + event: 'AddToWishlist', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + content_type: 'product', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + }, + user: { + locale: 'en-US', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 35 -> V2 -> array of external_id and phone number', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + externalId: [ + { + type: 'tiktokExternalId', + id: [ + 'f0e388f53921a51f0bb0fc8a2944109ec188b5', + '1f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ], + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'addToCart', + properties: { + eventId: '1616318632825_357', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + phone: ['+12345432', '+134234325'], + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + version: 'v2', + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + sendCustomEvents: true, + eventsToStandard: [ + { + from: 'addToCart', + to: 'download', + }, + { + from: 'AddToCart', + to: 'AddToWishlist', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source: 'web', + event_source_id: '{{PIXEL-CODE}}', + partner_name: 'RudderStack', + data: [ + { + event: 'download', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + content_type: 'product', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone: ['+12345432', '+134234325'], + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: [ + 'f0e388f53921a51f0bb0fc8a2944109ec188b5', + '1f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ], + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + { + event: 'AddToWishlist', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + content_type: 'product', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone: ['+12345432', '+134234325'], + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: [ + 'f0e388f53921a51f0bb0fc8a2944109ec188b5', + '1f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ], + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 36-> V2 -> Event not standard and no custom events allowed', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + traits: { + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + 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 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + locale: 'en-US', + ip: '13.57.97.131', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'Product Added to Wishlist1', + properties: { + eventId: '1616318632825_357', + testEventCode: 'sample rudder test_event_code', + context: { + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone_number: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + }, + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: + 'Event name (product added to wishlist1) is not valid, must be mapped to one of standard events', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'TIKTOK_ADS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 37-> V2 -> No Message type', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + event: 'Product Added to Wishlist1', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Event type is required', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'TIKTOK_ADS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 38-> V2 -> Event not found', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Event name is required', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'TIKTOK_ADS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 39-> V2 -> Access Token not found', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + pixelCode: 'configuration', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Access Token not found. Aborting', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'TIKTOK_ADS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 40-> V2 -> Pixel Code not found. Aborting', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Pixel Code not found. Aborting', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'TIKTOK_ADS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 41 -> V2 -> One of standard event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + traits: { + email: 'abc@xyz.com', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + externalId: [ + { + type: 'tiktokExternalId', + id: [ + 'f0e388f53921a51f0bb0fc8a2944109ec188b5', + '1f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ], + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'viewcontent', + properties: { + eventId: '1616318632825_357', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + phone: ['+12345432', '+134234325'], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + version: 'v2', + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: true, + sendCustomEvents: false, + eventsToStandard: [ + { + from: 'addToCart', + to: 'download', + }, + { + from: 'AddToCart', + to: 'AddToWishlist', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source: 'web', + event_source_id: '{{PIXEL-CODE}}', + partner_name: 'RudderStack', + data: [ + { + event: 'ViewContent', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + content_type: 'product', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + email: 'ee278943de84e5d6243578ee1a1057bcce0e50daad9755f45dfa64b60b13bc5d', + external_id: [ + '3e0c7a51acd326b87f29596e38c22cbeb732df37bc5c8f5f524c14b55d3472db', + 'f8be04e62f5a3eba31c8b9380843666f28f3ab5f44a380f47fac04e9ce7b2168', + ], + ip: '13.57.97.131', + phone: [ + '49a15e38bdc2572d362a924c2ddd100baed0fe29db44270d3700fcef03b18c39', + '5a6a7a09b18278e220312ce26d711ff7c8263d0965ee3b1d26b1b6f0ac7e71b3', + ], + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 42 -> V2 -> One of standard event and contents from products', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + traits: { + email: 'abc@xyz.com', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + externalId: [ + { + type: 'tiktokExternalId', + id: [ + 'f0e388f53921a51f0bb0fc8a2944109ec188b5', + '1f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ], + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'viewcontent', + properties: { + order_id: 1234, + shop_id: 4567, + description: 'Viewed games', + query: 'New age games', + contentType: 'product_group', + eventId: '1616318632825_357', + products: [ + { + product_id: 123, + sku: 'G-32', + name: 'Monopoly', + price: 14, + quantity: 1, + contentType: 'product_group', + category: 'Games', + brand: 'adidas', + image_url: 'https://www.website.com/product/path.jpg', + }, + { + product_id: 345, + sku: 'F-32', + name: 'UNO', + price: 3.45, + contentType: 'product_group', + quantity: 2, + }, + ], + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + phone: ['+12345432', '+134234325'], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + version: 'v2', + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: true, + sendCustomEvents: false, + eventsToStandard: [ + { + from: 'addToCart', + to: 'download', + }, + { + from: 'AddToCart', + to: 'AddToWishlist', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source: 'web', + event_source_id: '{{PIXEL-CODE}}', + partner_name: 'RudderStack', + data: [ + { + event: 'ViewContent', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + order_id: '1234', + shop_id: '4567', + description: 'Viewed games', + query: 'New age games', + content_type: 'product_group', + contents: [ + { + price: 14, + quantity: 1, + content_category: 'Games', + content_id: '123', + content_name: 'Monopoly', + }, + { + price: 3.45, + quantity: 2, + content_id: '345', + content_name: 'UNO', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + email: 'ee278943de84e5d6243578ee1a1057bcce0e50daad9755f45dfa64b60b13bc5d', + external_id: [ + '3e0c7a51acd326b87f29596e38c22cbeb732df37bc5c8f5f524c14b55d3472db', + 'f8be04e62f5a3eba31c8b9380843666f28f3ab5f44a380f47fac04e9ce7b2168', + ], + ip: '13.57.97.131', + phone: [ + '49a15e38bdc2572d362a924c2ddd100baed0fe29db44270d3700fcef03b18c39', + '5a6a7a09b18278e220312ce26d711ff7c8263d0965ee3b1d26b1b6f0ac7e71b3', + ], + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 43 -> V2 -> Contents present as object in properties', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + traits: { + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'addToCart', + properties: { + eventId: '1616318632825_357', + contents: { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + clickId: 'dummyclickId', + currency: 'USD', + value: 46, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + version: 'v2', + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + sendCustomEvents: true, + eventsToStandard: [ + { + from: 'addToCart', + to: 'download', + }, + ], + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source: 'web', + event_source_id: '{{PIXEL-CODE}}', + partner_name: 'RudderStack', + data: [ + { + event: 'download', + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + content_type: 'product', + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + ], + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + locale: 'en-US', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: 'Test 44 -> Events 2.0 Event type identify not suported', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + timestamp: '2020-09-17T19:49:27Z', + type: 'identify', + event: 'contact', + properties: {}, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Event type identify is not supported', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'TIKTOK_ADS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads', + description: + 'Test 45-> events 1.0 build contents from properties.product.$ where length of prodicts is 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + 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 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'tiktokExternalId', + id: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + products: [], + currency: 'USD', + value: 46, + context: { + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone_number: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + }, + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: '{{PIXEL-CODE}}', + hashUserProperties: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/pixel/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + pixel_code: '{{PIXEL-CODE}}', + event: 'CompletePayment', + event_id: '1616318632825_357', + timestamp: '2020-09-17T19:49:27Z', + properties: { + currency: 'USD', + value: 46, + contents: [], + }, + context: { + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + phone_number: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'dd6ff77f54e2106661089bae4d40cdb600979bf7edc9eb65c0942ba55c7c2d7f', + external_id: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + }, + partner_name: 'RudderStack', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, ]; diff --git a/test/integrations/destinations/tiktok_ads/router/data.ts b/test/integrations/destinations/tiktok_ads/router/data.ts index a8c233c7a8..7246b8c04a 100644 --- a/test/integrations/destinations/tiktok_ads/router/data.ts +++ b/test/integrations/destinations/tiktok_ads/router/data.ts @@ -1,9 +1,9 @@ import { FEATURES } from '../../../../../src/v0/util/tags'; - +import { defaultMockFns } from '../mocks'; export const data = [ { name: 'tiktok_ads', - description: 'Test 0', + description: 'Test 0 -> Events 1.0 Multiple events in single batch', feature: FEATURES.ROUTER, module: 'destination', version: 'v0', @@ -22,21 +22,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, userAgent: 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', ip: '13.57.97.131', locale: 'en-US', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, externalId: [ { type: 'tiktokExternalId', @@ -54,18 +46,8 @@ export const data = [ eventId: '1616318632825_357', clickId: 'dummyClickId', contents: [ - { - price: 8, - quantity: 2, - content_type: 'socks', - content_id: '1077218', - }, - { - price: 30, - quantity: 1, - content_type: 'dress', - content_id: '1197218', - }, + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, ], currency: 'USD', value: 46.0, @@ -87,12 +69,13 @@ export const data = [ sentAt: '2019-10-14T09:03:22.563Z', }, metadata: { - jobId: 5, + jobId: 1, + userId: 'u1', }, destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: 'dummyPixelCode', hashUserProperties: false, }, }, @@ -108,21 +91,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, userAgent: 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', locale: 'en-US', ip: '13.57.97.131', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, externalId: [ { type: 'tiktokExternalId', @@ -150,18 +125,8 @@ export const data = [ }, }, contents: [ - { - price: 8, - quantity: 2, - content_type: 'socks', - content_id: '1077218', - }, - { - price: 30, - quantity: 1, - content_type: 'dress', - content_id: '1197218', - }, + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, ], currency: 'USD', value: 46.0, @@ -172,12 +137,13 @@ export const data = [ sentAt: '2019-10-14T09:03:22.563Z', }, metadata: { - jobId: 1, + jobId: 2, + userId: 'u1', }, destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: 'dummyPixelCode', hashUserProperties: false, }, }, @@ -193,21 +159,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, userAgent: 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', locale: 'en-US', ip: '13.57.97.131', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, externalId: [ { type: 'tiktokExternalId', @@ -238,18 +196,8 @@ export const data = [ ip: '13.57.97.131', }, contents: [ - { - price: 8, - quantity: 2, - content_type: 'socks', - content_id: '1077218', - }, - { - price: 30, - quantity: 1, - content_type: 'dress', - content_id: '1197218', - }, + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, ], currency: 'USD', value: 46.0, @@ -260,12 +208,13 @@ export const data = [ sentAt: '2019-10-14T09:03:22.563Z', }, metadata: { - jobId: 2, + jobId: 3, + userId: 'u1', }, destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: 'dummyPixelCode', hashUserProperties: false, }, }, @@ -281,21 +230,13 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, userAgent: 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', locale: 'en-US', ip: '13.57.97.131', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, + os: { name: '', version: '' }, + screen: { density: 2 }, externalId: [ { type: 'tiktokExternalId', @@ -326,18 +267,8 @@ export const data = [ ip: '13.57.97.131', }, contents: [ - { - price: 8, - quantity: 2, - content_type: 'socks', - content_id: '1077218', - }, - { - price: 30, - quantity: 1, - content_type: 'dress', - content_id: '1197218', - }, + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, ], currency: 'USD', value: 46.0, @@ -349,11 +280,12 @@ export const data = [ }, metadata: { jobId: 4, + userId: 'u1', }, destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: 'dummyPixelCode', hashUserProperties: false, }, }, @@ -382,7 +314,7 @@ export const data = [ params: {}, body: { JSON: { - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: 'dummyPixelCode', partner_name: 'RudderStack', batch: [ { @@ -392,12 +324,7 @@ export const data = [ timestamp: '2020-09-17T19:49:27Z', properties: { contents: [ - { - price: 8, - quantity: 2, - content_type: 'socks', - content_id: '1077218', - }, + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, { price: 30, quantity: 1, @@ -409,9 +336,7 @@ export const data = [ value: 46, }, context: { - ad: { - callback: 'dummyClickId', - }, + ad: { callback: 'dummyClickId' }, page: { url: 'http://demo.mywebsite.com/purchase', referrer: 'http://demo.mywebsite.com', @@ -454,12 +379,7 @@ export const data = [ properties: { value: 46, contents: [ - { - price: 8, - quantity: 2, - content_id: '1077218', - content_type: 'socks', - }, + { price: 8, quantity: 2, content_id: '1077218', content_type: 'socks' }, { price: 30, quantity: 1, @@ -495,12 +415,7 @@ export const data = [ properties: { value: 46, contents: [ - { - price: 8, - quantity: 2, - content_id: '1077218', - content_type: 'socks', - }, + { price: 8, quantity: 2, content_id: '1077218', content_type: 'socks' }, { price: 30, quantity: 1, @@ -536,12 +451,7 @@ export const data = [ properties: { value: 46, contents: [ - { - price: 8, - quantity: 2, - content_id: '1077218', - content_type: 'socks', - }, + { price: 8, quantity: 2, content_id: '1077218', content_type: 'socks' }, { price: 30, quantity: 1, @@ -561,17 +471,21 @@ export const data = [ files: {}, }, metadata: [ - { - jobId: 5, - }, { jobId: 1, + userId: 'u1', }, { jobId: 2, + userId: 'u1', + }, + { + jobId: 3, + userId: 'u1', }, { jobId: 4, + userId: 'u1', }, ], batched: true, @@ -579,7 +493,7 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: 'dummyPixelCode', hashUserProperties: false, }, }, @@ -591,7 +505,7 @@ export const data = [ }, { name: 'tiktok_ads', - description: 'Test 1', + description: 'Test 1 -> Events 1.0 Single Event inside batch', feature: FEATURES.ROUTER, module: 'destination', version: 'v0', @@ -610,27 +524,14 @@ export const data = [ namespace: 'com.rudderlabs.javascript', version: '1.0.0', }, - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.0.0', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' }, userAgent: 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', locale: 'en-US', ip: '13.57.97.131', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, - externalId: [ - { - type: 'tiktokExternalId', - id: '1234', - }, - ], + os: { name: '', version: '' }, + screen: { density: 2 }, + externalId: [{ type: 'tiktokExternalId', id: '1234' }], }, messageId: '84e26acc-56a5-4835-8233-591137fca468', session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', @@ -646,27 +547,14 @@ export const data = [ url: 'http://demo.mywebsite.com/purchase', referrer: 'http://demo.mywebsite.com', }, - user: { - phone_number: '+858987675687', - email: 'sample@sample.com', - }, + user: { phone_number: '+858987675687', email: 'sample@sample.com' }, userAgent: 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', ip: '13.57.97.131', }, contents: [ - { - price: 8, - quantity: 2, - content_type: 'socks', - content_id: '1077218', - }, - { - price: 30, - quantity: 1, - content_type: 'dress', - content_id: '1197218', - }, + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, ], currency: 'USD', value: 46.0, @@ -678,11 +566,12 @@ export const data = [ }, metadata: { jobId: 3, + userId: 'u1', }, destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: 'dummyPixelCode', hashUserProperties: true, }, }, @@ -723,22 +612,12 @@ export const data = [ }, event: 'AddToWishlist', event_id: '1616318632825_357', - pixel_code: 'A1T8T4UYGVIQA8ORZMX9', + pixel_code: 'dummyPixelCode', partner_name: 'RudderStack', properties: { contents: [ - { - content_id: '1077218', - content_type: 'socks', - price: 8, - quantity: 2, - }, - { - content_id: '1197218', - content_type: 'dress', - price: 30, - quantity: 1, - }, + { content_id: '1077218', content_type: 'socks', price: 8, quantity: 2 }, + { content_id: '1197218', content_type: 'dress', price: 30, quantity: 1 }, ], currency: 'USD', value: 46, @@ -764,13 +643,14 @@ export const data = [ destination: { Config: { accessToken: 'dummyAccessToken', - pixelCode: 'A1T8T4UYGVIQA8ORZMX9', + pixelCode: 'dummyPixelCode', hashUserProperties: true, }, }, metadata: [ { jobId: 3, + userId: 'u1', }, ], statusCode: 200, @@ -780,4 +660,2144 @@ export const data = [ }, }, }, + { + name: 'tiktok_ads', + description: + 'Test 2 -> Events 2.0 Single event is mapped to multiple tiktok event in config and exceeding max batch size', + feature: FEATURES.ROUTER, + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id5' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 1, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id1' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'addToCart', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id2' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 3, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id4' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 4, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + destType: 'tiktok_ads', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id5', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id1', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id1', + }, + event: 'download', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + userId: 'u1', + }, + { + jobId: 2, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id2', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id4', + }, + event: 'CompletePayment', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 3, + userId: 'u1', + }, + { + jobId: 4, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'tiktok_ads', + description: + 'Test 3 -> Events 2.0 Single event is mapped to single tiktok event in config and over the max batch limit', + feature: FEATURES.ROUTER, + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id5' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 1, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id1' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id2' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 3, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id4' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 4, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + destType: 'tiktok_ads', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id5', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id1', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id2', + }, + event: 'CompletePayment', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + userId: 'u1', + }, + { + jobId: 2, + userId: 'u1', + }, + { + jobId: 3, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id4', + }, + event: 'CompletePayment', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 4, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'tiktok_ads', + description: 'Test 4 -> One input event is invalid with one event to multiple events', + feature: FEATURES.ROUTER, + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id5' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 1, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id1' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'abc', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id2' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 3, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id4' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 4, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + destType: 'tiktok_ads', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id5', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id2', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id4', + }, + event: 'CompletePayment', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + userId: 'u1', + }, + { + jobId: 3, + userId: 'u1', + }, + { + jobId: 4, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + batched: false, + destination: { + Config: { + accessToken: 'dummyAccessToken', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + hashUserProperties: false, + pixelCode: 'dummyPixelCode', + version: 'v2', + }, + }, + error: 'Event name (abc) is not valid, must be mapped to one of standard events', + metadata: [ + { + jobId: 2, + userId: 'u1', + }, + ], + statTags: { + destType: 'TIKTOK_ADS', + feature: 'router', + implementation: 'native', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + statusCode: 400, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'tiktok_ads', + description: 'Test 5 -> Some input events are test events with one event to multiple events', + feature: FEATURES.ROUTER, + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id5' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 1, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id1' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'addToCart', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id2' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + testEventCode: 'Some test event code for testing setup', + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 3, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id4' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 4, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + destType: 'tiktok_ads', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { + url: 'http://demo.mywebsite.com/purchase', + referrer: 'http://demo.mywebsite.com', + }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id5', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id1', + }, + event: 'CompletePayment', + }, + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id1', + }, + event: 'download', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + userId: 'u1', + }, + { + jobId: 2, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id4', + }, + event: 'CompletePayment', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 4, + userId: 'u1', + }, + ], + batched: true, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + test_event_code: 'Some test event code for testing setup', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id2', + }, + event: 'CompletePayment', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 3, + userId: 'u1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, + { + name: 'tiktok_ads', + description: 'Test 6 -> All input events are test events', + feature: FEATURES.ROUTER, + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id5' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + testEventCode: 'TEST_EVENT_CODE', + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 1, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + message: { + anonymousId: '21e13f4bc7ceddad', + channel: 'web', + context: { + userAgent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + ip: '13.57.97.131', + locale: 'en-US', + externalId: [{ type: 'tiktokExternalId', id: 'id2' }], + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + timestamp: '2020-09-17T19:49:27Z', + type: 'track', + event: 'checkout step completed', + properties: { + testEventCode: 'TEST_EVENT_CODE', + eventId: '1616318632825_357', + clickId: 'dummyClickId', + contents: [ + { price: 8, quantity: 2, content_type: 'socks', content_id: '1077218' }, + { price: 30, quantity: 1, content_type: 'dress', content_id: '1197218' }, + ], + currency: 'USD', + value: 46, + url: 'http://demo.mywebsite.com/purchase', + phone: '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + email: 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + userId: 'u1', + }, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + destType: 'tiktok_ads', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + test_event_code: 'TEST_EVENT_CODE', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id5', + }, + event: 'CompletePayment', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 1, + userId: 'u1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + eventsToStandard: [ + { from: 'addToCart', to: 'CompletePayment' }, + { from: 'addToCart', to: 'download' }, + ], + }, + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/event/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_source_id: 'dummyPixelCode', + event_source: 'web', + partner_name: 'RudderStack', + test_event_code: 'TEST_EVENT_CODE', + data: [ + { + event_id: '1616318632825_357', + event_time: 1600372167, + properties: { + contents: [ + { + price: 8, + quantity: 2, + content_type: 'socks', + content_id: '1077218', + }, + { + price: 30, + quantity: 1, + content_type: 'dress', + content_id: '1197218', + }, + ], + content_type: 'product', + currency: 'USD', + value: 46, + }, + page: { url: 'http://demo.mywebsite.com/purchase' }, + user: { + locale: 'en-US', + email: + 'f0e388f53921a51f0bb0fc8a2944109ec188b59172935d8f23020b1614cc44bc', + phone: + '2f9d2b4df907e5c9a7b3434351b55700167b998a83dc479b825096486ffcf4ea', + ip: '13.57.97.131', + user_agent: + 'Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion', + external_id: 'id2', + }, + event: 'CompletePayment', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 2, + userId: 'u1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accessToken: 'dummyAccessToken', + pixelCode: 'dummyPixelCode', + hashUserProperties: false, + version: 'v2', + }, + }, + }, + ], + }, + }, + }, + mockFns: defaultMockFns, + }, ]; diff --git a/test/integrations/destinations/tiktok_ads_offline_events/processor/data.ts b/test/integrations/destinations/tiktok_ads_offline_events/processor/data.ts index a4ff796f37..2b9341b851 100644 --- a/test/integrations/destinations/tiktok_ads_offline_events/processor/data.ts +++ b/test/integrations/destinations/tiktok_ads_offline_events/processor/data.ts @@ -1,618 +1,617 @@ export const data = [ - { - "name": "tiktok_ads_offline_events", - "description": "Test 0", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "message": { - "type": "Identify", - "userId": "yash001", - "originalTimestamp": "2019-10-14T09:03:17.562Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Event type identify is not supported", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "TIKTOK_ADS_OFFLINE_EVENTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "tiktok_ads_offline_events", - "description": "Test 1", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": false - } - }, - "message": { - "event": "subscribe", - "context": { - "traits": { - "phone": "c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646" - }, - "channel": "web" - }, - "properties": { - "eventSetId": "7181537436256731137", - "eventId": "1616318632825_352", - "order_id": "abc_xyz", - "shop_id": "123abc", - "currency": "USD", - "value": 46, - "price": 8, - "quantity": 2, - "content_type": "product1234", - "product_id": "1077218", - "name": "socks", - "category": "Men's cloth" - }, - "type": "track", - "userId": "eventIdn01", - "timestamp": "2023-01-03" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/offline/track/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event_set_id": "7181537436256731137", - "event_id": "1616318632825_352", - "timestamp": "2023-01-03", - "properties": { - "order_id": "abc_xyz", - "shop_id": "123abc", - "currency": "USD", - "value": 46, - "event_channel": "web", - "contents": [ - { - "content_name": "socks", - "content_type": "product1234", - "content_category": "Men's cloth", - "content_id": "1077218", - "price": 8, - "quantity": 2 - } - ] - }, - "event": "Subscribe", - "partner_name": "RudderStack", - "context": { - "user": { - "phone_numbers": [ - "c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646" - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "event_set_id": "7181537436256731137", - "userId": "" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "tiktok_ads_offline_events", - "description": "Test 2", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "message": { - "event": "subscribe", - "context": { - "traits": { - "phone": "1234567890" - }, - "channel": "web" - }, - "properties": { - "eventSetId": "7181537436256731137", - "eventId": "1616318632825_352", - "prop1": "val1" - }, - "type": "track", - "userId": "eventIdn01", - "timestamp": "2023-01-03" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/offline/track/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event_set_id": "7181537436256731137", - "event_id": "1616318632825_352", - "timestamp": "2023-01-03", - "properties": { - "event_channel": "web" - }, - "event": "Subscribe", - "partner_name": "RudderStack", - "context": { - "user": { - "phone_numbers": [ - "c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646" - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "event_set_id": "7181537436256731137", - "userId": "" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "tiktok_ads_offline_events", - "description": "Test 3", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true, - "eventsToStandard": [ - { - "from": "RandomEvent", - "to": "SubmitForm" - } - ] - } - }, - "message": { - "event": "RandomEvent", - "context": { - "traits": { - "phone": "1234567890" - }, - "channel": "web" - }, - "properties": { - "eventSetId": "7185009018564395009", - "eventId": "1616318632003_004", - "prop1": "val1" - }, - "userId": "eventIdn01", - "timestamp": "2023-01-03", - "type": "track" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/offline/track/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event_set_id": "7185009018564395009", - "event_id": "1616318632003_004", - "timestamp": "2023-01-03", - "properties": { - "event_channel": "web" - }, - "event": "SubmitForm", - "partner_name": "RudderStack", - "context": { - "user": { - "phone_numbers": [ - "c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646" - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "event_set_id": "7185009018564395009", - "userId": "" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "tiktok_ads_offline_events", - "description": "Test 4", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "Config": { - "hashUserProperties": true - } - }, - "message": { - "type": "track", - "userId": "yash001", - "originalTimestamp": "2019-10-14T09:03:17.562Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Access Token not found", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration", - "destType": "TIKTOK_ADS_OFFLINE_EVENTS", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "tiktok_ads_offline_events", - "description": "Test 5", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true - } - }, - "message": { - "event": "subscribe", - "context": { - "traits": { - "phone": "1234567890", - "email": "random@mail.com" - }, - "channel": "web" - }, - "properties": { - "eventSetId": "7181537436256731137", - "eventId": "1616318632825_352", - "products": [ - { - "price": 8, - "quantity": 2, - "content_type": "product1", - "product_id": "1077218", - "name": "socks", - "category": "Men's cloth" - }, - { - "price": 18, - "quantity": 12, - "content_type": "product2", - "product_id": "1077219", - "name": "socks1", - "category": "Men's cloth1" - } - ] - }, - "type": "track", - "userId": "eventIdn01", - "timestamp": "2023-01-03" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/offline/track/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event_set_id": "7181537436256731137", - "event_id": "1616318632825_352", - "timestamp": "2023-01-03", - "properties": { - "event_channel": "web", - "contents": [ - { - "content_name": "socks", - "content_type": "product1", - "content_category": "Men's cloth", - "content_id": "1077218", - "price": 8, - "quantity": 2 - }, - { - "content_name": "socks1", - "content_type": "product2", - "content_category": "Men's cloth1", - "content_id": "1077219", - "price": 18, - "quantity": 12 - } - ] - }, - "event": "Subscribe", - "partner_name": "RudderStack", - "context": { - "user": { - "emails": [ - "d9fcca64ec1b250da4261a3f89a8e0f7749c4e0f5a1a918e5397194c8b5a9f16" - ], - "phone_numbers": [ - "c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646" - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "event_set_id": "7181537436256731137", - "userId": "" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "tiktok_ads_offline_events", - "description": "Test 6", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "destination": { - "Config": { - "accessToken": "dummyAccessToken", - "hashUserProperties": true, - "eventsToStandard": [ - { - "from": "CompletePayment", - "to": "Purchase" - } - ] - } - }, - "message": { - "type": "track", - "event": "CompletePayment", - "sentAt": "2023-03-22T00:02:33.802Z", - "traits": { - "email": [ - "efaaf5c8803af4fbf305d7a110c832673d89ed40983770329092fd04b0ba7900", - "078d6c8e19f24093368d1712d7801970467f59216f7ccc087bf81b91e0e1f68f" - ], - "phone": [ - "c4994d14e724936f1169147dddf1673a09af69b55cc54bc695dbe246bd093b05", - "078d6c8e19f24093368d1712d7801970467f59216f7ccc087bf81b91e0e1f68f" - ] - }, - "userId": "60241286212", - "channel": "sources", - "context": { - "sources": { - "job_id": "2N4WuoNQpGYmCPASUvnV86QyhY4/Syncher", - "version": "v1.20.0", - "job_run_id": "cgd4a063b2fn2e1j0q90", - "task_run_id": "cgd4a063b2fn2e1j0qa0" - } - }, - "recordId": "16322", - "rudderId": "5b4ed73f-69aa-4198-88d1-3d4d509acbf1", - "messageId": "cgd4b663b2fn2e1j8th0", - "timestamp": "2023-03-22T00:02:33.170Z", - "properties": { - "phone": "c4994d14e724936f1169147dddf1673a09af69b55cc54bc695dbe246bd093b05", - "value": 32.839999999999996, - "emails": "[\"efaaf5c8803af4fbf305d7a110c832673d89ed40983770329092fd04b0ba7900\",\"078d6c8e19f24093368d1712d7801970467f59216f7ccc087bf81b91e0e1f68f\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]", - "eventId": "8965fb56-090f-47a5-aa7f-bbab22d9ec90", - "currency": "USD", - "order_id": 60241286212, - "eventSetId": "7211223771099742210", - "event_name": "CompletePayment" - }, - "receivedAt": "2023-03-22T00:02:33.171Z", - "request_ip": "10.7.78.187", - "anonymousId": "60241286212", - "originalTimestamp": "2023-03-22T00:02:33.802Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/offline/track/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event_set_id": "7211223771099742210", - "event_id": "8965fb56-090f-47a5-aa7f-bbab22d9ec90", - "timestamp": "2023-03-22T00:02:33.170Z", - "properties": { - "order_id": 60241286212, - "currency": "USD", - "value": 32.839999999999996 - }, - "event": "Purchase", - "partner_name": "RudderStack", - "context": { - "user": { - "emails": [ - "4dc75b075057df6f6b729e74a9feed1244dcf8ceb7903eaba13203f3268ae4b9", - "77b639edeb3cd6c801ea05176b8acbfa38d5f38490b764cd0c80756d0cf9ec68" - ], - "phone_numbers": [ - "28b7b205c2936d2ded022d2587fb2677a76e560e921b3ad615b739b0238baa5d", - "77b639edeb3cd6c801ea05176b8acbfa38d5f38490b764cd0c80756d0cf9ec68" - ] - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "event_set_id": "7211223771099742210", - "userId": "" - }, - "statusCode": 200 - } - ] - } - } - } -] \ No newline at end of file + { + name: 'tiktok_ads_offline_events', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + accessToken: 'dummyAccessToken', + hashUserProperties: true, + }, + }, + message: { + type: 'Identify', + userId: 'yash001', + originalTimestamp: '2019-10-14T09:03:17.562Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Event type identify is not supported', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'TIKTOK_ADS_OFFLINE_EVENTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads_offline_events', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + accessToken: 'dummyAccessToken', + hashUserProperties: false, + }, + }, + message: { + event: 'subscribe', + context: { + traits: { + phone: 'c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646', + }, + channel: 'web', + }, + properties: { + eventSetId: '7181537436256731137', + eventId: '1616318632825_352', + order_id: 'abc_xyz', + shop_id: '123abc', + currency: 'USD', + value: 46, + price: 8, + quantity: 2, + content_type: 'product1234', + product_id: '1077218', + name: 'socks', + category: "Men's cloth", + }, + type: 'track', + userId: 'eventIdn01', + timestamp: '2023-01-03', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/offline/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_set_id: '7181537436256731137', + event_id: '1616318632825_352', + timestamp: '2023-01-03', + properties: { + order_id: 'abc_xyz', + shop_id: '123abc', + currency: 'USD', + value: 46, + event_channel: 'web', + contents: [ + { + content_name: 'socks', + content_type: 'product1234', + content_category: "Men's cloth", + content_id: '1077218', + price: 8, + quantity: 2, + }, + ], + }, + event: 'Subscribe', + partner_name: 'RudderStack', + context: { + user: { + phone_numbers: [ + 'c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646', + ], + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + event_set_id: '7181537436256731137', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads_offline_events', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + accessToken: 'dummyAccessToken', + hashUserProperties: true, + }, + }, + message: { + event: 'subscribe', + context: { + traits: { + phone: '1234567890', + }, + channel: 'web', + }, + properties: { + eventSetId: '7181537436256731137', + eventId: '1616318632825_352', + prop1: 'val1', + }, + type: 'track', + userId: 'eventIdn01', + timestamp: '2023-01-03', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/offline/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_set_id: '7181537436256731137', + event_id: '1616318632825_352', + timestamp: '2023-01-03', + properties: { + event_channel: 'web', + }, + event: 'Subscribe', + partner_name: 'RudderStack', + context: { + user: { + phone_numbers: [ + 'c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646', + ], + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + event_set_id: '7181537436256731137', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads_offline_events', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + accessToken: 'dummyAccessToken', + hashUserProperties: true, + eventsToStandard: [ + { + from: 'RandomEvent', + to: 'SubmitForm', + }, + ], + }, + }, + message: { + event: 'RandomEvent', + context: { + traits: { + phone: '1234567890', + }, + channel: 'web', + }, + properties: { + eventSetId: '7185009018564395009', + eventId: '1616318632003_004', + prop1: 'val1', + }, + userId: 'eventIdn01', + timestamp: '2023-01-03', + type: 'track', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/offline/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_set_id: '7185009018564395009', + event_id: '1616318632003_004', + timestamp: '2023-01-03', + properties: { + event_channel: 'web', + }, + event: 'SubmitForm', + partner_name: 'RudderStack', + context: { + user: { + phone_numbers: [ + 'c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646', + ], + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + event_set_id: '7185009018564395009', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads_offline_events', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + hashUserProperties: true, + }, + }, + message: { + type: 'track', + userId: 'yash001', + originalTimestamp: '2019-10-14T09:03:17.562Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Access Token not found', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'TIKTOK_ADS_OFFLINE_EVENTS', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads_offline_events', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + accessToken: 'dummyAccessToken', + hashUserProperties: true, + }, + }, + message: { + event: 'subscribe', + context: { + traits: { + phone: '1234567890', + email: 'random@mail.com', + }, + channel: 'web', + }, + properties: { + eventSetId: '7181537436256731137', + eventId: '1616318632825_352', + products: [ + { + price: 8, + quantity: 2, + content_type: 'product1', + product_id: '1077218', + name: 'socks', + category: "Men's cloth", + }, + { + price: 18, + quantity: 12, + content_type: 'product2', + product_id: '1077219', + name: 'socks1', + category: "Men's cloth1", + }, + ], + }, + type: 'track', + userId: 'eventIdn01', + timestamp: '2023-01-03', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/offline/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_set_id: '7181537436256731137', + event_id: '1616318632825_352', + timestamp: '2023-01-03', + properties: { + event_channel: 'web', + contents: [ + { + content_name: 'socks', + content_type: 'product1', + content_category: "Men's cloth", + content_id: '1077218', + price: 8, + quantity: 2, + }, + { + content_name: 'socks1', + content_type: 'product2', + content_category: "Men's cloth1", + content_id: '1077219', + price: 18, + quantity: 12, + }, + ], + }, + event: 'Subscribe', + partner_name: 'RudderStack', + context: { + user: { + emails: ['d9fcca64ec1b250da4261a3f89a8e0f7749c4e0f5a1a918e5397194c8b5a9f16'], + phone_numbers: [ + 'c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646', + ], + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + event_set_id: '7181537436256731137', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'tiktok_ads_offline_events', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + accessToken: 'dummyAccessToken', + hashUserProperties: true, + eventsToStandard: [ + { + from: 'CompletePayment', + to: 'Purchase', + }, + ], + }, + }, + message: { + type: 'track', + event: 'CompletePayment', + sentAt: '2023-03-22T00:02:33.802Z', + traits: { + email: [ + 'efaaf5c8803af4fbf305d7a110c832673d89ed40983770329092fd04b0ba7900', + '078d6c8e19f24093368d1712d7801970467f59216f7ccc087bf81b91e0e1f68f', + ], + phone: [ + 'c4994d14e724936f1169147dddf1673a09af69b55cc54bc695dbe246bd093b05', + '078d6c8e19f24093368d1712d7801970467f59216f7ccc087bf81b91e0e1f68f', + ], + }, + userId: '60241286212', + channel: 'sources', + context: { + sources: { + job_id: '2N4WuoNQpGYmCPASUvnV86QyhY4/Syncher', + version: 'v1.20.0', + job_run_id: 'cgd4a063b2fn2e1j0q90', + task_run_id: 'cgd4a063b2fn2e1j0qa0', + }, + }, + recordId: '16322', + rudderId: '5b4ed73f-69aa-4198-88d1-3d4d509acbf1', + messageId: 'cgd4b663b2fn2e1j8th0', + timestamp: '2023-03-22T00:02:33.170Z', + properties: { + phone: 'c4994d14e724936f1169147dddf1673a09af69b55cc54bc695dbe246bd093b05', + value: 32.839999999999996, + emails: + '["efaaf5c8803af4fbf305d7a110c832673d89ed40983770329092fd04b0ba7900","078d6c8e19f24093368d1712d7801970467f59216f7ccc087bf81b91e0e1f68f","","","","","","","",""]', + eventId: '8965fb56-090f-47a5-aa7f-bbab22d9ec90', + currency: 'USD', + order_id: 60241286212, + eventSetId: '7211223771099742210', + event_name: 'CompletePayment', + }, + receivedAt: '2023-03-22T00:02:33.171Z', + request_ip: '10.7.78.187', + anonymousId: '60241286212', + originalTimestamp: '2023-03-22T00:02:33.802Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://business-api.tiktok.com/open_api/v1.3/offline/track/', + headers: { + 'Access-Token': 'dummyAccessToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event_set_id: '7211223771099742210', + event_id: '8965fb56-090f-47a5-aa7f-bbab22d9ec90', + timestamp: '2023-03-22T00:02:33.170Z', + properties: { + order_id: 60241286212, + currency: 'USD', + value: 32.839999999999996, + }, + event: 'Purchase', + partner_name: 'RudderStack', + context: { + user: { + emails: [ + '4dc75b075057df6f6b729e74a9feed1244dcf8ceb7903eaba13203f3268ae4b9', + '77b639edeb3cd6c801ea05176b8acbfa38d5f38490b764cd0c80756d0cf9ec68', + ], + phone_numbers: [ + '28b7b205c2936d2ded022d2587fb2677a76e560e921b3ad615b739b0238baa5d', + '77b639edeb3cd6c801ea05176b8acbfa38d5f38490b764cd0c80756d0cf9ec68', + ], + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + event_set_id: '7211223771099742210', + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/tiktok_ads_offline_events/router/data.ts b/test/integrations/destinations/tiktok_ads_offline_events/router/data.ts index c479da741b..15b5f6674d 100644 --- a/test/integrations/destinations/tiktok_ads_offline_events/router/data.ts +++ b/test/integrations/destinations/tiktok_ads_offline_events/router/data.ts @@ -1,10 +1,8 @@ -import { FEATURES } from '../../../../../src/v0/util/tags'; - export const data = [ { name: 'tiktok_ads_offline_events', description: 'Test 0', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -12,30 +10,20 @@ export const data = [ body: { input: [ { - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { - Config: { - accessToken: 'dummyAccessToken', - hashUserProperties: true, - }, + Config: { accessToken: 'dummyAccessToken', hashUserProperties: true }, }, message: { event: 'subscribe', - context: { - traits: { - phone: '1234567890', - }, - channel: 'web', - }, + context: { traits: { phone: '1234567890' }, channel: 'web' }, properties: { eventSetId: '7181537436256731137', eventId: '1616318632825_352', order_id: 'abc_xyz', shop_id: '123abc', currency: 'USD', - value: 46.0, + value: 46, price: 8, quantity: 2, content_type: 'product1234', @@ -49,22 +37,14 @@ export const data = [ }, }, { - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { - Config: { - accessToken: 'dummyAccessToken', - hashUserProperties: true, - }, + Config: { accessToken: 'dummyAccessToken', hashUserProperties: true }, }, message: { event: 'subscribe', context: { - traits: { - phone: '1234567890', - email: 'random@mail.com', - }, + traits: { phone: '1234567890', email: 'random@mail.com' }, channel: 'web', }, properties: { @@ -111,10 +91,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://business-api.tiktok.com/open_api/v1.3/offline/batch/', - headers: { - 'Access-Token': 'dummyAccessToken', - 'Content-Type': 'application/json', - }, + headers: { 'Access-Token': 'dummyAccessToken', 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -149,7 +126,7 @@ export const data = [ ], event_channel: 'web', currency: 'USD', - value: 46.0, + value: 46, }, }, { @@ -199,18 +176,11 @@ export const data = [ files: {}, }, destination: { - Config: { - accessToken: 'dummyAccessToken', - hashUserProperties: true, - }, + Config: { accessToken: 'dummyAccessToken', hashUserProperties: true }, }, metadata: [ - { - jobId: 1, - }, - { - jobId: 2, - }, + { jobId: 1, userId: 'u1' }, + { jobId: 2, userId: 'u1' }, ], statusCode: 200, }, @@ -222,7 +192,7 @@ export const data = [ { name: 'tiktok_ads_offline_events', description: 'Test 1', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -230,28 +200,18 @@ export const data = [ body: { input: [ { - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { - Config: { - accessToken: 'dummyAccessToken', - hashUserProperties: true, - }, + Config: { accessToken: 'dummyAccessToken', hashUserProperties: true }, }, message: { event: 'subscribe', - context: { - traits: { - phone: '1234567890', - }, - channel: 'web', - }, + context: { traits: { phone: '1234567890' }, channel: 'web' }, properties: { eventSetId: '6071537445256731123', eventId: '1616318632825_352', currency: 'USD', - value: 46.0, + value: 46, price: 8, content_type: 'product1234', }, @@ -277,10 +237,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://business-api.tiktok.com/open_api/v1.3/offline/batch/', - headers: { - 'Access-Token': 'dummyAccessToken', - 'Content-Type': 'application/json', - }, + headers: { 'Access-Token': 'dummyAccessToken', 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -301,15 +258,10 @@ export const data = [ }, }, properties: { - contents: [ - { - price: 8, - content_type: 'product1234', - }, - ], + contents: [{ price: 8, content_type: 'product1234' }], event_channel: 'web', currency: 'USD', - value: 46.0, + value: 46, }, }, ], @@ -321,16 +273,9 @@ export const data = [ files: {}, }, destination: { - Config: { - accessToken: 'dummyAccessToken', - hashUserProperties: true, - }, + Config: { accessToken: 'dummyAccessToken', hashUserProperties: true }, }, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], statusCode: 200, }, ], @@ -341,7 +286,7 @@ export const data = [ { name: 'tiktok_ads_offline_events', description: 'Test 2', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -349,26 +294,13 @@ export const data = [ body: { input: [ { - metadata: { - jobId: 4, - }, + metadata: { jobId: 4, userId: 'u1' }, destination: { - Config: { - accessToken: 'dummyAccessToken', - hashUserProperties: true, - }, + Config: { accessToken: 'dummyAccessToken', hashUserProperties: true }, }, message: { - context: { - traits: { - phone: '1234567890', - }, - channel: 'web', - }, - properties: { - eventSetId: '2345676543', - eventId: '1616318632825_352', - }, + context: { traits: { phone: '1234567890' }, channel: 'web' }, + properties: { eventSetId: '2345676543', eventId: '1616318632825_352' }, type: 'track', userId: 'eventIdn01', timestamp: '2023-01-03', @@ -386,18 +318,11 @@ export const data = [ output: [ { destination: { - Config: { - accessToken: 'dummyAccessToken', - hashUserProperties: true, - }, + Config: { accessToken: 'dummyAccessToken', hashUserProperties: true }, }, batched: false, error: 'Event name is required', - metadata: [ - { - jobId: 4, - }, - ], + metadata: [{ jobId: 4, userId: 'u1' }], statTags: { errorCategory: 'dataValidation', errorType: 'instrumentation', diff --git a/test/integrations/destinations/tiktok_audience/processor/data.ts b/test/integrations/destinations/tiktok_audience/processor/data.ts index a715aa2f72..42f235c1a4 100644 --- a/test/integrations/destinations/tiktok_audience/processor/data.ts +++ b/test/integrations/destinations/tiktok_audience/processor/data.ts @@ -1,854 +1,854 @@ export const data = [ - { - "name": "tiktok_audience", - "description": "Test 1: Containing SHA256 traits only", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "EMAIL_SHA256": "alex@email.com" - }, - { - "EMAIL_SHA256": "amy@abc.com" - }, - { - "EMAIL_SHA256": "van@abc.com" - } - ], - "remove": [ - { - "EMAIL_SHA256": "alex@email.com" - }, - { - "EMAIL_SHA256": "amy@abc.com" - }, - { - "EMAIL_SHA256": "van@abc.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - }, - "externalId": [ - { - "type": "TIKTOK_AUDIENCE-23856594064540489", - "identifierType": "EMAIL_SHA256" - } - ], - "destinationFields": "EMAIL_SHA256" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "isHashRequired": true, - "registerDeviceOrBrowserApiKey": true, - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "batch_data": [ - [ - { - "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", - "audience_ids": [ - "23856594064540489" - ] - } - ] - ], - "id_schema": [ - "EMAIL_SHA256" - ], - "advertiser_ids": [ - "dummyAdverTiserID" - ], - "action": "add" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "statusCode": 200 - }, - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "batch_data": [ - [ - { - "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", - "audience_ids": [ - "23856594064540489" - ] - } - ] - ], - "id_schema": [ - "EMAIL_SHA256" - ], - "advertiser_ids": [ - "dummyAdverTiserID" - ], - "action": "delete" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "tiktok_audience", - "description": "Test 2: Containing SHA256 and MD5 traits", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "EMAIL_SHA256": "alex@email.com", - "AAID_MD5": "1234567" - }, - { - "EMAIL_SHA256": "amy@abc.com", - "AAID_MD5": "1234568" - }, - { - "EMAIL_SHA256": "van@abc.com", - "AAID_MD5": "1234569" - } - ], - "remove": [ - { - "EMAIL_SHA256": "alex@email.com", - "AAID_MD5": "1234570" - }, - { - "EMAIL_SHA256": "amy@abc.com", - "AAID_MD5": "1234571" - }, - { - "EMAIL_SHA256": "van@abc.com", - "AAID_MD5": "1234572" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - }, - "externalId": [ - { - "type": "TIKTOK_AUDIENCE-23856594064540489", - "identifierType": "EMAIL_SHA256" - } - ], - "destinationFields": "EMAIL_SHA256, AAID_MD5" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "isHashRequired": true, - "registerDeviceOrBrowserApiKey": true, - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "batch_data": [ - [ - { - "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "fcea920f7412b5da7be0cf42b8c93759", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "fe743d8d97aa7dfc6c93ccdc2e749513", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "e36a2f90240e9e84483504fd4a704452", - "audience_ids": [ - "23856594064540489" - ] - } - ] - ], - "id_schema": [ - "EMAIL_SHA256", - "AAID_MD5" - ], - "advertiser_ids": [ - "dummyAdverTiserID" - ], - "action": "add" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "statusCode": 200 - }, - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "batch_data": [ - [ - { - "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "c1abd65fea29d573ddef1bce925e3276", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "7298110702a080dfc6903f13333eb04a", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "d9cb68b1fd3b9d32abc5f4cab8b42b68", - "audience_ids": [ - "23856594064540489" - ] - } - ] - ], - "id_schema": [ - "EMAIL_SHA256", - "AAID_MD5" - ], - "advertiser_ids": [ - "dummyAdverTiserID" - ], - "action": "delete" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "tiktok_audience", - "description": "Test 3: Containing all possible traits", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "EMAIL_SHA256": "alex@email.com", - "PHONE_SHA256": "+129988776655", - "IDFA_SHA256": "1234lkasfjdalj12321", - "AAID_SHA256": "000999OOOQQQQ", - "AAID_MD5": "000999OOOQQQQ", - "IDFA_MD5": "1234lkasfjdalj12321" - }, - { - "EMAIL_SHA256": "amy@abc.com", - "PHONE_SHA256": "+129988776677", - "IDFA_SHA256": "1234lkasfjdalj114455", - "AAID_SHA256": "000999OOOPPPP", - "AAID_MD5": "000999OOOPPPP", - "IDFA_MD5": "1234lkasfjdalj114455" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - }, - "externalId": [ - { - "type": "TIKTOK_AUDIENCE-23856594064540489", - "identifierType": "EMAIL_SHA256" - } - ], - "destinationFields": "EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "isHashRequired": true, - "registerDeviceOrBrowserApiKey": true, - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "batch_data": [ - [ - { - "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "0259f595f7172c8dd692a5c37b4d296939555f862aae8adb964391bdb65006ab", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "b06fbe7a29f33576a792ba3df3c9bf838cd26ea88cf574285fa60dc0234a8485", - "audience_ids": [ - "23856594064540489" - ] - }, - {}, - { - "id": "32ee3d063320815a13e0058c2498ff76", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "fb40adc7debbf40e7b45b0a4a91886785dff1a28809276f95f1c44f7045f9b4d", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "e6bbdf34c5f3472f31b2923a26811560a599233f3dea4c9971595c3bb7b1e8dc", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091", - "audience_ids": [ - "23856594064540489" - ] - }, - {}, - { - "id": "94162773066d6ae88b2658dc58ca2317", - "audience_ids": [ - "23856594064540489" - ] - } - ] - ], - "id_schema": [ - "EMAIL_SHA256", - "PHONE_SHA256", - "IDFA_SHA256", - "AAID_SHA256", - "AAID_MD", - "IDFA_MD5" - ], - "advertiser_ids": [ - "dummyAdverTiserID" - ], - "action": "add" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "tiktok_audience", - "description": "Test 4: Considering some null values", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "EMAIL_SHA256": "alex@email.com", - "PHONE_SHA256": "+129988776655", - "AAID_MD5": "000999OOOQQQQ", - "IDFA_MD5": "1234lkasfjdalj12321" - }, - { - "EMAIL_SHA256": "amy@abc.com", - "AAID_SHA256": "000999OOOPPPP", - "AAID_MD5": "000999OOOPPPP", - "IDFA_MD5": "1234lkasfjdalj114455" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - }, - "externalId": [ - { - "type": "TIKTOK_AUDIENCE-23856594064540489", - "identifierType": "EMAIL_SHA256" - } - ], - "destinationFields": "EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "destination": { - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true - } - }, - "Config": { - "isHashRequired": true, - "registerDeviceOrBrowserApiKey": true, - "apiKey": "intercomApiKey", - "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", - "collectContext": false - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", - "headers": { - "Access-Token": "dummyAccessToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "batch_data": [ - [ - { - "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", - "audience_ids": [ - "23856594064540489" - ] - }, - { - "id": "31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee", - "audience_ids": [ - "23856594064540489" - ] - }, - {}, - {}, - {}, - { - "id": "32ee3d063320815a13e0058c2498ff76", - "audience_ids": [ - "23856594064540489" - ] - } - ], - [ - { - "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", - "audience_ids": [ - "23856594064540489" - ] - }, - {}, - {}, - { - "id": "661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091", - "audience_ids": [ - "23856594064540489" - ] - }, - {}, - { - "id": "94162773066d6ae88b2658dc58ca2317", - "audience_ids": [ - "23856594064540489" - ] - } - ] - ], - "id_schema": [ - "EMAIL_SHA256", - "PHONE_SHA256", - "IDFA_SHA256", - "AAID_SHA256", - "AAID_MD", - "IDFA_MD5" - ], - "advertiser_ids": [ - "dummyAdverTiserID" - ], - "action": "add" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "jobId": 1, - "secret": { - "accessToken": "dummyAccessToken", - "advertiserIds": [ - "dummyAdverTiserID" - ] - } - }, - "statusCode": 200 - } - ] - } - } - } -] \ No newline at end of file + { + "name": "tiktok_audience", + "description": "Test 1: Containing SHA256 traits only", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "EMAIL_SHA256": "alex@email.com" + }, + { + "EMAIL_SHA256": "amy@abc.com" + }, + { + "EMAIL_SHA256": "van@abc.com" + } + ], + "remove": [ + { + "EMAIL_SHA256": "alex@email.com" + }, + { + "EMAIL_SHA256": "amy@abc.com" + }, + { + "EMAIL_SHA256": "van@abc.com" + } + ] + } + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + }, + "externalId": [ + { + "type": "TIKTOK_AUDIENCE-23856594064540489", + "identifierType": "EMAIL_SHA256" + } + ], + "destinationFields": "EMAIL_SHA256" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "destination": { + "DestinationDefinition": { + "Config": { + "cdkV2Enabled": true + } + }, + "Config": { + "isHashRequired": true, + "registerDeviceOrBrowserApiKey": true, + "apiKey": "intercomApiKey", + "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", + "collectContext": false + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", + "headers": { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "batch_data": [ + [ + { + "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", + "audience_ids": [ + "23856594064540489" + ] + } + ] + ], + "id_schema": [ + "EMAIL_SHA256" + ], + "advertiser_ids": [ + "dummyAdverTiserID" + ], + "action": "add" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", + "headers": { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "batch_data": [ + [ + { + "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", + "audience_ids": [ + "23856594064540489" + ] + } + ] + ], + "id_schema": [ + "EMAIL_SHA256" + ], + "advertiser_ids": [ + "dummyAdverTiserID" + ], + "action": "delete" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "tiktok_audience", + "description": "Test 2: Containing SHA256 and MD5 traits", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "EMAIL_SHA256": "alex@email.com", + "AAID_MD5": "1234567" + }, + { + "EMAIL_SHA256": "amy@abc.com", + "AAID_MD5": "1234568" + }, + { + "EMAIL_SHA256": "van@abc.com", + "AAID_MD5": "1234569" + } + ], + "remove": [ + { + "EMAIL_SHA256": "alex@email.com", + "AAID_MD5": "1234570" + }, + { + "EMAIL_SHA256": "amy@abc.com", + "AAID_MD5": "1234571" + }, + { + "EMAIL_SHA256": "van@abc.com", + "AAID_MD5": "1234572" + } + ] + } + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + }, + "externalId": [ + { + "type": "TIKTOK_AUDIENCE-23856594064540489", + "identifierType": "EMAIL_SHA256" + } + ], + "destinationFields": "EMAIL_SHA256, AAID_MD5" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "destination": { + "DestinationDefinition": { + "Config": { + "cdkV2Enabled": true + } + }, + "Config": { + "isHashRequired": true, + "registerDeviceOrBrowserApiKey": true, + "apiKey": "intercomApiKey", + "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", + "collectContext": false + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", + "headers": { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "batch_data": [ + [ + { + "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "fcea920f7412b5da7be0cf42b8c93759", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "fe743d8d97aa7dfc6c93ccdc2e749513", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "e36a2f90240e9e84483504fd4a704452", + "audience_ids": [ + "23856594064540489" + ] + } + ] + ], + "id_schema": [ + "EMAIL_SHA256", + "AAID_MD5" + ], + "advertiser_ids": [ + "dummyAdverTiserID" + ], + "action": "add" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", + "headers": { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "batch_data": [ + [ + { + "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "c1abd65fea29d573ddef1bce925e3276", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "7298110702a080dfc6903f13333eb04a", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "d9cb68b1fd3b9d32abc5f4cab8b42b68", + "audience_ids": [ + "23856594064540489" + ] + } + ] + ], + "id_schema": [ + "EMAIL_SHA256", + "AAID_MD5" + ], + "advertiser_ids": [ + "dummyAdverTiserID" + ], + "action": "delete" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "tiktok_audience", + "description": "Test 3: Containing all possible traits", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "EMAIL_SHA256": "alex@email.com", + "PHONE_SHA256": "+129988776655", + "IDFA_SHA256": "1234lkasfjdalj12321", + "AAID_SHA256": "000999OOOQQQQ", + "AAID_MD5": "000999OOOQQQQ", + "IDFA_MD5": "1234lkasfjdalj12321" + }, + { + "EMAIL_SHA256": "amy@abc.com", + "PHONE_SHA256": "+129988776677", + "IDFA_SHA256": "1234lkasfjdalj114455", + "AAID_SHA256": "000999OOOPPPP", + "AAID_MD5": "000999OOOPPPP", + "IDFA_MD5": "1234lkasfjdalj114455" + } + ] + } + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + }, + "externalId": [ + { + "type": "TIKTOK_AUDIENCE-23856594064540489", + "identifierType": "EMAIL_SHA256" + } + ], + "destinationFields": "EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "destination": { + "DestinationDefinition": { + "Config": { + "cdkV2Enabled": true + } + }, + "Config": { + "isHashRequired": true, + "registerDeviceOrBrowserApiKey": true, + "apiKey": "intercomApiKey", + "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", + "collectContext": false + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", + "headers": { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "batch_data": [ + [ + { + "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "0259f595f7172c8dd692a5c37b4d296939555f862aae8adb964391bdb65006ab", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "b06fbe7a29f33576a792ba3df3c9bf838cd26ea88cf574285fa60dc0234a8485", + "audience_ids": [ + "23856594064540489" + ] + }, + {}, + { + "id": "32ee3d063320815a13e0058c2498ff76", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "fb40adc7debbf40e7b45b0a4a91886785dff1a28809276f95f1c44f7045f9b4d", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "e6bbdf34c5f3472f31b2923a26811560a599233f3dea4c9971595c3bb7b1e8dc", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091", + "audience_ids": [ + "23856594064540489" + ] + }, + {}, + { + "id": "94162773066d6ae88b2658dc58ca2317", + "audience_ids": [ + "23856594064540489" + ] + } + ] + ], + "id_schema": [ + "EMAIL_SHA256", + "PHONE_SHA256", + "IDFA_SHA256", + "AAID_SHA256", + "AAID_MD", + "IDFA_MD5" + ], + "advertiser_ids": [ + "dummyAdverTiserID" + ], + "action": "add" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "tiktok_audience", + "description": "Test 4: Considering some null values", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "EMAIL_SHA256": "alex@email.com", + "PHONE_SHA256": "+129988776655", + "AAID_MD5": "000999OOOQQQQ", + "IDFA_MD5": "1234lkasfjdalj12321" + }, + { + "EMAIL_SHA256": "amy@abc.com", + "AAID_SHA256": "000999OOOPPPP", + "AAID_MD5": "000999OOOPPPP", + "IDFA_MD5": "1234lkasfjdalj114455" + } + ] + } + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + }, + "externalId": [ + { + "type": "TIKTOK_AUDIENCE-23856594064540489", + "identifierType": "EMAIL_SHA256" + } + ], + "destinationFields": "EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "destination": { + "DestinationDefinition": { + "Config": { + "cdkV2Enabled": true + } + }, + "Config": { + "isHashRequired": true, + "registerDeviceOrBrowserApiKey": true, + "apiKey": "intercomApiKey", + "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", + "collectContext": false + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", + "headers": { + "Access-Token": "dummyAccessToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "batch_data": [ + [ + { + "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", + "audience_ids": [ + "23856594064540489" + ] + }, + { + "id": "31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee", + "audience_ids": [ + "23856594064540489" + ] + }, + {}, + {}, + {}, + { + "id": "32ee3d063320815a13e0058c2498ff76", + "audience_ids": [ + "23856594064540489" + ] + } + ], + [ + { + "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", + "audience_ids": [ + "23856594064540489" + ] + }, + {}, + {}, + { + "id": "661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091", + "audience_ids": [ + "23856594064540489" + ] + }, + {}, + { + "id": "94162773066d6ae88b2658dc58ca2317", + "audience_ids": [ + "23856594064540489" + ] + } + ] + ], + "id_schema": [ + "EMAIL_SHA256", + "PHONE_SHA256", + "IDFA_SHA256", + "AAID_SHA256", + "AAID_MD", + "IDFA_MD5" + ], + "advertiser_ids": [ + "dummyAdverTiserID" + ], + "action": "add" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "jobId": 1, + "secret": { + "accessToken": "dummyAccessToken", + "advertiserIds": [ + "dummyAdverTiserID" + ] + } + }, + "statusCode": 200 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/tiktok_audience/router/data.ts b/test/integrations/destinations/tiktok_audience/router/data.ts index c8a8b93d30..71e7038269 100644 --- a/test/integrations/destinations/tiktok_audience/router/data.ts +++ b/test/integrations/destinations/tiktok_audience/router/data.ts @@ -16,39 +16,22 @@ export const data = [ properties: { listData: { add: [ - { - EMAIL_SHA256: 'alex@email.com', - }, - { - EMAIL_SHA256: 'amy@abc.com', - }, - { - EMAIL_SHA256: 'van@abc.com', - }, + { EMAIL_SHA256: 'alex@email.com' }, + { EMAIL_SHA256: 'amy@abc.com' }, + { EMAIL_SHA256: 'van@abc.com' }, ], remove: [ - { - EMAIL_SHA256: 'alex@email.com', - }, - { - EMAIL_SHA256: 'amy@abc.com', - }, - { - EMAIL_SHA256: 'van@abc.com', - }, + { EMAIL_SHA256: 'alex@email.com' }, + { EMAIL_SHA256: 'amy@abc.com' }, + { EMAIL_SHA256: 'van@abc.com' }, ], }, }, context: { ip: '14.5.67.21', - library: { - name: 'http', - }, + library: { name: 'http' }, externalId: [ - { - type: 'TIKTOK_AUDIENCE-23856594064540489', - identifierType: 'EMAIL_SHA256', - }, + { type: 'TIKTOK_AUDIENCE-23856594064540489', identifierType: 'EMAIL_SHA256' }, ], destinationFields: 'EMAIL_SHA256', }, @@ -56,17 +39,11 @@ export const data = [ }, metadata: { jobId: 1, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -83,45 +60,22 @@ export const data = [ properties: { listData: { add: [ - { - EMAIL_SHA256: 'alex@email.com', - AAID_MD5: '1234567', - }, - { - EMAIL_SHA256: 'amy@abc.com', - AAID_MD5: '1234568', - }, - { - EMAIL_SHA256: 'van@abc.com', - AAID_MD5: '1234569', - }, + { EMAIL_SHA256: 'alex@email.com', AAID_MD5: '1234567' }, + { EMAIL_SHA256: 'amy@abc.com', AAID_MD5: '1234568' }, + { EMAIL_SHA256: 'van@abc.com', AAID_MD5: '1234569' }, ], remove: [ - { - EMAIL_SHA256: 'alex@email.com', - AAID_MD5: '1234570', - }, - { - EMAIL_SHA256: 'amy@abc.com', - AAID_MD5: '1234571', - }, - { - EMAIL_SHA256: 'van@abc.com', - AAID_MD5: '1234572', - }, + { EMAIL_SHA256: 'alex@email.com', AAID_MD5: '1234570' }, + { EMAIL_SHA256: 'amy@abc.com', AAID_MD5: '1234571' }, + { EMAIL_SHA256: 'van@abc.com', AAID_MD5: '1234572' }, ], }, }, context: { ip: '14.5.67.21', - library: { - name: 'http', - }, + library: { name: 'http' }, externalId: [ - { - type: 'TIKTOK_AUDIENCE-23856594064540489', - identifierType: 'EMAIL_SHA256', - }, + { type: 'TIKTOK_AUDIENCE-23856594064540489', identifierType: 'EMAIL_SHA256' }, ], destinationFields: 'EMAIL_SHA256, AAID_MD5', }, @@ -129,17 +83,11 @@ export const data = [ }, metadata: { jobId: 2, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -177,14 +125,9 @@ export const data = [ }, context: { ip: '14.5.67.21', - library: { - name: 'http', - }, + library: { name: 'http' }, externalId: [ - { - type: 'TIKTOK_AUDIENCE-23856594064540489', - identifierType: 'EMAIL_SHA256', - }, + { type: 'TIKTOK_AUDIENCE-23856594064540489', identifierType: 'EMAIL_SHA256' }, ], destinationFields: 'EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5', @@ -193,17 +136,11 @@ export const data = [ }, metadata: { jobId: 3, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -237,14 +174,9 @@ export const data = [ }, context: { ip: '14.5.67.21', - library: { - name: 'http', - }, + library: { name: 'http' }, externalId: [ - { - type: 'TIKTOK_AUDIENCE-23856594064540489', - identifierType: 'EMAIL_SHA256', - }, + { type: 'TIKTOK_AUDIENCE-23856594064540489', identifierType: 'EMAIL_SHA256' }, ], destinationFields: 'EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5', @@ -253,17 +185,11 @@ export const data = [ }, metadata: { jobId: 4, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -296,14 +222,9 @@ export const data = [ }, context: { ip: '14.5.67.21', - library: { - name: 'http', - }, + library: { name: 'http' }, externalId: [ - { - type: 'TIKTOK_AUDIENCE-23856594064540489', - identifierType: 'EMAIL_SHA256', - }, + { type: 'TIKTOK_AUDIENCE-23856594064540489', identifierType: 'EMAIL_SHA256' }, ], destinationFields: 'EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5', @@ -312,17 +233,11 @@ export const data = [ }, metadata: { jobId: 1524545, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -347,11 +262,7 @@ export const data = [ error: 'message Type is not present. Aborting message.', batched: false, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -363,10 +274,8 @@ export const data = [ metadata: [ { jobId: 1524545, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, ], statTags: { @@ -468,11 +377,7 @@ export const data = [ ], batched: true, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -484,10 +389,8 @@ export const data = [ metadata: [ { jobId: 1, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, ], statusCode: 200, @@ -605,11 +508,7 @@ export const data = [ ], batched: true, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -621,10 +520,8 @@ export const data = [ metadata: [ { jobId: 2, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, ], statusCode: 200, @@ -635,10 +532,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://business-api.tiktok.com/open_api/v1.3/segment/mapping/', - headers: { - 'Access-Token': 'dummyAccessToken', - 'Content-Type': 'application/json', - }, + headers: { 'Access-Token': 'dummyAccessToken', 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -709,11 +603,7 @@ export const data = [ }, batched: true, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -725,10 +615,8 @@ export const data = [ metadata: [ { jobId: 3, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, ], statusCode: 200, @@ -739,10 +627,7 @@ export const data = [ type: 'REST', method: 'POST', endpoint: 'https://business-api.tiktok.com/open_api/v1.3/segment/mapping/', - headers: { - 'Access-Token': 'dummyAccessToken', - 'Content-Type': 'application/json', - }, + headers: { 'Access-Token': 'dummyAccessToken', 'Content-Type': 'application/json' }, params: {}, body: { JSON: { @@ -801,11 +686,7 @@ export const data = [ }, batched: true, destination: { - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, Config: { isHashRequired: true, registerDeviceOrBrowserApiKey: true, @@ -817,10 +698,8 @@ export const data = [ metadata: [ { jobId: 4, - secret: { - accessToken: 'dummyAccessToken', - advertiserIds: ['dummyAdverTiserID'], - }, + secret: { accessToken: 'dummyAccessToken', advertiserIds: ['dummyAdverTiserID'] }, + userId: 'u1', }, ], statusCode: 200, diff --git a/test/integrations/destinations/trengo/router/data.ts b/test/integrations/destinations/trengo/router/data.ts index eeefb053a8..f7b5022036 100644 --- a/test/integrations/destinations/trengo/router/data.ts +++ b/test/integrations/destinations/trengo/router/data.ts @@ -27,49 +27,25 @@ export const data = [ name: 'generic_x86', type: 'android', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.1-beta.1', - }, + 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, - }, + 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: 'anon_id_success', - }, + traits: { anonymousId: 'anon_id_success' }, userAgent: 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', }, event: 'Product Purchased', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: 'id1', - properties: { - name: 'Test Product', - phone: '9830311521', - }, + properties: { name: 'Test Product', phone: '9830311521' }, originalTimestamp: '2020-12-17T21:00:59.176Z', type: 'track', sentAt: '2020-03-12T09:05:03.421Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { apiToken: 'trengo_integration_test_api_token', @@ -77,29 +53,12 @@ export const data = [ channelIdentifier: 'phone', enableDedup: true, eventTemplateMap: [ - { - from: 'Product Purchased', - to: '{{event}} from Rudderstack', - }, - { - from: 'checkedOut', - to: 'Total cart value {{value}} shipped', - }, - { - from: 'Order Completed', - to: 'Completed Order', - }, - { - from: 'Stress Test', - }, - { - from: 'Stress test2', - to: '', - }, - { - from: 'Stress test3', - to: '{event} Stress test', - }, + { from: 'Product Purchased', to: '{{event}} from Rudderstack' }, + { from: 'checkedOut', to: 'Total cart value {{value}} shipped' }, + { from: 'Order Completed', to: 'Completed Order' }, + { from: 'Stress Test' }, + { from: 'Stress test2', to: '' }, + { from: 'Stress test3', to: '{event} Stress test' }, ], }, secretConfig: {}, @@ -170,21 +129,14 @@ export const data = [ }, params: {}, body: { - JSON: { - contact_id: 90002431001, - channel_id: 'trengo_phone_channel', - }, + JSON: { contact_id: 90002431001, channel_id: 'trengo_phone_channel' }, XML: {}, JSON_ARRAY: {}, FORM: {}, }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -194,29 +146,12 @@ export const data = [ channelIdentifier: 'phone', enableDedup: true, eventTemplateMap: [ - { - from: 'Product Purchased', - to: '{{event}} from Rudderstack', - }, - { - from: 'checkedOut', - to: 'Total cart value {{value}} shipped', - }, - { - from: 'Order Completed', - to: 'Completed Order', - }, - { - from: 'Stress Test', - }, - { - from: 'Stress test2', - to: '', - }, - { - from: 'Stress test3', - to: '{event} Stress test', - }, + { from: 'Product Purchased', to: '{{event}} from Rudderstack' }, + { from: 'checkedOut', to: 'Total cart value {{value}} shipped' }, + { from: 'Order Completed', to: 'Completed Order' }, + { from: 'Stress Test' }, + { from: 'Stress test2', to: '' }, + { from: 'Stress test3', to: '{event} Stress test' }, ], }, secretConfig: {}, @@ -283,10 +218,7 @@ export const data = [ userId: 'randomUserId', type: 'identify', context: { - traits: { - name: 'Jimothy Halpert', - email: 'j@d.com', - }, + traits: { name: 'Jimothy Halpert', email: 'j@d.com' }, ip: '14.5.67.21', app: { build: '1', @@ -301,33 +233,16 @@ export const data = [ name: 'generic_x86', type: 'android', }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '0.1.4', - }, + library: { name: 'com.rudderstack.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, - }, + network: { carrier: 'Android', bluetooth: false, cellular: true, wifi: true }, + os: { name: 'Android', version: '9' }, + screen: { density: 420, height: 1794, width: 1080 }, timezone: 'Asia/Kolkata', }, timestamp: '2020-02-02T00:23:09.544Z', }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { apiToken: 'trengo_integration_test_api_token', @@ -335,29 +250,12 @@ export const data = [ channelIdentifier: 'email', enableDedup: true, eventTemplateMap: [ - { - from: 'Product Purchased', - to: '{{event}} from Rudderstack', - }, - { - from: 'checkedOut', - to: 'Total cart value {{value}} shipped', - }, - { - from: 'Order Completed', - to: 'Completed Order', - }, - { - from: 'Stress Test', - }, - { - from: 'Stress test2', - to: '', - }, - { - from: 'Stress test3', - to: '{event} Stress test', - }, + { from: 'Product Purchased', to: '{{event}} from Rudderstack' }, + { from: 'checkedOut', to: 'Total cart value {{value}} shipped' }, + { from: 'Order Completed', to: 'Completed Order' }, + { from: 'Stress Test' }, + { from: 'Stress test2', to: '' }, + { from: 'Stress test3', to: '{event} Stress test' }, ], }, secretConfig: {}, @@ -439,11 +337,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -453,29 +347,12 @@ export const data = [ channelIdentifier: 'email', enableDedup: true, eventTemplateMap: [ - { - from: 'Product Purchased', - to: '{{event}} from Rudderstack', - }, - { - from: 'checkedOut', - to: 'Total cart value {{value}} shipped', - }, - { - from: 'Order Completed', - to: 'Completed Order', - }, - { - from: 'Stress Test', - }, - { - from: 'Stress test2', - to: '', - }, - { - from: 'Stress test3', - to: '{event} Stress test', - }, + { from: 'Product Purchased', to: '{{event}} from Rudderstack' }, + { from: 'checkedOut', to: 'Total cart value {{value}} shipped' }, + { from: 'Order Completed', to: 'Completed Order' }, + { from: 'Stress Test' }, + { from: 'Stress test2', to: '' }, + { from: 'Stress test3', to: '{event} Stress test' }, ], }, secretConfig: {}, diff --git a/test/integrations/destinations/user/router/data.ts b/test/integrations/destinations/user/router/data.ts index 30bcdf2688..acdb5c953e 100644 --- a/test/integrations/destinations/user/router/data.ts +++ b/test/integrations/destinations/user/router/data.ts @@ -16,9 +16,7 @@ export const data = [ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36', }, - integrations: { - All: true, - }, + integrations: { All: true }, userId: 'user@123', groupId: 'group@795', messageId: '022bb90c-bbac-11e4-8dfc-aa07a5b093db', @@ -39,9 +37,7 @@ export const data = [ }, type: 'group', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, destination: { Config: { apiKey: 'dummyApiKey', @@ -77,10 +73,7 @@ export const data = [ body: { XML: {}, FORM: {}, - JSON: { - user_id: 52, - user_custom_id: 'user@123', - }, + JSON: { user_id: 52, user_custom_id: 'user@123' }, JSON_ARRAY: {}, }, type: 'REST', @@ -95,11 +88,7 @@ export const data = [ version: '1', endpoint: 'https://commander.user.com/api/public/companies/21/add_member/', }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -154,19 +143,10 @@ export const data = [ useroccupation: 'mechanical engineer', }, }, - traits: { - googleUrl: 'www.google.com', - }, - integrations: { - All: true, - user: { - lookup: 'email', - }, - }, - }, - metadata: { - jobId: 2, + traits: { googleUrl: 'www.google.com' }, + integrations: { All: true, user: { lookup: 'email' } }, }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { apiKey: 'dummyApiKey', @@ -229,11 +209,7 @@ export const data = [ version: '1', endpoint: 'https://commander.user.com/api/public/users/59/', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/userlist/router/data.ts b/test/integrations/destinations/userlist/router/data.ts new file mode 100644 index 0000000000..2f2d027865 --- /dev/null +++ b/test/integrations/destinations/userlist/router/data.ts @@ -0,0 +1,330 @@ +import { FEATURES } from '../../../../../src/v0/util/tags'; + +export const data = [ + { + name: 'userlist', + description: 'Test 0', + feature: FEATURES.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', + address: { + city: 'NY', + country: 'USA', + postalCode: 712136, + state: 'CA', + street: '', + }, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 1, + }, + destination: { + Config: { + pushKey: 'userlist-push-key', + }, + }, + }, + { + 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: '00000000000000000000000000', + 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', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + pushKey: 'userlist-push-key', + }, + }, + }, + ], + destType: 'userlist', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + JSON: { + 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', + }, + FORM: {}, + }, + files: {}, + endpoint: 'https://incoming.userlist.com/rudderstack/events', + headers: { + Authorization: 'Push userlist-push-key', + 'Content-Type': 'application/json', + }, + version: '1', + params: {}, + type: 'REST', + method: 'POST', + statusCode: 200, + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + pushKey: 'userlist-push-key', + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + JSON: { + 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: '00000000000000000000000000', + 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', + }, + FORM: {}, + }, + files: {}, + endpoint: 'https://incoming.userlist.com/rudderstack/events', + headers: { + Authorization: 'Push userlist-push-key', + 'Content-Type': 'application/json', + }, + version: '1', + params: {}, + type: 'REST', + method: 'POST', + statusCode: 200, + }, + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + pushKey: 'userlist-push-key', + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/vero/processor/data.ts b/test/integrations/destinations/vero/processor/data.ts index 7834f0a541..3f8c750da6 100644 --- a/test/integrations/destinations/vero/processor/data.ts +++ b/test/integrations/destinations/vero/processor/data.ts @@ -815,4 +815,4 @@ export const data = [ } } } -] \ No newline at end of file +] diff --git a/test/integrations/destinations/vero/router/data.ts b/test/integrations/destinations/vero/router/data.ts index 17aba359d1..ca23f22feb 100644 --- a/test/integrations/destinations/vero/router/data.ts +++ b/test/integrations/destinations/vero/router/data.ts @@ -1,10 +1,8 @@ -import { FEATURES } from '../../../../../src/v0/util/tags'; - export const data = [ { name: 'vero', description: 'Test 0', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -12,20 +10,10 @@ export const data = [ body: { input: [ { - destination: { - Config: { - authToken: 'testAuthToken', - }, - }, - metadata: { - jobId: 1, - }, + destination: { Config: { authToken: 'testAuthToken' } }, + metadata: { jobId: 1, userId: 'u1' }, message: { - context: { - traits: { - email: 'user001@tech.com', - }, - }, + context: { traits: { email: 'user001@tech.com' } }, type: 'Identify', userId: 'user001', }, @@ -65,16 +53,8 @@ export const data = [ files: {}, }, ], - destination: { - Config: { - authToken: 'testAuthToken', - }, - }, - metadata: [ - { - jobId: 1, - }, - ], + destination: { Config: { authToken: 'testAuthToken' } }, + metadata: [{ jobId: 1, userId: 'u1' }], statusCode: 200, }, ], @@ -85,7 +65,7 @@ export const data = [ { name: 'vero', description: 'Test 1', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -93,20 +73,10 @@ export const data = [ body: { input: [ { - destination: { - Config: { - authToken: 'testAuthToken', - }, - }, - metadata: { - jobId: 2, - }, + destination: { Config: { authToken: 'testAuthToken' } }, + metadata: { jobId: 2, userId: 'u1' }, message: { - context: { - traits: { - email: 'user002@tech.com', - }, - }, + context: { traits: { email: 'user002@tech.com' } }, type: 'Identify', anonymousId: 'b4ffheww8eisndbdjgdewifewfgerwibderv', }, @@ -146,16 +116,8 @@ export const data = [ files: {}, }, ], - destination: { - Config: { - authToken: 'testAuthToken', - }, - }, - metadata: [ - { - jobId: 2, - }, - ], + destination: { Config: { authToken: 'testAuthToken' } }, + metadata: [{ jobId: 2, userId: 'u1' }], statusCode: 200, }, ], @@ -166,7 +128,7 @@ export const data = [ { name: 'vero', description: 'Test 2', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -174,14 +136,8 @@ export const data = [ body: { input: [ { - destination: { - Config: { - authToken: 'testAuthToken', - }, - }, - metadata: { - jobId: 3, - }, + destination: { Config: { authToken: 'testAuthToken' } }, + metadata: { jobId: 3, userId: 'u1' }, message: { context: { traits: { @@ -190,13 +146,7 @@ export const data = [ email: 'user005@tech.com', }, }, - integrations: { - vero: { - tags: { - add: ['a', 'b'], - }, - }, - }, + integrations: { vero: { tags: { add: ['a', 'b'] } } }, type: 'Identify', userId: 'fprediruser001', }, @@ -226,10 +176,7 @@ export const data = [ JSON: { id: 'fprediruser001', email: 'user005@tech.com', - data: { - address: 'Caravela Beach Goa', - homwTown: 'Mawsynram', - }, + data: { address: 'Caravela Beach Goa', homwTown: 'Mawsynram' }, auth_token: 'testAuthToken', }, JSON_ARRAY: {}, @@ -246,11 +193,7 @@ export const data = [ headers: {}, params: {}, body: { - JSON: { - auth_token: 'testAuthToken', - id: 'fprediruser001', - add: ['a', 'b'], - }, + JSON: { auth_token: 'testAuthToken', id: 'fprediruser001', add: ['a', 'b'] }, JSON_ARRAY: {}, XML: {}, FORM: {}, @@ -258,16 +201,8 @@ export const data = [ files: {}, }, ], - destination: { - Config: { - authToken: 'testAuthToken', - }, - }, - metadata: [ - { - jobId: 3, - }, - ], + destination: { Config: { authToken: 'testAuthToken' } }, + metadata: [{ jobId: 3, userId: 'u1' }], statusCode: 200, }, ], @@ -278,7 +213,7 @@ export const data = [ { name: 'vero', description: 'Test 3', - feature: FEATURES.ROUTER, + feature: 'router', module: 'destination', version: 'v0', input: { @@ -286,21 +221,11 @@ export const data = [ body: { input: [ { - destination: { - Config: { - authToken: 'testAuthToken', - }, - }, - metadata: { - jobId: 4, - }, + destination: { Config: { authToken: 'testAuthToken' } }, + metadata: { jobId: 4, userId: 'u1' }, message: { event: 'Random event with nonexisting userId and email', - properties: { - movieWatched: 3, - gamesPlayed: 4, - email: 'eventIdn02@sample.com', - }, + properties: { movieWatched: 3, gamesPlayed: 4, email: 'eventIdn02@sample.com' }, type: 'track', userId: 'eventIdn01', }, @@ -328,16 +253,9 @@ export const data = [ params: {}, body: { JSON: { - identity: { - id: 'eventIdn01', - email: 'eventIdn02@sample.com', - }, + identity: { id: 'eventIdn01', email: 'eventIdn02@sample.com' }, event_name: 'Random event with nonexisting userId and email', - data: { - movieWatched: 3, - gamesPlayed: 4, - email: 'eventIdn02@sample.com', - }, + data: { movieWatched: 3, gamesPlayed: 4, email: 'eventIdn02@sample.com' }, auth_token: 'testAuthToken', }, JSON_ARRAY: {}, @@ -347,16 +265,8 @@ export const data = [ files: {}, }, ], - destination: { - Config: { - authToken: 'testAuthToken', - }, - }, - metadata: [ - { - jobId: 4, - }, - ], + destination: { Config: { authToken: 'testAuthToken' } }, + metadata: [{ jobId: 4, userId: 'u1' }], statusCode: 200, }, ], diff --git a/test/integrations/destinations/webhook/processor/data.ts b/test/integrations/destinations/webhook/processor/data.ts index d02fa58227..dbe83a79a5 100644 --- a/test/integrations/destinations/webhook/processor/data.ts +++ b/test/integrations/destinations/webhook/processor/data.ts @@ -18,15 +18,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -93,14 +103,28 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { from: '', to: '' }, - { from: 'test2', to: 'value2' }, + { + from: '', + to: '', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -110,98 +134,115 @@ export const data = [ { output: { body: { - XML: {}, - JSON_ARRAY: {}, JSON: { - timestamp: '2019-09-01T15:46:51.693229+05:30', - user_properties: { - total_payments: 0, - internetReachability: 'ReachableViaLocalAreaNetwork', - level: 6, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - coin_balance: 9466052, - player_total_shields: 0, - isLowEndDevice: false, - game_fps: 30, - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - graphicsQuality: 'HD', - current_module_name: 'CasinoGameModule', - player_total_battles: 0, - lifetime_gem_balance: 0, - gem_balance: 0, - fb_profile: '0', - start_date: '2019-08-01', - versionSessionCount: 2, - game_name: 'FireEagleSlots', - }, - integrations: { All: true }, - event: 'spin_result', - message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { device: { - model: 'Redmi 6', - manufacturer: 'Xiaomi', id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', name: 'xiaomi', }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - address: { city: 'Dhaka', country: 'Bangladesh' }, }, - os: { version: '8.1.0', name: 'android' }, - network: { carrier: 'Banglalink' }, }, - type: 'track', + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - jackpot_win_type: 'Silver', - coin_balance: 9466052, - bet_level: 1, - ishighroller: 'False', - tournament_id: 'T1561970819', + additional_bet_index: 0, battle_id: 'N/A', bet_amount: 9, - fb_profile: '0', - player_total_shields: 0, - is_turbo: 'False', - player_total_battles: 0, + bet_level: 1, bet_multiplier: 1, - start_date: '2019-08-01', - versionSessionCount: 2, - graphicsQuality: 'HD', - is_auto_spin: 'False', + coin_balance: 9466052, + current_module_name: 'CasinoGameModule', days_in_game: 0, - additional_bet_index: 0, - isLowEndDevice: 'False', - game_fps: 30, extra_param: 'N/A', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - current_module_name: 'CasinoGameModule', - game_id: 'fireEagleBase', + fb_profile: '0', featureGameType: 'N/A', + game_fps: 30, + game_id: 'fireEagleBase', + game_name: 'FireEagleSlots', gem_balance: 0, + graphicsQuality: 'HD', + idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', internetReachability: 'ReachableViaLocalAreaNetwork', - total_payments: 0, + isLowEndDevice: 'False', + is_auto_spin: 'False', + is_turbo: 'False', + isf: 'False', + ishighroller: 'False', + jackpot_win_amount: 90, + jackpot_win_type: 'Silver', level: 6, - win_amount: 0, + lifetime_gem_balance: 0, no_of_spin: 1, + player_total_battles: 0, + player_total_shields: 0, + start_date: '2019-08-01', + total_payments: 0, + tournament_id: 'T1561970819', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + versionSessionCount: 2, + win_amount: 0, + }, + timestamp: '2019-09-01T15:46:51.693229+05:30', + type: 'track', + user_properties: { + coin_balance: 9466052, + current_module_name: 'CasinoGameModule', + fb_profile: '0', + game_fps: 30, game_name: 'FireEagleSlots', - jackpot_win_amount: 90, + gem_balance: 0, + graphicsQuality: 'HD', + idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', + internetReachability: 'ReachableViaLocalAreaNetwork', + isLowEndDevice: false, + level: 6, lifetime_gem_balance: 0, - isf: 'False', + player_total_battles: 0, + player_total_shields: 0, + start_date: '2019-08-01', + total_payments: 0, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + versionSessionCount: 2, }, }, + JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, - endpoint: 'http://6b0e6a60.ngrok.io', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { 'content-type': 'application/json', test2: 'value2' }, version: '1', - params: {}, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', type: 'REST', method: 'POST', + endpoint: 'http://6b0e6a60.ngrok.io', + headers: { + 'content-type': 'application/json', + test2: 'value2', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -228,15 +269,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -299,10 +350,22 @@ export const data = [ versionSessionCount: 2, }, }, - destination: { Config: { webhookUrl: 'https://6b0e6a60.ngrok.io/n' } }, + destination: { + Config: { + webhookUrl: 'https://6b0e6a60.ngrok.io/n', + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + }, }, ], - method: 'POST', }, }, output: { @@ -312,98 +375,114 @@ export const data = [ { output: { body: { - XML: {}, - JSON_ARRAY: {}, JSON: { - timestamp: '2019-09-01T15:46:51.693229+05:30', - user_properties: { - total_payments: 0, - internetReachability: 'ReachableViaLocalAreaNetwork', - level: 6, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - coin_balance: 9466052, - player_total_shields: 0, - isLowEndDevice: false, - game_fps: 30, - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - graphicsQuality: 'HD', - current_module_name: 'CasinoGameModule', - player_total_battles: 0, - lifetime_gem_balance: 0, - gem_balance: 0, - fb_profile: '0', - start_date: '2019-08-01', - versionSessionCount: 2, - game_name: 'FireEagleSlots', - }, - integrations: { All: true }, - event: 'spin_result', - message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { device: { - model: 'Redmi 6', - manufacturer: 'Xiaomi', id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', name: 'xiaomi', }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - address: { city: 'Dhaka', country: 'Bangladesh' }, }, - os: { version: '8.1.0', name: 'android' }, - network: { carrier: 'Banglalink' }, }, - type: 'track', + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - jackpot_win_type: 'Silver', - coin_balance: 9466052, - bet_level: 1, - ishighroller: 'False', - tournament_id: 'T1561970819', + additional_bet_index: 0, battle_id: 'N/A', bet_amount: 9, - fb_profile: '0', - player_total_shields: 0, - is_turbo: 'False', - player_total_battles: 0, + bet_level: 1, bet_multiplier: 1, - start_date: '2019-08-01', - versionSessionCount: 2, - graphicsQuality: 'HD', - is_auto_spin: 'False', + coin_balance: 9466052, + current_module_name: 'CasinoGameModule', days_in_game: 0, - additional_bet_index: 0, - isLowEndDevice: 'False', - game_fps: 30, extra_param: 'N/A', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - current_module_name: 'CasinoGameModule', - game_id: 'fireEagleBase', + fb_profile: '0', featureGameType: 'N/A', + game_fps: 30, + game_id: 'fireEagleBase', + game_name: 'FireEagleSlots', gem_balance: 0, + graphicsQuality: 'HD', + idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', internetReachability: 'ReachableViaLocalAreaNetwork', - total_payments: 0, + isLowEndDevice: 'False', + is_auto_spin: 'False', + is_turbo: 'False', + isf: 'False', + ishighroller: 'False', + jackpot_win_amount: 90, + jackpot_win_type: 'Silver', level: 6, - win_amount: 0, + lifetime_gem_balance: 0, no_of_spin: 1, + player_total_battles: 0, + player_total_shields: 0, + start_date: '2019-08-01', + total_payments: 0, + tournament_id: 'T1561970819', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + versionSessionCount: 2, + win_amount: 0, + }, + timestamp: '2019-09-01T15:46:51.693229+05:30', + type: 'track', + user_properties: { + coin_balance: 9466052, + current_module_name: 'CasinoGameModule', + fb_profile: '0', + game_fps: 30, game_name: 'FireEagleSlots', - jackpot_win_amount: 90, + gem_balance: 0, + graphicsQuality: 'HD', + idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', + internetReachability: 'ReachableViaLocalAreaNetwork', + isLowEndDevice: false, + level: 6, lifetime_gem_balance: 0, - isf: 'False', + player_total_battles: 0, + player_total_shields: 0, + start_date: '2019-08-01', + total_payments: 0, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + versionSessionCount: 2, }, }, + JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, - endpoint: 'https://6b0e6a60.ngrok.io/n', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { 'content-type': 'application/json' }, version: '1', - params: {}, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', type: 'REST', method: 'POST', + endpoint: 'https://6b0e6a60.ngrok.io/n', + headers: { + 'content-type': 'application/json', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -430,15 +509,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -501,10 +590,22 @@ export const data = [ versionSessionCount: 2, }, }, - destination: { Config: { webhookUrl: 'https://6b0e6a60.' } }, + destination: { + Config: { + webhookUrl: 'https://6b0e6a60.', + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + }, }, ], - method: 'POST', }, }, output: { @@ -514,98 +615,114 @@ export const data = [ { output: { body: { - XML: {}, - JSON_ARRAY: {}, JSON: { - timestamp: '2019-09-01T15:46:51.693229+05:30', - user_properties: { - total_payments: 0, - internetReachability: 'ReachableViaLocalAreaNetwork', - level: 6, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - coin_balance: 9466052, - player_total_shields: 0, - isLowEndDevice: false, - game_fps: 30, - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - graphicsQuality: 'HD', - current_module_name: 'CasinoGameModule', - player_total_battles: 0, - lifetime_gem_balance: 0, - gem_balance: 0, - fb_profile: '0', - start_date: '2019-08-01', - versionSessionCount: 2, - game_name: 'FireEagleSlots', - }, - integrations: { All: true }, - event: 'spin_result', - message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { device: { - model: 'Redmi 6', - manufacturer: 'Xiaomi', id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', name: 'xiaomi', }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - address: { city: 'Dhaka', country: 'Bangladesh' }, }, - os: { version: '8.1.0', name: 'android' }, - network: { carrier: 'Banglalink' }, }, - type: 'track', + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - jackpot_win_type: 'Silver', - coin_balance: 9466052, - bet_level: 1, - ishighroller: 'False', - tournament_id: 'T1561970819', + additional_bet_index: 0, battle_id: 'N/A', bet_amount: 9, - fb_profile: '0', - player_total_shields: 0, - is_turbo: 'False', - player_total_battles: 0, + bet_level: 1, bet_multiplier: 1, - start_date: '2019-08-01', - versionSessionCount: 2, - graphicsQuality: 'HD', - is_auto_spin: 'False', + coin_balance: 9466052, + current_module_name: 'CasinoGameModule', days_in_game: 0, - additional_bet_index: 0, - isLowEndDevice: 'False', - game_fps: 30, extra_param: 'N/A', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - current_module_name: 'CasinoGameModule', - game_id: 'fireEagleBase', + fb_profile: '0', featureGameType: 'N/A', + game_fps: 30, + game_id: 'fireEagleBase', + game_name: 'FireEagleSlots', gem_balance: 0, + graphicsQuality: 'HD', + idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', internetReachability: 'ReachableViaLocalAreaNetwork', - total_payments: 0, + isLowEndDevice: 'False', + is_auto_spin: 'False', + is_turbo: 'False', + isf: 'False', + ishighroller: 'False', + jackpot_win_amount: 90, + jackpot_win_type: 'Silver', level: 6, - win_amount: 0, + lifetime_gem_balance: 0, no_of_spin: 1, + player_total_battles: 0, + player_total_shields: 0, + start_date: '2019-08-01', + total_payments: 0, + tournament_id: 'T1561970819', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + versionSessionCount: 2, + win_amount: 0, + }, + timestamp: '2019-09-01T15:46:51.693229+05:30', + type: 'track', + user_properties: { + coin_balance: 9466052, + current_module_name: 'CasinoGameModule', + fb_profile: '0', + game_fps: 30, game_name: 'FireEagleSlots', - jackpot_win_amount: 90, + gem_balance: 0, + graphicsQuality: 'HD', + idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', + internetReachability: 'ReachableViaLocalAreaNetwork', + isLowEndDevice: false, + level: 6, lifetime_gem_balance: 0, - isf: 'False', + player_total_battles: 0, + player_total_shields: 0, + start_date: '2019-08-01', + total_payments: 0, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + versionSessionCount: 2, }, }, + JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, - endpoint: 'https://6b0e6a60.', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { 'content-type': 'application/json' }, version: '1', - params: {}, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', type: 'REST', method: 'POST', + endpoint: 'https://6b0e6a60.', + headers: { + 'content-type': 'application/json', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -632,17 +749,35 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { k1: 'v1', k2: { k3: 'c3', k4: { k5: 'c5' } } }, + properties: { + k1: 'v1', + k2: { + k3: 'c3', + k4: { + k5: 'c5', + }, + }, + }, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, @@ -650,12 +785,25 @@ export const data = [ Config: { webhookUrl: 'https://6b0e6a60.', webhookMethod: 'GET', - headers: [{ from: 'X-customHeader', to: 'customHeaderVal' }], + headers: [ + { + from: 'X-customHeader', + to: 'customHeaderVal', + }, + ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -664,15 +812,30 @@ export const data = [ body: [ { output: { + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, version: '1', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', type: 'REST', method: 'GET', endpoint: 'https://6b0e6a60.', - headers: { 'x-customheader': 'customHeaderVal' }, - params: { k1: 'v1', 'k2.k3': 'c3', 'k2.k4.k5': 'c5' }, - body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, + headers: { + 'x-customheader': 'customHeaderVal', + }, + params: { + k1: 'v1', + 'k2.k3': 'c3', + 'k2.k4.k5': 'c5', + }, files: {}, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -699,24 +862,55 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { k1: 'v1', k2: { k3: 'c3', k4: { k5: 'c5' } } }, + properties: { + k1: 'v1', + k2: { + k3: 'c3', + k4: { + k5: 'c5', + }, + }, + }, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, - destination: { Config: { webhookUrl: 'https://6b0e6a60.', webhookMethod: 'GET' } }, + destination: { + Config: { + webhookUrl: 'https://6b0e6a60.', + webhookMethod: 'GET', + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + }, }, ], - method: 'POST', }, }, output: { @@ -725,15 +919,28 @@ export const data = [ body: [ { output: { + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, version: '1', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', type: 'REST', method: 'GET', endpoint: 'https://6b0e6a60.', headers: {}, - params: { k1: 'v1', 'k2.k3': 'c3', 'k2.k4.k5': 'c5' }, - body: { JSON: {}, XML: {}, JSON_ARRAY: {}, FORM: {} }, + params: { + k1: 'v1', + 'k2.k3': 'c3', + 'k2.k4.k5': 'c5', + }, files: {}, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -760,15 +967,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -816,14 +1033,28 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', header: [ - { from: 'test1', to: 'value1' }, - { from: 'test2', to: 'value2' }, + { + from: 'test1', + to: 'value1', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -832,12 +1063,6 @@ export const data = [ body: [ { output: { - version: '1', - type: 'REST', - method: 'POST', - endpoint: 'http://6b0e6a60.ngrok.io', - headers: { 'content-type': 'application/json' }, - params: {}, body: { JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', @@ -848,16 +1073,26 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, ip: '127.0.0.1', }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -901,12 +1136,24 @@ export const data = [ type: 'track', request_ip: '127.0.0.1', }, - XML: {}, JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, + version: '1', userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + type: 'REST', + method: 'POST', + endpoint: 'http://6b0e6a60.ngrok.io', + headers: { + 'content-type': 'application/json', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -933,15 +1180,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -989,14 +1246,28 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { from: 'Content-Type', to: 'application/xml' }, - { from: 'test2', to: 'value2' }, + { + from: 'Content-Type', + to: 'application/xml', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -1005,12 +1276,6 @@ export const data = [ body: [ { output: { - version: '1', - type: 'REST', - method: 'POST', - endpoint: 'http://6b0e6a60.ngrok.io', - headers: { 'content-type': 'application/xml', test2: 'value2' }, - params: {}, body: { JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', @@ -1021,16 +1286,26 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, ip: '127.0.0.1', }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1074,12 +1349,25 @@ export const data = [ type: 'track', request_ip: '127.0.0.1', }, - XML: {}, JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, + version: '1', userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + type: 'REST', + method: 'POST', + endpoint: 'http://6b0e6a60.ngrok.io', + headers: { + 'content-type': 'application/xml', + test2: 'value2', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -1100,7 +1388,9 @@ export const data = [ message: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1147,14 +1437,28 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { from: 'Content-Type', to: 'application/xml' }, - { from: 'test2', to: 'value2' }, + { + from: 'Content-Type', + to: 'application/xml', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -1163,17 +1467,13 @@ export const data = [ body: [ { output: { - version: '1', - type: 'REST', - method: 'POST', - endpoint: 'http://6b0e6a60.ngrok.io', - headers: { 'content-type': 'application/xml', test2: 'value2' }, - params: {}, body: { JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1216,12 +1516,25 @@ export const data = [ timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, - XML: {}, JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, + version: '1', userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + type: 'REST', + method: 'POST', + endpoint: 'http://6b0e6a60.ngrok.io', + headers: { + 'content-type': 'application/xml', + test2: 'value2', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -1248,15 +1561,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1269,7 +1592,9 @@ export const data = [ header: { dynamic_header_key_string: 'dynamic_header_value_string', dynamic_header_key_num: 10, - dynamic_header_key_object: { k1: 'v1' }, + dynamic_header_key_object: { + k1: 'v1', + }, }, appendPath: '/product/search?string=value', }, @@ -1277,14 +1602,28 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { from: '', to: '' }, - { from: 'test2', to: 'value2' }, + { + from: '', + to: '', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -1294,8 +1633,6 @@ export const data = [ { output: { body: { - XML: {}, - JSON_ARRAY: {}, JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { @@ -1305,15 +1642,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1324,20 +1671,26 @@ export const data = [ timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, + JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, - endpoint: 'http://6b0e6a60.ngrok.io/product/search?string=value', + version: '1', userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + type: 'REST', + method: 'POST', + endpoint: 'http://6b0e6a60.ngrok.io/product/search?string=value', headers: { 'content-type': 'application/json', test2: 'value2', dynamic_header_key_string: 'dynamic_header_value_string', }, - version: '1', params: {}, - type: 'REST', - method: 'POST', + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -1364,15 +1717,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1388,14 +1751,28 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { from: '', to: '' }, - { from: 'test2', to: 'value2' }, + { + from: '', + to: '', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -1405,8 +1782,6 @@ export const data = [ { output: { body: { - XML: {}, - JSON_ARRAY: {}, JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { @@ -1416,15 +1791,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1435,16 +1820,25 @@ export const data = [ timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, + JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, - endpoint: 'https://www.google.com', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { 'content-type': 'application/json', test2: 'value2' }, version: '1', - params: {}, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', type: 'REST', method: 'POST', + endpoint: 'https://www.google.com', + headers: { + 'content-type': 'application/json', + test2: 'value2', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -1471,15 +1865,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1496,14 +1900,28 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { from: '', to: '' }, - { from: 'test2', to: 'value2' }, + { + from: '', + to: '', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -1513,8 +1931,6 @@ export const data = [ { output: { body: { - XML: {}, - JSON_ARRAY: {}, JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { @@ -1524,15 +1940,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1543,16 +1969,25 @@ export const data = [ timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, + JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, - endpoint: 'https://www.google.com/?searchTerms=cats', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { 'content-type': 'application/json', test2: 'value2' }, version: '1', - params: {}, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', type: 'REST', method: 'POST', + endpoint: 'https://www.google.com/?searchTerms=cats', + headers: { + 'content-type': 'application/json', + test2: 'value2', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -1579,15 +2014,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1605,14 +2050,28 @@ export const data = [ webhookUrl: 'http://6b0e6a60.ngrok.io', webhookMethod: 'PUT', headers: [ - { from: '', to: '' }, - { from: 'test2', to: 'value2' }, + { + from: '', + to: '', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -1622,8 +2081,6 @@ export const data = [ { output: { body: { - XML: {}, - JSON_ARRAY: {}, JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { @@ -1633,15 +2090,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1652,16 +2119,25 @@ export const data = [ timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, + JSON_ARRAY: {}, + XML: {}, FORM: {}, }, - files: {}, - endpoint: 'https://www.google.com/?searchTerms=cats', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { 'content-type': 'application/json', test2: 'value2' }, version: '1', - params: {}, + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', type: 'REST', method: 'PUT', + endpoint: 'https://www.google.com/?searchTerms=cats', + headers: { + 'content-type': 'application/json', + test2: 'value2', + }, + params: {}, + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -1688,15 +2164,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1714,14 +2200,28 @@ export const data = [ webhookUrl: 'http://6b0e6a60.ngrok.io', webhookMethod: 'DELETE', headers: [ - { from: '', to: '' }, - { from: 'test2', to: 'value2' }, + { + from: '', + to: '', + }, + { + from: 'test2', + to: 'value2', + }, ], }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, }, ], - method: 'POST', }, }, output: { @@ -1730,20 +2230,31 @@ export const data = [ body: [ { output: { - body: { XML: {}, JSON_ARRAY: {}, JSON: {}, FORM: {} }, - files: {}, - endpoint: 'https://www.google.com/?searchTerms=cats', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { test2: 'value2' }, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, version: '1', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + type: 'REST', + method: 'DELETE', + endpoint: 'https://www.google.com/?searchTerms=cats', + headers: { + test2: 'value2', + }, params: { additional_bet_index: 0, battle_id: 'N/A', featureGameType: 'N/A', win_amount: 0, }, - type: 'REST', - method: 'DELETE', + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -1770,15 +2281,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1845,12 +2366,25 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', webhookMethod: 'POST', - headers: [{ from: 'test2', to: 'value2' }], + headers: [ + { + from: 'test2', + to: 'value2', + }, + ], + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, }, }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + }, }, ], - method: 'POST', }, }, output: { @@ -1860,7 +2394,6 @@ export const data = [ { output: { body: { - FORM: {}, JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { @@ -1870,15 +2403,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -1943,15 +2486,23 @@ export const data = [ }, JSON_ARRAY: {}, XML: {}, + FORM: {}, }, - endpoint: 'http://6b0e6a60.ngrok.io', - files: {}, - headers: { 'content-type': 'application/json', test2: 'value2' }, + version: '1', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + type: 'REST', method: 'POST', + endpoint: 'http://6b0e6a60.ngrok.io', + headers: { + 'content-type': 'application/json', + test2: 'value2', + }, params: {}, - type: 'REST', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - version: '1', + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, @@ -1978,15 +2529,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -2053,12 +2614,25 @@ export const data = [ Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', webhookMethod: 'PATCH', - headers: [{ from: 'test2', to: 'value2' }], + headers: [ + { + from: 'test2', + to: 'value2', + }, + ], + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, }, }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', + }, }, ], - method: 'POST', }, }, output: { @@ -2068,7 +2642,6 @@ export const data = [ { output: { body: { - FORM: {}, JSON: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', context: { @@ -2078,15 +2651,25 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { carrier: 'Banglalink' }, - os: { name: 'android', version: '8.1.0' }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, traits: { - address: { city: 'Dhaka', country: 'Bangladesh' }, + address: { + city: 'Dhaka', + country: 'Bangladesh', + }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { All: true }, + integrations: { + All: true, + }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -2151,15 +2734,23 @@ export const data = [ }, JSON_ARRAY: {}, XML: {}, + FORM: {}, }, - endpoint: 'http://6b0e6a60.ngrok.io', - files: {}, - headers: { 'content-type': 'application/json', test2: 'value2' }, + version: '1', + userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + type: 'REST', method: 'PATCH', + endpoint: 'http://6b0e6a60.ngrok.io', + headers: { + 'content-type': 'application/json', + test2: 'value2', + }, params: {}, - type: 'REST', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - version: '1', + files: {}, + }, + metadata: { + destinationId: 'destId', + workspaceId: 'wspId', }, statusCode: 200, }, diff --git a/test/integrations/destinations/webhook/router/data.ts b/test/integrations/destinations/webhook/router/data.ts index e9c4f8701a..a082eb12f1 100644 --- a/test/integrations/destinations/webhook/router/data.ts +++ b/test/integrations/destinations/webhook/router/data.ts @@ -19,25 +19,15 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { - All: true, - }, + integrations: { All: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -100,23 +90,16 @@ export const data = [ versionSessionCount: 2, }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, destination: { Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { - from: '', - to: '', - }, - { - from: 'test2', - to: 'value2', - }, + { from: '', to: '' }, + { from: 'test2', to: 'value2' }, ], }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, }, { @@ -129,25 +112,15 @@ export const data = [ model: 'Redmi 6', name: 'xiaomi', }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, + network: { carrier: 'Banglalink' }, + os: { name: 'android', version: '8.1.0' }, traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, + address: { city: 'Dhaka', country: 'Bangladesh' }, anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', }, }, event: 'spin_result', - integrations: { - All: true, - }, + integrations: { All: true }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', properties: { additional_bet_index: 0, @@ -210,13 +183,10 @@ export const data = [ versionSessionCount: 2, }, }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 3, userId: 'u1' }, destination: { - Config: { - webhookUrl: 'https://6b0e6a60.ngrok.io/n', - }, + Config: { webhookUrl: 'https://6b0e6a60.ngrok.io/n' }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, }, ], @@ -257,9 +227,7 @@ export const data = [ versionSessionCount: 2, game_name: 'FireEagleSlots', }, - integrations: { - All: true, - }, + integrations: { All: true }, event: 'spin_result', message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', @@ -272,18 +240,10 @@ export const data = [ }, traits: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - }, - os: { - version: '8.1.0', - name: 'android', - }, - network: { - carrier: 'Banglalink', + address: { city: 'Dhaka', country: 'Bangladesh' }, }, + os: { version: '8.1.0', name: 'android' }, + network: { carrier: 'Banglalink' }, }, type: 'track', properties: { @@ -330,36 +290,24 @@ export const data = [ files: {}, endpoint: 'http://6b0e6a60.ngrok.io', userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { - 'content-type': 'application/json', - test2: 'value2', - }, + headers: { 'content-type': 'application/json', test2: 'value2' }, version: '1', params: {}, type: 'REST', method: 'POST', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { Config: { webhookUrl: 'http://6b0e6a60.ngrok.io', headers: [ - { - from: '', - to: '', - }, - { - from: 'test2', - to: 'value2', - }, + { from: '', to: '' }, + { from: 'test2', to: 'value2' }, ], }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, }, { @@ -389,9 +337,7 @@ export const data = [ versionSessionCount: 2, game_name: 'FireEagleSlots', }, - integrations: { - All: true, - }, + integrations: { All: true }, event: 'spin_result', message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', @@ -404,18 +350,10 @@ export const data = [ }, traits: { anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - }, - os: { - version: '8.1.0', - name: 'android', - }, - network: { - carrier: 'Banglalink', + address: { city: 'Dhaka', country: 'Bangladesh' }, }, + os: { version: '8.1.0', name: 'android' }, + network: { carrier: 'Banglalink' }, }, type: 'track', properties: { @@ -462,25 +400,18 @@ export const data = [ files: {}, endpoint: 'https://6b0e6a60.ngrok.io/n', userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - headers: { - 'content-type': 'application/json', - }, + headers: { 'content-type': 'application/json' }, version: '1', params: {}, type: 'REST', method: 'POST', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, statusCode: 200, destination: { - Config: { - webhookUrl: 'https://6b0e6a60.ngrok.io/n', - }, + Config: { webhookUrl: 'https://6b0e6a60.ngrok.io/n' }, + DestinationDefinition: { Config: { cdkV2Enabled: true } }, }, }, ], diff --git a/test/integrations/destinations/woopra/router/data.ts b/test/integrations/destinations/woopra/router/data.ts index 5a3b20bea6..941f69c2fe 100644 --- a/test/integrations/destinations/woopra/router/data.ts +++ b/test/integrations/destinations/woopra/router/data.ts @@ -13,30 +13,15 @@ export const data = [ message: { anonymousId: '21e13f4bc7ceddad', context: { - app: { - build: '4', - name: 'RuddCDN', - }, - device: { - id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', - name: 'generic_x86_arm', - }, - os: { - name: 'Android', - version: '9', - }, + app: { build: '4', name: 'RuddCDN' }, + device: { id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', name: 'generic_x86_arm' }, + os: { name: 'Android', version: '9' }, timezone: 'Asia/Kolkata', - traits: { - anonymousId: '21e13f4bc7ceddad', - }, + traits: { anonymousId: '21e13f4bc7ceddad' }, userAgent: 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', }, - integrations: { - woopra: { - projectName: 'abc.com', - }, - }, + integrations: { woopra: { projectName: 'abc.com' } }, messageId: '1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb', originalTimestamp: '2020-09-28T19:53:31.900Z', traits: { @@ -52,14 +37,8 @@ export const data = [ timestamp: '2020-09-29T14:50:29.907+05:30', type: 'identify', }, - destination: { - Config: { - projectName: 'int.com', - }, - }, - metadata: { - jobId: 1, - }, + destination: { Config: { projectName: 'int.com' } }, + metadata: { jobId: 1, userId: 'u1' }, }, ], destType: 'woopra', @@ -74,12 +53,7 @@ export const data = [ output: [ { batchedRequest: { - body: { - XML: {}, - FORM: {}, - JSON: {}, - JSON_ARRAY: {}, - }, + body: { XML: {}, FORM: {}, JSON: {}, JSON_ARRAY: {} }, type: 'REST', files: {}, method: 'GET', @@ -100,16 +74,8 @@ export const data = [ version: '1', endpoint: 'https://www.woopra.com/track/identify', }, - destination: { - Config: { - projectName: 'int.com', - }, - }, - metadata: [ - { - jobId: 1, - }, - ], + destination: { Config: { projectName: 'int.com' } }, + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, }, @@ -133,49 +99,26 @@ export const data = [ anonymousId: '21e13f4bc7ceddad', channel: 'mobile', context: { - app: { - build: '4', - name: 'RuddCDN', - }, - device: { - id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', - name: 'generic_x86_arm', - }, - library: { - name: 'com.rudderstack.android.sdk.core', - version: '1.0.6', - }, - os: { - name: 'Android', - version: '9', - }, + app: { build: '4', name: 'RuddCDN' }, + device: { id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', name: 'generic_x86_arm' }, + library: { name: 'com.rudderstack.android.sdk.core', version: '1.0.6' }, + os: { name: 'Android', version: '9' }, timezone: 'Asia/Kolkata', userAgent: 'Dalvik/2.1.0 (Linux; U; Android 9; AOSP on IA Emulator Build/PSR1.180720.117)', }, event: 'First Investment', - integrations: { - woopra: 'int.com', - }, + integrations: { woopra: 'int.com' }, messageId: '1601322811899-d9c7dd00-50dc-4364-95c8-e89423eb3cfb', originalTimestamp: '2020-09-28T19:53:31.900Z', - properties: { - currency: 'EUR', - revenue: 20.37566, - }, + properties: { currency: 'EUR', revenue: 20.37566 }, receivedAt: '2020-09-29T14:50:43.005+05:30', sentAt: '2020-09-28T19:53:44.998Z', timestamp: '2020-09-29T14:50:29.907+05:30', type: 'track', }, - destination: { - Config: { - projectName: 'int.com', - }, - }, - metadata: { - jobId: 2, - }, + destination: { Config: { projectName: 'int.com' } }, + metadata: { jobId: 2, userId: 'u1' }, }, ], destType: 'woopra', @@ -190,12 +133,7 @@ export const data = [ output: [ { batchedRequest: { - body: { - XML: {}, - FORM: {}, - JSON: {}, - JSON_ARRAY: {}, - }, + body: { XML: {}, FORM: {}, JSON: {}, JSON_ARRAY: {} }, type: 'REST', files: {}, method: 'GET', @@ -213,16 +151,8 @@ export const data = [ version: '1', endpoint: 'https://www.woopra.com/track/ce', }, - destination: { - Config: { - projectName: 'int.com', - }, - }, - metadata: [ - { - jobId: 2, - }, - ], + destination: { Config: { projectName: 'int.com' } }, + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, }, @@ -246,19 +176,11 @@ export const data = [ anonymousId: '21e13f4bc7ceddad', channel: 'mobile', event: 'First Investment', - integrations: { - woopra: 'int.com', - }, + integrations: { woopra: 'int.com' }, type: 'group', }, - destination: { - Config: { - projectName: 'int.com', - }, - }, - metadata: { - jobId: 3, - }, + destination: { Config: { projectName: 'int.com' } }, + metadata: { jobId: 3, userId: 'u1' }, }, ], destType: 'woopra', @@ -272,16 +194,8 @@ export const data = [ body: { output: [ { - destination: { - Config: { - projectName: 'int.com', - }, - }, - metadata: [ - { - jobId: 3, - }, - ], + destination: { Config: { projectName: 'int.com' } }, + metadata: [{ jobId: 3, userId: 'u1' }], statTags: { errorCategory: 'dataValidation', implementation: 'native', diff --git a/test/integrations/destinations/wootric/network.ts b/test/integrations/destinations/wootric/network.ts new file mode 100644 index 0000000000..2407efa62b --- /dev/null +++ b/test/integrations/destinations/wootric/network.ts @@ -0,0 +1,183 @@ +export const networkCallsData = [ + { + httpReq: { + url: 'https://api.wootric.com/v1/end_users/dummyId1?lookup_by_external_id=true', + method: 'GET', + }, + httpRes: { + status: 200, + data: { + "id": 486438462, + "created_at": "2022-08-10 11:39:50 -0700", + "updated_at": "2022-08-10 11:39:50 -0700", + "email": "dummyuser1@gmail.com", + "last_surveyed": "2022-01-20 05:39:21 -0800", + "external_created_at": 1611149961, + "last_seen_at": null, + "properties": { + "city": "Mumbai", + "name": "Dummy User 1", + "title": "SDE", + "gender": "Male", + "company": "Rudderstack" + }, + "phone_number": "+19123456789", + "external_id": "dummyId1", + "last_response": null, + "settings": { + "email_nps": true, + "mobile_nps": true, + "web_nps": true, + "force_mobile_survey": null, + "force_web_survey": null, + "surveys_disabled_by_end_user": null + } + }, + }, + }, + { + httpReq: { + url: 'https://api.wootric.com/v1/end_users/exclueFunTestId?lookup_by_external_id=true', + method: 'GET', + }, + httpRes: { + status: 200, + data: { + "id": 486336190, + "created_at": "2022-08-10 07:30:50 -0700", + "updated_at": "2022-08-10 10:12:46 -0700", + "email": "excludeUser@gmail.com", + "last_surveyed": "2022-01-20 05:39:21 -0800", + "external_created_at": 1579755367, + "last_seen_at": null, + "properties": { + "city": "Mumbai", + "name": "exclude test user", + "email": "excludeUser@gmail.com", + "title": "AD", + "gender": "Male", + "company": "Rockstar" + }, + "phone_number": "+18324671283", + "external_id": "exclueFunTestId", + "last_response": null, + "settings": { + "email_nps": true, + "mobile_nps": true, + "web_nps": true, + "force_mobile_survey": null, + "force_web_survey": null, + "surveys_disabled_by_end_user": null + } + }, + }, + }, + { + httpReq: { + url: 'https://api.wootric.com/v1/end_users/my-external-id-1234?lookup_by_external_id=true', + method: 'POST', + + }, + httpRes: { + status: 200, + data: { + "type": "error_list", + "errors": [ + { + "status": "record_not_found", + "message": "The record could not be found", + "field": null + } + ] + } + }, + }, + { + httpReq: { + url: 'https://api.wootric.com/v1/end_users/490635419', + method: 'GET' + }, + httpRes: { + data: { + "id": 490635419, + "created_at": "2022-08-20 00:55:26 -0700", + "updated_at": "2022-08-22 11:17:05 -0700", + "email": "firstuser@gmail.com", + "last_surveyed": "2022-08-01 00:11:44 -0700", + "external_created_at": 1661002761, + "last_seen_at": null, + "properties": { + "Department": "Marketing", + "product_plan": "Web", + "revenue amount": "5000" + }, + "phone_number": "+8859133456781", + "external_id": "firstUserId123", + "last_response": { + "id": 101013218, + "score": 9, + "text": "Good !!!", + "survey": { + "channel": "web" + } + }, + "settings": { + "email_nps": true, + "mobile_nps": true, + "web_nps": true, + "force_mobile_survey": null, + "force_web_survey": null, + "surveys_disabled_by_end_user": null + } + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.wootric.com/oauth/token?account_token=NPS-dummyToken', + method: 'POST' + }, + httpRes: { + data: { + "access_token": "2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c", + "token_type": "Bearer", + "expires_in": 7200, + "refresh_token": "f4033a61742e84405a5ef8b2e09b82395dc041f0259fd5fb715fc196a1b9cd52", + "scope": "delete_account admin respond export read survey invalidate_response", + "created_at": 1660292389 + }, + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.wootric.com/v1/end_users/dummyId2?lookup_by_external_id=true', + method: 'GET' + }, + httpRes: { + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.wootric.com/v1/end_users/12345', + method: 'GET' + }, + httpRes: { + status: 200, + }, + }, + { + httpReq: { + url: 'https://api.wootric.com/oauth/token?account_token=NPS-dummyToken12', + method: 'POST' + }, + httpRes: { + data: { + error: "Not found", + status: 404 + } + }, + } +]; diff --git a/test/integrations/destinations/wootric/processor/data.ts b/test/integrations/destinations/wootric/processor/data.ts new file mode 100644 index 0000000000..d94901fe80 --- /dev/null +++ b/test/integrations/destinations/wootric/processor/data.ts @@ -0,0 +1,1825 @@ +export const data = [ + { + "name": "wootric", + "description": "Wrong Account Token Passed", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken12" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId2", + "channel": "web", + "context": {}, + "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": [ + { + "error": "{\"message\":\"Access token could not be generated due to {\\\"error\\\":\\\"Not found\\\",\\\"status\\\":404}\",\"destinationResponse\":{\"response\":{\"error\":\"Not found\",\"status\":404},\"status\":500}}", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "network", + "errorType": "retryable", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 500 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Identify call for creating user", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId2", + "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": "Bangalore", + "name": "Dummy User 2", + "email": "dummyUser2@gmail.com", + "phone": "+19123456777", + "title": "SDE", + "gender": "Male", + "company": "Rudderstack", + "createdAt": "2021-01-20T13:39:21.032Z" + }, + "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", + "method": "POST", + "endpoint": "https://api.wootric.com/v1/end_users", + "headers": { + "Content-Type": "application/x-www-form-urlencoded", + "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" + }, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": { + "email": "dummyUser2@gmail.com", + "phone_number": "+19123456777", + "last_surveyed": "1642685961", + "external_created_at": "1611149961", + "external_id": "dummyId2", + "properties[city]": "Bangalore", + "properties[name]": "Dummy User 2", + "properties[title]": "SDE", + "properties[gender]": "Male", + "properties[company]": "Rudderstack" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Identify call for creating user without-sending email and sending phone number", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId2", + "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": "Bangalore", + "name": "Dummy User 2", + "phone": "+19123456777", + "title": "SDE", + "gender": "Male", + "company": "Rudderstack", + "createdAt": "2021-01-20T13:39:21.032Z" + }, + "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", + "method": "POST", + "endpoint": "https://api.wootric.com/v1/end_users", + "headers": { + "Content-Type": "application/x-www-form-urlencoded", + "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" + }, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": { + "phone_number": "+19123456777", + "last_surveyed": "1642685961", + "external_created_at": "1611149961", + "external_id": "dummyId2", + "properties[city]": "Bangalore", + "properties[name]": "Dummy User 2", + "properties[title]": "SDE", + "properties[gender]": "Male", + "properties[company]": "Rudderstack" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Identify call for creating user without-sending phone number and sending email", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId2", + "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": { + "email": "dummyUser2@gmail.com", + "city": "Bangalore", + "name": "Dummy User 2", + "title": "SDE", + "gender": "Male", + "company": "Rudderstack", + "createdAt": "2021-01-20T13:39:21.032Z" + }, + "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", + "method": "POST", + "endpoint": "https://api.wootric.com/v1/end_users", + "headers": { + "Content-Type": "application/x-www-form-urlencoded", + "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" + }, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": { + "email": "dummyUser2@gmail.com", + "last_surveyed": "1642685961", + "external_created_at": "1611149961", + "external_id": "dummyId2", + "properties[city]": "Bangalore", + "properties[name]": "Dummy User 2", + "properties[title]": "SDE", + "properties[gender]": "Male", + "properties[company]": "Rudderstack" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Identify call for creating user without sending traits", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId2", + "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 + }, + "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": [ + { + "error": "email/phone number are missing. At least one parameter must be provided", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Identify call for creating user without-sending (email and phone number)", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId2", + "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": "Mumbai", + "name": "Dummy User 1", + "title": "SDE", + "gender": "Male", + "company": "Rudderstack", + "createdAt": "2021-01-20T13:39:21.032Z" + }, + "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": [ + { + "error": "email/phone number are missing. At least one parameter must be provided", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Identify call for updating existing user with wootric end user id", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId1", + "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": { + "title": "VP", + "gender": "Male" + }, + "externalId": [ + { + "type": "wootricEndUserId", + "id": "490635419" + } + ], + "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", + "method": "PUT", + "endpoint": "https://api.wootric.com/v1/end_users/490635419", + "headers": { + "Content-Type": "application/x-www-form-urlencoded", + "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" + }, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": { + "last_surveyed": "1642685961", + "properties[Department]": "Marketing", + "properties[product_plan]": "Web", + "properties[revenue amount]": "5000", + "properties[title]": "VP", + "properties[gender]": "Male" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Identify call for updating existing user with (wootric externalId/ rudderstack userId)", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId1", + "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": { + "title": "VP", + "gender": "Male" + }, + "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", + "method": "PUT", + "endpoint": "https://api.wootric.com/v1/end_users/486438462", + "headers": { + "Content-Type": "application/x-www-form-urlencoded", + "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" + }, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": { + "last_surveyed": "1642685961", + "properties[title]": "VP", + "properties[gender]": "Male", + "properties[city]": "Mumbai", + "properties[name]": "Dummy User 1", + "properties[company]": "Rudderstack" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Identify call for updating user traits/properties", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "identify", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId1", + "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": "Udaipur", + "name": "Dummy User 1 New", + "title": "SDE-2", + "gender": "Male", + "company": "Rudderstack" + }, + "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", + "method": "PUT", + "endpoint": "https://api.wootric.com/v1/end_users/486438462", + "headers": { + "Content-Type": "application/x-www-form-urlencoded", + "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" + }, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": { + "last_surveyed": "1642685961", + "properties[city]": "Udaipur", + "properties[name]": "Dummy User 1 New", + "properties[title]": "SDE-2", + "properties[gender]": "Male", + "properties[company]": "Rudderstack" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Track call with existing userId and event type as create response", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "track", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId1", + "channel": "web", + "properties": { + "feedbackScore": 7, + "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" + }, + "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", + "ip": "0.0.0.0", + "screen": { + "width": 1440, + "height": 900, + "density": 2, + "innerWidth": 536, + "innerHeight": 689 + }, + "traits": { + "city": "Mumbai", + "name": "Dummy User 1", + "email": "dummyUser1@gmail.com", + "title": "SDE", + "gender": "Male", + "company": "Rudderstack", + "createdAt": "2021-01-20T13:39:21.032Z" + }, + "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, + "Wootric": { + "eventType": "create response" + } + }, + "originalTimestamp": "2022-01-20T13:39:21.032Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.wootric.com/v1/end_users/486438462/responses", + "headers": { + "Content-Type": "application/x-www-form-urlencoded", + "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" + }, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": { + "score": 7, + "ip_address": "0.0.0.0", + "origin_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", + "text": "Simple, Easy to use, Reliable, Affordable Product", + "created_at": "1611149961", + "end_user[properties][city]": "Mumbai", + "end_user[properties][name]": "Dummy User 1", + "end_user[properties][title]": "SDE", + "end_user[properties][gender]": "Male", + "end_user[properties][company]": "Rudderstack" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Track call with non-existing userId", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "track", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId2", + "channel": "web", + "properties": { + "feedbackScore": 7, + "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" + }, + "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", + "ip": "0.0.0.0", + "screen": { + "width": 1440, + "height": 900, + "density": 2, + "innerWidth": 536, + "innerHeight": 689 + }, + "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, + "Wootric": { + "eventType": "create response" + } + }, + "originalTimestamp": "2022-01-20T13:39:21.032Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "No user found with userId : dummyId2", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Track call with non-existing wootricEndUserId", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "track", + "sentAt": "2022-01-20T13:39:21.033Z", + "channel": "web", + "properties": { + "feedbackScore": 7, + "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" + }, + "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", + "ip": "0.0.0.0", + "screen": { + "width": 1440, + "height": 900, + "density": 2, + "innerWidth": 536, + "innerHeight": 689 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.2.20" + }, + "externalId": [ + { + "type": "wootricEndUserId", + "id": "12345" + } + ], + "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, + "Wootric": { + "eventType": "create response" + } + }, + "originalTimestamp": "2022-01-20T13:39:21.032Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "No user found with wootric end user Id : 12345", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Track call with existing userId and event type as create response and score out of bound", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "track", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId1", + "channel": "web", + "properties": { + "feedbackScore": 12, + "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" + }, + "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", + "ip": "0.0.0.0", + "screen": { + "width": 1440, + "height": 900, + "density": 2, + "innerWidth": 536, + "innerHeight": 689 + }, + "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, + "Wootric": { + "eventType": "create response" + } + }, + "originalTimestamp": "2022-01-20T13:39:21.032Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Invalid Score", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Track call with existing userId and event type as create decline", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "track", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId1", + "channel": "web", + "properties": { + "feedbackScore": 9, + "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" + }, + "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 + }, + "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, + "Wootric": { + "eventType": "create decline" + } + }, + "originalTimestamp": "2022-01-20T13:39:21.032Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.wootric.com/v1/end_users/486438462/declines", + "headers": { + "Content-Type": "application/x-www-form-urlencoded", + "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c" + }, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": { + "origin_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html" + } + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Track call with non-existing userId and event type as create decline", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "track", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId2", + "channel": "web", + "properties": { + "feedbackScore": 9, + "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" + }, + "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 + }, + "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, + "Wootric": { + "eventType": "create decline" + } + }, + "originalTimestamp": "2022-01-20T13:39:21.032Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "No user found with userId : dummyId2", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Track call with event type other than create response or decline", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "track", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId1", + "channel": "web", + "properties": { + "feedbackScore": 7, + "feedbackText": "Simple, Easy to use, Reliable, Affordable Product" + }, + "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", + "ip": "0.0.0.0", + "screen": { + "width": 1440, + "height": 900, + "density": 2, + "innerWidth": 536, + "innerHeight": 689 + }, + "traits": { + "city": "Mumbai", + "name": "Dummy User 1", + "email": "dummyUser1@gmail.com", + "phone": "+19123456789", + "title": "SDE", + "gender": "Male", + "company": "Rudderstack", + "createdAt": "2021-01-20T13:39:21.032Z" + }, + "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, + "Wootric": { + "eventType": "random" + } + }, + "originalTimestamp": "2022-01-20T13:39:21.032Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Event Type not supported", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "wootric", + "description": "Track call with missing event type in integration object", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "username": "wootricfakeuser@example.com", + "password": "password@123", + "accountToken": "NPS-dummyToken" + }, + "ID": "wootric-1234" + }, + "message": { + "type": "track", + "sentAt": "2022-01-20T13:39:21.033Z", + "userId": "dummyId1", + "channel": "web", + "properties": { + "feedbackScore": 3, + "feedbackText": "Too Slow!!!" + }, + "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", + "ip": "0.0.0.0", + "screen": { + "width": 1440, + "height": 900, + "density": 2, + "innerWidth": 536, + "innerHeight": 689 + }, + "traits": { + "city": "Mumbai", + "name": "Dummy User 1", + "email": "dummyUser1@gmail.com", + "phone": "+19123456789", + "title": "SDE", + "gender": "Male", + "company": "Rudderstack", + "createdAt": "2021-01-20T13:39:21.032Z" + }, + "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": [ + { + "error": "Event Type is missing from Integration object", + "statTags": { + "destType": "WOOTRIC", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + } +] diff --git a/test/integrations/destinations/wootric/router/data.ts b/test/integrations/destinations/wootric/router/data.ts new file mode 100644 index 0000000000..9af28f4f48 --- /dev/null +++ b/test/integrations/destinations/wootric/router/data.ts @@ -0,0 +1,1403 @@ +export const data = [ + { + name: 'wootric', + description: 'Succesfull Idenitfy Call', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 1, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId2', + 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: 'Bangalore', + name: 'Dummy User 2', + email: 'dummyUser2@gmail.com', + phone: '+19123456777', + title: 'SDE', + gender: 'Male', + company: 'Rudderstack', + createdAt: '2021-01-20T13:39:21.032Z', + }, + 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: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 2, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId2', + 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: 'Bangalore', + name: 'Dummy User 2', + phone: '+19123456777', + title: 'SDE', + gender: 'Male', + company: 'Rudderstack', + createdAt: '2021-01-20T13:39:21.032Z', + }, + 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: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 3, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId2', + 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: { + email: 'dummyUser2@gmail.com', + city: 'Bangalore', + name: 'Dummy User 2', + title: 'SDE', + gender: 'Male', + company: 'Rudderstack', + createdAt: '2021-01-20T13:39:21.032Z', + }, + 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: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 5, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId2', + 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, + }, + 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: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 6, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId2', + 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: 'Mumbai', + name: 'Dummy User 1', + title: 'SDE', + gender: 'Male', + company: 'Rudderstack', + createdAt: '2021-01-20T13:39:21.032Z', + }, + 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: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 7, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId1', + 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: { email: 'dummyuser1_01@gmail.com' }, + 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: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 8, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId1', + 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: { phone: '+19777777778' }, + 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: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 9, userId: 'u1' }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId1', + 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: 'Udaipur', + name: 'Dummy User 1 New', + title: 'SDE-2', + gender: 'Male', + company: 'Rudderstack', + }, + 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: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 10, userId: 'u1' }, + message: { + type: 'track', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId1', + channel: 'web', + properties: { + feedbackScore: 7, + feedbackText: 'Simple, Easy to use, Reliable, Affordable Product', + }, + 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', + ip: '0.0.0.0', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Mumbai', + name: 'Dummy User 1', + email: 'dummyUser1@gmail.com', + title: 'SDE', + gender: 'Male', + company: 'Rudderstack', + createdAt: '2021-01-20T13:39:21.032Z', + }, + 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, Wootric: { eventType: 'create response' } }, + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 11, userId: 'u1' }, + message: { + type: 'track', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId2', + channel: 'web', + properties: { + feedbackScore: 7, + feedbackText: 'Simple, Easy to use, Reliable, Affordable Product', + }, + 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', + ip: '0.0.0.0', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + 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, Wootric: { eventType: 'create response' } }, + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 12, userId: 'u1' }, + message: { + type: 'track', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId1', + channel: 'web', + properties: { + feedbackScore: 12, + feedbackText: 'Simple, Easy to use, Reliable, Affordable Product', + }, + 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', + ip: '0.0.0.0', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + 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, Wootric: { eventType: 'create response' } }, + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 13, userId: 'u1' }, + message: { + type: 'track', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId1', + channel: 'web', + properties: { + feedbackScore: 9, + feedbackText: 'Simple, Easy to use, Reliable, Affordable Product', + }, + 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, + }, + 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, Wootric: { eventType: 'create decline' } }, + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 14, userId: 'u1' }, + message: { + type: 'track', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId2', + channel: 'web', + properties: { + feedbackScore: 9, + feedbackText: 'Simple, Easy to use, Reliable, Affordable Product', + }, + 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, + }, + 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, Wootric: { eventType: 'create decline' } }, + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 15, userId: 'u1' }, + message: { + type: 'track', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId1', + channel: 'web', + properties: { + feedbackScore: 7, + feedbackText: 'Simple, Easy to use, Reliable, Affordable Product', + }, + 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', + ip: '0.0.0.0', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Mumbai', + name: 'Dummy User 1', + email: 'dummyUser1@gmail.com', + phone: '+19123456789', + title: 'SDE', + gender: 'Male', + company: 'Rudderstack', + createdAt: '2021-01-20T13:39:21.032Z', + }, + 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, Wootric: { eventType: 'random' } }, + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: { jobId: 16, userId: 'u1' }, + message: { + type: 'track', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'dummyId1', + channel: 'web', + properties: { feedbackScore: 3, feedbackText: 'Too Slow!!!' }, + 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', + ip: '0.0.0.0', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Mumbai', + name: 'Dummy User 1', + email: 'dummyUser1@gmail.com', + phone: '+19123456789', + title: 'SDE', + gender: 'Male', + company: 'Rudderstack', + createdAt: '2021-01-20T13:39:21.032Z', + }, + 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', + }, + }, + ], + destType: 'wootric', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.wootric.com/v1/end_users', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: + 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + email: 'dummyUser2@gmail.com', + phone_number: '+19123456777', + last_surveyed: '1642685961', + external_created_at: '1611149961', + external_id: 'dummyId2', + 'properties[city]': 'Bangalore', + 'properties[name]': 'Dummy User 2', + 'properties[title]': 'SDE', + 'properties[gender]': 'Male', + 'properties[company]': 'Rudderstack', + }, + }, + files: {}, + }, + metadata: [{ jobId: 1, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.wootric.com/v1/end_users', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: + 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + phone_number: '+19123456777', + last_surveyed: '1642685961', + external_created_at: '1611149961', + external_id: 'dummyId2', + 'properties[city]': 'Bangalore', + 'properties[name]': 'Dummy User 2', + 'properties[title]': 'SDE', + 'properties[gender]': 'Male', + 'properties[company]': 'Rudderstack', + }, + }, + files: {}, + }, + metadata: [{ jobId: 2, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.wootric.com/v1/end_users', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: + 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + email: 'dummyUser2@gmail.com', + last_surveyed: '1642685961', + external_created_at: '1611149961', + external_id: 'dummyId2', + 'properties[city]': 'Bangalore', + 'properties[name]': 'Dummy User 2', + 'properties[title]': 'SDE', + 'properties[gender]': 'Male', + 'properties[company]': 'Rudderstack', + }, + }, + files: {}, + }, + metadata: [{ jobId: 3, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: [{ jobId: 5, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'email/phone number are missing. At least one parameter must be provided', + statTags: { + destType: 'WOOTRIC', + feature: 'router', + implementation: 'native', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: [{ jobId: 6, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'email/phone number are missing. At least one parameter must be provided', + statTags: { + destType: 'WOOTRIC', + feature: 'router', + implementation: 'native', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.wootric.com/v1/end_users/486438462', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: + 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { email: 'dummyuser1_01@gmail.com', last_surveyed: '1642685961' }, + }, + files: {}, + }, + metadata: [{ jobId: 7, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.wootric.com/v1/end_users/486438462', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: + 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { phone_number: '+19777777778', last_surveyed: '1642685961' }, + }, + files: {}, + }, + metadata: [{ jobId: 8, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://api.wootric.com/v1/end_users/486438462', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: + 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + last_surveyed: '1642685961', + 'properties[city]': 'Udaipur', + 'properties[name]': 'Dummy User 1 New', + 'properties[title]': 'SDE-2', + 'properties[gender]': 'Male', + 'properties[company]': 'Rudderstack', + }, + }, + files: {}, + }, + metadata: [{ jobId: 9, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.wootric.com/v1/end_users/486438462/responses', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: + 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + score: 7, + ip_address: '0.0.0.0', + origin_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + text: 'Simple, Easy to use, Reliable, Affordable Product', + created_at: '1611149961', + 'end_user[properties][city]': 'Mumbai', + 'end_user[properties][name]': 'Dummy User 1', + 'end_user[properties][title]': 'SDE', + 'end_user[properties][gender]': 'Male', + 'end_user[properties][company]': 'Rudderstack', + }, + }, + files: {}, + }, + metadata: [{ jobId: 10, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + }, + }, + { + metadata: [{ jobId: 11, userId: 'u1' }], + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + batched: false, + statusCode: 400, + error: 'No user found with userId : dummyId2', + statTags: { + destType: 'WOOTRIC', + feature: 'router', + implementation: 'native', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: [{ jobId: 12, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'Invalid Score', + statTags: { + destType: 'WOOTRIC', + feature: 'router', + implementation: 'native', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.wootric.com/v1/end_users/486438462/declines', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: + 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c', + }, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + origin_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + }, + }, + files: {}, + }, + metadata: [{ jobId: 13, userId: 'u1' }], + batched: false, + statusCode: 200, + destination: { + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: [{ jobId: 14, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'No user found with userId : dummyId2', + statTags: { + destType: 'WOOTRIC', + feature: 'router', + implementation: 'native', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + }, + { + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + metadata: [{ jobId: 15, userId: 'u1' }], + batched: false, + statusCode: 400, + error: 'Event Type not supported', + statTags: { + destType: 'WOOTRIC', + feature: 'router', + implementation: 'native', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + }, + { + metadata: [{ jobId: 16, userId: 'u1' }], + destination: { + Config: { + username: 'wootricfakeuser@example.com', + password: 'password@123', + accountToken: 'NPS-dummyToken', + }, + ID: '2D7TqLto9tnkBuR1ciMrbiA4cbG', + }, + batched: false, + statusCode: 400, + error: 'Event Type is missing from Integration object', + statTags: { + destType: 'WOOTRIC', + feature: 'router', + implementation: 'native', + module: 'destination', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/yahoo_dsp/router/data.ts b/test/integrations/destinations/yahoo_dsp/router/data.ts index 59c71b300c..61b1b728a5 100644 --- a/test/integrations/destinations/yahoo_dsp/router/data.ts +++ b/test/integrations/destinations/yahoo_dsp/router/data.ts @@ -23,9 +23,7 @@ export const data = [ }, ID: 'iwehr83843', }, - metadata: { - jobId: 1, - }, + metadata: { jobId: 1, userId: 'u1' }, message: { userId: 'user 1', type: 'audiencelist', @@ -75,12 +73,7 @@ export const data = [ }, enablePartialFailure: true, }, - context: { - ip: '14.5.67.21', - library: { - name: 'http', - }, - }, + context: { ip: '14.5.67.21', library: { name: 'http' } }, timestamp: '2020-02-02T00:23:09.544Z', }, }, @@ -123,11 +116,7 @@ export const data = [ }, files: {}, }, - metadata: [ - { - jobId: 1, - }, - ], + metadata: [{ jobId: 1, userId: 'u1' }], batched: false, statusCode: 200, destination: { diff --git a/test/integrations/destinations/zendesk/router/data.ts b/test/integrations/destinations/zendesk/router/data.ts index d99ca6df03..4e7aacd1d1 100644 --- a/test/integrations/destinations/zendesk/router/data.ts +++ b/test/integrations/destinations/zendesk/router/data.ts @@ -30,9 +30,7 @@ export const data = [ Name: 'zendesk', Transformations: [], }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: '297b0750-934b-4411-b66c-9b418cdbc0c9', channel: 'web', @@ -44,28 +42,15 @@ export const data = [ version: '1.1.0-beta.2', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.0-beta.2', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.0-beta.2' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, - traits: { - email: 'example124@email.com', - name: 'abcd124', - }, + os: { name: '', version: '' }, + screen: { density: 2 }, + traits: { email: 'example124@email.com', name: 'abcd124' }, 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', }, - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '0bab70e8-bf2f-449a-a19b-ca6e3bfed9b7', originalTimestamp: '2020-03-23T18:27:28.98Z', receivedAt: '2020-03-23T23:57:29.022+05:30', @@ -108,9 +93,7 @@ export const data = [ email: 'example124@email.com', name: 'abcd124', external_id: 'abcd-124', - user_fields: { - id: 'abcd-124', - }, + user_fields: { id: 'abcd-124' }, verified: true, }, }, @@ -122,11 +105,7 @@ export const data = [ userId: '297b0750-934b-4411-b66c-9b418cdbc0c9', }, ], - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -186,9 +165,7 @@ export const data = [ Name: 'zendesk', Transformations: [], }, - metadata: { - jobId: 2, - }, + metadata: { jobId: 2, userId: 'u1' }, message: { anonymousId: '297b0750-934b-4411-b66c-9b418cdbc0c9', channel: 'web', @@ -200,29 +177,16 @@ export const data = [ version: '1.1.0-beta.2', }, ip: '0.0.0.0', - library: { - name: 'RudderLabs JavaScript SDK', - version: '1.1.0-beta.2', - }, + library: { name: 'RudderLabs JavaScript SDK', version: '1.1.0-beta.2' }, locale: 'en-GB', - os: { - name: '', - version: '', - }, - screen: { - density: 2, - }, - traits: { - email: 'example124@email.com', - name: 'abcd124', - }, + os: { name: '', version: '' }, + screen: { density: 2 }, + traits: { email: 'example124@email.com', name: 'abcd124' }, 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-124', - integrations: { - All: true, - }, + integrations: { All: true }, messageId: '2d54ba80-ce5f-4bcb-b1d7-7587e7a865fc', originalTimestamp: '2020-03-23T18:27:28.983Z', receivedAt: '2020-03-23T23:57:29.022+05:30', @@ -277,11 +241,7 @@ export const data = [ files: {}, userId: '297b0750-934b-4411-b66c-9b418cdbc0c9', }, - metadata: [ - { - jobId: 2, - }, - ], + metadata: [{ jobId: 2, userId: 'u1' }], batched: false, statusCode: 200, destination: { @@ -340,9 +300,7 @@ export const data = [ Name: 'zendesk', Transformations: [], }, - metadata: { - jobId: 3, - }, + metadata: { jobId: 3, userId: 'u1' }, message: { anonymousId: '223b5f40-9543-4456-a7aa-945c43048185', channel: 'web', @@ -393,11 +351,7 @@ export const data = [ module: 'destination', }, statusCode: 400, - metadata: [ - { - jobId: 3, - }, - ], + metadata: [{ jobId: 3, userId: 'u1' }], batched: false, destination: { Config: { diff --git a/test/integrations/testUtils.ts b/test/integrations/testUtils.ts index f5be8107ed..09f3a82d40 100644 --- a/test/integrations/testUtils.ts +++ b/test/integrations/testUtils.ts @@ -4,7 +4,10 @@ import { MockHttpCallsData, TestCaseData } from './testTypes'; import MockAdapter from 'axios-mock-adapter'; import isMatch from 'lodash/isMatch'; import { OptionValues } from 'commander'; +import { removeUndefinedAndNullValues } from '@rudderstack/integrations-lib'; +const generateAlphanumericId = (size = 36) => + [...Array(size)].map(() => ((Math.random() * size) | 0).toString(size)).join(''); export const getTestDataFilePaths = (dirPath: string, opts: OptionValues): string[] => { const globPattern = join(dirPath, '**', 'data.ts'); let testFilePaths = globSync(globPattern); @@ -74,3 +77,290 @@ export const overrideDestination = (destination, overrideConfigValues) => { Config: { ...destination.Config, ...overrideConfigValues }, }); }; + +export const generateIndentifyPayload = (parametersOverride: any) => { + const payload = { + type: 'identify', + sentAt: parametersOverride.sentAt || '2021-01-03T17:02:53.195Z', + userId: parametersOverride.userId || 'default-userId', + channel: 'web', + context: removeUndefinedAndNullValues({ + externalId: parametersOverride.externalId, + os: { name: '', version: '1.12.3' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: parametersOverride.context.traits, + 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', + }), + traits: parametersOverride.traits, + integrations: parametersOverride.integrations, + rudderId: parametersOverride.rudderId || generateAlphanumericId(36), + messageId: parametersOverride.messageId || generateAlphanumericId(36), + anonymousId: parametersOverride.anonymousId || 'default-anonymousId', + originalTimestamp: parametersOverride.originalTimestamp || '2021-01-03T17:02:53.193Z', + }; + + return removeUndefinedAndNullValues(payload); +}; + +export const generateSimplifiedIdentifyPayload = (parametersOverride: any) => { + return removeUndefinedAndNullValues({ + type: 'identify', + sentAt: parametersOverride.sentAt || '2021-01-03T17:02:53.195Z', + userId: parametersOverride.userId || 'default-userId', + traits: parametersOverride.traits, + integrations: parametersOverride.integrations, + rudderId: parametersOverride.rudderId || generateAlphanumericId(36), + messageId: parametersOverride.messageId || generateAlphanumericId(36), + context: { + externalId: parametersOverride.externalId, + traits: parametersOverride.context.traits, + }, + anonymousId: parametersOverride.anonymousId || 'default-anonymousId', + originalTimestamp: parametersOverride.originalTimestamp || '2021-01-03T17:02:53.193Z', + }); +}; + +export const generateTrackPayload = (parametersOverride: any) => { + const payload = { + type: 'track', + sentAt: parametersOverride.sentAt || '2021-01-03T17:02:53.195Z', + userId: parametersOverride.userId || 'default-user-id', + channel: 'web', + context: removeUndefinedAndNullValues({ + externalId: parametersOverride.externalId, + os: { name: '', version: '1.12.3' }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.1.11', + namespace: 'com.rudderlabs.javascript', + }, + traits: parametersOverride.context.traits, + 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: parametersOverride.rudderId || generateAlphanumericId(36), + messageId: parametersOverride.messageId || generateAlphanumericId(36), + anonymousId: parametersOverride.anonymousId || 'default-anonymousId', + originalTimestamp: parametersOverride.originalTimestamp || '2021-01-03T17:02:53.193Z', + timestamp: parametersOverride.timestamp, + event: parametersOverride.event || 'test-event', + integrations: parametersOverride.integrations, + properties: parametersOverride.properties, + }; + return removeUndefinedAndNullValues(payload); +}; + +export const generateSimplifiedTrackPayload = (parametersOverride: any) => { + return removeUndefinedAndNullValues({ + type: 'track', + sentAt: parametersOverride.sentAt || '2021-01-03T17:02:53.195Z', + userId: parametersOverride.userId || 'default-user-id', + event: parametersOverride.event || 'test-event', + properties: parametersOverride.properties, + integrations: parametersOverride.integrations, + rudderId: parametersOverride.rudderId || generateAlphanumericId(36), + messageId: parametersOverride.messageId || generateAlphanumericId(36), + context: removeUndefinedAndNullValues({ + externalId: parametersOverride.externalId, + traits: parametersOverride.context.traits, + }), + anonymousId: parametersOverride.anonymousId || 'default-anonymousId', + originalTimestamp: parametersOverride.originalTimestamp || '2021-01-03T17:02:53.193Z', + }); +}; + +export const generatePageOrScreenPayload = (parametersOverride: any, eventType: string) => { + const payload = { + channel: 'web', + userId: parametersOverride.userId || 'default-userId', + rudderId: parametersOverride.rudderId || generateAlphanumericId(36), + originalTimestamp: parametersOverride.originalTimestamp || '2022-04-26T05:17:09Z', + timestamp: parametersOverride.timestamp, + context: removeUndefinedAndNullValues({ + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: 'false', + advertisingId: 'T0T0T072-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: parametersOverride.context.traits, + externalId: parametersOverride.externalId, + 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: parametersOverride.event, + anonymousId: parametersOverride.anonymousId || 'default-anonymousId', + properties: parametersOverride.properties, + type: eventType || 'page', + integrations: parametersOverride.integrations, + sentAt: '2022-04-20T15:20:57Z', + }; + + return removeUndefinedAndNullValues(payload); +}; + +export const generateSimplifiedPageOrScreenPayload = ( + parametersOverride: any, + eventType: string, +) => { + return removeUndefinedAndNullValues({ + channel: 'web', + userId: parametersOverride.userId || 'default-userId', + type: eventType || 'page', + event: parametersOverride.event, + properties: parametersOverride.properties, + integrations: parametersOverride.integrations, + rudderId: parametersOverride.rudderId || generateAlphanumericId(36), + context: removeUndefinedAndNullValues({ + externalId: parametersOverride.externalId, + traits: parametersOverride.context.traits, + }), + timestamp: parametersOverride.timestamp, + anonymousId: parametersOverride.anonymousId || 'default-anonymousId', + originalTimestamp: parametersOverride.originalTimestamp || '2022-04-26T05:17:09Z', + }); +}; + +export const generateGroupPayload = (parametersOverride: any) => { + const payload = { + channel: 'web', + context: removeUndefinedAndNullValues({ + 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, + }, + traits: parametersOverride.context.traits, + externalId: parametersOverride.externalId, + }), + messageId: parametersOverride.messageId || generateAlphanumericId(36), + session_id: parametersOverride.session_id || generateAlphanumericId(36), + originalTimestamp: parametersOverride.originalTimestamp || '2019-10-14T09:03:17.562Z', + timestamp: parametersOverride.timestamp, + anonymousId: parametersOverride.anonymousId || generateAlphanumericId(36), + userId: parametersOverride.userId || 'default-user-id', + type: 'group', + groupId: parametersOverride.groupId, + traits: parametersOverride.traits, + integrations: parametersOverride.integrations, + sentAt: parametersOverride.sentAt || '2019-10-14T09:03:22.563Z', + }; + return removeUndefinedAndNullValues(payload); +}; + +export const generateSimplifiedGroupPayload = (parametersOverride: any) => { + return removeUndefinedAndNullValues({ + channel: 'web', + userId: parametersOverride.userId || 'default-userId', + type: 'group', + groupId: parametersOverride.groupId, + traits: parametersOverride.traits, + integrations: parametersOverride.integrations, + context: removeUndefinedAndNullValues({ + externalId: parametersOverride.externalId, + traits: parametersOverride.context.traits, + }), + timestamp: parametersOverride.timestamp, + anonymousId: parametersOverride.anonymousId || generateAlphanumericId(36), + originalTimestamp: parametersOverride.originalTimestamp || '2019-10-14T09:03:17.562Z', + }); +}; + +export const transformResultBuilder = (matchData) => { + return removeUndefinedAndNullValues({ + version: '1', + type: 'REST', + userId: matchData.userId, + method: matchData.method || 'POST', + endpoint: matchData.endpoint || '', + headers: matchData.headers || {}, + params: matchData.params || {}, + body: { + JSON: matchData.JSON || {}, + JSON_ARRAY: matchData.JSON_ARRAY || {}, + XML: matchData.XML || {}, + FORM: matchData.FORM || {}, + }, + files: matchData.files || {}, + }); +}; + +export const compareObjects = (obj1, obj2, logPrefix = '', differences: string[] = []) => { + for (const key in obj1) { + if (obj1.hasOwnProperty(key)) { + const fullKey = logPrefix ? `${logPrefix}.${key}` : key; + + if (typeof obj1[key] === 'object' && typeof obj2[key] === 'object') { + compareObjects(obj1[key], obj2[key], fullKey, differences); + } else if (obj1[key] !== obj2[key]) { + differences.push(fullKey); + } + } + } + + // Check for keys in obj2 that are not present in obj1 + for (const key in obj2) { + if (obj2.hasOwnProperty(key) && !obj1.hasOwnProperty(key)) { + const fullKey = logPrefix ? `${logPrefix}.${key}` : key; + differences.push(fullKey); + } + } + + return differences; +}; diff --git a/test/testHelper.js b/test/testHelper.js index 5fe97fed67..f0297c0574 100644 --- a/test/testHelper.js +++ b/test/testHelper.js @@ -15,11 +15,71 @@ const setResponsesForMockAxiosAdapter = ({url, method, data, options}, {response if (data) { reqObj.data = data } - responses.push(`{httpReq: ${JSON.stringify(reqObj)},httpRes: ${JSON.stringify(response)}},`) + responses.push(`{httpReq: ${JSON.stringify(reqObj)},httpRes: ${JSON.stringify(response)}},`) } } + +const assertRouterOutput = (output, input) => { + if (!Array.isArray(output) || !Array.isArray(input)) { + return + } + + const returnedJobids = {}; + output.forEach((outEvent) => { + //Assert that metadata is present and is an array + const metadata = outEvent.metadata; + expect(Array.isArray(metadata)).toEqual(true); + + //Assert that statusCode is present and is a number between 200 and 600 + const statusCode = outEvent.statusCode; + expect(statusCode).toBeDefined(); + expect(typeof statusCode === 'number').toEqual(true); + const validStatusCode = statusCode >= 200 && statusCode < 600; + expect(validStatusCode).toEqual(true); + + //Assert that every job_id in the input is present in the output one and only one time. + metadata.forEach((meta) => { + const jobId = meta.jobId; + expect(returnedJobids[jobId]).toBeUndefined(); + returnedJobids[jobId] = true; + }); + }); + + const inputJobids = {}; + input.forEach((input) => { + const jobId = input.metadata.jobId; + inputJobids[jobId] = true; + }); + + expect(returnedJobids).toEqual(inputJobids); + + let userIdJobIdMap = {}; + output.forEach((outEvent) => { + //Events with statusCode 400-499 are skipped. They are not sent to the destination. + if (outEvent.statusCode < 400 || outEvent.statusCode > 499) { + const metadata = outEvent.metadata; + metadata.forEach((meta) => { + const jobId = meta.jobId; + const userId = meta.userId; + let arr = userIdJobIdMap[userId] || []; + arr.push(jobId); + userIdJobIdMap[userId] = arr; + }); + } + }); + + //The jobids for a user should be in order. If not, there is an issue. + Object.keys(userIdJobIdMap).forEach((userId) => { + const jobIds = userIdJobIdMap[userId]; + for (let i = 0; i < jobIds.length - 1; i++) { + expect(jobIds[i] < jobIds[i + 1]).toEqual(true); + } + }); +}; + module.exports = { getFuncTestData, responses, - setResponsesForMockAxiosAdapter + setResponsesForMockAxiosAdapter, + assertRouterOutput }; diff --git a/test/test_reporter/reporter.ts b/test/test_reporter/reporter.ts new file mode 100644 index 0000000000..135f980398 --- /dev/null +++ b/test/test_reporter/reporter.ts @@ -0,0 +1,133 @@ +import fs from 'fs'; +import { compareObjects } from '../integrations/testUtils'; + +// Step 1: Generate the template HTML +const generateHTMLTemplate = () => ` + + + + + + Test Report + + + + + +

Test Report

+ + + + + + + + + + + + + + + + + +
Integration NameIdDescriptionSuccess CriteriaScenarioModuleFeatureAPI VersionTest InputTest OutputExpected OutputDiff KeysTest Status
+ + + +`; + +// Step 2: Iterate through each test data element and add it to the HTML template +const generateHTMLContent = (testData, expectedData, testStatus) => { + let htmlContent = ''; + let diffKeys: string[] = []; + diffKeys = compareObjects(testData.output.response.body, expectedData); + htmlContent += ` + + ${testData.name} + ${testData.id} + ${testData.description} + ${testData.successCriteria} + ${testData.scenario} + ${testData.module} + ${testData.feature} + ${testData.version} + ${JSON.stringify(testData.input.request.body)} + ${JSON.stringify(testData.output.response.body)} + ${JSON.stringify(expectedData)} + ${JSON.stringify(diffKeys)} + ${testStatus} + + + `; + + return htmlContent; +}; + +// Step 3: Write the HTML report to a file +export const generateTestReport = (testData, output, result) => { + fs.readFile('test_reports/test-report.html', 'utf8', (err, htmlTemplate) => { + if (err) { + console.error(err); + return; + } + + const htmlContent = generateHTMLContent(testData, output, result); + const finalHTML = htmlTemplate.replace('', htmlContent); + fs.writeFileSync('test_reports/test-report.html', finalHTML); + }); +}; + +export const initaliseReport = () => { + const htmlTemplate = generateHTMLTemplate(); + if (!fs.existsSync('test_reports')){ + fs.mkdirSync('test_reports'); +} + fs.writeFileSync('test_reports/test-report.html', htmlTemplate); + console.log('Report initialised'); +}; diff --git a/tsconfig.json b/tsconfig.json index 3d91523d78..9db40dd0e1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -102,6 +102,6 @@ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, - "exclude": ["./src/**/*.test.js", "./src/**/*.test.ts"], + "exclude": ["./src/**/*.test.js", "./src/**/*.test.ts", "./test"], "include": ["./src", "./src/**/*.json"] }